43 const double& thickness);
65 const double& m)
const;
75 const double& m)
const;
83 void IonizeBunch(std::map<std::string, std::vector<double>>& beam,
85 const double& m)
const;
const double & GetStepSize() const
Gets the thickness in amount of radiation length.
Definition: EnergyLoss.hh:102
void Initialize()
Initialize the material for the energy loss.
Definition: EnergyLoss.cc:108
double BetheBloch(const double &bg) const
Returns the Bethe-Bloch stopping formula.
Definition: EnergyLoss.cc:104
const double & GetThickness() const
Gets the thickness in amount of radiation length.
Definition: EnergyLoss.hh:108
~EnergyLoss()
Destructor.
Definition: EnergyLoss.cc:35
Data structure that stores the material properties.
Definition: EnergyLoss.hh:17
void SetStepSize(const double &stepsize)
Sets the thickness in amount of radiation length.
Definition: EnergyLoss.hh:99
double Z
Effective atomic number.
Definition: EnergyLoss.hh:19
EnergyLoss & operator=(const EnergyLoss &eloss)
Equality operator.
Definition: EnergyLoss.cc:24
double A
Atomic mass [g/mol].
Definition: EnergyLoss.hh:20
double k1
First factor of the energy loss [MeV/mm].
Definition: EnergyLoss.hh:23
void SetThickness(const double &thickness)
Sets the thickness in amount of radiation length.
Definition: EnergyLoss.hh:105
double k2
Second factor of the energy loss.
Definition: EnergyLoss.hh:24
Computes the ionisation energy loss of a particle through a specfied Material.
Definition: EnergyLoss.hh:32
const Material & GetMaterial() const
Gets the thickness in amount of radiation length.
Definition: EnergyLoss.hh:96
double GetMostProbableMomentumLoss(const double &p, const double &m) const
Returns the most probable momentum loss for a given particle.
Definition: EnergyLoss.cc:63
double I
Mean excitation potential [eV].
Definition: EnergyLoss.hh:22
double rho
Density [g/cm^3].
Definition: EnergyLoss.hh:21
void IonizeBunch(std::map< std::string, std::vector< double >> &beam, const double &p, const double &m) const
Performs the energy loss on a beam (dictionary that maps variables onto vectors)
Definition: EnergyLoss.cc:82
double _thickness
Thickness of the absorber.
Definition: EnergyLoss.hh:114
double _stepsize
Size of a step through the absorber.
Definition: EnergyLoss.hh:113
EnergyLoss()
Default constructor, initilizes everything to 0.
Definition: EnergyLoss.cc:3
double GetMomentumLoss(const double &p, const double &m) const
Returns the mean momentum loss for a given particle.
Definition: EnergyLoss.cc:37
std::string name
Name of the element/molecule/crystal.
Definition: EnergyLoss.hh:18
Material _mat
Description of the absorber material.
Definition: EnergyLoss.hh:112