Geant4  10.02
G4EmStandardPhysicsSS.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 78932 2014-02-04 12:30:52Z vnivanch $
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 "G4EmStandardPhysicsSS.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 #include "G4RayleighScattering.hh"
55 
56 #include "G4KleinNishinaModel.hh"
58 #include "G4eMultipleScattering.hh"
60 #include "G4hMultipleScattering.hh"
61 #include "G4CoulombScattering.hh"
63 #include "G4WentzelVIModel.hh"
64 #include "G4UrbanMscModel.hh"
65 
71 
72 #include "G4eIonisation.hh"
73 #include "G4eBremsstrahlung.hh"
74 #include "G4eplusAnnihilation.hh"
75 #include "G4UAtomicDeexcitation.hh"
76 
77 #include "G4MuIonisation.hh"
78 #include "G4MuBremsstrahlung.hh"
79 #include "G4MuPairProduction.hh"
80 #include "G4hBremsstrahlung.hh"
81 #include "G4hPairProduction.hh"
82 
83 #include "G4hIonisation.hh"
84 #include "G4ionIonisation.hh"
85 #include "G4alphaIonisation.hh"
86 
87 #include "G4Gamma.hh"
88 #include "G4Electron.hh"
89 #include "G4Positron.hh"
90 #include "G4MuonPlus.hh"
91 #include "G4MuonMinus.hh"
92 #include "G4PionPlus.hh"
93 #include "G4PionMinus.hh"
94 #include "G4KaonPlus.hh"
95 #include "G4KaonMinus.hh"
96 #include "G4Proton.hh"
97 #include "G4AntiProton.hh"
98 #include "G4Deuteron.hh"
99 #include "G4Triton.hh"
100 #include "G4He3.hh"
101 #include "G4Alpha.hh"
102 #include "G4GenericIon.hh"
103 
104 #include "G4PhysicsListHelper.hh"
105 #include "G4BuilderType.hh"
106 #include "G4EmModelActivator.hh"
107 
108 // factory
110 //
112 
113 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
114 
116  : G4VPhysicsConstructor("G4EmStandardSS"), verbose(ver)
117 {
119  param->SetDefaults();
120  param->SetVerbose(verbose);
121  param->SetLowestElectronEnergy(10*eV);
122  param->SetMscThetaLimit(0.0);
123  param->SetFluo(true);
124  param->SetAuger(true);
125  param->SetPixe(true);
127 }
128 
129 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
130 
132 {}
133 
134 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
135 
137 {
138  // gamma
139  G4Gamma::Gamma();
140 
141  // leptons
146 
147  // mesons
152 
153  // barions
156 
157  // ions
160  G4He3::He3();
161  G4Alpha::Alpha();
163 
164  // dna
165  G4EmModelActivator mact;
166  mact.ConstructParticle();
167 }
168 
169 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
170 
172 {
173  if(verbose > 1) {
174  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
175  }
177 
178  // muon & hadron bremsstrahlung and pair production
187 
188  // muon & hadron multiple scattering
193 
194  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
195 
196 
197  // Add standard EM Processes
198  aParticleIterator->reset();
199  while( (*aParticleIterator)() ){
200  G4ParticleDefinition* particle = aParticleIterator->value();
201  G4String particleName = particle->GetParticleName();
202 
203  if (particleName == "gamma") {
204 
206  cs->SetEmModel(new G4KleinNishinaModel(), 1);
207 
210 
211  ph->RegisterProcess(cs, particle);
212  ph->RegisterProcess(pee, particle);
213  ph->RegisterProcess(new G4GammaConversion(), particle);
214  ph->RegisterProcess(new G4RayleighScattering(), particle);
215 
216  } else if (particleName == "e-") {
217 
219  if(G4EmParameters::Instance()->UseMottCorrection()) {
221  }
222 
223  ph->RegisterProcess(new G4eIonisation(), particle);
224  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
225  ph->RegisterProcess(ss, particle);
226 
227  } else if (particleName == "e+") {
228 
230 
231  ph->RegisterProcess(new G4eIonisation(), particle);
232  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
233  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
234  ph->RegisterProcess(ss, particle);
235 
236  } else if (particleName == "mu+" ||
237  particleName == "mu-" ) {
238 
239  ph->RegisterProcess(new G4MuIonisation(), particle);
240  ph->RegisterProcess(mub, particle);
241  ph->RegisterProcess(mup, particle);
242  ph->RegisterProcess(muss, particle);
243 
244  } else if (particleName == "alpha" ||
245  particleName == "He3") {
246 
247  ph->RegisterProcess(new G4ionIonisation(), particle);
248  ph->RegisterProcess(new G4CoulombScattering(), particle);
249 
250  } else if (particleName == "GenericIon") {
251 
252  ph->RegisterProcess(new G4ionIonisation(), particle);
253  ph->RegisterProcess(new G4CoulombScattering(), particle);
254 
255  } else if (particleName == "pi+" ||
256  particleName == "pi-" ) {
257 
258  ph->RegisterProcess(new G4hIonisation(), particle);
259  ph->RegisterProcess(pib, particle);
260  ph->RegisterProcess(pip, particle);
261  ph->RegisterProcess(piss, particle);
262 
263  } else if (particleName == "kaon+" ||
264  particleName == "kaon-" ) {
265 
266  ph->RegisterProcess(new G4hIonisation(), particle);
267  ph->RegisterProcess(kb, particle);
268  ph->RegisterProcess(kp, particle);
269  ph->RegisterProcess(kss, particle);
270 
271  } else if (particleName == "proton" ||
272  particleName == "anti_proton") {
273 
274  ph->RegisterProcess(new G4hIonisation(), particle);
275  ph->RegisterProcess(pb, particle);
276  ph->RegisterProcess(pp, particle);
277  ph->RegisterProcess(pss, particle);
278 
279  } else if (particleName == "B+" ||
280  particleName == "B-" ||
281  particleName == "D+" ||
282  particleName == "D-" ||
283  particleName == "Ds+" ||
284  particleName == "Ds-" ||
285  particleName == "anti_He3" ||
286  particleName == "anti_alpha" ||
287  particleName == "anti_deuteron" ||
288  particleName == "anti_lambda_c+" ||
289  particleName == "anti_omega-" ||
290  particleName == "anti_sigma_c+" ||
291  particleName == "anti_sigma_c++" ||
292  particleName == "anti_sigma+" ||
293  particleName == "anti_sigma-" ||
294  particleName == "anti_triton" ||
295  particleName == "anti_xi_c+" ||
296  particleName == "anti_xi-" ||
297  particleName == "deuteron" ||
298  particleName == "lambda_c+" ||
299  particleName == "omega-" ||
300  particleName == "sigma_c+" ||
301  particleName == "sigma_c++" ||
302  particleName == "sigma+" ||
303  particleName == "sigma-" ||
304  particleName == "tau+" ||
305  particleName == "tau-" ||
306  particleName == "triton" ||
307  particleName == "xi_c+" ||
308  particleName == "xi-" ) {
309 
310  ph->RegisterProcess(hmsc, particle);
311  ph->RegisterProcess(new G4hIonisation(), particle);
312  }
313  }
314 
315  // Deexcitation
316  //
319 
320  G4EmModelActivator mact;
321  mact.ConstructProcess();
322 }
323 
324 //....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
void SetVerbose(G4int val)
static G4LossTableManager * Instance()
void SetLowestElectronEnergy(G4double val)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
void SetAuger(G4bool val)
int G4int
Definition: G4Types.hh:78
const G4String & GetParticleName() const
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
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmStandardPhysicsSS)
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
const G4String & GetPhysicsName() const
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static const double eV
Definition: G4SIunits.hh:212
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetPixe(G4bool val)
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 SetMscThetaLimit(G4double val)
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetFluo(G4bool val)