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 164 of file ReferenceFrame.cc.
165 :
166 m_rotation(newX.Unit(), newY.Unit(), newZ.Unit())
167{
169}
ROOT::Math::Rotation3D m_rotation
Rotation.
◆ GetCurrent()
Get current rest frame.
- Returns
- RestFrame
Definition at line 26 of file ReferenceFrame.cc.
27{
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 {
63 }
virtual ROOT::Math::PxPyPzEVector getMomentum(const ROOT::Math::PxPyPzEVector &vector) const =0
Get momentum 4-vector in reference frame.
◆ 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 176 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 {
80 }
virtual TMatrixFSym getMomentumErrorMatrix(const TMatrixFSym &matrix) const =0
Get Momentum error matrix in reference frame.
◆ 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 181 of file ReferenceFrame.cc.
182{
183 TMatrixD extendedrot(4, 4);
184 extendedrot.Zero();
186 extendedrot(3, 3) = 1;
187
188 TMatrixFSym tmp_matrix(matrix);
189 return tmp_matrix.Similarity(extendedrot);
190}
◆ 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 {
46 }
virtual ROOT::Math::XYZVector getVertex(const ROOT::Math::XYZVector &vector) const =0
Get vertex 3-vector in reference frame.
◆ 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 171 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 {
97 }
virtual TMatrixFSym getVertexErrorMatrix(const TMatrixFSym &matrix) const =0
Get Vertex error matrix in reference frame.
◆ 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 192 of file ReferenceFrame.cc.
193{
194 TMatrixD rotmatrix(3, 3);
196
197 TMatrixFSym tmp_matrix(matrix);
198 return tmp_matrix.Similarity(rotmatrix);
199}
◆ Pop()
|
inlinestaticprivateinherited |
◆ Push()
|
inlinestaticprivateinherited |
Push rest frame of given particle.
- Parameters
-
frame | Use this reference frame |
Definition at line 110 of file ReferenceFrame.h.
◆ m_reference_frames
◆ m_rotation
ROOT::Math::Rotation3D m_rotation |
|
private |
The documentation for this class was generated from the following files: