Belle II Software development
|
Helper struct to provide consistent energy loss estimation throughout the CDC track finding. More...
#include <EnergyLossEstimator.h>
Public Member Functions | |
EnergyLossEstimator (double eDensity, double I, double bZ=NAN) | |
Constructor from the material properties. | |
double | getBetheStoppingPower (double p, int pdgCode) const |
Stopping power aka energy loss / arc length. | |
double | getEnergyLoss (double p, int pdgCode, double arcLength) const |
Calculates the total energy loss after travelling the given distance. | |
double | getMomentumLossFactor (double p, int pdgCode, double arcLength) const |
Calculates a factor applicable scaling the current momentum to the momentum after traveling given arc length. | |
double | getLossDist2D (double pt, int pdgCode, double arcLength2D) const |
Calculates a correction term for the two dimensional distance undoing the energy loss after the given arc length. | |
Static Public Member Functions | |
static EnergyLossEstimator | forCDC () |
Create an energy loss estimator with the material properties of the CDC. | |
static double | getMass (int pdgCode) |
Lookup the mass for the given pdg code. | |
static int | getCharge (int pdgCode) |
Lookup the charge for the given pdg code. | |
Private Attributes | |
double | m_eDensity |
Electron density in mol / cm^3. | |
double | m_I |
Mean excitation energy in GeV. | |
double | m_bZ |
B field to be used for the distance translation. | |
Helper struct to provide consistent energy loss estimation throughout the CDC track finding.
Definition at line 22 of file EnergyLossEstimator.h.
EnergyLossEstimator | ( | double | eDensity, |
double | I, | ||
double | bZ = NAN |
||
) |
Constructor from the material properties.
eDensity | Electron density in mol / cm ^ 3, e.g. from Z * density / A |
I | Excitation energy (must be given in standard GeV units) |
bZ | Mean magentic field in the z direction |
Definition at line 121 of file EnergyLossEstimator.cc.
|
static |
Create an energy loss estimator with the material properties of the CDC.
Definition at line 28 of file EnergyLossEstimator.cc.
double getBetheStoppingPower | ( | double | p, |
int | pdgCode | ||
) | const |
Stopping power aka energy loss / arc length.
p | absolute momentum |
pdgCode |
Definition at line 128 of file EnergyLossEstimator.cc.
|
static |
Lookup the charge for the given pdg code.
Definition at line 105 of file EnergyLossEstimator.cc.
double getEnergyLoss | ( | double | p, |
int | pdgCode, | ||
double | arcLength | ||
) | const |
Calculates the total energy loss after travelling the given distance.
Definition at line 150 of file EnergyLossEstimator.cc.
double getLossDist2D | ( | double | pt, |
int | pdgCode, | ||
double | arcLength2D | ||
) | const |
Calculates a correction term for the two dimensional distance undoing the energy loss after the given arc length.
Definition at line 170 of file EnergyLossEstimator.cc.
|
static |
Lookup the mass for the given pdg code.
Definition at line 84 of file EnergyLossEstimator.cc.
double getMomentumLossFactor | ( | double | p, |
int | pdgCode, | ||
double | arcLength | ||
) | const |
Calculates a factor applicable scaling the current momentum to the momentum after traveling given arc length.
Definition at line 157 of file EnergyLossEstimator.cc.
|
private |
B field to be used for the distance translation.
Definition at line 81 of file EnergyLossEstimator.h.
|
private |
Electron density in mol / cm^3.
Definition at line 75 of file EnergyLossEstimator.h.
|
private |
Mean excitation energy in GeV.
Definition at line 78 of file EnergyLossEstimator.h.