SynAPSE  0.6.0
Synergistic Analysis of Phase Space Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Private Attributes
EnergyLoss Class Reference

Computes the ionisation energy loss of a particle through a specfied Material. More...

#include <EnergyLoss.hh>

Public Member Functions

 EnergyLoss ()
 Default constructor, initilizes everything to 0. More...
 
 EnergyLoss (const Material &mat, const double &thickness)
 Proper constructor, initilizes everything to the provided material. More...
 
 EnergyLoss (const EnergyLoss &eloss)
 Copy constructor. More...
 
EnergyLoss & operator= (const EnergyLoss &eloss)
 Equality operator. More...
 
 ~EnergyLoss ()
 Destructor. More...
 
void Initialize ()
 Initialize the material for the energy loss. More...
 
double GetMomentumLoss (const double &p, const double &m) const
 Returns the mean momentum loss for a given particle. More...
 
double GetMostProbableMomentumLoss (const double &p, const double &m) const
 Returns the most probable momentum loss for a given particle. More...
 
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) More...
 
double BetheBloch (const double &bg) const
 Returns the Bethe-Bloch stopping formula. More...
 
const Material & GetMaterial () const
 Gets the thickness in amount of radiation length. More...
 
void SetStepSize (const double &stepsize)
 Sets the thickness in amount of radiation length. More...
 
const double & GetStepSize () const
 Gets the thickness in amount of radiation length. More...
 
void SetThickness (const double &thickness)
 Sets the thickness in amount of radiation length. More...
 
const double & GetThickness () const
 Gets the thickness in amount of radiation length. More...
 

Private Attributes

Material _mat
 Description of the absorber material. More...
 
double _stepsize
 Size of a step through the absorber. More...
 
double _thickness
 Thickness of the absorber. More...
 

Detailed Description

Computes the ionisation energy loss of a particle through a specfied Material.

Needs to be provided with the material characteristics and its thickness.

Constructor & Destructor Documentation

EnergyLoss::EnergyLoss ( )

Default constructor, initilizes everything to 0.

EnergyLoss::EnergyLoss ( const Material &  mat,
const double &  thickness 
)

Proper constructor, initilizes everything to the provided material.

Parameters
matProperties of the absorber material
thicknessThickness of the absorber [mm]
EnergyLoss::EnergyLoss ( const EnergyLoss &  eloss)

Copy constructor.

EnergyLoss::~EnergyLoss ( )

Destructor.

Member Function Documentation

double EnergyLoss::BetheBloch ( const double &  bg) const

Returns the Bethe-Bloch stopping formula.

Parameters
bgRelativistic βγ (p/m)
Returns
Value of the formula in βγ [MeV/mm]
const Material& EnergyLoss::GetMaterial ( ) const
inline

Gets the thickness in amount of radiation length.

double EnergyLoss::GetMomentumLoss ( const double &  p,
const double &  m 
) const

Returns the mean momentum loss for a given particle.

Parameters
pInput momentum
mInput particle mass
Returns
Momentum loss [MeV/c]
double EnergyLoss::GetMostProbableMomentumLoss ( const double &  p,
const double &  m 
) const

Returns the most probable momentum loss for a given particle.

Parameters
pInput momentum
mInput particle mass
Returns
Momentum loss [MeV/c]
const double& EnergyLoss::GetStepSize ( ) const
inline

Gets the thickness in amount of radiation length.

const double& EnergyLoss::GetThickness ( ) const
inline

Gets the thickness in amount of radiation length.

void EnergyLoss::Initialize ( )

Initialize the material for the energy loss.

void EnergyLoss::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)

Parameters
beamInput beam: x, (y), px, (py), pz [mm, MeV/c]
pTotal input beam momentum [MeV/c]
mParticle mass [MeV/c^2]
EnergyLoss & EnergyLoss::operator= ( const EnergyLoss &  eloss)

Equality operator.

void EnergyLoss::SetStepSize ( const double &  stepsize)
inline

Sets the thickness in amount of radiation length.

void EnergyLoss::SetThickness ( const double &  thickness)
inline

Sets the thickness in amount of radiation length.

Field Documentation

Material EnergyLoss::_mat
private

Description of the absorber material.

double EnergyLoss::_stepsize
private

Size of a step through the absorber.

double EnergyLoss::_thickness
private

Thickness of the absorber.


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