Geant4  10.01
G4EmStandardPhysicsWVI.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: G4EmStandardPhysicsWVI.cc 78932 2014-02-04 12:30:52Z vnivanch $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4EmStandardPhysicsWVI
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 
46 #include "G4SystemOfUnits.hh"
47 #include "G4ParticleDefinition.hh"
48 #include "G4EmParameters.hh"
49 #include "G4LossTableManager.hh"
50 //#include "G4EmProcessOptions.hh"
51 
52 #include "G4ComptonScattering.hh"
53 #include "G4GammaConversion.hh"
54 #include "G4PhotoElectricEffect.hh"
55 
56 #include "G4eMultipleScattering.hh"
58 #include "G4hMultipleScattering.hh"
59 #include "G4CoulombScattering.hh"
60 //#include "G4eCoulombScatteringModel.hh"
61 #include "G4WentzelVIModel.hh"
62 //#include "G4UrbanMscModel.hh"
63 
68 
69 #include "G4eIonisation.hh"
70 #include "G4eBremsstrahlung.hh"
71 #include "G4eplusAnnihilation.hh"
72 #include "G4UAtomicDeexcitation.hh"
73 
74 #include "G4MuIonisation.hh"
75 #include "G4MuBremsstrahlung.hh"
76 #include "G4MuPairProduction.hh"
77 #include "G4hBremsstrahlung.hh"
78 #include "G4hPairProduction.hh"
79 
80 #include "G4hIonisation.hh"
81 #include "G4ionIonisation.hh"
82 #include "G4alphaIonisation.hh"
83 
84 #include "G4Gamma.hh"
85 #include "G4Electron.hh"
86 #include "G4Positron.hh"
87 #include "G4MuonPlus.hh"
88 #include "G4MuonMinus.hh"
89 #include "G4PionPlus.hh"
90 #include "G4PionMinus.hh"
91 #include "G4KaonPlus.hh"
92 #include "G4KaonMinus.hh"
93 #include "G4Proton.hh"
94 #include "G4AntiProton.hh"
95 #include "G4Deuteron.hh"
96 #include "G4Triton.hh"
97 #include "G4He3.hh"
98 #include "G4Alpha.hh"
99 #include "G4GenericIon.hh"
100 
101 #include "G4PhysicsListHelper.hh"
102 #include "G4BuilderType.hh"
103 
104 // factory
106 //
108 
109 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
110 
112  : G4VPhysicsConstructor("G4EmStandardWVI"), verbose(ver)
113 {
115  param->SetVerbose(verbose);
116  param->SetLatDisplacementBeyondSafety(true);
117  param->SetMuHadLateralDisplacement(false);
120 }
121 
122 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
123 
125 {}
126 
127 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
128 
130 {
131  // gamma
132  G4Gamma::Gamma();
133 
134  // leptons
139 
140  // mesons
145 
146  // barions
149 
150  // ions
153  G4He3::He3();
154  G4Alpha::Alpha();
156 }
157 
158 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
159 
161 {
162  if(verbose > 1) {
163  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
164  }
166 
167  // muon & hadron bremsstrahlung and pair production
176 
177  // muon & hadron multiple scattering
179  mumsc->SetEmModel(new G4WentzelVIModel());
181 
183  pimsc->SetEmModel(new G4WentzelVIModel());
185 
187  kmsc->SetEmModel(new G4WentzelVIModel());
189 
191  pmsc->SetEmModel(new G4WentzelVIModel());
193 
194  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
195 
196  // Add standard EM Processes
197  aParticleIterator->reset();
198  while( (*aParticleIterator)() ){
199  G4ParticleDefinition* particle = aParticleIterator->value();
200  G4String particleName = particle->GetParticleName();
201 
202  if (particleName == "gamma") {
203 
204  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
205  ph->RegisterProcess(new G4ComptonScattering(), particle);
206  ph->RegisterProcess(new G4GammaConversion(), particle);
207 
208  } else if (particleName == "e-") {
209 
211  msc->SetEmModel(new G4WentzelVIModel());
213 
214  ph->RegisterProcess(msc, particle);
215  ph->RegisterProcess(new G4eIonisation(), particle);
216  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
217  ph->RegisterProcess(ss, particle);
218 
219  } else if (particleName == "e+") {
220 
222  msc->SetEmModel(new G4WentzelVIModel());
224 
225  ph->RegisterProcess(msc, particle);
226  ph->RegisterProcess(new G4eIonisation(), particle);
227  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
228  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
229  ph->RegisterProcess(ss, particle);
230 
231  } else if (particleName == "mu+" ||
232  particleName == "mu-" ) {
233 
234  ph->RegisterProcess(mumsc, particle);
235  ph->RegisterProcess(new G4MuIonisation(), particle);
236  ph->RegisterProcess(mub, particle);
237  ph->RegisterProcess(mup, particle);
238  ph->RegisterProcess(muss, particle);
239 
240  } else if (particleName == "alpha" ||
241  particleName == "He3") {
242 
243  //ph->RegisterProcess(hmsc, particle);
244  ph->RegisterProcess(new G4hMultipleScattering(), particle);
245  ph->RegisterProcess(new G4ionIonisation(), particle);
246 
247  } else if (particleName == "GenericIon") {
248 
249  ph->RegisterProcess(hmsc, particle);
250  ph->RegisterProcess(new G4ionIonisation(), particle);
251 
252  } else if (particleName == "pi+" ||
253  particleName == "pi-" ) {
254 
255  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
256  ph->RegisterProcess(pimsc, particle);
257  ph->RegisterProcess(new G4hIonisation(), particle);
258  ph->RegisterProcess(pib, particle);
259  ph->RegisterProcess(pip, particle);
260  ph->RegisterProcess(piss, particle);
261 
262  } else if (particleName == "kaon+" ||
263  particleName == "kaon-" ) {
264 
265  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
266  ph->RegisterProcess(kmsc, particle);
267  ph->RegisterProcess(new G4hIonisation(), particle);
268  ph->RegisterProcess(kb, particle);
269  ph->RegisterProcess(kp, particle);
270  ph->RegisterProcess(kss, particle);
271 
272  } else if (particleName == "proton" ||
273  particleName == "anti_proton") {
274 
275  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
276  ph->RegisterProcess(pmsc, particle);
277  ph->RegisterProcess(new G4hIonisation(), particle);
278  ph->RegisterProcess(pb, particle);
279  ph->RegisterProcess(pp, particle);
280  ph->RegisterProcess(pss, particle);
281 
282  } else if (particleName == "B+" ||
283  particleName == "B-" ||
284  particleName == "D+" ||
285  particleName == "D-" ||
286  particleName == "Ds+" ||
287  particleName == "Ds-" ||
288  particleName == "anti_He3" ||
289  particleName == "anti_alpha" ||
290  particleName == "anti_deuteron" ||
291  particleName == "anti_lambda_c+" ||
292  particleName == "anti_omega-" ||
293  particleName == "anti_sigma_c+" ||
294  particleName == "anti_sigma_c++" ||
295  particleName == "anti_sigma+" ||
296  particleName == "anti_sigma-" ||
297  particleName == "anti_triton" ||
298  particleName == "anti_xi_c+" ||
299  particleName == "anti_xi-" ||
300  particleName == "deuteron" ||
301  particleName == "lambda_c+" ||
302  particleName == "omega-" ||
303  particleName == "sigma_c+" ||
304  particleName == "sigma_c++" ||
305  particleName == "sigma+" ||
306  particleName == "sigma-" ||
307  particleName == "tau+" ||
308  particleName == "tau-" ||
309  particleName == "triton" ||
310  particleName == "xi_c+" ||
311  particleName == "xi-" ) {
312 
313  ph->RegisterProcess(hmsc, particle);
314  ph->RegisterProcess(new G4hIonisation(), particle);
315  }
316  }
317 
318  // Deexcitation
319  //
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 SetLatDisplacementBeyondSafety(G4bool val)
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmStandardPhysicsWVI)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
void SetEmModel(G4VMscModel *, G4int index=1)
int G4int
Definition: G4Types.hh:78
const G4String & GetParticleName() const
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
const G4String & GetPhysicsName() const
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetMuHadLateralDisplacement(G4bool val)
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
void ActivateAngularGeneratorForIonisation(G4bool val)
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
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)