Belle II Software  release-06-01-15
RestFrame Class Reference

Rest frame of a particle. More...

#include <ReferenceFrame.h>

Inheritance diagram for RestFrame:
Collaboration diagram for RestFrame:

Public Member Functions

 RestFrame (const Particle *particle)
 Create new rest frame.
 
virtual TVector3 getVertex (const TVector3 &vector) const override
 Get vertex 3-vector in rest frame system. More...
 
virtual TLorentzVector getMomentum (const TLorentzVector &vector) const override
 Get Lorentz vector in rest frame System. More...
 
virtual TMatrixFSym getMomentumErrorMatrix (const TMatrixFSym &matrix) const override
 Get Momentum error matrix in rest frame. More...
 
virtual TMatrixFSym getVertexErrorMatrix (const TMatrixFSym &matrix) const override
 Get Vertex error matrix in rest frame. More...
 
virtual TVector3 getVertex (const Particle *particle) const
 Wrapper for particles. More...
 
virtual TLorentzVector 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

TLorentzVector m_momentum
 momentum of RF in the lab frame
 
TVector3 m_displacement
 displacement of RF origin in th lab frame
 
TVector3 m_boost
 boost of RF relative to the lab frame
 
TLorentzRotation m_lab2restframe
 Lorentz transformation connecting lab and rest frame.
 

Static Private Attributes

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

Detailed Description

Rest frame of a particle.

Definition at line 131 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 TLorentzVector getMomentum ( const Particle particle) const
inlinevirtualinherited

Wrapper for particles.

Parameters
particleparticle
Returns
momentum 4-vector in reference frame

Definition at line 59 of file ReferenceFrame.h.

◆ getMomentum() [2/2]

TLorentzVector getMomentum ( const TLorentzVector &  vector) const
overridevirtual

Get Lorentz vector in rest frame System.

Parameters
vectorLorentz vector from particle
Returns
Lorentz vector in rest frame System

Implements ReferenceFrame.

Definition at line 47 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 76 of file ReferenceFrame.h.

◆ getMomentumErrorMatrix() [2/2]

TMatrixFSym getMomentumErrorMatrix ( const TMatrixFSym &  matrix) const
overridevirtual

Get Momentum error matrix in rest frame.

Parameters
matrixCovariance matrix from particle
Returns
Covariance matrix in rest frame

Implements ReferenceFrame.

Definition at line 53 of file ReferenceFrame.cc.

◆ getVertex() [1/2]

virtual TVector3 getVertex ( const Particle particle) const
inlinevirtualinherited

Wrapper for particles.

Parameters
particle
Returns
3-vector in reference frame

Definition at line 42 of file ReferenceFrame.h.

◆ getVertex() [2/2]

TVector3 getVertex ( const TVector3 &  vector) const
overridevirtual

Get vertex 3-vector in rest frame system.

Parameters
vector3-vector from particle
Returns
3-vector in rest frame System

Implements ReferenceFrame.

Definition at line 36 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 93 of file ReferenceFrame.h.

◆ getVertexErrorMatrix() [2/2]

TMatrixFSym getVertexErrorMatrix ( const TMatrixFSym &  matrix) const
overridevirtual

Get Vertex error matrix in rest frame.

Parameters
matrixCovariance matrix from particle
Returns
Covariance matrix in rest frame

Implements ReferenceFrame.

Definition at line 66 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 109 of file ReferenceFrame.h.


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