source: trunk/source/physics_lists/builders/src/G4EmLivermorePhysics.cc@ 1278

Last change on this file since 1278 was 1228, checked in by garnier, 16 years ago

update geant4.9.3 tag

File size: 12.2 KB
Line 
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// $Id: G4EmLivermorePhysics.cc,v 1.7 2009/11/24 12:53:22 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03 $
28
29#include "G4EmLivermorePhysics.hh"
30
31#include "G4ParticleDefinition.hh"
32#include "G4ProcessManager.hh"
33
34// *** Processes and models
35
36// gamma
37
38#include "G4PhotoElectricEffect.hh"
39#include "G4LivermorePhotoElectricModel.hh"
40
41#include "G4ComptonScattering.hh"
42#include "G4LivermoreComptonModel.hh"
43
44#include "G4GammaConversion.hh"
45#include "G4LivermoreGammaConversionModel.hh"
46
47#include "G4RayleighScattering.hh"
48#include "G4LivermoreRayleighModel.hh"
49
50// e-
51
52#include "G4eMultipleScattering.hh"
53#include "G4UniversalFluctuation.hh"
54
55#include "G4eIonisation.hh"
56#include "G4LivermoreIonisationModel.hh"
57
58#include "G4eBremsstrahlung.hh"
59#include "G4LivermoreBremsstrahlungModel.hh"
60
61// e+
62
63#include "G4eplusAnnihilation.hh"
64
65// mu
66
67#include "G4MuMultipleScattering.hh"
68#include "G4MuIonisation.hh"
69#include "G4MuBremsstrahlung.hh"
70#include "G4MuPairProduction.hh"
71
72// hadrons
73
74#include "G4hMultipleScattering.hh"
75#include "G4MscStepLimitType.hh"
76
77#include "G4hBremsstrahlung.hh"
78#include "G4hPairProduction.hh"
79
80#include "G4hIonisation.hh"
81#include "G4ionIonisation.hh"
82#include "G4IonParametrisedLossModel.hh"
83#include "G4NuclearStopping.hh"
84
85// msc models
86#include "G4UrbanMscModel93.hh"
87#include "G4WentzelVIModel.hh"
88#include "G4CoulombScattering.hh"
89
90//
91
92#include "G4LossTableManager.hh"
93#include "G4EmProcessOptions.hh"
94
95// particles
96
97#include "G4Gamma.hh"
98#include "G4Electron.hh"
99#include "G4Positron.hh"
100#include "G4MuonPlus.hh"
101#include "G4MuonMinus.hh"
102#include "G4PionPlus.hh"
103#include "G4PionMinus.hh"
104#include "G4KaonPlus.hh"
105#include "G4KaonMinus.hh"
106#include "G4Proton.hh"
107#include "G4AntiProton.hh"
108#include "G4Deuteron.hh"
109#include "G4Triton.hh"
110#include "G4He3.hh"
111#include "G4Alpha.hh"
112#include "G4GenericIon.hh"
113
114//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
115
116G4EmLivermorePhysics::G4EmLivermorePhysics(
117 G4int ver, const G4String& name)
118 : G4VPhysicsConstructor(name), verbose(ver)
119{
120 G4LossTableManager::Instance();
121}
122
123//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
124
125G4EmLivermorePhysics::~G4EmLivermorePhysics()
126{}
127
128//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
129
130void G4EmLivermorePhysics::ConstructParticle()
131{
132// gamma
133 G4Gamma::Gamma();
134
135// leptons
136 G4Electron::Electron();
137 G4Positron::Positron();
138 G4MuonPlus::MuonPlus();
139 G4MuonMinus::MuonMinus();
140
141// mesons
142 G4PionPlus::PionPlusDefinition();
143 G4PionMinus::PionMinusDefinition();
144 G4KaonPlus::KaonPlusDefinition();
145 G4KaonMinus::KaonMinusDefinition();
146
147// baryons
148 G4Proton::Proton();
149 G4AntiProton::AntiProton();
150
151// ions
152 G4Deuteron::Deuteron();
153 G4Triton::Triton();
154 G4He3::He3();
155 G4Alpha::Alpha();
156 G4GenericIon::GenericIonDefinition();
157}
158
159//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
160
161void G4EmLivermorePhysics::ConstructProcess()
162{
163 // Add Livermore EM Processes
164
165 theParticleIterator->reset();
166
167 while( (*theParticleIterator)() ){
168
169 G4ParticleDefinition* particle = theParticleIterator->value();
170 G4ProcessManager* pmanager = particle->GetProcessManager();
171 G4String particleName = particle->GetParticleName();
172
173 if(verbose > 1)
174 G4cout << "### " << GetPhysicsName() << " instantiates for "
175 << particleName << G4endl;
176
177 //Applicability range for Livermore models
178 //for higher energies, the Standard models are used
179 G4double LivermoreHighEnergyLimit = GeV;
180
181 if (particleName == "gamma") {
182
183 G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
184 G4LivermorePhotoElectricModel* theLivermorePhotoElectricModel =
185 new G4LivermorePhotoElectricModel();
186 theLivermorePhotoElectricModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
187 thePhotoElectricEffect->AddEmModel(0, theLivermorePhotoElectricModel);
188 pmanager->AddDiscreteProcess(thePhotoElectricEffect);
189
190 G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
191 G4LivermoreComptonModel* theLivermoreComptonModel =
192 new G4LivermoreComptonModel();
193 theLivermoreComptonModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
194 theComptonScattering->AddEmModel(0, theLivermoreComptonModel);
195 pmanager->AddDiscreteProcess(theComptonScattering);
196
197 G4GammaConversion* theGammaConversion = new G4GammaConversion();
198 G4LivermoreGammaConversionModel* theLivermoreGammaConversionModel =
199 new G4LivermoreGammaConversionModel();
200 theLivermoreGammaConversionModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
201 theGammaConversion->AddEmModel(0, theLivermoreGammaConversionModel);
202 pmanager->AddDiscreteProcess(theGammaConversion);
203
204 G4RayleighScattering* theRayleigh = new G4RayleighScattering();
205 G4LivermoreRayleighModel* theRayleighModel = new G4LivermoreRayleighModel();
206 theRayleighModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
207 theRayleigh->AddEmModel(0, theRayleighModel);
208 pmanager->AddDiscreteProcess(theRayleigh);
209
210 } else if (particleName == "e-") {
211
212 G4eMultipleScattering* msc = new G4eMultipleScattering();
213 msc->AddEmModel(0, new G4UrbanMscModel93());
214 msc->SetStepLimitType(fUseDistanceToBoundary);
215 pmanager->AddProcess(msc, -1, 1, 1);
216
217 // Ionisation
218 G4eIonisation* eIoni = new G4eIonisation();
219 G4LivermoreIonisationModel* theIoniLivermore = new
220 G4LivermoreIonisationModel();
221 theIoniLivermore->SetHighEnergyLimit(LivermoreHighEnergyLimit);
222 eIoni->AddEmModel(0, theIoniLivermore, new G4UniversalFluctuation() );
223 eIoni->SetStepFunction(0.2, 100*um); //
224 pmanager->AddProcess(eIoni, -1, 2, 2);
225
226 // Bremsstrahlung
227 G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
228 G4LivermoreBremsstrahlungModel* theBremLivermore = new
229 G4LivermoreBremsstrahlungModel();
230 theBremLivermore->SetHighEnergyLimit(LivermoreHighEnergyLimit);
231 eBrem->AddEmModel(0, theBremLivermore);
232 pmanager->AddProcess(eBrem, -1,-3, 3);
233
234 } else if (particleName == "e+") {
235
236 // Identical to G4EmStandardPhysics_option3
237
238 G4eMultipleScattering* msc = new G4eMultipleScattering();
239 msc->AddEmModel(0, new G4UrbanMscModel93());
240 msc->SetStepLimitType(fUseDistanceToBoundary);
241 pmanager->AddProcess(msc, -1, 1, 1);
242
243 G4eIonisation* eIoni = new G4eIonisation();
244 eIoni->SetStepFunction(0.2, 100*um);
245
246 pmanager->AddProcess(eIoni, -1, 2, 2);
247 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
248 pmanager->AddProcess(new G4eplusAnnihilation,0,-1, 4);
249
250 } else if (particleName == "mu+" ||
251 particleName == "mu-" ) {
252
253 // Identical to G4EmStandardPhysics_option3
254
255 G4MuMultipleScattering* msc = new G4MuMultipleScattering();
256 msc->AddEmModel(0, new G4WentzelVIModel());
257 pmanager->AddProcess(msc, -1, 1, 1);
258
259 G4MuIonisation* muIoni = new G4MuIonisation();
260 muIoni->SetStepFunction(0.2, 50*um);
261
262 pmanager->AddProcess(muIoni, -1, 2, 2);
263 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
264 pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
265 pmanager->AddDiscreteProcess(new G4CoulombScattering());
266
267 } else if (particleName == "GenericIon") {
268
269 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
270
271 G4ionIonisation* ionIoni = new G4ionIonisation();
272 ionIoni->SetEmModel(new G4IonParametrisedLossModel());
273 ionIoni->SetStepFunction(0.1, 10*um);
274 pmanager->AddProcess(ionIoni, -1, 2, 2);
275 pmanager->AddProcess(new G4NuclearStopping(), -1, 3,-1);
276
277 } else if (particleName == "alpha" ||
278 particleName == "He3" ) {
279
280 // Identical to G4EmStandardPhysics_option3
281
282 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
283
284 G4ionIonisation* ionIoni = new G4ionIonisation();
285 ionIoni->SetStepFunction(0.1, 20*um);
286 pmanager->AddProcess(ionIoni, -1, 2, 2);
287 pmanager->AddProcess(new G4NuclearStopping(), -1, 3,-1);
288
289 } else if (particleName == "pi+" ||
290 particleName == "pi-" ||
291 particleName == "kaon+" ||
292 particleName == "kaon-" ||
293 particleName == "proton" ) {
294
295 // Identical to G4EmStandardPhysics_option3
296
297 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
298
299 G4hIonisation* hIoni = new G4hIonisation();
300 hIoni->SetStepFunction(0.2, 50*um);
301
302 pmanager->AddProcess(hIoni, -1, 2, 2);
303 pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3);
304 pmanager->AddProcess(new G4hPairProduction, -1,-4, 4);
305
306 } else if (particleName == "B+" ||
307 particleName == "B-" ||
308 particleName == "D+" ||
309 particleName == "D-" ||
310 particleName == "Ds+" ||
311 particleName == "Ds-" ||
312 particleName == "anti_lambda_c+" ||
313 particleName == "anti_omega-" ||
314 particleName == "anti_proton" ||
315 particleName == "anti_sigma_c+" ||
316 particleName == "anti_sigma_c++" ||
317 particleName == "anti_sigma+" ||
318 particleName == "anti_sigma-" ||
319 particleName == "anti_xi_c+" ||
320 particleName == "anti_xi-" ||
321 particleName == "deuteron" ||
322 particleName == "lambda_c+" ||
323 particleName == "omega-" ||
324 particleName == "sigma_c+" ||
325 particleName == "sigma_c++" ||
326 particleName == "sigma+" ||
327 particleName == "sigma-" ||
328 particleName == "tau+" ||
329 particleName == "tau-" ||
330 particleName == "triton" ||
331 particleName == "xi_c+" ||
332 particleName == "xi-" ) {
333
334 // Identical to G4EmStandardPhysics_option3
335
336 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
337 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
338
339 }
340 }
341
342 // Em options
343 //
344 G4EmProcessOptions opt;
345 opt.SetVerbose(verbose);
346
347 // Multiple Coulomb scattering
348 //
349 //opt.SetMscStepLimitation(fUseDistanceToBoundary);
350 //opt.SetMscRangeFactor(0.02);
351
352 // Physics tables
353 //
354
355 opt.SetMinEnergy(100*eV);
356 opt.SetMaxEnergy(10*TeV);
357 opt.SetDEDXBinning(220);
358 opt.SetLambdaBinning(220);
359
360 //opt.SetSplineFlag(true);
361 opt.SetPolarAngleLimit(0.2);
362
363 // Ionization
364 //
365 //opt.SetSubCutoff(true);
366}
367
368//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracBrowser for help on using the repository browser.