12 std::pair<double, float> RZ1 = {0., 0.};
16 double rCalo = RZ1.first;
17 double zCalo = RZ1.second;
18 double correctedZ = zCalo -
z;
19 double eta = rCalo>0. ? std::asinh(correctedZ / rCalo) : ph.
eta();
20 return {ph.
e() / std::cosh(
eta),
eta, ph.
phi()};
Scalar eta() const
pseudorapidity method
static std::pair< float, float > getRZ(float eta, int sampling)
Shower depth in R,Z for the given sampling.
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
virtual double e() const override
The total energy of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
void setPtEtaPhi(float pt, float eta, float phi)
set the 4-vec
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
const xAOD::CaloCluster * caloCluster(size_t index=0) const
Pointer to the xAOD::CaloCluster/s that define the electron candidate.
PtEtaPhi PtEtaPhiWrtZ(const xAOD::Egamma &ph, double z)
Function to get the kinematics of a photon cluster wrt (0,0,z0)
void correctForZ(xAOD::Egamma &ph, double z)
Function to modify in place the kinematics of a photon wrt (0,0,z0)
Egamma_v1 Egamma
Definition of the current "egamma version".
egamma clusters kinematics are always wrt the ATLAS frame (0,0,0).