GENIEGenerator
Loading...
Searching...
No Matches
genie::mueloss::BetheBlochModel Class Reference

Bethe-Bloch model for muon energy loss due to Ionization Concrete implementation of the MuELossI interface. More...

#include <BetheBlochModel.h>

Inheritance diagram for genie::mueloss::BetheBlochModel:
[legend]
Collaboration diagram for genie::mueloss::BetheBlochModel:
[legend]

Public Member Functions

 BetheBlochModel ()
 BetheBlochModel (string config)
virtual ~BetheBlochModel ()
double dE_dx (double E, MuELMaterial_t material) const
 implement the MuELossI interface
MuELProcess_t Process (void) const
Public Member Functions inherited from genie::mueloss::MuELossI
virtual ~MuELossI ()
Public Member Functions inherited from genie::Algorithm
virtual ~Algorithm ()
virtual void Configure (const Registry &config)
virtual void Configure (string config)
virtual void FindConfig (void)
virtual const RegistryGetConfig (void) const
RegistryGetOwnedConfig (void)
virtual const AlgIdId (void) const
 Get algorithm ID.
virtual AlgStatus_t GetStatus (void) const
 Get algorithm status.
virtual bool AllowReconfig (void) const
virtual AlgCmp_t Compare (const Algorithm *alg) const
 Compare with input algorithm.
virtual void SetId (const AlgId &id)
 Set algorithm ID.
virtual void SetId (string name, string config)
const AlgorithmSubAlg (const RgKey &registry_key) const
void AdoptConfig (void)
void AdoptSubstructure (void)
virtual void Print (ostream &stream) const
 Print algorithm info.

Additional Inherited Members

Static Public Member Functions inherited from genie::Algorithm
static string BuildParamVectKey (const std::string &comm_name, unsigned int i)
static string BuildParamVectSizeKey (const std::string &comm_name)
static string BuildParamMatKey (const std::string &comm_name, unsigned int i, unsigned int j)
static string BuildParamMatRowSizeKey (const std::string &comm_name)
static string BuildParamMatColSizeKey (const std::string &comm_name)
Protected Member Functions inherited from genie::mueloss::MuELossI
 MuELossI ()
 MuELossI (string name)
 MuELossI (string name, string config)
Protected Member Functions inherited from genie::Algorithm
 Algorithm ()
 Algorithm (string name)
 Algorithm (string name, string config)
void Initialize (void)
void DeleteConfig (void)
void DeleteSubstructure (void)
RegistryExtractLocalConfig (const Registry &in) const
RegistryExtractLowerConfig (const Registry &in, const string &alg_key) const
 Split an incoming configuration Registry into a block valid for the sub-algo identified by alg_key.
template<class T>
bool GetParam (const RgKey &name, T &p, bool is_top_call=true) const
template<class T>
bool GetParamDef (const RgKey &name, T &p, const T &def) const
template<class T>
int GetParamVect (const std::string &comm_name, std::vector< T > &v, bool is_top_call=true) const
 Handle to load vectors of parameters.
int GetParamVectKeys (const std::string &comm_name, std::vector< RgKey > &k, bool is_top_call=true) const
template<class T>
int GetParamMat (const std::string &comm_name, TMatrixT< T > &mat, bool is_top_call=true) const
 Handle to load matrix of parameters.
template<class T>
int GetParamMatSym (const std::string &comm_name, TMatrixTSym< T > &mat, bool is_top_call=true) const
int GetParamMatKeys (const std::string &comm_name, std::vector< RgKey > &k, bool is_top_call=true) const
int AddTopRegistry (Registry *rp, bool owns=true)
 add registry with top priority, also update ownership
int AddLowRegistry (Registry *rp, bool owns=true)
 add registry with lowest priority, also update ownership
int MergeTopRegistry (const Registry &r)
int AddTopRegisties (const vector< Registry * > &rs, bool owns=false)
 Add registries with top priority, also udated Ownerships.
Protected Attributes inherited from genie::Algorithm
bool fAllowReconfig
bool fOwnsSubstruc
 true if it owns its substructure (sub-algs,...)
AlgId fID
 algorithm name and configuration set
vector< Registry * > fConfVect
vector< bool > fOwnerships
 ownership for every registry in fConfVect
AlgStatus_t fStatus
 algorithm execution status
AlgMapfOwnedSubAlgMp
 local pool for owned sub-algs (taken out of the factory pool)

Detailed Description

Bethe-Bloch model for muon energy loss due to Ionization Concrete implementation of the MuELossI interface.

References:\n W.Lohmann, R.Kopp and R.Voss,
Energy Loss of Muons in the Energy Range 1-10000 GeV, CERN 85-03
Author
Costas Andreopoulos <c.andreopoulos \at cern.ch> University of Liverpool
Created:\n December 10, 2003
License:\n Copyright (c) 2003-2025, The GENIE Collaboration
For the full text of the license visit http://copyright.genie-mc.org

Definition at line 30 of file BetheBlochModel.h.

Constructor & Destructor Documentation

◆ BetheBlochModel() [1/2]

BetheBlochModel::BetheBlochModel ( )

Definition at line 22 of file BetheBlochModel.cxx.

22 :
23MuELossI("genie::mueloss::BetheBlochModel")
24{
25
26}

References genie::mueloss::MuELossI::MuELossI().

◆ BetheBlochModel() [2/2]

BetheBlochModel::BetheBlochModel ( string config)

Definition at line 28 of file BetheBlochModel.cxx.

28 :
29MuELossI("genie::mueloss::BetheBlochModel", config)
30{
31
32}

References genie::mueloss::MuELossI::MuELossI().

◆ ~BetheBlochModel()

BetheBlochModel::~BetheBlochModel ( )
virtual

Definition at line 34 of file BetheBlochModel.cxx.

35{
36
37}

Member Function Documentation

◆ dE_dx()

double BetheBlochModel::dE_dx ( double E,
MuELMaterial_t material ) const
virtual

implement the MuELossI interface

Implements genie::mueloss::MuELossI.

Definition at line 39 of file BetheBlochModel.cxx.

40{
41// Calculates ionization dE/dx for muons via Bethe-Bloch formula (in GeV^-2)
42// To convert the result to more handly units, eg MeV/(gr/cm^2), just write:
43// dE_dx /= (units::MeV/(units::g/units::cm2));
44
45 if(mt == eMuUndefined) return 0;
46 if(E<=MuELProcess::Threshold(this->Process()) || E>=kMaxMuE) return 0;
47
48 double Z = MuELMaterial::Z(mt);
49 double A = MuELMaterial::A(mt);
50 double Z_A = Z/A; // in mol/gr
51 double a2 = kAem2; // (em coupling const)^2
52 double Na = kNA; // Avogadro's number
53 double lamda2 = kLe2/units::cm2; // (e compton wavelength)^2 in cm^2
54 double me = kElectronMass; // in GeV
55 double me2 = kElectronMass2;
56 double mmu = kMuonMass; // in GeV
57 double mmu2 = kMuonMass2;
58 double E2 = TMath::Power(E,2);
59 double beta = TMath::Sqrt(E2-mmu2)/E;
60 double beta2 = TMath::Power(beta,2);
61 double gamma = E/mmu;
62 double gamma2 = TMath::Power(gamma,2);
64 double I2 = TMath::Power(I,2); // in GeV^2
65
66 // Calculate the maximum energy transfer to the electron (in GeV)
67
68 double p2 = E2-mmu2;
69 double Emaxt = 2*me*p2 / (me2 + mmu2 + 2*me*E);
70 double Emaxt2 = TMath::Power(Emaxt,2);
71
72 // Calculate the density correction factor delta
73
79 double X = TMath::Log10(beta*gamma);
80
81 double delta = 0;
82 if(X0<X && X<X1) delta = 4.6052*X + a*TMath::Power(X1-X,m) + C;
83 if(X>X1) delta = 4.6052*X + C;
84
85 LOG("MuELoss", pDEBUG) << "density correction factor = " << delta;
86 LOG("MuELoss", pDEBUG) << "max energy transfer (GeV) = " << Emaxt;
87 LOG("MuELoss", pDEBUG) << "ionization potential (GeV)= " << I;
88 LOG("MuELoss", pDEBUG) << "E = " << E << ", p2 = " << p2;
89 LOG("MuELoss", pDEBUG) << "beta = " << beta << ", gamma = " << gamma;
90
91 // Calculate the -dE/dx
92 double de_dx = a2 * (2*kPi*Na*lamda2) * Z_A * (me/beta2) *
93 (TMath::Log( 2*me*beta2*gamma2*Emaxt/I2 ) -
94 2*beta2 + 0.25*(Emaxt2/E2) - delta);
95
96 de_dx *= (units::GeV/(units::g/units::cm2));
97 return de_dx; // in GeV^-2
98}
#define pDEBUG
Definition Messenger.h:63
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Definition Messenger.h:96
static double DensityCorrection_a(MuELMaterial_t material)
static double DensityCorrection_m(MuELMaterial_t material)
static double DensityCorrection_X0(MuELMaterial_t material)
static double DensityCorrection_C(MuELMaterial_t material)
static double IonizationPotential(MuELMaterial_t material)
static double DensityCorrection_X1(MuELMaterial_t material)
MuELProcess_t Process(void) const
static double A(MuELMaterial_t material)
static double Z(MuELMaterial_t material)
static double Threshold(MuELProcess_t p)
Definition MuELProcess.h:58
const double a
const double kMaxMuE
Definition MuELossI.h:29
static constexpr double cm2
Definition Units.h:69
static constexpr double GeV
Definition Units.h:28
static constexpr double eV
Definition Units.h:127
static constexpr double g
Definition Units.h:144

References genie::mueloss::MuELMaterial::A(), a, genie::units::cm2, genie::mueloss::BetheBlochMaterialParams::DensityCorrection_a(), genie::mueloss::BetheBlochMaterialParams::DensityCorrection_C(), genie::mueloss::BetheBlochMaterialParams::DensityCorrection_m(), genie::mueloss::BetheBlochMaterialParams::DensityCorrection_X0(), genie::mueloss::BetheBlochMaterialParams::DensityCorrection_X1(), genie::mueloss::eMuUndefined, genie::units::eV, genie::units::g, genie::units::GeV, genie::mueloss::BetheBlochMaterialParams::IonizationPotential(), genie::constants::kAem2, genie::constants::kElectronMass, genie::constants::kElectronMass2, genie::constants::kLe2, genie::mueloss::kMaxMuE, genie::constants::kMuonMass, genie::constants::kMuonMass2, genie::constants::kNA, genie::constants::kPi, LOG, pDEBUG, Process(), genie::mueloss::MuELProcess::Threshold(), and genie::mueloss::MuELMaterial::Z().

◆ Process()

MuELProcess_t genie::mueloss::BetheBlochModel::Process ( void ) const
inlinevirtual

Implements genie::mueloss::MuELossI.

Definition at line 39 of file BetheBlochModel.h.

39{ return eMupIonization; }

References genie::mueloss::eMupIonization.

Referenced by dE_dx().


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