Belle II Software  release-08-01-10
RotationFrame Class Reference

Rotation frame around vector. More...

#include <ReferenceFrame.h>

Inheritance diagram for RotationFrame:
Collaboration diagram for RotationFrame:

Public Member Functions

 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. More...
 
virtual ROOT::Math::PxPyPzEVector getMomentum (const ROOT::Math::PxPyPzEVector &vector) const override
 Get Lorentz vector in rotation frame. More...
 
virtual TMatrixFSym getMomentumErrorMatrix (const TMatrixFSym &matrix) const override
 Get Momentum error matrix in rotation frame. More...
 
virtual TMatrixFSym getVertexErrorMatrix (const TMatrixFSym &matrix) const override
 Get Vertex error matrix in rotation frame. More...
 
virtual ROOT::Math::XYZVector getVertex (const Particle *particle) const
 Wrapper for particles. More...
 
virtual ROOT::Math::PxPyPzEVector getMomentum (const Particle *particle) const
 Wrapper for particles. More...
 
virtual TMatrixFSym getMomentumErrorMatrix (const Particle *particle) const
 Wrapper for particles. More...
 
virtual TMatrixFSym getVertexErrorMatrix (const Particle *particle) const
 Wrapper for particles. More...
 

Static Public Member Functions

static const ReferenceFrameGetCurrent ()
 Get current rest frame. More...
 

Static Private Member Functions

static void Push (const ReferenceFrame *frame)
 Push rest frame of given particle. More...
 
static void Pop ()
 Pop current rest frame.
 

Private Attributes

ROOT::Math::Rotation3D m_rotation
 Rotation.
 

Static Private Attributes

static std::stack< const ReferenceFrame * > m_reference_frames
 Stack of current rest frames.
 

Detailed Description

Rotation frame around vector.

Definition at line 253 of file ReferenceFrame.h.

Member Function Documentation

◆ GetCurrent()

const ReferenceFrame & GetCurrent ( )
staticinherited

Get current rest frame.

Returns
RestFrame

Definition at line 26 of file ReferenceFrame.cc.

◆ getMomentum() [1/2]

virtual ROOT::Math::PxPyPzEVector getMomentum ( const Particle particle) const
inlinevirtualinherited

Wrapper for particles.

Parameters
particleparticle
Returns
momentum 4-vector in reference frame

Definition at line 60 of file ReferenceFrame.h.

◆ getMomentum() [2/2]

ROOT::Math::PxPyPzEVector getMomentum ( const ROOT::Math::PxPyPzEVector &  vector) const
overridevirtual

Get Lorentz vector in rotation frame.

Parameters
vectorLorentz 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
particleparticle
Returns
Covariance matrix in reference frame

Definition at line 77 of file ReferenceFrame.h.

◆ getMomentumErrorMatrix() [2/2]

TMatrixFSym getMomentumErrorMatrix ( const TMatrixFSym &  matrix) const
overridevirtual

Get Momentum error matrix in rotation frame.

Parameters
matrixCovariance matrix from particle
Returns
Covariance matrix in rotation frame

Implements ReferenceFrame.

Definition at line 181 of file ReferenceFrame.cc.

◆ getVertex() [1/2]

virtual ROOT::Math::XYZVector getVertex ( const Particle particle) const
inlinevirtualinherited

Wrapper for particles.

Parameters
particle
Returns
3-vector in reference frame

Definition at line 43 of file ReferenceFrame.h.

◆ getVertex() [2/2]

ROOT::Math::XYZVector getVertex ( const ROOT::Math::XYZVector &  vector) const
overridevirtual

Get vertex 3-vector in rotation frame.

Parameters
vector3-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
particle
Returns
Covariance matrix in reference frame

Definition at line 94 of file ReferenceFrame.h.

◆ getVertexErrorMatrix() [2/2]

TMatrixFSym getVertexErrorMatrix ( const TMatrixFSym &  matrix) const
overridevirtual

Get Vertex error matrix in rotation frame.

Parameters
matrixCovariance matrix from particle
Returns
Covariance matrix in rotation frame

Implements ReferenceFrame.

Definition at line 192 of file ReferenceFrame.cc.

◆ Push()

static void Push ( const ReferenceFrame frame)
inlinestaticprivateinherited

Push rest frame of given particle.

Parameters
frameUse this reference frame

Definition at line 110 of file ReferenceFrame.h.


The documentation for this class was generated from the following files: