BOSS 6.6.4.p03
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.5 2012/05/29 09:03:55 mullrich Exp $
24// GEANT4 tag $Name: TrkExtAlg-00-00-58-p02 $
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
76
77#include "G4Electron.hh"
78#include "G4MuonPlus.hh"
79#include "G4MuonMinus.hh"
80#include "G4BraggModel.hh"
81#include "G4BetheBlochModel.hh"
82#include "G4MuBetheBlochModel.hh"
83#include "G4UniversalFluctuation.hh"
84#include "G4BohrFluctuations.hh"
85#include "G4UnitsTable.hh"
86
87//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
88
89using namespace std;
90
92 : G4VEnergyLossProcess(name),
93 theParticle(0),
94 theBaseParticle(0),
95 isInitialised(false)
96{
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
109//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
110
111void ExtMuIonisation::InitialiseEnergyLossProcess(const G4ParticleDefinition* part,
112 const G4ParticleDefinition* bpart)
113{
114 if(!isInitialised)
115 {
116 theParticle = part;
117 theBaseParticle = bpart;
118
119 mass = theParticle->GetPDGMass();
120 SetSecondaryParticle(G4Electron::Electron());
121
122 flucModel = new G4UniversalFluctuation();
123
124 G4VEmModel* em = new G4BraggModel();
125 em->SetLowEnergyLimit(0.1*keV);
126 em->SetHighEnergyLimit(0.2*MeV);
127 AddEmModel(1, em, flucModel);
128 G4VEmModel* em1 = new G4BetheBlochModel();
129 em1->SetLowEnergyLimit(0.2*MeV);
130 em1->SetHighEnergyLimit(1.0*GeV);
131 AddEmModel(2, em1, flucModel);
132 G4VEmModel* em2 = new G4MuBetheBlochModel();
133 em2->SetLowEnergyLimit(1.0*GeV);
134 em2->SetHighEnergyLimit(100.0*TeV);
135 AddEmModel(3, em2, flucModel);
136 SetStepFunction(0.2, 1.0*mm);
137 ratio = electron_mass_c2/mass;
138 isInitialised = true;
139 }
140}
141
142//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
143
145{
146 G4cout << " Bether-Bloch model for E > 0.2 MeV, "
147 << "parametrisation of Bragg peak below, "
148 << G4endl;
149 G4cout << " radiative corrections for E > 1 GeV" << G4endl;
150}
151
152//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition *, const G4ParticleDefinition *)
virtual ~ExtMuIonisation()
ExtMuIonisation(const G4String &name="ExtmuIoni")