21#include "CLHEP/Units/SystemOfUnits.h"
40 float aeta = fabs(adj_eta);
41 float eclus = cluster->
e() * (1./
GeV);
50 ATH_MSG_DEBUG(
" ... e, eta, phi " << cluster->
e() <<
" " << cluster->
eta() <<
" " << cluster->
phi() <<
" " << samp <<
endmsg);
55 if (aeta < EtaFrontier[0])
57 qphioff =
m_EdepA(myctx)[iEtaBin]/sqrt(eclus) +
m_EdepB(myctx)[iEtaBin];
59 else if (aeta < EtaFrontier[2])
65 else if (aeta < EtaFrontier[3])
80 ATH_MSG_DEBUG(
" ... Phi off " << qphioff <<
" " << adj_eta <<
" " << eclus <<
" " << iEtaBin <<
endmsg);
87 ATH_MSG_DEBUG(
" ... e, eta, phi " << cluster->
e() <<
" " << cluster->
eta() <<
" " << cluster->
phi() <<
" " << samp <<
endmsg);
Scalar phi() const
phi method
Definition of CaloDetDescrManager.
CaloPhiRange class declaration.
This class groups all DetDescr information related to a CaloCell.
float eta_raw() const
cell eta_raw
CaloCell_ID::CaloSample getSampling() const
cell sampling
static double fix(double phi)
Constant< CxxUtils::Array< 1 > > m_EdepA
Constant< float > m_EndcapOffset
virtual void makeTheCorrection(const Context &myctx, xAOD::CaloCluster *cluster, const CaloDetDescrElement *elt, float eta, float adj_eta, float phi, float adj_phi, CaloSampling::CaloSample samp) const
Constant< CxxUtils::Array< 1 > > m_EdepB
Constant< CxxUtils::Array< 1 > > m_EtaFrontier
Constant< int > m_FlipPhi
Constant< float > m_Granularity
Read-only multidimensional array.
bool setPhi(const CaloSample sampling, const float phi)
Set in a given sampling. Returns false if the sample isn't part of the cluster.
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual double e() const
The total energy of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.