Belle II Software  release-06-00-14
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 27 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 19 of file PCmsLabTransform.cc.

20 {
22  return T.rotateCmsToLab() * vector;
23 }
Class to hold Lorentz transformations from/to CMS and boost vector.
const TLorentzRotation rotateCmsToLab() const
Returns Lorentz transformation from CMS to Lab.

◆ getCMSEnergy()

double getCMSEnergy ( ) const
inline

Returns CMS energy of e+e- (aka.

invariant mass in any system)

Definition at line 47 of file PCmsLabTransform.h.

48  {
49  return m_invariantMassDB->getMass();
50  }
const DBObjPtr< CollisionInvariantMass > m_invariantMassDB
db object for invariant mass.

◆ 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 13 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 74 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 64 of file PCmsLabTransform.h.


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