BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
ExtMuIonisation.cxx
Go to the documentation of this file.
1//
2// ********************************************************************
3// * DISCLAIMER *
4// * *
5// * The following disclaimer summarizes all the specific disclaimers *
6// * of contributors to this software. The specific disclaimers,which *
7// * govern, are listed with their locations in: *
8// * http://cern.ch/geant4/license *
9// * *
10// * Neither the authors of this software system, nor their employing *
11// * institutes,nor the agencies providing financial support for this *
12// * work make any representation or warranty, express or implied, *
13// * regarding this software system or assume any liability for its *
14// * use. *
15// * *
16// * This code implementation is the intellectual property of the *
17// * GEANT4 collaboration. *
18// * By copying, distributing or modifying the Program (or any work *
19// * based on the Program) you indicate your acceptance of this *
20// * statement, and all its terms. *
21// ********************************************************************
22//
23// $Id: ExtMuIonisation.cxx,v 1.9 2022/01/26 03:16:33 wangll Exp $
24// GEANT4 tag $Name: TrkExtAlg-00-00-67 $
25//
26// -------------------------------------------------------------------
27//
28// GEANT4 Class file
29//
30//
31// File name: ExtMuIonisation
32//
33// Author: Laszlo Urban
34//
35// Creation date: 30.09.1997
36//
37// Modifications:
38//
39// 08-04-98 remove 'tracking cut' of the ionizing particle (mma)
40// 26-10-98 new stuff from R.Kokoulin + cleanup , L.Urban
41// 10-02-00 modifications , new e.m. structure, L.Urban
42// 23-03-01 R.Kokoulin's correction is commented out, L.Urban
43// 29-05-01 V.Ivanchenko minor changes to provide ANSI -wall compilation
44// 10-08-01 new methods Store/Retrieve PhysicsTable (mma)
45// 28-08-01 new function ComputeRestrictedMeandEdx() + 'cleanup' (mma)
46// 17-09-01 migration of Materials to pure STL (mma)
47// 26-09-01 completion of RetrievePhysicsTable (mma)
48// 29-10-01 all static functions no more inlined (mma)
49// 07-11-01 correction(Tmax+xsection computation) L.Urban
50// 08-11-01 particleMass becomes a local variable (mma)
51// 10-05-02 V.Ivanchenko update to new design
52// 04-12-02 V.Ivanchenko the low energy limit for Kokoulin model to 10 GeV
53// 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko)
54// 26-12-02 Secondary production moved to derived classes (V.Ivanchenko)
55// 13-02-03 SubCutoff regime is assigned to a region (V.Ivanchenko)
56// 23-05-03 Define default integral + BohrFluctuations (V.Ivanchenko)
57// 03-06-03 Add SetIntegral method to choose fluctuation model (V.Ivanchenko)
58// 03-06-03 Fix initialisation problem for STD ionisation (V.Ivanchenko)
59// 04-08-03 Set integral=false to be default (V.Ivanchenko)
60// 08-08-03 STD substitute standard (V.Ivanchenko)
61// 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko)
62// 10-02-04 Calculation of radiative corrections using R.Kokoulin model (V.Ivanchenko)
63// 27-05-04 Set integral to be a default regime (V.Ivanchenko)
64// 17-08-04 Utilise mu+ tables for mu- (V.Ivanchenko)
65// 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
66// -----------------------------------------------------------------------------------
67// 15-04-05 Omit the correction of momentum direction due to production of secenderies.
68// This is needed for my Track Extrapotation. (L.L.Wang)
69// -------------------------------------------------------------------
70// 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
71//
72//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
73//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
74
75#include "ExtMuIonisation.h"
76
77#include "G4BetheBlochModel.hh"
78#include "G4BohrFluctuations.hh"
79#include "G4BraggModel.hh"
80#include "G4Electron.hh"
81#include "G4MuBetheBlochModel.hh"
82#include "G4MuonMinus.hh"
83#include "G4MuonPlus.hh"
84#include "G4PhysicalConstants.hh"
85#include "G4UnitsTable.hh"
86#include "G4UniversalFluctuation.hh"
87
88//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
89
90using namespace std;
91
92ExtMuIonisation::ExtMuIonisation( const G4String& name )
93 : G4VEnergyLossProcess( name )
94 , theParticle( 0 )
95 , theBaseParticle( 0 )
96 , isInitialised( false ) {
97 SetDEDXBinning( 120 );
98 // SetLambdaBinning(120);
99 SetMinKinEnergy( 0.1 * keV );
100 SetMaxKinEnergy( 100.0 * TeV );
101 SetLossFluctuations( false );
102}
103
104//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
105
107
108//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
109
110void ExtMuIonisation::InitialiseEnergyLossProcess( const G4ParticleDefinition* part,
111 const G4ParticleDefinition* bpart ) {
112 if ( !isInitialised )
113 {
114 theParticle = part;
115 theBaseParticle = bpart;
116
117 mass = theParticle->GetPDGMass();
118 SetSecondaryParticle( G4Electron::Electron() );
119
120 flucModel = new G4UniversalFluctuation();
121
122 G4VEmModel* em = new G4BraggModel();
123 em->SetLowEnergyLimit( 0.1 * keV );
124 em->SetHighEnergyLimit( 0.2 * MeV );
125 AddEmModel( 1, em, flucModel );
126 G4VEmModel* em1 = new G4BetheBlochModel();
127 em1->SetLowEnergyLimit( 0.2 * MeV );
128 em1->SetHighEnergyLimit( 1.0 * GeV );
129 AddEmModel( 2, em1, flucModel );
130 G4VEmModel* em2 = new G4MuBetheBlochModel();
131 em2->SetLowEnergyLimit( 1.0 * GeV );
132 em2->SetHighEnergyLimit( 100.0 * TeV );
133 AddEmModel( 3, em2, flucModel );
134 SetStepFunction( 0.2, 1.0 * mm );
135 ratio = electron_mass_c2 / mass;
136 isInitialised = true;
137 }
138}
139
140//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
141
143 G4cout << " Bether-Bloch model for E > 0.2 MeV, "
144 << "parametrisation of Bragg peak below, " << G4endl;
145 G4cout << " radiative corrections for E > 1 GeV" << G4endl;
146}
147
148//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition *, const G4ParticleDefinition *)
ExtMuIonisation(const G4String &name="ExtmuIoni")