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);}
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
RhoEtaPhi(float irho, float ieta, float iphi)
T x() const
Cartesian x coordinate.
float __attribute__((vector_size(8))) float32x2_t
float eta() const
momentum pseudorapidity
PtEtaPhiMass(float ipt, float ieta, float iphi, float imass)