#include <P4ImplIPtCotThPhiM.h>
P4ImplIPtCotThPhiM 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 40 of file P4ImplIPtCotThPhiM.h.
◆ ErrorType
◆ P4ImplIPtCotThPhiM() [1/6]
P4ImplIPtCotThPhiM::P4ImplIPtCotThPhiM |
( |
| ) |
|
|
inline |
◆ P4ImplIPtCotThPhiM() [2/6]
◆ P4ImplIPtCotThPhiM() [3/6]
P4ImplIPtCotThPhiM::P4ImplIPtCotThPhiM |
( |
const double |
iPt, |
|
|
const double |
cotTh, |
|
|
const double |
phi, |
|
|
const double |
m |
|
) |
| |
|
inline |
◆ P4ImplIPtCotThPhiM() [4/6]
P4ImplIPtCotThPhiM::P4ImplIPtCotThPhiM |
( |
const CLHEP::HepLorentzVector & |
hlv | ) |
|
|
inlineexplicit |
◆ P4ImplIPtCotThPhiM() [5/6]
◆ P4ImplIPtCotThPhiM() [6/6]
◆ ~P4ImplIPtCotThPhiM()
P4ImplIPtCotThPhiM::~P4ImplIPtCotThPhiM |
( |
| ) |
|
|
inlinevirtual |
◆ cosPhi()
double P4BaseIPtCotThPhiM::cosPhi |
( |
| ) |
const |
|
inlineinherited |
◆ cosTh()
double P4BaseIPtCotThPhiM::cosTh |
( |
| ) |
const |
|
inlineinherited |
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()
double P4ImplIPtCotThPhiM::cotTh |
( |
| ) |
const |
|
inlinevirtual |
◆ dump()
std::ostream & P4BaseIPtCotThPhiM::dump |
( |
std::ostream & |
out | ) |
const |
|
inlineinherited |
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 |
|
inlineinherited |
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 );
◆ errors()
◆ et()
double P4BaseIPtCotThPhiM::et |
( |
| ) |
const |
|
inlineinherited |
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 |
|
inlineinherited |
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 |
|
inlineinherited |
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()
double P4ImplIPtCotThPhiM::iPt |
( |
| ) |
const |
|
inlinevirtual |
◆ kind()
◆ m()
double P4ImplIPtCotThPhiM::m |
( |
| ) |
const |
|
inlinevirtual |
◆ m2()
double P4BaseIPtCotThPhiM::m2 |
( |
| ) |
const |
|
inlineinherited |
◆ operator=()
◆ p()
double P4BaseIPtCotThPhiM::p |
( |
| ) |
const |
|
inlineinherited |
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 |
|
inlineinherited |
◆ phi()
double P4ImplIPtCotThPhiM::phi |
( |
| ) |
const |
|
inlinevirtual |
◆ pt()
double P4BaseIPtCotThPhiM::pt |
( |
| ) |
const |
|
inlineinherited |
◆ px()
double P4BaseIPtCotThPhiM::px |
( |
| ) |
const |
|
inlineinherited |
◆ py()
double P4BaseIPtCotThPhiM::py |
( |
| ) |
const |
|
inlineinherited |
◆ pz()
double P4BaseIPtCotThPhiM::pz |
( |
| ) |
const |
|
inlineinherited |
◆ rapidity()
double P4BaseIPtCotThPhiM::rapidity |
( |
| ) |
const |
|
inlineinherited |
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));
◆ set4Mom() [1/3]
void P4ImplIPtCotThPhiM::set4Mom |
( |
const CLHEP::HepLorentzVector & |
theHlv | ) |
|
|
inlinevirtual |
◆ set4Mom() [2/3]
◆ set4Mom() [3/3]
◆ setCotTh()
void P4ImplIPtCotThPhiM::setCotTh |
( |
const double |
theCotTh | ) |
|
|
inlinevirtual |
◆ setErrors()
◆ setIPt()
void P4ImplIPtCotThPhiM::setIPt |
( |
const double |
theIPt | ) |
|
|
inlinevirtual |
◆ setM()
void P4ImplIPtCotThPhiM::setM |
( |
const double |
theM | ) |
|
|
inlinevirtual |
◆ setPhi()
void P4ImplIPtCotThPhiM::setPhi |
( |
const double |
thePhi | ) |
|
|
inlinevirtual |
◆ sinPhi()
double P4BaseIPtCotThPhiM::sinPhi |
( |
| ) |
const |
|
inlineinherited |
◆ sinTh()
double P4BaseIPtCotThPhiM::sinTh |
( |
| ) |
const |
|
inlineinherited |
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 |
|
inlineinherited |
◆ P4ImplIPtCotThPhiMCnv_p1
◆ m_cotTh
double P4ImplIPtCotThPhiM::m_cotTh |
|
private |
◆ m_error
std::unique_ptr< ErrorType> P4ImplIPtCotThPhiM::m_error |
|
private |
◆ m_iPt
double P4ImplIPtCotThPhiM::m_iPt |
|
private |
◆ m_m
double P4ImplIPtCotThPhiM::m_m |
|
private |
◆ m_phi
double P4ImplIPtCotThPhiM::m_phi |
|
private |
The documentation for this class was generated from the following files: