1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // $Id: PhysListEmPenelope.cc,v 1.7 2010/04/02 15:46:31 maire Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-04-beta-01 $ |
---|
29 | // |
---|
30 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
31 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
32 | |
---|
33 | #include "PhysListEmPenelope.hh" |
---|
34 | #include "G4ParticleDefinition.hh" |
---|
35 | #include "G4ProcessManager.hh" |
---|
36 | |
---|
37 | // gamma |
---|
38 | |
---|
39 | #include "G4PhotoElectricEffect.hh" |
---|
40 | #include "G4PenelopePhotoElectricModel.hh" |
---|
41 | |
---|
42 | #include "G4ComptonScattering.hh" |
---|
43 | #include "G4PenelopeComptonModel.hh" |
---|
44 | |
---|
45 | #include "G4GammaConversion.hh" |
---|
46 | #include "G4PenelopeGammaConversionModel.hh" |
---|
47 | |
---|
48 | #include "G4RayleighScattering.hh" |
---|
49 | #include "G4PenelopeRayleighModel.hh" |
---|
50 | |
---|
51 | // e- |
---|
52 | |
---|
53 | #include "G4eIonisation.hh" |
---|
54 | #include "G4PenelopeIonisationModel.hh" |
---|
55 | #include "G4UniversalFluctuation.hh" |
---|
56 | |
---|
57 | #include "G4eBremsstrahlung.hh" |
---|
58 | #include "G4PenelopeBremsstrahlungModel.hh" |
---|
59 | |
---|
60 | // e+ |
---|
61 | |
---|
62 | #include "G4eplusAnnihilation.hh" |
---|
63 | #include "G4PenelopeAnnihilationModel.hh" |
---|
64 | |
---|
65 | // mu |
---|
66 | |
---|
67 | #include "G4MuIonisation.hh" |
---|
68 | #include "G4MuBremsstrahlung.hh" |
---|
69 | #include "G4MuPairProduction.hh" |
---|
70 | |
---|
71 | // hadrons, ions |
---|
72 | |
---|
73 | #include "G4hIonisation.hh" |
---|
74 | #include "G4ionIonisation.hh" |
---|
75 | |
---|
76 | |
---|
77 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
78 | |
---|
79 | PhysListEmPenelope::PhysListEmPenelope(const G4String& name) |
---|
80 | : G4VPhysicsConstructor(name) |
---|
81 | { } |
---|
82 | |
---|
83 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
84 | |
---|
85 | PhysListEmPenelope::~PhysListEmPenelope() |
---|
86 | { } |
---|
87 | |
---|
88 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
89 | |
---|
90 | void PhysListEmPenelope::ConstructProcess() |
---|
91 | { |
---|
92 | // Add standard EM Processes |
---|
93 | |
---|
94 | theParticleIterator->reset(); |
---|
95 | while( (*theParticleIterator)() ){ |
---|
96 | G4ParticleDefinition* particle = theParticleIterator->value(); |
---|
97 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
---|
98 | G4String particleName = particle->GetParticleName(); |
---|
99 | |
---|
100 | //Applicability range for Penelope models |
---|
101 | //for higher energies, the Standard models are used |
---|
102 | G4double highEnergyLimit = 1*GeV; |
---|
103 | |
---|
104 | if (particleName == "gamma") { |
---|
105 | // gamma |
---|
106 | |
---|
107 | G4PhotoElectricEffect* phot = new G4PhotoElectricEffect(); |
---|
108 | G4PenelopePhotoElectricModel* |
---|
109 | photModel = new G4PenelopePhotoElectricModel(); |
---|
110 | photModel->SetHighEnergyLimit(highEnergyLimit); |
---|
111 | phot->AddEmModel(0, photModel); |
---|
112 | pmanager->AddDiscreteProcess(phot); |
---|
113 | |
---|
114 | G4ComptonScattering* compt = new G4ComptonScattering(); |
---|
115 | G4PenelopeComptonModel* |
---|
116 | comptModel = new G4PenelopeComptonModel(); |
---|
117 | comptModel->SetHighEnergyLimit(highEnergyLimit); |
---|
118 | compt->AddEmModel(0, comptModel); |
---|
119 | pmanager->AddDiscreteProcess(compt); |
---|
120 | |
---|
121 | G4GammaConversion* conv = new G4GammaConversion(); |
---|
122 | G4PenelopeGammaConversionModel* |
---|
123 | convModel = new G4PenelopeGammaConversionModel(); |
---|
124 | convModel->SetHighEnergyLimit(highEnergyLimit); |
---|
125 | conv->AddEmModel(0, convModel); |
---|
126 | pmanager->AddDiscreteProcess(conv); |
---|
127 | |
---|
128 | G4RayleighScattering* rayl = new G4RayleighScattering(); |
---|
129 | G4PenelopeRayleighModel* |
---|
130 | raylModel = new G4PenelopeRayleighModel(); |
---|
131 | raylModel->SetHighEnergyLimit(highEnergyLimit); |
---|
132 | rayl->AddEmModel(0, raylModel); |
---|
133 | pmanager->AddDiscreteProcess(rayl); |
---|
134 | |
---|
135 | } else if (particleName == "e-") { |
---|
136 | //electron |
---|
137 | |
---|
138 | G4eIonisation* eIoni = new G4eIonisation(); |
---|
139 | G4PenelopeIonisationModel* |
---|
140 | eIoniModel = new G4PenelopeIonisationModel(); |
---|
141 | eIoniModel->SetHighEnergyLimit(highEnergyLimit); |
---|
142 | eIoni->AddEmModel(0, eIoniModel, new G4UniversalFluctuation() ); |
---|
143 | pmanager->AddProcess(eIoni, -1,-1, 1); |
---|
144 | |
---|
145 | G4eBremsstrahlung* eBrem = new G4eBremsstrahlung(); |
---|
146 | G4PenelopeBremsstrahlungModel* |
---|
147 | eBremModel = new G4PenelopeBremsstrahlungModel(); |
---|
148 | eBremModel->SetHighEnergyLimit(highEnergyLimit); |
---|
149 | eBrem->AddEmModel(0, eBremModel); |
---|
150 | pmanager->AddProcess(eBrem, -1,-1, 2); |
---|
151 | |
---|
152 | } else if (particleName == "e+") { |
---|
153 | //positron |
---|
154 | G4eIonisation* eIoni = new G4eIonisation(); |
---|
155 | G4PenelopeIonisationModel* |
---|
156 | eIoniModel = new G4PenelopeIonisationModel(); |
---|
157 | eIoniModel->SetHighEnergyLimit(highEnergyLimit); |
---|
158 | eIoni->AddEmModel(0, eIoniModel, new G4UniversalFluctuation() ); |
---|
159 | pmanager->AddProcess(eIoni, -1,-1, 1); |
---|
160 | |
---|
161 | G4eBremsstrahlung* eBrem = new G4eBremsstrahlung(); |
---|
162 | G4PenelopeBremsstrahlungModel* |
---|
163 | eBremModel = new G4PenelopeBremsstrahlungModel(); |
---|
164 | eBremModel->SetHighEnergyLimit(highEnergyLimit); |
---|
165 | eBrem->AddEmModel(0, eBremModel); |
---|
166 | pmanager->AddProcess(eBrem, -1,-1, 2); |
---|
167 | |
---|
168 | G4eplusAnnihilation* eAnni = new G4eplusAnnihilation(); |
---|
169 | G4PenelopeAnnihilationModel* |
---|
170 | eAnniModel = new G4PenelopeAnnihilationModel(); |
---|
171 | eAnniModel->SetHighEnergyLimit(highEnergyLimit); |
---|
172 | eAnni->AddEmModel(0, eAnniModel); |
---|
173 | pmanager->AddProcess(eAnni, 0,-1, 3); |
---|
174 | |
---|
175 | } else if( particleName == "mu+" || |
---|
176 | particleName == "mu-" ) { |
---|
177 | //muon |
---|
178 | pmanager->AddProcess(new G4MuIonisation, -1,-1, 1); |
---|
179 | pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1, 2); |
---|
180 | pmanager->AddProcess(new G4MuPairProduction, -1,-1, 3); |
---|
181 | |
---|
182 | } else if( particleName == "alpha" || particleName == "GenericIon" ) { |
---|
183 | pmanager->AddProcess(new G4ionIonisation, -1,-1, 1); |
---|
184 | |
---|
185 | } else if ((!particle->IsShortLived()) && |
---|
186 | (particle->GetPDGCharge() != 0.0) && |
---|
187 | (particle->GetParticleName() != "chargedgeantino")) { |
---|
188 | //all others charged particles except geantino |
---|
189 | pmanager->AddProcess(new G4hIonisation, -1,-1, 1); |
---|
190 | } |
---|
191 | } |
---|
192 | } |
---|
193 | |
---|
194 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
195 | |
---|