1 #ifndef DataFormats_Math_PtEtaPhiMass_h 2 #define DataFormats_Math_PtEtaPhiMass_h 6 etaFromXYZ(
float x,
float y,
float z) {
float t(z/
std::sqrt(x*x+y*y)); return ::asinhf(t);}
8 etaFromRZ(
float r,
float z) {
float t(z/r); return ::asinhf(t);}
23 pt_(ipt), eta_(ieta), phi_(iphi), mass_(imass){}
46 rho_(irho), eta_(ieta), phi_(iphi) {}
49 float rho()
const {
return rho_;}
float phi() const
momentum azimuthal angle
float rho() const
transverse momentum
float phi() const
momentum azimuthal angle
float eta() const
momentum pseudorapidity
float pt() const
transverse momentum
float __attribute__((always_inline)) __attribute__((pure)) etaFromXYZ(float x
RhoEtaPhi(float irho, float ieta, float iphi)
T x() const
Cartesian x coordinate.
float eta() const
momentum pseudorapidity
PtEtaPhiMass(float ipt, float ieta, float iphi, float imass)