Geant4  10.02.p01
G4EmStandardPhysics.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 //
26 // $Id: G4EmStandardPhysics.cc 92821 2015-09-17 15:23:49Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4EmStandardPhysics
31 //
32 // Author: V.Ivanchenko 09.11.2005
33 //
34 // Modified:
35 // 05.12.2005 V.Ivanchenko add controlled verbosity
36 // 13.11.2006 V.Ivanchenko use G4hMultipleScattering
37 // 23.11.2006 V.Ivanchenko remove mscStepLimit option and improve cout
38 // 13.02.2007 V.Ivanchenko use G4hMultipleScattering for muons
39 // 13.02.2007 V.Ivanchenko set skin=0.0
40 // 21.04.2008 V.Ivanchenko add long-lived D and B mesons
41 //
42 //----------------------------------------------------------------------------
43 //
44 
45 #include "G4EmStandardPhysics.hh"
46 #include "G4SystemOfUnits.hh"
47 #include "G4ParticleDefinition.hh"
48 #include "G4EmParameters.hh"
49 #include "G4LossTableManager.hh"
50 
51 #include "G4ComptonScattering.hh"
52 #include "G4GammaConversion.hh"
53 #include "G4PhotoElectricEffect.hh"
54 
55 #include "G4eMultipleScattering.hh"
57 #include "G4hMultipleScattering.hh"
58 #include "G4CoulombScattering.hh"
60 #include "G4WentzelVIModel.hh"
61 #include "G4UrbanMscModel.hh"
62 
67 
68 #include "G4eIonisation.hh"
69 #include "G4eBremsstrahlung.hh"
70 #include "G4eplusAnnihilation.hh"
71 #include "G4UAtomicDeexcitation.hh"
72 
73 #include "G4MuIonisation.hh"
74 #include "G4MuBremsstrahlung.hh"
75 #include "G4MuPairProduction.hh"
76 #include "G4hBremsstrahlung.hh"
77 #include "G4hPairProduction.hh"
78 
79 #include "G4hIonisation.hh"
80 #include "G4ionIonisation.hh"
81 #include "G4alphaIonisation.hh"
82 
83 #include "G4Gamma.hh"
84 #include "G4Electron.hh"
85 #include "G4Positron.hh"
86 #include "G4MuonPlus.hh"
87 #include "G4MuonMinus.hh"
88 #include "G4PionPlus.hh"
89 #include "G4PionMinus.hh"
90 #include "G4KaonPlus.hh"
91 #include "G4KaonMinus.hh"
92 #include "G4Proton.hh"
93 #include "G4AntiProton.hh"
94 #include "G4Deuteron.hh"
95 #include "G4Triton.hh"
96 #include "G4He3.hh"
97 #include "G4Alpha.hh"
98 #include "G4GenericIon.hh"
99 
100 #include "G4PhysicsListHelper.hh"
101 #include "G4BuilderType.hh"
102 #include "G4EmModelActivator.hh"
103 
104 // factory
106 //
108 
109 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
110 
112  : G4VPhysicsConstructor("G4EmStandard"), verbose(ver)
113 {
115  param->SetDefaults();
116  param->SetVerbose(verbose);
118 }
119 
120 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
121 
123  : G4VPhysicsConstructor("G4EmStandard"), verbose(ver)
124 {
126  param->SetDefaults();
127  param->SetVerbose(verbose);
129 }
130 
131 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
132 
134 {}
135 
136 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
137 
139 {
140  // gamma
141  G4Gamma::Gamma();
142 
143  // leptons
148 
149  // mesons
154 
155  // barions
158 
159  // ions
162  G4He3::He3();
163  G4Alpha::Alpha();
165 
166  // dna
167  G4EmModelActivator mact;
168  mact.ConstructParticle();
169 }
170 
171 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
172 
174 {
175  if(verbose > 1) {
176  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
177  }
179 
180  // muon & hadron bremsstrahlung and pair production
189 
190  // muon & hadron multiple scattering
192  mumsc->AddEmModel(0, new G4WentzelVIModel());
194 
196  pimsc->AddEmModel(0, new G4WentzelVIModel());
198 
200  kmsc->AddEmModel(0, new G4WentzelVIModel());
202 
204  pmsc->AddEmModel(0, new G4WentzelVIModel());
206 
207  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
208 
209  // high energy limit for e+- scattering models
210  G4double highEnergyLimit = 100*MeV;
211 
212  // Add standard EM Processes
213  aParticleIterator->reset();
214  while( (*aParticleIterator)() ){
215  G4ParticleDefinition* particle = aParticleIterator->value();
216  G4String particleName = particle->GetParticleName();
217 
218  if (particleName == "gamma") {
219 
220  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
221  ph->RegisterProcess(new G4ComptonScattering(), particle);
222  ph->RegisterProcess(new G4GammaConversion(), particle);
223 
224  } else if (particleName == "e-") {
225 
227  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
228  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
229  msc1->SetNewDisplacementFlag(false);
230  msc1->SetHighEnergyLimit(highEnergyLimit);
231  msc2->SetLowEnergyLimit(highEnergyLimit);
232  msc->AddEmModel(0, msc1);
233  msc->AddEmModel(0, msc2);
234 
237  ss->SetEmModel(ssm, 1);
238  ss->SetMinKinEnergy(highEnergyLimit);
239  ssm->SetLowEnergyLimit(highEnergyLimit);
240  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
241 
242  ph->RegisterProcess(msc, particle);
243  ph->RegisterProcess(new G4eIonisation(), particle);
244  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
245  ph->RegisterProcess(ss, particle);
246 
247  } else if (particleName == "e+") {
248 
250  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
251  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
252  msc1->SetNewDisplacementFlag(false);
253  msc1->SetHighEnergyLimit(highEnergyLimit);
254  msc2->SetLowEnergyLimit(highEnergyLimit);
255  msc->AddEmModel(0, msc1);
256  msc->AddEmModel(0, msc2);
257 
260  ss->SetEmModel(ssm, 1);
261  ss->SetMinKinEnergy(highEnergyLimit);
262  ssm->SetLowEnergyLimit(highEnergyLimit);
263  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
264 
265  ph->RegisterProcess(msc, particle);
266  ph->RegisterProcess(new G4eIonisation(), particle);
267  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
268  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
269  ph->RegisterProcess(ss, particle);
270 
271  } else if (particleName == "mu+" ||
272  particleName == "mu-" ) {
273 
274  ph->RegisterProcess(mumsc, particle);
275  ph->RegisterProcess(new G4MuIonisation(), particle);
276  ph->RegisterProcess(mub, particle);
277  ph->RegisterProcess(mup, particle);
278  ph->RegisterProcess(muss, particle);
279 
280  } else if (particleName == "alpha" ||
281  particleName == "He3") {
282 
283  //ph->RegisterProcess(hmsc, particle);
284  ph->RegisterProcess(new G4hMultipleScattering(), particle);
285  ph->RegisterProcess(new G4ionIonisation(), particle);
286 
287  } else if (particleName == "GenericIon") {
288 
289  ph->RegisterProcess(hmsc, particle);
290  ph->RegisterProcess(new G4ionIonisation(), particle);
291 
292  } else if (particleName == "pi+" ||
293  particleName == "pi-" ) {
294 
295  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
296  ph->RegisterProcess(pimsc, particle);
297  ph->RegisterProcess(new G4hIonisation(), particle);
298  ph->RegisterProcess(pib, particle);
299  ph->RegisterProcess(pip, particle);
300  ph->RegisterProcess(piss, particle);
301 
302  } else if (particleName == "kaon+" ||
303  particleName == "kaon-" ) {
304 
305  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
306  ph->RegisterProcess(kmsc, particle);
307  ph->RegisterProcess(new G4hIonisation(), particle);
308  ph->RegisterProcess(kb, particle);
309  ph->RegisterProcess(kp, particle);
310  ph->RegisterProcess(kss, particle);
311 
312  } else if (particleName == "proton" ||
313  particleName == "anti_proton") {
314 
315  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
316  ph->RegisterProcess(pmsc, particle);
317  ph->RegisterProcess(new G4hIonisation(), particle);
318  ph->RegisterProcess(pb, particle);
319  ph->RegisterProcess(pp, particle);
320  ph->RegisterProcess(pss, particle);
321 
322  } else if (particleName == "B+" ||
323  particleName == "B-" ||
324  particleName == "D+" ||
325  particleName == "D-" ||
326  particleName == "Ds+" ||
327  particleName == "Ds-" ||
328  particleName == "anti_He3" ||
329  particleName == "anti_alpha" ||
330  particleName == "anti_deuteron" ||
331  particleName == "anti_lambda_c+" ||
332  particleName == "anti_omega-" ||
333  particleName == "anti_sigma_c+" ||
334  particleName == "anti_sigma_c++" ||
335  particleName == "anti_sigma+" ||
336  particleName == "anti_sigma-" ||
337  particleName == "anti_triton" ||
338  particleName == "anti_xi_c+" ||
339  particleName == "anti_xi-" ||
340  particleName == "deuteron" ||
341  particleName == "lambda_c+" ||
342  particleName == "omega-" ||
343  particleName == "sigma_c+" ||
344  particleName == "sigma_c++" ||
345  particleName == "sigma+" ||
346  particleName == "sigma-" ||
347  particleName == "tau+" ||
348  particleName == "tau-" ||
349  particleName == "triton" ||
350  particleName == "xi_c+" ||
351  particleName == "xi-" ) {
352 
353  ph->RegisterProcess(hmsc, particle);
354  ph->RegisterProcess(new G4hIonisation(), particle);
355  }
356  }
357 
358  // Deexcitation
359  //
362 
363  G4EmModelActivator mact;
364  mact.ConstructProcess();
365 }
366 
367 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
static const double MeV
Definition: G4SIunits.hh:211
void SetVerbose(G4int val)
static G4LossTableManager * Instance()
virtual void ConstructParticle()
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmStandardPhysics)
G4EmStandardPhysics(G4int ver=0)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
void SetNewDisplacementFlag(G4bool)
int G4int
Definition: G4Types.hh:78
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:725
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
#define aParticleIterator
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static G4Proton * Proton()
Definition: G4Proton.cc:93
virtual void ConstructProcess()
const G4String & GetPhysicsName() const
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:746
static G4Positron * Positron()
Definition: G4Positron.cc:94
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=0)
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4Electron * Electron()
Definition: G4Electron.cc:94
#define G4endl
Definition: G4ios.hh:61
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
void SetMinKinEnergy(G4double e)
double G4double
Definition: G4Types.hh:76
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:732
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)