|
ATLAS Offline Software
|
Go to the documentation of this file.
12 std::pair<double, float> RZ1 = {0., 0.};
16 double rCalo = RZ1.first;
17 double zCalo = RZ1.second;
18 double correctedZ = zCalo -
z;
20 return {ph.
e() / std::cosh(
eta),
eta, ph.
phi()};
25 ph.
setP4(corr.pt, corr.eta, corr.phi, ph.
m());
Scalar eta() const
pseudorapidity method
virtual double e() const override final
The total energy of the particle.
PtEtaPhi PtEtaPhiWrtZ(const xAOD::Egamma &ph, double z)
Function to get the kinematics of a photon cluster wrt (0,0,z0)
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
egamma clusters kinematics are always wrt the ATLAS frame (0,0,0).
void setP4(float pt, float eta, float phi, float m)
set the 4-vec
const xAOD::CaloCluster * caloCluster(size_t index=0) const
Pointer to the xAOD::CaloCluster/s that define the electron candidate.
def asinh(x)
helper methods ---------------------------------------------------------—
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
void correctForZ(xAOD::Egamma &ph, double z)
Function to modify in place the kinematics of a photon wrt (0,0,z0)
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
virtual double m() const override final
The invariant mass of the particle.