#include <P4ImplPxPyPzE.h>
Definition at line 31 of file P4ImplPxPyPzE.h.
◆ ErrorType
◆ P4ImplPxPyPzE() [1/6]
| P4ImplPxPyPzE::P4ImplPxPyPzE |
( |
| ) |
|
|
inline |
Default constructor:
Definition at line 139 of file P4ImplPxPyPzE.h.
139 :
140 P4BasePxPyPzE( ),
141 m_px ( 0.*CLHEP::GeV ),
142 m_py ( 0.*CLHEP::GeV ),
143 m_pz ( 0.*CLHEP::GeV ),
144 m_e ( 0.*CLHEP::GeV ),
146{}
std::unique_ptr< ErrorType > m_error
◆ P4ImplPxPyPzE() [2/6]
Copy constructor:
Definition at line 148 of file P4ImplPxPyPzE.h.
148 :
149 P4BasePxPyPzE( ),
155{}
◆ P4ImplPxPyPzE() [3/6]
| P4ImplPxPyPzE::P4ImplPxPyPzE |
( |
const double | px, |
|
|
const double | py, |
|
|
const double | pz, |
|
|
const double | e ) |
|
inline |
constructor with all data members
Definition at line 157 of file P4ImplPxPyPzE.h.
160 :
161 P4BasePxPyPzE( ),
167{}
double e() const
get energy data member
double py() const
get py data member
double px() const
{@ a la I4Momentum -like interface
double pz() const
get pz data member
◆ P4ImplPxPyPzE() [4/6]
| P4ImplPxPyPzE::P4ImplPxPyPzE |
( |
const CLHEP::HepLorentzVector & | hlv | ) |
|
|
inline |
constructor from hlv to allow conversion from hlv
Definition at line 169 of file P4ImplPxPyPzE.h.
169 :
170 P4BasePxPyPzE( ),
176{}
CLHEP::HepLorentzVector hlv() const
◆ P4ImplPxPyPzE() [5/6]
| P4ImplPxPyPzE::P4ImplPxPyPzE |
( |
const I4Momentum & | theI4M | ) |
|
|
inlineexplicit |
◆ P4ImplPxPyPzE() [6/6]
| P4ImplPxPyPzE::P4ImplPxPyPzE |
( |
const I4Momentum *const | theI4M | ) |
|
|
inlineexplicit |
◆ ~P4ImplPxPyPzE()
| P4ImplPxPyPzE::~P4ImplPxPyPzE |
( |
| ) |
|
|
inlinevirtual |
◆ cosPhi()
| double P4BasePxPyPzE::cosPhi |
( |
| ) |
const |
|
inlineinherited |
Definition at line 138 of file P4BasePxPyPzE.h.
139{
140 if ( this->
px() == 0 && this->
py() ==0 )
141 return 0;
142 return this->
px()/this->
pt();
143}
virtual double px() const =0
{@ a la I4Momentum -like interface
virtual double py() const =0
◆ cosTh()
| double P4BasePxPyPzE::cosTh |
( |
| ) |
const |
|
inlineinherited |
Definition at line 195 of file P4BasePxPyPzE.h.
196{
197 if ( this->
p() == 0 )
return 0;
198 return this->
pz()/this->
p();
199}
virtual double pz() const =0
◆ cotTh()
| double P4BasePxPyPzE::cotTh |
( |
| ) |
const |
|
inlineinherited |
Definition at line 213 of file P4BasePxPyPzE.h.
214{
215 if ( this->
pt() == 0 )
return 0;
216 return this->
pz()/this->
pt();
217}
◆ dump()
| std::ostream & P4BasePxPyPzE::dump |
( |
std::ostream & | out | ) |
const |
|
inlineinherited |
Print I4Momentum content.
Definition at line 224 of file P4BasePxPyPzE.h.
225{
227 s <<
"[px,py,pz,e] ="
228 << std::right << std::scientific << std::setprecision(8)
229 << std::setw(16) << this->
px()
230 << std::setw(16) << this->
py()
231 << std::setw(16) << this->
pz()
232 << std::setw(16) << this->
e();
233
236}
virtual double e() const =0
◆ e()
| double P4ImplPxPyPzE::e |
( |
| ) |
const |
|
inlinevirtual |
◆ errors()
◆ et()
| double P4BasePxPyPzE::et |
( |
| ) |
const |
|
inlineinherited |
Definition at line 162 of file P4BasePxPyPzE.h.
163{
164 if ( this->
e() == 0 )
165 return 0;
166 return this->
e()*this->
sinTh();
167}
◆ eta()
| double P4BasePxPyPzE::eta |
( |
void | | ) |
const |
|
inlineinherited |
Definition at line 123 of file P4BasePxPyPzE.h.
124{
125 const double px=this->
px();
126 const double py=this->
py();
127 const double pz=this->
pz();
128
129
130
132 if (
p==0.0)
return 0.0;
133 if (
p==+
pz)
return +std::numeric_limits<double>::infinity();
134 if (
p==-
pz)
return -std::numeric_limits<double>::infinity();
136}
◆ hlv()
| CLHEP::HepLorentzVector P4BasePxPyPzE::hlv |
( |
| ) |
const |
|
inlineinherited |
Definition at line 219 of file P4BasePxPyPzE.h.
220{
221 return CLHEP::HepLorentzVector(this->
px(),this->
py(),this->
pz(),this->
e());
222}
◆ iPt()
| double P4BasePxPyPzE::iPt |
( |
| ) |
const |
|
inlineinherited |
Definition at line 177 of file P4BasePxPyPzE.h.
178{
179 const double pt = this->
pt();
181 return std::numeric_limits<double>::infinity();
183}
◆ kind()
◆ m()
| double P4BasePxPyPzE::m |
( |
void | | ) |
const |
|
inlineinherited |
Definition at line 92 of file P4BasePxPyPzE.h.
93{
94 const double m2 = this->
m2();
95 return m2 < 0. ? -std::sqrt(-
m2) : std::sqrt(
m2);
96}
◆ m2()
| double P4BasePxPyPzE::m2 |
( |
| ) |
const |
|
inlineinherited |
Definition at line 98 of file P4BasePxPyPzE.h.
99{
100 const double px = this->
px();
101 const double py = this->
py();
102 const double pz = this->
pz();
103 const double e = this->
e();
104
107}
◆ operator=()
Assignment operator:
Definition at line 14 of file P4ImplPxPyPzE.cxx.
15{
16 if ( this != &rhs ) {
21 }
22 return *this;
23}
◆ p()
| double P4BasePxPyPzE::p |
( |
| ) |
const |
|
inlineinherited |
◆ p2()
| double P4BasePxPyPzE::p2 |
( |
| ) |
const |
|
inlineinherited |
Definition at line 114 of file P4BasePxPyPzE.h.
115{
116 const double px = this->
px();
117 const double py = this->
py();
118 const double pz = this->
pz();
119
121}
◆ phi()
| double P4BasePxPyPzE::phi |
( |
void | | ) |
const |
|
inlineinherited |
Definition at line 152 of file P4BasePxPyPzE.h.
153{
154 const double px=this->
px();
155 const double py=this->
py();
156
157
158 return std::atan2(
py,
px);
159}
◆ pt()
| double P4BasePxPyPzE::pt |
( |
void | | ) |
const |
|
inlineinherited |
◆ px()
| double P4ImplPxPyPzE::px |
( |
| ) |
const |
|
inlinevirtual |
◆ py()
| double P4ImplPxPyPzE::py |
( |
| ) |
const |
|
inlinevirtual |
◆ pz()
| double P4ImplPxPyPzE::pz |
( |
| ) |
const |
|
inlinevirtual |
◆ rapidity()
| double P4BasePxPyPzE::rapidity |
( |
| ) |
const |
|
inlineinherited |
Definition at line 185 of file P4BasePxPyPzE.h.
186{
187 const double e =this->
e();
188 const double pz=this->
pz();
189 if (
e==0.0)
return 0.0;
190 if (
e==+
pz)
return +std::numeric_limits<double>::infinity();
191 if (
e==-
pz)
return -std::numeric_limits<double>::infinity();
192 return 0.5*std::log((
e+
pz)/(
e-
pz));
193}
◆ set4Mom() [1/3]
| void P4ImplPxPyPzE::set4Mom |
( |
const CLHEP::HepLorentzVector & | theHlv | ) |
|
|
inline |
set all 4-mom from CLHEP::HepLorentzVector
Definition at line 259 of file P4ImplPxPyPzE.h.
◆ set4Mom() [2/3]
| void P4ImplPxPyPzE::set4Mom |
( |
const I4Momentum & | theI4Mom | ) |
|
|
inline |
◆ set4Mom() [3/3]
| void P4ImplPxPyPzE::set4Mom |
( |
const I4Momentum *const | theI4Mom | ) |
|
|
inline |
set all 4-mom from another I4Momentum pointer
Definition at line 253 of file P4ImplPxPyPzE.h.
254{
256}
void set4Mom(const I4Momentum &theI4Mom)
set all 4-mom from another I4Momentum reference
◆ setE()
| void P4ImplPxPyPzE::setE |
( |
const double | theE | ) |
|
|
inline |
◆ setErrors()
set the errors
Definition at line 267 of file P4ImplPxPyPzE.h.
268{
269 m_error = std::make_unique< ErrorType>( err, *
this);
270}
◆ setPx()
| void P4ImplPxPyPzE::setPx |
( |
const double | thePx | ) |
|
|
inline |
◆ setPy()
| void P4ImplPxPyPzE::setPy |
( |
const double | thePy | ) |
|
|
inline |
◆ setPz()
| void P4ImplPxPyPzE::setPz |
( |
const double | thePz | ) |
|
|
inline |
◆ sinPhi()
| double P4BasePxPyPzE::sinPhi |
( |
| ) |
const |
|
inlineinherited |
Definition at line 145 of file P4BasePxPyPzE.h.
146{
147 if ( this->
px() == 0 && this->
py() ==0 )
148 return 0;
149 return this->
py()/this->
pt();
150}
◆ sinTh()
| double P4BasePxPyPzE::sinTh |
( |
| ) |
const |
|
inlineinherited |
Definition at line 201 of file P4BasePxPyPzE.h.
202{
203 if ( this->
p() == 0 )
return 0;
204 return this->
pt()/this->
p();
205}
◆ tanTh()
| double P4BasePxPyPzE::tanTh |
( |
| ) |
const |
|
inlineinherited |
Definition at line 207 of file P4BasePxPyPzE.h.
208{
209 if ( this->
pz() == 0 )
return 0;
210 return this->
pt()/this->
pz();
211}
◆ P4ImplPxPyPzECnv_p1
◆ m_e
| double P4ImplPxPyPzE::m_e |
|
private |
◆ m_error
| std::unique_ptr< ErrorType> P4ImplPxPyPzE::m_error |
|
private |
◆ m_px
| double P4ImplPxPyPzE::m_px |
|
private |
◆ m_py
| double P4ImplPxPyPzE::m_py |
|
private |
◆ m_pz
| double P4ImplPxPyPzE::m_pz |
|
private |
The documentation for this class was generated from the following files: