![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
18 const auto barrelSamE = cluster.
eSample(barrel);
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));
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
Description of a calorimeter cluster.
bool inEndcap() const
Returns true if at least one clustered cell in the endcap.
bool inBarrel() const
Returns true if at least one clustered cell in the barrel.
float eSample(const CaloSample sampling) const
double e2(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 2nd sampling
double e(const xAOD::CaloCluster &cluster)
return the uncorrected sum of energy in all samples
double e0(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in pre-sampler
double e3(const xAOD::CaloCluster &cluster)
return the uncorrected cluster energy in 3rd sampling