17{
18
19
20
21
22
23
24
25
26
27
28
30 return StatusCode::SUCCESS;
31 }
32
34
35
38
39
40
41
42
43
44
45
46
47
48
49
52
53
54 if ((
eta == 0. &&
phi == 0.) || std::abs(
eta) > 100) {
55 return StatusCode::SUCCESS;
56 }
57
60 int sampling_or_module = 0;
61
63
64
65
66 const CaloDetDescrElement* dde =
68
69 if (!dde) {
70 return StatusCode::SUCCESS;
71 }
72
73 double deta = dde->
deta();
74 double dphi = dde->
dphi();
75
78
79
80 CaloLayerCalculator
calc;
82
83 sc =
calc.fill(cmgr, &cell_container,
eta,
phi, deta, dphi, sam);
86 }
88
89 sc =
calc.fill(cmgr, &cell_container,
eta,
phi, 3. * deta, 3. * dphi, sam);
92 }
94 return StatusCode::SUCCESS;
95}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
CaloCell_Base_ID::SUBCALO SUBCALO
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:
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.
::StatusCode StatusCode
StatusCode definition for legacy code.
bool inBarrel(const xAOD::CaloCluster &cluster, int is)
return boolean to know if we are in barrel/end-cap