#include <TruthParticleMomentum.h>
|
const HepMC::FourVector * | m_hlv |
| The CLHEP::LorentzVector we are proxying (from the HepMC::GenParticle which is also being proxied) More...
|
|
Definition at line 27 of file TruthParticleMomentum.h.
◆ TruthParticleMomentum() [1/3]
TruthParticleMomentum::TruthParticleMomentum |
( |
| ) |
|
◆ TruthParticleMomentum() [2/3]
◆ TruthParticleMomentum() [3/3]
TruthParticleMomentum::TruthParticleMomentum |
( |
const HepMC::FourVector & |
hlv | ) |
|
◆ ~TruthParticleMomentum()
TruthParticleMomentum::~TruthParticleMomentum |
( |
| ) |
|
|
virtual |
◆ cosPhi()
double TruthParticleMomentum::cosPhi |
( |
| ) |
const |
|
inline |
◆ cosTh()
double TruthParticleMomentum::cosTh |
( |
| ) |
const |
|
inline |
◆ cotTh()
double TruthParticleMomentum::cotTh |
( |
| ) |
const |
|
inline |
◆ dump()
std::ostream & TruthParticleMomentum::dump |
( |
std::ostream & |
out | ) |
const |
Print I4Momentum
content.
Definition at line 57 of file TruthParticleMomentum.cxx.
59 std::stringstream
buf;
60 buf <<
"[px,py,pz,e] ="
61 << std::right << std::scientific << std::setprecision(8)
62 << std::setw(16) << this->
px()
63 << std::setw(16) << this->
py()
64 << std::setw(16) << this->
pz()
65 << std::setw(16) << this->
e();
66 return out << buf.str();
◆ e()
double TruthParticleMomentum::e |
( |
| ) |
const |
|
inline |
◆ errors()
◆ et()
double TruthParticleMomentum::et |
( |
| ) |
const |
|
inline |
◆ eta()
double TruthParticleMomentum::eta |
( |
| ) |
const |
|
inline |
Definition at line 189 of file TruthParticleMomentum.h.
191 const double px=this->
px();
192 const double py=this->
py();
193 const double pz=this->
pz();
198 if (
p==0.0)
return 0.0;
199 if (
p==+
pz)
return +std::numeric_limits<double>::infinity();
200 if (
p==-
pz)
return -std::numeric_limits<double>::infinity();
◆ hlv()
CLHEP::HepLorentzVector TruthParticleMomentum::hlv |
( |
| ) |
const |
|
inline |
◆ iPt()
double TruthParticleMomentum::iPt |
( |
| ) |
const |
|
inline |
◆ kind()
◆ m()
double TruthParticleMomentum::m |
( |
| ) |
const |
|
inline |
◆ m2()
double TruthParticleMomentum::m2 |
( |
| ) |
const |
|
inline |
Definition at line 149 of file TruthParticleMomentum.h.
151 const double thePx = this->
px();
152 const double thePy = this->
py();
153 const double thePz = this->
pz();
154 const double theE = this->
e();
157 theE*theE - ( thePx*thePx +
◆ operator=()
◆ p()
double TruthParticleMomentum::p |
( |
| ) |
const |
|
inline |
◆ p2()
double TruthParticleMomentum::p2 |
( |
| ) |
const |
|
inline |
◆ phi()
double TruthParticleMomentum::phi |
( |
| ) |
const |
|
inline |
Definition at line 204 of file TruthParticleMomentum.h.
206 const double thePx = this->
px();
207 const double thePy = this->
py();
208 return thePx == 0.0 && thePy == 0.0 ? 0.0 : std::atan2(thePy,thePx);
◆ pt()
double TruthParticleMomentum::pt |
( |
| ) |
const |
|
inline |
Definition at line 226 of file TruthParticleMomentum.h.
228 const double thePx = this->
px();
229 const double thePy = this->
py();
231 return std::sqrt(thePx*thePx+thePy*thePy);
◆ px()
double TruthParticleMomentum::px |
( |
| ) |
const |
|
inline |
◆ py()
double TruthParticleMomentum::py |
( |
| ) |
const |
|
inline |
◆ pz()
double TruthParticleMomentum::pz |
( |
| ) |
const |
|
inline |
◆ rapidity()
double TruthParticleMomentum::rapidity |
( |
| ) |
const |
|
inline |
Definition at line 179 of file TruthParticleMomentum.h.
181 const double e =this->
e();
182 const double pz=this->
pz();
183 if (e==0.0)
return 0.0;
184 if (
e==+
pz)
return +std::numeric_limits<double>::infinity();
185 if (
e==-
pz)
return -std::numeric_limits<double>::infinity();
◆ set4Mom() [1/4]
void TruthParticleMomentum::set4Mom |
( |
const CLHEP::HepLorentzVector & |
theHlv | ) |
|
|
inlinevirtual |
set 4Momentum (will throw exception if cannot be implemented)
Definition at line 291 of file TruthParticleMomentum.h.
293 std::cout <<
" FATAL ERROR : TruthParticleMomentum::set4Mom called. Cannot change 4mom " << std::endl ;
◆ set4Mom() [2/4]
void TruthParticleMomentum::set4Mom |
( |
const HepMC::FourVector & |
hlv | ) |
|
|
inline |
◆ set4Mom() [3/4]
set 4Momentum (will throw exception if cannot be implemented)
Definition at line 275 of file TruthParticleMomentum.h.
277 std::cout <<
" FATAL ERROR : TruthParticleMomentum::set4Mom called. Cannot change 4mom " << std::endl ;
◆ set4Mom() [4/4]
set 4Momentum (will throw exception if cannot be implemented)
Definition at line 283 of file TruthParticleMomentum.h.
285 std::cout <<
" FATAL ERROR : TruthParticleMomentum::set4Mom called. Cannot change 4mom " << std::endl ;
◆ sinPhi()
double TruthParticleMomentum::sinPhi |
( |
| ) |
const |
|
inline |
◆ sinTh()
double TruthParticleMomentum::sinTh |
( |
| ) |
const |
|
inline |
◆ tanTh()
double TruthParticleMomentum::tanTh |
( |
| ) |
const |
|
inline |
◆ m_hlv
const HepMC::FourVector* TruthParticleMomentum::m_hlv |
|
private |
The CLHEP::LorentzVector
we are proxying (from the HepMC::GenParticle
which is also being proxied)
Definition at line 121 of file TruthParticleMomentum.h.
The documentation for this class was generated from the following files:
CLHEP::HepLorentzVector hlv() const
double px() const
{@ a la I4Momentum -like interface
const HepMC::FourVector * m_hlv
The CLHEP::LorentzVector we are proxying (from the HepMC::GenParticle which is also being proxied)