|
HepMC Reference DocumentationHepMC |
#include <SimpleVector.h>
Public Member Functions | |
| FourVector (double xin, double yin, double zin, double tin=0) | |
| constructor requiring at least x, y, and z | |
| FourVector (double t) | |
| constructor requiring only t | |
| FourVector () | |
| template<class T> | |
| FourVector (const T &v, typename detail::disable_if< detail::is_arithmetic< T >::value, void >::type *=0) | |
| FourVector (const FourVector &v) | |
| copy constructor | |
| void | swap (FourVector &other) |
| swap | |
| double | px () const |
| return px | |
| double | py () const |
| return py | |
| double | pz () const |
| return pz | |
| double | e () const |
| return E | |
| double | x () const |
| return x | |
| double | y () const |
| return y | |
| double | z () const |
| return z | |
| double | t () const |
| return t | |
| double | m2 () const |
| Invariant mass squared. | |
| double | m () const |
| Invariant mass. If m2() is negative then -sqrt(-m2()) is returned. | |
| double | perp2 () const |
| Transverse component of the spatial vector squared. | |
| double | perp () const |
| Transverse component of the spatial vector (R in cylindrical system). | |
| double | mag () const |
| Magnitude of the spatial vector. | |
| double | theta () const |
| The polar angle. | |
| double | phi () const |
| The azimuth angle. | |
| double | rho () const |
| spatial vector component magnitude | |
| FourVector & | operator= (const FourVector &) |
| make a copy | |
| bool | operator== (const FourVector &) const |
| equality | |
| bool | operator!= (const FourVector &) const |
| inequality | |
| double | pseudoRapidity () const |
| Returns the pseudo-rapidity, i.e. -ln(tan(theta/2)). | |
| double | eta () const |
| Pseudorapidity (of the space part). | |
| void | set (double x, double y, double z, double t) |
| set x, y, z, and t | |
| void | setX (double x) |
| set x | |
| void | setY (double y) |
| set y | |
| void | setZ (double z) |
| set z | |
| void | setT (double t) |
| set t | |
| void | setPx (double x) |
| set px | |
| void | setPy (double y) |
| set py | |
| void | setPz (double z) |
| set pz | |
| void | setE (double t) |
| set E | |
For compatibility with existing code, the basic expected geometrical access methods are povided. Also, there is a templated constructor that will take another vector (HepLorentzVector, GenVector, ...) which must have the following methods: x(), y(), z(), t().
Definition at line 42 of file SimpleVector.h.
| HepMC::FourVector::FourVector | ( | double | xin, | |
| double | yin, | |||
| double | zin, | |||
| double | tin = 0 | |||
| ) | [inline] |
| HepMC::FourVector::FourVector | ( | double | t | ) | [inline] |
| HepMC::FourVector::FourVector | ( | ) | [inline] |
Definition at line 54 of file SimpleVector.h.
| HepMC::FourVector::FourVector | ( | const T & | v, | |
| typename detail::disable_if< detail::is_arithmetic< T >::value, void >::type * | = 0 | |||
| ) | [inline] |
templated constructor this is used ONLY if T is not arithmetic
Definition at line 60 of file SimpleVector.h.
| HepMC::FourVector::FourVector | ( | const FourVector & | v | ) | [inline] |
| void HepMC::FourVector::swap | ( | FourVector & | other | ) |
| double HepMC::FourVector::px | ( | ) | const [inline] |
return px
Definition at line 70 of file SimpleVector.h.
Referenced by main(), HepMC::operator<<(), HepMC::GenParticle::print(), and HepMC::IO_HEPEVT::write_event().
| double HepMC::FourVector::py | ( | ) | const [inline] |
return py
Definition at line 71 of file SimpleVector.h.
Referenced by main(), HepMC::operator<<(), HepMC::GenParticle::print(), and HepMC::IO_HEPEVT::write_event().
| double HepMC::FourVector::pz | ( | ) | const [inline] |
return pz
Definition at line 72 of file SimpleVector.h.
Referenced by main(), HepMC::operator<<(), HepMC::GenParticle::print(), and HepMC::IO_HEPEVT::write_event().
| double HepMC::FourVector::e | ( | ) | const [inline] |
return E
Definition at line 73 of file SimpleVector.h.
Referenced by main(), HepMC::operator<<(), HepMC::GenParticle::print(), and HepMC::IO_HEPEVT::write_event().
| double HepMC::FourVector::x | ( | ) | const [inline] |
return x
Definition at line 75 of file SimpleVector.h.
Referenced by main(), HepMC::operator<<(), HepMC::GenVertex::point3d(), and HepMC::GenVertex::print().
| double HepMC::FourVector::y | ( | ) | const [inline] |
return y
Definition at line 76 of file SimpleVector.h.
Referenced by main(), HepMC::GenVertex::point3d(), and HepMC::GenVertex::print().
| double HepMC::FourVector::z | ( | ) | const [inline] |
return z
Definition at line 77 of file SimpleVector.h.
Referenced by main(), HepMC::GenVertex::point3d(), and HepMC::GenVertex::print().
| double HepMC::FourVector::t | ( | ) | const [inline] |
return t
Definition at line 78 of file SimpleVector.h.
Referenced by main(), and HepMC::GenVertex::print().
| double HepMC::FourVector::m2 | ( | ) | const |
| double HepMC::FourVector::m | ( | ) | const |
| double HepMC::FourVector::perp2 | ( | ) | const |
| double HepMC::FourVector::perp | ( | ) | const |
| double HepMC::FourVector::mag | ( | ) | const |
| double HepMC::FourVector::theta | ( | ) | const |
| double HepMC::FourVector::phi | ( | ) | const |
| double HepMC::FourVector::rho | ( | ) | const |
| FourVector& HepMC::FourVector::operator= | ( | const FourVector & | ) |
make a copy
| bool HepMC::FourVector::operator== | ( | const FourVector & | ) | const |
equality
| bool HepMC::FourVector::operator!= | ( | const FourVector & | ) | const |
inequality
| double HepMC::FourVector::pseudoRapidity | ( | ) | const |
| double HepMC::FourVector::eta | ( | ) | const |
| void HepMC::FourVector::set | ( | double | x, | |
| double | y, | |||
| double | z, | |||
| double | t | |||
| ) |
| void HepMC::FourVector::setX | ( | double | x | ) | [inline] |
| void HepMC::FourVector::setY | ( | double | y | ) | [inline] |
| void HepMC::FourVector::setZ | ( | double | z | ) | [inline] |
| void HepMC::FourVector::setT | ( | double | t | ) | [inline] |
| void HepMC::FourVector::setPx | ( | double | x | ) | [inline] |
| void HepMC::FourVector::setPy | ( | double | y | ) | [inline] |
| void HepMC::FourVector::setPz | ( | double | z | ) | [inline] |
| void HepMC::FourVector::setE | ( | double | t | ) | [inline] |
1.5.1-3