Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
exrdmPhysListEmLowEnergy.cc
Go to the documentation of this file.
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 //
28 //
29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
30 
32 
33 #include "G4ParticleDefinition.hh"
34 #include "G4ProcessManager.hh"
35 
36 // gamma
37 #include "G4PhotoElectricEffect.hh"
39 
40 #include "G4ComptonScattering.hh"
42 
43 #include "G4GammaConversion.hh"
45 
46 #include "G4RayleighScattering.hh"
48 
49 
50 // e-
51 #include "G4eMultipleScattering.hh"
53 
54 #include "G4eIonisation.hh"
56 
57 #include "G4eBremsstrahlung.hh"
59 
60 // e+
61 #include "G4eplusAnnihilation.hh"
62 
63 // mu
64 
66 #include "G4MuIonisation.hh"
67 #include "G4MuBremsstrahlung.hh"
68 #include "G4MuPairProduction.hh"
69 
70 // hadrons
71 
72 #include "G4hMultipleScattering.hh"
73 #include "G4MscStepLimitType.hh"
74 
75 #include "G4hBremsstrahlung.hh"
76 #include "G4hPairProduction.hh"
77 
78 #include "G4hIonisation.hh"
79 #include "G4ionIonisation.hh"
80 #include "G4alphaIonisation.hh"
82 #include "G4NuclearStopping.hh"
83 
84 // msc models
85 #include "G4UrbanMscModel93.hh"
86 #include "G4WentzelVIModel.hh"
88 #include "G4CoulombScattering.hh"
89 
90 #include "G4SystemOfUnits.hh"
91 
92 
93 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
94 
96  : G4VPhysicsConstructor(name)
97 {}
98 
99 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
100 
102 {}
103 
104 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
105 
107 {
108  // Add EM Processes from G4EmLivermorePhysics builder
109 
111  while( (*theParticleIterator)() ){
113  G4ProcessManager* pmanager = particle->GetProcessManager();
114  G4String particleName = particle->GetParticleName();
115 
116  G4double LivermoreHighEnergyLimit = GeV;
117 
118  if (particleName == "gamma") {
119 
120  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
121  G4LivermorePhotoElectricModel* theLivermorePhotoElectricModel =
123  theLivermorePhotoElectricModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
124  thePhotoElectricEffect->AddEmModel(0, theLivermorePhotoElectricModel);
125  pmanager->AddDiscreteProcess(thePhotoElectricEffect);
126 
127  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
128  G4LivermoreComptonModel* theLivermoreComptonModel =
130  theLivermoreComptonModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
131  theComptonScattering->AddEmModel(0, theLivermoreComptonModel);
132  pmanager->AddDiscreteProcess(theComptonScattering);
133 
134  G4GammaConversion* theGammaConversion = new G4GammaConversion();
135  G4LivermoreGammaConversionModel* theLivermoreGammaConversionModel =
137  theLivermoreGammaConversionModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
138  theGammaConversion->AddEmModel(0, theLivermoreGammaConversionModel);
139  pmanager->AddDiscreteProcess(theGammaConversion);
140 
141  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
142  G4LivermoreRayleighModel* theRayleighModel = new G4LivermoreRayleighModel();
143  theRayleighModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
144  theRayleigh->AddEmModel(0, theRayleighModel);
145  pmanager->AddDiscreteProcess(theRayleigh);
146 
147  } else if (particleName == "e-") {
148 
150  //msc->AddEmModel(0, new G4UrbanMscModel93());
153  pmanager->AddProcess(msc, -1, 1, 1);
154 
155  // Ionisation
156  G4eIonisation* eIoni = new G4eIonisation();
157  G4LivermoreIonisationModel* theIoniLivermore = new
159  theIoniLivermore->SetHighEnergyLimit(1*MeV);
160  eIoni->AddEmModel(0, theIoniLivermore, new G4UniversalFluctuation() );
161  eIoni->SetStepFunction(0.2, 100*um); //
162  pmanager->AddProcess(eIoni, -1, 2, 2);
163 
164  // Bremsstrahlung
165  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
166  G4LivermoreBremsstrahlungModel* theBremLivermore = new
168  theBremLivermore->SetHighEnergyLimit(LivermoreHighEnergyLimit);
169  eBrem->AddEmModel(0, theBremLivermore);
170  pmanager->AddProcess(eBrem, -1,-3, 3);
171 
172  } else if (particleName == "e+") {
173 
174  // Identical to G4EmStandardPhysics_option3
175 
177  //msc->AddEmModel(0, new G4UrbanMscModel93());
180  pmanager->AddProcess(msc, -1, 1, 1);
181 
182  G4eIonisation* eIoni = new G4eIonisation();
183  eIoni->SetStepFunction(0.2, 100*um);
184 
185  pmanager->AddProcess(eIoni, -1, 2, 2);
186  pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
187  pmanager->AddProcess(new G4eplusAnnihilation,0,-1, 4);
188 
189 
190  } else if( particleName == "mu+" ||
191  particleName == "mu-" ) {
192 
193  // Identical to G4EmStandardPhysics_option3
194 
196  msc->AddEmModel(0, new G4WentzelVIModel());
197  pmanager->AddProcess(msc, -1, 1, 1);
198 
199  G4MuIonisation* muIoni = new G4MuIonisation();
200  muIoni->SetStepFunction(0.2, 50*um);
201 
202  pmanager->AddProcess(muIoni, -1, 2, 2);
203  pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
204  pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
205  pmanager->AddDiscreteProcess(new G4CoulombScattering());
206 
207  } else if (particleName == "GenericIon") {
208 
209  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
210 
211  G4ionIonisation* ionIoni = new G4ionIonisation();
212  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
213  ionIoni->SetStepFunction(0.1, 10*um);
214  pmanager->AddProcess(ionIoni, -1, 2, 2);
215  pmanager->AddProcess(new G4NuclearStopping(), -1, 3,-1);
216 
217  } else if (particleName == "alpha" ||
218  particleName == "He3" ) {
219 
220  // Identical to G4EmStandardPhysics_option3
221 
222  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
223 
224  G4ionIonisation* ionIoni = new G4ionIonisation();
225  ionIoni->SetStepFunction(0.1, 20*um);
226  pmanager->AddProcess(ionIoni, -1, 2, 2);
227  pmanager->AddProcess(new G4NuclearStopping(), -1, 3,-1);
228 
229  } else if (particleName == "pi+" ||
230  particleName == "pi-" ||
231  particleName == "kaon+" ||
232  particleName == "kaon-" ||
233  particleName == "proton" ) {
234 
235  // Identical to G4EmStandardPhysics_option3
236 
237  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
238 
239  G4hIonisation* hIoni = new G4hIonisation();
240  hIoni->SetStepFunction(0.2, 50*um);
241 
242  pmanager->AddProcess(hIoni, -1, 2, 2);
243  pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3);
244  pmanager->AddProcess(new G4hPairProduction, -1,-4, 4);
245  }
246  }
247 }
248 
249 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
250