#include <P4BasePtEtaPhiM.h>
P4BasePtEtaPhiM is a base class for classes with 4-momentum behavior, for which pt, eta, phi and M are natural parameters, which is typically the case for a ger object. Any class deriving from it should implement pt(), eta(), phi(), m().
- Author
- Olga Igonkina olya@.nosp@m.cern.nosp@m..ch
Definition at line 32 of file P4BasePtEtaPhiM.h.
◆ ~P4BasePtEtaPhiM()
P4BasePtEtaPhiM::~P4BasePtEtaPhiM |
( |
| ) |
|
|
inlinevirtual |
◆ cosPhi()
double P4BasePtEtaPhiM::cosPhi |
( |
| ) |
const |
|
inline |
◆ cosTh()
double P4BasePtEtaPhiM::cosTh |
( |
| ) |
const |
|
inline |
◆ cotTh()
double P4BasePtEtaPhiM::cotTh |
( |
| ) |
const |
|
inline |
◆ dump()
std::ostream & P4BasePtEtaPhiM::dump |
( |
std::ostream & |
out | ) |
const |
|
inline |
Print I4Momentum
content.
Definition at line 236 of file P4BasePtEtaPhiM.h.
239 s <<
"[pt,eta,phi,m] ="
240 << std::right << std::scientific << std::setprecision(8)
241 << std::setw(16) << this->
pt()
242 << std::setw(16) << this->
eta()
243 << std::setw(16) << this->
phi()
244 << std::setw(16) << this->
m();
◆ e()
double P4BasePtEtaPhiM::e |
( |
| ) |
const |
|
inline |
Definition at line 141 of file P4BasePtEtaPhiM.h.
143 const double theMass = this->
m();
144 const double thePt = this->
pt();
145 const double thePz = this->
pz();
151 const double eSign = (thePt >= 0.) ? +1. : -1.;
152 return eSign * std::sqrt( thePt*thePt + thePz*thePz + theMass*theMass);
◆ et()
double P4BasePtEtaPhiM::et |
( |
| ) |
const |
|
inline |
◆ eta()
virtual double P4BasePtEtaPhiM::eta |
( |
| ) |
const |
|
pure virtual |
◆ hlv()
CLHEP::HepLorentzVector P4BasePtEtaPhiM::hlv |
( |
| ) |
const |
|
inline |
Definition at line 217 of file P4BasePtEtaPhiM.h.
220 const double theM = this->
m();
222 const double thePt = this->
pt();
225 const double thePx = thePt*this->
cosPhi();
226 const double thePy = thePt*this->
sinPhi();
228 const double thePz = thePt*this->
cotTh();
230 const double theE=std::sqrt(thePt*thePt+thePz*thePz+theM*theM);
233 return CLHEP::HepLorentzVector( thePx, thePy, thePz, theE );
◆ iPt()
double P4BasePtEtaPhiM::iPt |
( |
| ) |
const |
|
inline |
◆ m()
virtual double P4BasePtEtaPhiM::m |
( |
| ) |
const |
|
pure virtual |
◆ m2()
double P4BasePtEtaPhiM::m2 |
( |
| ) |
const |
|
inline |
◆ p()
double P4BasePtEtaPhiM::p |
( |
| ) |
const |
|
inline |
Definition at line 116 of file P4BasePtEtaPhiM.h.
118 const double thePt = this->
pt();
119 const double thePz = this->
pz();
125 const double eSign = (thePt >= 0.) ? +1. : -1.;
126 return eSign * std::sqrt( thePt*thePt + thePz*thePz );
◆ p2()
double P4BasePtEtaPhiM::p2 |
( |
| ) |
const |
|
inline |
◆ phi()
virtual double P4BasePtEtaPhiM::phi |
( |
| ) |
const |
|
pure virtual |
◆ pt()
virtual double P4BasePtEtaPhiM::pt |
( |
| ) |
const |
|
pure virtual |
◆ px()
double P4BasePtEtaPhiM::px |
( |
| ) |
const |
|
inline |
◆ py()
double P4BasePtEtaPhiM::py |
( |
| ) |
const |
|
inline |
◆ pz()
double P4BasePtEtaPhiM::pz |
( |
| ) |
const |
|
inline |
◆ rapidity()
double P4BasePtEtaPhiM::rapidity |
( |
| ) |
const |
|
inline |
Definition at line 165 of file P4BasePtEtaPhiM.h.
167 const double theE=this->
e();
168 const double thePz=this->
pz();
169 return 0.5*
std::log((theE+thePz)/(theE-thePz));
◆ sinPhi()
double P4BasePtEtaPhiM::sinPhi |
( |
| ) |
const |
|
inline |
◆ sinTh()
double P4BasePtEtaPhiM::sinTh |
( |
| ) |
const |
|
inline |
Definition at line 189 of file P4BasePtEtaPhiM.h.
193 double aEta=std::abs(this->
eta());
198 return 1./std::cosh(aEta);
◆ tanTh()
double P4BasePtEtaPhiM::tanTh |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: