Public Member Functions | List of all members
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:
genie::mueloss::MuELossI genie::Algorithm

Public Member Functions

 BetheBlochModel ()
 
 BetheBlochModel (string config)
 
virtual ~BetheBlochModel ()
 
double dE_dx (double E, MuELMaterial_t material) const
 implement the MuELossI interface More...
 
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. More...
 
virtual AlgStatus_t GetStatus (void) const
 Get algorithm status. More...
 
virtual bool AllowReconfig (void) const
 
virtual AlgCmp_t Compare (const Algorithm *alg) const
 Compare with input algorithm. More...
 
virtual void SetId (const AlgId &id)
 Set algorithm ID. More...
 
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. More...
 

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)
 
- 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. More...
 
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. More...
 
int GetParamVectKeys (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 More...
 
int AddLowRegistry (Registry *rp, bool owns=true)
 add registry with lowest priority, also update ownership More...
 
int MergeTopRegistry (const Registry &r)
 
int AddTopRegisties (const vector< Registry * > &rs, bool owns=false)
 Add registries with top priority, also udated Ownerships. More...
 
- Protected Attributes inherited from genie::Algorithm
bool fAllowReconfig
 
bool fOwnsSubstruc
 true if it owns its substructure (sub-algs,...) More...
 
AlgId fID
 algorithm name and configuration set More...
 
vector< Registry * > fConfVect
 
vector< boolfOwnerships
 ownership for every registry in fConfVect More...
 
AlgStatus_t fStatus
 algorithm execution status More...
 
AlgMapfOwnedSubAlgMp
 local pool for owned sub-algs (taken out of the factory pool) More...
 

Detailed Description

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

W.Lohmann, R.Kopp and R.Voss, Energy Loss of Muons in the Energy Range 1-10000 GeV, CERN 85-03

Author
Costas Andreopoulos <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

December 10, 2003

Copyright (c) 2003-2020, 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::BetheBlochModel ( )

Definition at line 22 of file BetheBlochModel.cxx.

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

Definition at line 28 of file BetheBlochModel.cxx.

28  :
29 MuELossI("genie::mueloss::BetheBlochModel", config)
30 {
31 
32 }
static Config * config
Definition: config.cpp:1054
BetheBlochModel::~BetheBlochModel ( )
virtual

Definition at line 34 of file BetheBlochModel.cxx.

35 {
36 
37 }

Member Function Documentation

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 }
double beta(double KE, const simb::MCParticle *part)
static constexpr double g
Definition: Units.h:144
static const double kLe2
Definition: Constants.h:51
static double Z(MuELMaterial_t material)
Definition: MuELMaterial.h:236
static double DensityCorrection_m(MuELMaterial_t material)
static double DensityCorrection_C(MuELMaterial_t material)
const double mmu
Definition: makeCAF.cxx:13
MuELProcess_t Process(void) const
static const double kElectronMass
Definition: Constants.h:70
static double Threshold(MuELProcess_t p)
Definition: MuELProcess.h:58
#define a2
static double DensityCorrection_a(MuELMaterial_t material)
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
static const double kElectronMass2
Definition: Constants.h:83
static constexpr double eV
Definition: Units.h:127
static double IonizationPotential(MuELMaterial_t material)
static constexpr double cm2
Definition: Units.h:69
static constexpr double GeV
Definition: Units.h:28
static const double kAem2
Definition: Constants.h:57
const double a
static const double kMuonMass2
Definition: Constants.h:84
static const double kNA
Definition: Constants.h:49
const double kMaxMuE
Definition: MuELossI.h:29
double gamma(double KE, const simb::MCParticle *part)
static double DensityCorrection_X0(MuELMaterial_t material)
static const double kMuonMass
Definition: Constants.h:71
E
Definition: 018_def.c:13
Definition: 018_def.c:13
#define A
Definition: memgrp.cpp:38
static double DensityCorrection_X1(MuELMaterial_t material)
static const double kPi
Definition: Constants.h:37
static double A(MuELMaterial_t material)
Definition: MuELMaterial.h:304
#define pDEBUG
Definition: Messenger.h:63
MuELProcess_t genie::mueloss::BetheBlochModel::Process ( void  ) const
inlinevirtual

Implements genie::mueloss::MuELossI.

Definition at line 39 of file BetheBlochModel.h.


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