ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Muon::MuonBetaCalculationUtils Class Reference

#include <MuonBetaCalculationUtils.h>

Collaboration diagram for Muon::MuonBetaCalculationUtils:

Public Member Functions

 MuonBetaCalculationUtils (float mass=0.)
 
float calculateBetaTrack (float p)
 
float calculateBeta (float time, float dist)
 
float calculateBetaError (float time, float error, float dist)
 
float calculateInverseBeta (float time, float dist)
 
float calculateInverseBetaError (float error, float dist)
 
float calculateTof (float beta, float dist)
 

Private Attributes

const double m_inverseSpeedOfLight = 1 / Gaudi::Units::c_light
 
float m_mass2
 

Detailed Description

Definition at line 12 of file MuonBetaCalculationUtils.h.

Constructor & Destructor Documentation

◆ MuonBetaCalculationUtils()

Muon::MuonBetaCalculationUtils::MuonBetaCalculationUtils ( float  mass = 0.)
inline

Definition at line 15 of file MuonBetaCalculationUtils.h.

15 : m_mass2(mass*mass) {}

Member Function Documentation

◆ calculateBeta()

float Muon::MuonBetaCalculationUtils::calculateBeta ( float  time,
float  dist 
)
inline

Definition at line 21 of file MuonBetaCalculationUtils.h.

21  {
22  return dist*m_inverseSpeedOfLight/time;
23  }

◆ calculateBetaError()

float Muon::MuonBetaCalculationUtils::calculateBetaError ( float  time,
float  error,
float  dist 
)
inline

Definition at line 25 of file MuonBetaCalculationUtils.h.

25  {
26  return dist*m_inverseSpeedOfLight/(time*time)*error;
27  }

◆ calculateBetaTrack()

float Muon::MuonBetaCalculationUtils::calculateBetaTrack ( float  p)
inline

Definition at line 17 of file MuonBetaCalculationUtils.h.

17  {
18  return fabs(p)/sqrt(p*p+m_mass2);
19  }

◆ calculateInverseBeta()

float Muon::MuonBetaCalculationUtils::calculateInverseBeta ( float  time,
float  dist 
)
inline

Definition at line 29 of file MuonBetaCalculationUtils.h.

29  {
30  return time/(dist*m_inverseSpeedOfLight);
31  }

◆ calculateInverseBetaError()

float Muon::MuonBetaCalculationUtils::calculateInverseBetaError ( float  error,
float  dist 
)
inline

Definition at line 33 of file MuonBetaCalculationUtils.h.

33  {
34  return error/(dist*m_inverseSpeedOfLight);
35  }

◆ calculateTof()

float Muon::MuonBetaCalculationUtils::calculateTof ( float  beta,
float  dist 
)
inline

Definition at line 37 of file MuonBetaCalculationUtils.h.

37  {
38  return dist*m_inverseSpeedOfLight/beta;
39  }

Member Data Documentation

◆ m_inverseSpeedOfLight

const double Muon::MuonBetaCalculationUtils::m_inverseSpeedOfLight = 1 / Gaudi::Units::c_light
private

Definition at line 42 of file MuonBetaCalculationUtils.h.

◆ m_mass2

float Muon::MuonBetaCalculationUtils::m_mass2
private

Definition at line 43 of file MuonBetaCalculationUtils.h.


The documentation for this class was generated from the following file:
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Muon::MuonBetaCalculationUtils::m_inverseSpeedOfLight
const double m_inverseSpeedOfLight
Definition: MuonBetaCalculationUtils.h:42
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
MuonParameters::beta
@ beta
Definition: MuonParamDefs.h:144
error
Definition: IImpactPoint3dEstimator.h:70
Muon::MuonBetaCalculationUtils::m_mass2
float m_mass2
Definition: MuonBetaCalculationUtils.h:43