Rotation frame around vector.
More...
#include <ReferenceFrame.h>
|
| RotationFrame (const ROOT::Math::XYZVector &newX, const ROOT::Math::XYZVector &newY, const ROOT::Math::XYZVector &newZ) |
| Create new rotation frame.
|
|
virtual ROOT::Math::XYZVector | getVertex (const ROOT::Math::XYZVector &vector) const override |
| Get vertex 3-vector in rotation frame.
|
|
virtual ROOT::Math::PxPyPzEVector | getMomentum (const ROOT::Math::PxPyPzEVector &vector) const override |
| Get Lorentz vector in rotation frame.
|
|
virtual TMatrixFSym | getMomentumErrorMatrix (const TMatrixFSym &matrix) const override |
| Get Momentum error matrix in rotation frame.
|
|
virtual TMatrixFSym | getVertexErrorMatrix (const TMatrixFSym &matrix) const override |
| Get Vertex error matrix in rotation frame.
|
|
virtual ROOT::Math::XYZVector | getVertex (const Particle *particle) const |
| Wrapper for particles.
|
|
virtual ROOT::Math::PxPyPzEVector | getMomentum (const Particle *particle) const |
| Wrapper for particles.
|
|
virtual TMatrixFSym | getMomentumErrorMatrix (const Particle *particle) const |
| Wrapper for particles.
|
|
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.
|
|
Rotation frame around vector.
Definition at line 253 of file ReferenceFrame.h.
◆ RotationFrame()
RotationFrame |
( |
const ROOT::Math::XYZVector & | newX, |
|
|
const ROOT::Math::XYZVector & | newY, |
|
|
const ROOT::Math::XYZVector & | newZ ) |
|
explicit |
Create new rotation frame.
Definition at line 163 of file ReferenceFrame.cc.
164 :
165 m_rotation(newX.Unit(), newY.Unit(), newZ.Unit())
166{
168}
ROOT::Math::Rotation3D m_rotation
Rotation.
◆ 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 |
|
inlinevirtualinherited |
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]
ROOT::Math::PxPyPzEVector getMomentum |
( |
const ROOT::Math::PxPyPzEVector & | vector | ) |
const |
|
overridevirtual |
Get Lorentz vector in rotation frame.
- Parameters
-
vector | Lorentz vector from particle |
- Returns
- Lorentz vector in rotation frame
Implements ReferenceFrame.
Definition at line 175 of file ReferenceFrame.cc.
◆ getMomentumErrorMatrix() [1/2]
virtual TMatrixFSym getMomentumErrorMatrix |
( |
const Particle * | particle | ) |
const |
|
inlinevirtualinherited |
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]
TMatrixFSym getMomentumErrorMatrix |
( |
const TMatrixFSym & | matrix | ) |
const |
|
overridevirtual |
Get Momentum error matrix in rotation frame.
- Parameters
-
matrix | Covariance matrix from particle |
- Returns
- Covariance matrix in rotation frame
Implements ReferenceFrame.
Definition at line 180 of file ReferenceFrame.cc.
181{
182 TMatrixD extendedrot(4, 4);
183 extendedrot.Zero();
185 extendedrot(3, 3) = 1;
186
187 TMatrixFSym tmp_matrix(matrix);
188 return tmp_matrix.Similarity(extendedrot);
189}
◆ getVertex() [1/2]
virtual ROOT::Math::XYZVector getVertex |
( |
const Particle * | particle | ) |
const |
|
inlinevirtualinherited |
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]
ROOT::Math::XYZVector getVertex |
( |
const ROOT::Math::XYZVector & | vector | ) |
const |
|
overridevirtual |
Get vertex 3-vector in rotation frame.
- Parameters
-
vector | 3-vector from particle |
- Returns
- 3-vector in rotation frame
Implements ReferenceFrame.
Definition at line 170 of file ReferenceFrame.cc.
◆ getVertexErrorMatrix() [1/2]
virtual TMatrixFSym getVertexErrorMatrix |
( |
const Particle * | particle | ) |
const |
|
inlinevirtualinherited |
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]
TMatrixFSym getVertexErrorMatrix |
( |
const TMatrixFSym & | matrix | ) |
const |
|
overridevirtual |
Get Vertex error matrix in rotation frame.
- Parameters
-
matrix | Covariance matrix from particle |
- Returns
- Covariance matrix in rotation frame
Implements ReferenceFrame.
Definition at line 191 of file ReferenceFrame.cc.
192{
193 TMatrixD rotmatrix(3, 3);
195
196 TMatrixFSym tmp_matrix(matrix);
197 return tmp_matrix.Similarity(rotmatrix);
198}
◆ Pop()
|
inlinestaticprivateinherited |
Pop current rest frame.
Definition at line 118 of file ReferenceFrame.h.
119 {
120 m_reference_frames.pop();
121 }
◆ Push()
|
inlinestaticprivateinherited |
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 }
◆ m_reference_frames
◆ m_rotation
ROOT::Math::Rotation3D m_rotation |
|
private |
The documentation for this class was generated from the following files: