Belle II Software  light-2403-persian
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.
 
B2Vector3D getBoostVector () const
 Returns boost vector (beta=p/E)
 
double getCMSEnergy () const
 Returns CMS energy of e+e- (aka. More...
 
ROOT::Math::PxPyPzEVector getBeamFourMomentum () const
 Returns LAB four-momentum of e+e-, i.e. More...
 
const ROOT::Math::LorentzRotation rotateLabToCms () const
 Returns Lorentz transformation from Lab to CMS. More...
 
const ROOT::Math::LorentzRotation rotateCmsToLab () const
 Returns Lorentz transformation from CMS to Lab. More...
 

Static Public Member Functions

static ROOT::Math::PxPyPzMVector labToCms (const ROOT::Math::PxPyPzMVector &vec)
 Transforms Lorentz vector into CM System. More...
 
static ROOT::Math::PxPyPzMVector cmsToLab (const ROOT::Math::PxPyPzMVector &vec)
 Transforms Lorentz vector into Laboratory System. More...
 
static ROOT::Math::PxPyPzEVector labToCms (const ROOT::Math::PxPyPzEVector &vec)
 Transforms Lorentz vector into CM System. More...
 
static ROOT::Math::PxPyPzEVector cmsToLab (const ROOT::Math::PxPyPzEVector &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.
 
const DBObjPtr< CollisionAxisCMSm_axisCmsDB
 db object for collision axis in CM system from boost.
 

Detailed Description

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

Definition at line 30 of file PCmsLabTransform.h.

Member Function Documentation

◆ cmsToLab() [1/2]

ROOT::Math::PxPyPzEVector cmsToLab ( const ROOT::Math::PxPyPzEVector &  vec)
static

Transforms Lorentz vector into Laboratory System.

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

Definition at line 31 of file PCmsLabTransform.cc.

32 {
34  return T.rotateCmsToLab() * vector;
35 }
Class to hold Lorentz transformations from/to CMS and boost vector.
const ROOT::Math::LorentzRotation rotateCmsToLab() const
Returns Lorentz transformation from CMS to Lab.

◆ cmsToLab() [2/2]

ROOT::Math::PxPyPzMVector cmsToLab ( const ROOT::Math::PxPyPzMVector &  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.

◆ getBeamFourMomentum()

ROOT::Math::PxPyPzEVector getBeamFourMomentum ( ) const
inline

Returns LAB four-momentum of e+e-, i.e.

pHER + pLER

Definition at line 58 of file PCmsLabTransform.h.

59  {
60  return rotateCmsToLab() * ROOT::Math::PxPyPzEVector(0, 0, 0, getCMSEnergy());
61  }
double getCMSEnergy() const
Returns CMS energy of e+e- (aka.

◆ getCMSEnergy()

double getCMSEnergy ( ) const
inline

Returns CMS energy of e+e- (aka.

invariant mass in any system)

Definition at line 50 of file PCmsLabTransform.h.

◆ labToCms() [1/2]

ROOT::Math::PxPyPzEVector labToCms ( const ROOT::Math::PxPyPzEVector &  vec)
static

Transforms Lorentz vector into CM System.

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

Definition at line 25 of file PCmsLabTransform.cc.

◆ labToCms() [2/2]

ROOT::Math::PxPyPzMVector labToCms ( const ROOT::Math::PxPyPzMVector &  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 ROOT::Math::LorentzRotation rotateCmsToLab ( ) const
inline

Returns Lorentz transformation from CMS to Lab.

Returns
const reference to Lorentz rotation matrix

Definition at line 76 of file PCmsLabTransform.h.

◆ rotateLabToCms()

const ROOT::Math::LorentzRotation rotateLabToCms ( ) const
inline

Returns Lorentz transformation from Lab to CMS.

Returns
const reference to Lorentz rotation matrix

Definition at line 67 of file PCmsLabTransform.h.


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