Definition at line 31 of file ThreeVector.h.
◆ ThreeVector() [1/2]
Definition at line 67 of file ThreeVector.h.
68 : px(0), py(0), pz(0)
69 {}
◆ ThreeVector() [2/2]
Definition at line 71 of file ThreeVector.h.
72 : px(px_), py(py_), pz(pz_)
73 {}
◆ getComponent()
double getComponent |
( |
int |
i | ) |
const |
|
inline |
Definition at line 94 of file ThreeVector.h.
95 {
96 switch (i) {
97 case 0: return getPx();
98 case 1: return getPy();
99 case 2: return getPz();
100 }
101 return NAN;
102 }
◆ getEta()
Definition at line 92 of file ThreeVector.h.
92{ return -std::log(std::tan(0.5 * getTheta())); }
◆ getMag()
Definition at line 88 of file ThreeVector.h.
88{ return std::sqrt(getP2()); }
◆ getP()
Definition at line 87 of file ThreeVector.h.
87{ return std::sqrt(getP2()); }
◆ getP2()
Definition at line 86 of file ThreeVector.h.
86{ return px * px + py * py + pz * pz; }
◆ getPhi()
Definition at line 90 of file ThreeVector.h.
90{ return std::atan2(py, px); }
◆ getPt()
Definition at line 83 of file ThreeVector.h.
83{ return std::sqrt(getPt2()); }
◆ getPt2()
Definition at line 82 of file ThreeVector.h.
82{ return px * px + py * py; }
◆ getPx()
◆ getPy()
◆ getPz()
◆ getR()
Definition at line 84 of file ThreeVector.h.
84{ return std::sqrt(getPt2()); }
◆ getTheta()
double getTheta |
( |
| ) |
const |
|
inline |
Definition at line 91 of file ThreeVector.h.
91{ return std::atan2(getPt(), pz); }
◆ getX()
◆ getY()
◆ getZ()
◆ operator*=()
Definition at line 129 of file ThreeVector.h.
130 {
131 px *= rhs;
132 py *= rhs;
133 pz *= rhs;
134 return *this;
135 }
◆ operator+=()
Definition at line 113 of file ThreeVector.h.
114 {
115 px += rhs.px;
116 py += rhs.py;
117 pz += rhs.pz;
118 return *this;
119 }
◆ operator-=()
Definition at line 121 of file ThreeVector.h.
122 {
123 px -= rhs.px;
124 py -= rhs.py;
125 pz -= rhs.pz;
126 return *this;
127 }
◆ setValues()
ThreeVector & setValues |
( |
double |
px_, |
|
|
double |
py_, |
|
|
double |
pz_ |
|
) |
| |
|
inline |
Definition at line 104 of file ThreeVector.h.
105 {
106 px = px_;
107 py = py_;
108 pz = pz_;
109 return *this;
110 }
◆ px
◆ py
◆ pz
The documentation for this class was generated from the following file: