19 const auto endCapSamE= cluster.
eSample(endCap);
20 if (barrelSamE == 0. && endCapSamE!= 0.) {
23 if (barrelSamE != 0. && endCapSamE == 0.) {
26 if (barrelSamE >= endCapSamE) {
34 return (
e0(cluster) +
e1(cluster) +
e2(cluster) +
e3(cluster));
38 return (cluster.
eSample(CaloSampling::PreSamplerB) + cluster.
eSample(CaloSampling::PreSamplerE));
42 return (cluster.
eSample(CaloSampling::EMB1) + cluster.
eSample(CaloSampling::EME1));
46 return (cluster.
eSample(CaloSampling::EMB2) + cluster.
eSample(CaloSampling::EME2));
50 return (cluster.
eSample(CaloSampling::EMB3) + cluster.
eSample(CaloSampling::EME3));
68 return isCrackBarrel(cluster, CaloSampling::PreSamplerB, CaloSampling::PreSamplerE);
71 return isCrackBarrel(cluster, CaloSampling::EMB1, CaloSampling::EME1);
74 return isCrackBarrel(cluster, CaloSampling::EMB2, CaloSampling::EME2);
77 return isCrackBarrel(cluster, CaloSampling::EMB3, CaloSampling::EME3);
bool inBarrel() const
Returns true if at least one clustered cell in the barrel.
float eSample(const CaloSample sampling) const
bool inEndcap() const
Returns true if at least one clustered cell in the endcap.
CaloSampling::CaloSample CaloSample
double e3(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 3rd sampling
double e2(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 2nd sampling
double e0(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in pre-sampler
double e1(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 1st sampling
bool inBarrel(const xAOD::CaloCluster &cluster, int is)
return boolean to know if we are in barrel/end-cap
double e(const xAOD::CaloCluster &cluster)
return the uncorrected sum of energy in all samples
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.