Belle II Software development
PCmsLabTransform Class Reference

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

#include <PCmsLabTransform.h>

Public Member Functions

 PCmsLabTransform ()
 Constructor.
 

Static Public Member Functions

static ROOT::Math::XYZVector getBoostVector ()
 Returns boost vector (beta=p/E)
 
static double getCMSEnergy ()
 Returns CMS energy of e+e- (aka.
 
static ROOT::Math::PxPyPzEVector getBeamFourMomentum ()
 Returns LAB four-momentum of e+e-, i.e.
 
static const ROOT::Math::LorentzRotation rotateLabToCms ()
 Returns Lorentz transformation from Lab to CMS.
 
static const ROOT::Math::LorentzRotation rotateCmsToLab ()
 Returns Lorentz transformation from CMS to Lab.
 
static ROOT::Math::PxPyPzMVector labToCms (const ROOT::Math::PxPyPzMVector &vec)
 Transforms Lorentz vector into CM System.
 
static ROOT::Math::PxPyPzMVector cmsToLab (const ROOT::Math::PxPyPzMVector &vec)
 Transforms Lorentz vector into Laboratory System.
 
static ROOT::Math::PxPyPzEVector labToCms (const ROOT::Math::PxPyPzEVector &vec)
 Transforms Lorentz vector into CM System.
 
static ROOT::Math::PxPyPzEVector cmsToLab (const ROOT::Math::PxPyPzEVector &vec)
 Transforms Lorentz vector into Laboratory System.
 

Detailed Description

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

The beam parameters are read from the conditions database through accessors shared by all instances, and the derived quantities (Lorentz rotations, CMS energy, ...) are cached. The cache is invalidated whenever one of the payloads changes or the DBStore is reset, so constructing this class is free and its getters are cheap.

Definition at line 34 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 115 of file PCmsLabTransform.cc.

116{
118 return T.rotateCmsToLab() * vector;
119}
static const ROOT::Math::LorentzRotation rotateCmsToLab()
Returns Lorentz transformation from CMS to Lab.
PCmsLabTransform()
Constructor.

◆ 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 103 of file PCmsLabTransform.cc.

104{
106 return T.rotateCmsToLab() * vector;
107}

◆ getBeamFourMomentum()

ROOT::Math::PxPyPzEVector getBeamFourMomentum ( )
static

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

pHER + pLER

Definition at line 82 of file PCmsLabTransform.cc.

83{
84 return cmsTransform().beamFourMomentum;
85}

◆ getBoostVector()

ROOT::Math::XYZVector getBoostVector ( )
static

Returns boost vector (beta=p/E)

Definition at line 72 of file PCmsLabTransform.cc.

73{
74 return cmsTransform().boost;
75}

◆ getCMSEnergy()

double getCMSEnergy ( )
static

Returns CMS energy of e+e- (aka.

invariant mass in any system)

Definition at line 77 of file PCmsLabTransform.cc.

78{
79 return cmsTransform().cmsEnergy;
80}

◆ 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 109 of file PCmsLabTransform.cc.

110{
112 return T.rotateLabToCms() * vector;
113}
static const ROOT::Math::LorentzRotation rotateLabToCms()
Returns Lorentz transformation from Lab to CMS.

◆ 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 97 of file PCmsLabTransform.cc.

98{
100 return T.rotateLabToCms() * vector;
101}

◆ rotateCmsToLab()

const ROOT::Math::LorentzRotation rotateCmsToLab ( )
static

Returns Lorentz transformation from CMS to Lab.

Returns
const reference to Lorentz rotation matrix

Definition at line 92 of file PCmsLabTransform.cc.

93{
94 return cmsTransform().cmsToLab;
95}

◆ rotateLabToCms()

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

Returns Lorentz transformation from Lab to CMS.

Returns
const reference to Lorentz rotation matrix

Definition at line 87 of file PCmsLabTransform.cc.

88{
89 return cmsTransform().labToCms;
90}

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