#include <P4BaseIPtCotThPhiM.h>
P4BaseIPtCotThPhiM is a base class for classes with 4-momentum behavior, for which 1/Pt, cottan(tehta), phi and M are natural parameters, which is typically the case of some (not all!) tracking classes. Any class deriving from it should implement iPt(), cotTh(), phi(), m()
- Author
- David Rousseau rouss.nosp@m.eau@.nosp@m.lal.i.nosp@m.n2p3.nosp@m..fr
-
Sebastien Binet binet.nosp@m.@cer.nosp@m.n.ch
Definition at line 32 of file P4BaseIPtCotThPhiM.h.
◆ ~P4BaseIPtCotThPhiM()
P4BaseIPtCotThPhiM::~P4BaseIPtCotThPhiM |
( |
| ) |
|
|
inlinevirtual |
◆ cosPhi()
double P4BaseIPtCotThPhiM::cosPhi |
( |
| ) |
const |
|
inline |
◆ cosTh()
double P4BaseIPtCotThPhiM::cosTh |
( |
| ) |
const |
|
inline |
Definition at line 190 of file P4BaseIPtCotThPhiM.h.
192 const double theCotTh = this->
cotTh();
193 const double theCotTh2 = theCotTh*theCotTh;
194 const double theCosTh = std::sqrt(theCotTh2/(1.+theCotTh2));
195 if ( theCotTh >= 0. ) {
◆ cotTh()
virtual double P4BaseIPtCotThPhiM::cotTh |
( |
| ) |
const |
|
pure virtual |
◆ dump()
std::ostream & P4BaseIPtCotThPhiM::dump |
( |
std::ostream & |
out | ) |
const |
|
inline |
Print I4Momentum
content.
Definition at line 243 of file P4BaseIPtCotThPhiM.h.
246 s <<
"[ipt,cotTh,phi,m] ="
247 << std::right << std::scientific << std::setprecision(8)
248 << std::setw(16) << this->
iPt()
249 << std::setw(16) << this->
cotTh()
250 << std::setw(16) << this->
phi()
251 << std::setw(16) << this->
m();
◆ e()
double P4BaseIPtCotThPhiM::e |
( |
| ) |
const |
|
inline |
Definition at line 154 of file P4BaseIPtCotThPhiM.h.
156 const double theM = this->
m();
157 const double theP = this->
p();
161 return std::sqrt( theP*theP + theM*theM );
◆ et()
double P4BaseIPtCotThPhiM::et |
( |
| ) |
const |
|
inline |
Definition at line 167 of file P4BaseIPtCotThPhiM.h.
169 const double theE = this->
e();
170 const double theCotTh = this->
cotTh();
171 return theE / std::sqrt( 1 + theCotTh*theCotTh );
◆ eta()
double P4BaseIPtCotThPhiM::eta |
( |
| ) |
const |
|
inline |
Definition at line 135 of file P4BaseIPtCotThPhiM.h.
137 const double theCotTh = this->
cotTh();
138 const double aux = std::sqrt(1+theCotTh*theCotTh);
139 return -0.5 *
std::log( (aux-theCotTh) / (aux+theCotTh) );
◆ hlv()
CLHEP::HepLorentzVector P4BaseIPtCotThPhiM::hlv |
( |
| ) |
const |
|
inline |
Definition at line 226 of file P4BaseIPtCotThPhiM.h.
229 const double thePt = this->
pt();
230 const double theM = this->
m();
231 const double thePx = thePt*this->
cosPhi();
232 const double thePy = thePt*this->
sinPhi();
233 const double thePz = thePt * this->
cotTh();
234 const double theE = std::sqrt( thePt * thePt
238 return CLHEP::HepLorentzVector( thePx, thePy, thePz, theE );
◆ iPt()
virtual double P4BaseIPtCotThPhiM::iPt |
( |
| ) |
const |
|
pure virtual |
◆ m()
virtual double P4BaseIPtCotThPhiM::m |
( |
| ) |
const |
|
pure virtual |
◆ m2()
double P4BaseIPtCotThPhiM::m2 |
( |
| ) |
const |
|
inline |
◆ p()
double P4BaseIPtCotThPhiM::p |
( |
| ) |
const |
|
inline |
Definition at line 118 of file P4BaseIPtCotThPhiM.h.
120 const double theCotTh = this->
cotTh();
121 return std::sqrt( 1 + theCotTh*theCotTh ) / this->
iPt() ;
◆ p2()
double P4BaseIPtCotThPhiM::p2 |
( |
| ) |
const |
|
inline |
◆ phi()
virtual double P4BaseIPtCotThPhiM::phi |
( |
| ) |
const |
|
pure virtual |
◆ pt()
double P4BaseIPtCotThPhiM::pt |
( |
| ) |
const |
|
inline |
◆ px()
double P4BaseIPtCotThPhiM::px |
( |
| ) |
const |
|
inline |
◆ py()
double P4BaseIPtCotThPhiM::py |
( |
| ) |
const |
|
inline |
◆ pz()
double P4BaseIPtCotThPhiM::pz |
( |
| ) |
const |
|
inline |
◆ rapidity()
double P4BaseIPtCotThPhiM::rapidity |
( |
| ) |
const |
|
inline |
Definition at line 144 of file P4BaseIPtCotThPhiM.h.
146 const double theE=this->
e();
147 const double thePz=this->
pz();
148 return 0.5*
std::log((theE+thePz)/(theE-thePz));
◆ sinPhi()
double P4BaseIPtCotThPhiM::sinPhi |
( |
| ) |
const |
|
inline |
◆ sinTh()
double P4BaseIPtCotThPhiM::sinTh |
( |
| ) |
const |
|
inline |
Definition at line 204 of file P4BaseIPtCotThPhiM.h.
206 const double theCotTh = this->
cotTh();
207 return 1. / std::sqrt( 1 + theCotTh*theCotTh );
◆ tanTh()
double P4BaseIPtCotThPhiM::tanTh |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: