30 return StatusCode::SUCCESS;
54 if ((
eta == 0. &&
phi == 0.) || std::abs(
eta) > 100) {
55 return StatusCode::SUCCESS;
60 int sampling_or_module = 0;
70 return StatusCode::SUCCESS;
73 double deta = dde->
deta();
74 double dphi = dde->
dphi();
81 StatusCode
sc = StatusCode::SUCCESS;
83 sc = calc.fill(cmgr, &cell_container,
eta,
phi, deta, dphi, sam);
87 info.e011 = calc.em();
89 sc = calc.fill(cmgr, &cell_container,
eta,
phi, 3. * deta, 3. * dphi, sam);
93 info.e033 = calc.em();
94 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
Definition of CaloDetDescrManager.
Calculate total energy, position, etc. for a given layer of a cluster.
Container class for CaloCell.
CaloCell_Base_ID::SUBCALO SUBCALO
This class groups all DetDescr information related to a CaloCell.
float eta_raw() const
cell eta_raw
float dphi() const
cell dphi
float phi_raw() const
cell phi_raw
float deta() const
cell deta
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
static void decode_sample(CaloCell_ID::SUBCALO &subCalo, bool &barrel, int &sampling_or_module, CaloCell_ID::CaloSample sample)
translate between the 2 ways to label a sub-detector:
This class provides the client interface for accessing the detector description information common to...
bool inBarrel() const
Returns true if at least one clustered cell in the barrel.
bool inEndcap() const
Returns true if at least one clustered cell in the endcap.
float etamax(const CaloSample sampling) const
Retrieve of cell with maximum energy in given sampling.
float phimax(const CaloSample sampling) const
Retrieve of cell with maximum energy in given sampling.
bool inBarrel(const xAOD::CaloCluster &cluster, int is)
return boolean to know if we are in barrel/end-cap
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
static StatusCode execute(const xAOD::CaloCluster &cluster, const CaloDetDescrManager &cmgr, const CaloCellContainer &cell_container, Info &info)