Belle II Software  release-05-02-19
PCmsLabTransform Class Reference

Class to hold Lorentz transformations from/to CMS and boost vector. More...

#include <PCmsLabTransform.h>

Collaboration diagram for PCmsLabTransform:

Public Member Functions

 PCmsLabTransform ()
 Constructor.
 
TVector3 getBoostVector () const
 Returns boost vector (beta=p/E)
 
double getCMSEnergy () const
 Returns CMS energy of e+e- (aka. More...
 
TLorentzVector getBeamFourMomentum () const
 Returns LAB four-momentum of e+e-.
 
const TLorentzRotation rotateLabToCms () const
 Returns Lorentz transformation from Lab to CMS. More...
 
const TLorentzRotation rotateCmsToLab () const
 Returns Lorentz transformation from CMS to Lab. More...
 

Static Public Member Functions

static TLorentzVector labToCms (const TLorentzVector &vec)
 Transforms Lorentz vector into CM System. More...
 
static TLorentzVector cmsToLab (const TLorentzVector &vec)
 Transforms Lorentz vector into Laboratory System. More...
 

Private Attributes

const DBObjPtr< CollisionInvariantMassm_invariantMassDB
 db object for invariant mass.
 
const DBObjPtr< CollisionBoostVectorm_boostVectorDB
 db object for boost vector.
 

Detailed Description

Class to hold Lorentz transformations from/to CMS and boost vector.

Definition at line 37 of file PCmsLabTransform.h.

Member Function Documentation

◆ cmsToLab()

TLorentzVector cmsToLab ( const TLorentzVector &  vec)
static

Transforms Lorentz vector into Laboratory System.

Parameters
vecLorentz vector in CM System
Returns
Lorentz vector in Laboratory System

Definition at line 21 of file PCmsLabTransform.cc.

22 {
24  return T.rotateCmsToLab() * vector;
25 }

◆ getCMSEnergy()

double getCMSEnergy ( ) const
inline

Returns CMS energy of e+e- (aka.

invariant mass in any system)

Definition at line 57 of file PCmsLabTransform.h.

58  {
59  return rotateCmsToLab() * TLorentzVector(0, 0, 0, getCMSEnergy());
60  }

◆ labToCms()

TLorentzVector labToCms ( const TLorentzVector &  vec)
static

Transforms Lorentz vector into CM System.

Parameters
vecLorentz vector in Laboratory System
Returns
Lorentz vector in CM System

Definition at line 15 of file PCmsLabTransform.cc.

◆ rotateCmsToLab()

const TLorentzRotation rotateCmsToLab ( ) const
inline

Returns Lorentz transformation from CMS to Lab.

Returns
const reference to Lorentz rotation matrix

Definition at line 84 of file PCmsLabTransform.h.

◆ rotateLabToCms()

const TLorentzRotation rotateLabToCms ( ) const
inline

Returns Lorentz transformation from Lab to CMS.

Returns
const reference to Lorentz rotation matrix

Definition at line 74 of file PCmsLabTransform.h.


The documentation for this class was generated from the following files:
Belle2::PCmsLabTransform::getCMSEnergy
double getCMSEnergy() const
Returns CMS energy of e+e- (aka.
Definition: PCmsLabTransform.h:57
Belle2::PCmsLabTransform::rotateCmsToLab
const TLorentzRotation rotateCmsToLab() const
Returns Lorentz transformation from CMS to Lab.
Definition: PCmsLabTransform.h:84
Belle2::PCmsLabTransform
Class to hold Lorentz transformations from/to CMS and boost vector.
Definition: PCmsLabTransform.h:37