Abstract base class of all reference frames.
More...
#include <ReferenceFrame.h>
|
virtual ROOT::Math::XYZVector | getVertex (const ROOT::Math::XYZVector &vector) const =0 |
| Get vertex 3-vector in reference frame.
|
|
virtual ROOT::Math::XYZVector | getVertex (const Particle *particle) const |
| Wrapper for particles.
|
|
virtual ROOT::Math::PxPyPzEVector | getMomentum (const ROOT::Math::PxPyPzEVector &vector) const =0 |
| Get momentum 4-vector in reference frame.
|
|
virtual ROOT::Math::PxPyPzEVector | getMomentum (const Particle *particle) const |
| Wrapper for particles.
|
|
virtual TMatrixFSym | getMomentumErrorMatrix (const TMatrixFSym &matrix) const =0 |
| Get Momentum error matrix in reference frame.
|
|
virtual TMatrixFSym | getMomentumErrorMatrix (const Particle *particle) const |
| Wrapper for particles.
|
|
virtual TMatrixFSym | getVertexErrorMatrix (const TMatrixFSym &matrix) const =0 |
| Get Vertex error matrix in reference frame.
|
|
virtual TMatrixFSym | getVertexErrorMatrix (const Particle *particle) const |
| Wrapper for particles.
|
|
|
static void | Push (const ReferenceFrame *frame) |
| Push rest frame of given particle.
|
|
static void | Pop () |
| Pop current rest frame.
|
|
Abstract base class of all reference frames.
Definition at line 29 of file ReferenceFrame.h.
◆ GetCurrent()
Get current rest frame.
- Returns
- RestFrame
Definition at line 26 of file ReferenceFrame.cc.
27{
29 static LabFrame _default;
30 return _default;
31 } else {
33 }
34}
static std::stack< const ReferenceFrame * > m_reference_frames
Stack of current rest frames.
◆ getMomentum() [1/2]
virtual ROOT::Math::PxPyPzEVector getMomentum |
( |
const Particle * | particle | ) |
const |
|
inlinevirtual |
Wrapper for particles.
- Parameters
-
- Returns
- momentum 4-vector in reference frame
Definition at line 60 of file ReferenceFrame.h.
61 {
62 return getMomentum(particle->get4Vector());
63 }
◆ getMomentum() [2/2]
virtual ROOT::Math::PxPyPzEVector getMomentum |
( |
const ROOT::Math::PxPyPzEVector & | vector | ) |
const |
|
pure virtual |
◆ getMomentumErrorMatrix() [1/2]
virtual TMatrixFSym getMomentumErrorMatrix |
( |
const Particle * | particle | ) |
const |
|
inlinevirtual |
Wrapper for particles.
- Parameters
-
- Returns
- Covariance matrix in reference frame
Definition at line 77 of file ReferenceFrame.h.
78 {
79 return getMomentumErrorMatrix(particle->getMomentumErrorMatrix());
80 }
◆ getMomentumErrorMatrix() [2/2]
virtual TMatrixFSym getMomentumErrorMatrix |
( |
const TMatrixFSym & | matrix | ) |
const |
|
pure virtual |
◆ getVertex() [1/2]
virtual ROOT::Math::XYZVector getVertex |
( |
const Particle * | particle | ) |
const |
|
inlinevirtual |
Wrapper for particles.
- Parameters
-
- Returns
- 3-vector in reference frame
Definition at line 43 of file ReferenceFrame.h.
44 {
45 return getVertex(particle->getVertex());
46 }
◆ getVertex() [2/2]
virtual ROOT::Math::XYZVector getVertex |
( |
const ROOT::Math::XYZVector & | vector | ) |
const |
|
pure virtual |
◆ getVertexErrorMatrix() [1/2]
virtual TMatrixFSym getVertexErrorMatrix |
( |
const Particle * | particle | ) |
const |
|
inlinevirtual |
Wrapper for particles.
- Parameters
-
- Returns
- Covariance matrix in reference frame
Definition at line 94 of file ReferenceFrame.h.
95 {
96 return getVertexErrorMatrix(particle->getVertexErrorMatrix());
97 }
◆ getVertexErrorMatrix() [2/2]
virtual TMatrixFSym getVertexErrorMatrix |
( |
const TMatrixFSym & | matrix | ) |
const |
|
pure virtual |
◆ Pop()
Pop current rest frame.
Definition at line 118 of file ReferenceFrame.h.
119 {
120 m_reference_frames.pop();
121 }
◆ Push()
Push rest frame of given particle.
- Parameters
-
frame | Use this reference frame |
Definition at line 110 of file ReferenceFrame.h.
111 {
112 m_reference_frames.push(frame);
113 }
◆ UseReferenceFrame
◆ m_reference_frames
The documentation for this class was generated from the following files: