10#include "CaloEvent/CaloCluster.h"
32 StatusCode
sc = StatusCode::SUCCESS;
48 int sampling_or_module = 0;
50 float etacell = cluster.
etamax(sam);
53 if ((
eta == 0. &&
phi == 0.) || std::abs(
eta) > 100) {
68 double deta = dde->
deta();
69 double dphi = dde->
dphi();
83 double etamax = calc.etarmax();
84 double phimax = calc.phirmax();
89 cell_list.
select(etamax, phimax, 7. * deta, 7. * dphi, sam);
95 calc.fill(cell_list.
begin(),
102 info.e277 = calc.em();
104 calc.fill(cell_list.
begin(),
111 info.e237 = calc.em();
117 calc.fill(cell_list.
begin(),
124 info.e233 = calc.em();
126 calc.fill(cell_list.
begin(),
133 info.e235 = calc.em();
134 double etaw = calc.etas();
135 info.phiw = calc.phis();
140 calc.fill(cell_list.
begin(),
147 info.e255 = calc.em();
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.
list_iterator end() const
void select(double eta, double phi, double deta, double dphi)
list_iterator begin() const
CaloCell_Base_ID::SUBCALO SUBCALO
This class groups all DetDescr information related to a CaloCell.
float dphi() const
cell dphi
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...
float phiSample(const CaloSample sampling) const
Retrieve barycenter in a given sample.
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 etaSample(const CaloSample sampling) const
Retrieve barycenter in a given sample.
bool inBarrel(const xAOD::CaloCluster &cluster, int is)
return boolean to know if we are in barrel/end-cap
float Correct(float eta, float etacell, float width)
returns corrected width at eta.
double RelPosition(const float eta, const float etacell)
returns method within the cell
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, bool doRetaOnly=false)