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
constexpr float eta() const
momentum pseudorapidity
constexpr float phi() const
momentum azimuthal angle
float __attribute__((always_inline)) __attribute__((pure)) etaFromXYZ(float x
constexpr float pt() const
transverse momentum
RhoEtaPhi(float irho, float ieta, float iphi)
constexpr PtEtaPhiMass(float ipt, float ieta, float iphi, float imass)
float eta() const
momentum pseudorapidity
constexpr float mass() const
mass