public final class ClusterEnergyCorrection extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static double |
A |
(package private) static double |
B |
(package private) static double |
C |
(package private) static double |
par0_em |
(package private) static double |
par0_ep |
(package private) static double |
par0_p |
(package private) static double |
par0MC_em |
(package private) static double |
par0MC_ep |
(package private) static double |
par0MC_p |
(package private) static double[] |
par1_em |
(package private) static double[] |
par1_ep |
(package private) static double[] |
par1_p |
(package private) static double[] |
par1MC_em |
(package private) static double[] |
par1MC_ep |
(package private) static double[] |
par1MC_p |
(package private) static double[] |
par2_em |
(package private) static double[] |
par2_ep |
(package private) static double[] |
par2_p |
(package private) static double[] |
par2MC_em |
(package private) static double[] |
par2MC_ep |
(package private) static double[] |
par2MC_p |
Constructor and Description |
---|
ClusterEnergyCorrection() |
Modifier and Type | Method and Description |
---|---|
private static double |
calcNoise(double energy) |
static double |
calculateCorrectedEnergy(HPSEcal3 ecal,
org.lcsim.event.Cluster cluster,
boolean isMC)
Calculate the corrected energy for the cluster.
|
static double |
calculateCorrectedEnergy(HPSEcal3 ecal,
org.lcsim.event.Cluster cluster,
double ypos,
boolean isMC)
Calculate the corrected energy for the cluster using track position at ecal.
|
private static double |
computeCorrectedEnergy(double y,
double rawEnergy,
double varA,
double[] varB,
double[] varC)
Calculates the energy correction to a cluster given the variables from the fit as per HPS Note 2014-001 Note that this
is correct as there is a typo in the formula print in the note.
|
private static double |
computeCorrectedEnergy(HPSEcal3 ecal,
int pdg,
double rawEnergy,
double xpos,
double ypos,
boolean isMC)
Calculates energy correction based on cluster raw energy and particle type as per HPS Note 2014-001
|
static void |
setCorrectedEnergy(HPSEcal3 ecal,
org.lcsim.event.base.BaseCluster cluster,
boolean isMC)
Calculate the corrected energy and set on the cluster.
|
static void |
setCorrectedEnergy(HPSEcal3 ecal,
org.lcsim.event.base.BaseCluster cluster,
double ypos,
boolean isMC)
Calculate the corrected energy and set on the cluster.
|
static final double A
static final double B
static final double C
static final double par0_em
static final double[] par1_em
static final double[] par2_em
static final double par0_ep
static final double[] par1_ep
static final double[] par2_ep
static final double par0_p
static final double[] par1_p
static final double[] par2_p
static final double par0MC_em
static final double[] par1MC_em
static final double[] par2MC_em
static final double par0MC_ep
static final double[] par1MC_ep
static final double[] par2MC_ep
static final double par0MC_p
static final double[] par1MC_p
static final double[] par2MC_p
private static double calcNoise(double energy)
public static double calculateCorrectedEnergy(HPSEcal3 ecal, org.lcsim.event.Cluster cluster, boolean isMC)
cluster
- The input cluster.public static double calculateCorrectedEnergy(HPSEcal3 ecal, org.lcsim.event.Cluster cluster, double ypos, boolean isMC)
cluster
- The input cluster.public static void setCorrectedEnergy(HPSEcal3 ecal, org.lcsim.event.base.BaseCluster cluster, boolean isMC)
cluster
- The input cluster.public static void setCorrectedEnergy(HPSEcal3 ecal, org.lcsim.event.base.BaseCluster cluster, double ypos, boolean isMC)
cluster
- The input cluster.private static double computeCorrectedEnergy(HPSEcal3 ecal, int pdg, double rawEnergy, double xpos, double ypos, boolean isMC)
pdg
- Particle id as per PDGrawEnergy
- Raw Energy of the cluster (sum of hits with shared hit distribution)private static double computeCorrectedEnergy(double y, double rawEnergy, double varA, double[] varB, double[] varC)
rawEnergy
- Raw energy of the clusterA,B,C
- from fitting in noteCopyright © 2019. All rights reserved.