ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4EmStandardPhysics_option4_channeling.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4EmStandardPhysics_option4_channeling.cc
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 //
27 //---------------------------------------------------------------------------
28 //
29 // ClassName: G4EmStandardPhysics_option4_channeling
30 //
31 // Author: V.Ivanchenko 28.09.2012 from Option3 physics constructor
32 //
33 // Modified:
34 //
35 //----------------------------------------------------------------------------
36 //
37 
39 
40 #include "G4SystemOfUnits.hh"
41 #include "G4ParticleDefinition.hh"
42 #include "G4LossTableManager.hh"
43 #include "G4EmParameters.hh"
44 
45 #include "G4ComptonScattering.hh"
46 #include "G4GammaConversion.hh"
47 #include "G4PhotoElectricEffect.hh"
48 #include "G4RayleighScattering.hh"
49 #include "G4PEEffectFluoModel.hh"
50 #include "G4KleinNishinaModel.hh"
51 #include "G4LowEPComptonModel.hh"
54 
55 #include "G4eMultipleScattering.hh"
57 #include "G4hMultipleScattering.hh"
58 #include "G4MscStepLimitType.hh"
59 #include "G4UrbanMscModel.hh"
60 #include "G4DummyModel.hh"
61 #include "G4WentzelVIModel.hh"
62 #include "G4CoulombScattering.hh"
64 
65 #include "G4eIonisation.hh"
66 #include "G4eBremsstrahlung.hh"
67 #include "G4Generator2BS.hh"
68 #include "G4Generator2BN.hh"
69 #include "G4SeltzerBergerModel.hh"
72 
73 #include "G4eplusAnnihilation.hh"
74 #include "G4UAtomicDeexcitation.hh"
75 
76 #include "G4MuIonisation.hh"
77 #include "G4MuBremsstrahlung.hh"
78 #include "G4MuPairProduction.hh"
79 #include "G4hBremsstrahlung.hh"
80 #include "G4hPairProduction.hh"
81 #include "G4ePairProduction.hh"
82 
87 
88 #include "G4hIonisation.hh"
89 #include "G4ionIonisation.hh"
91 #include "G4NuclearStopping.hh"
92 
93 #include "G4Gamma.hh"
94 #include "G4Electron.hh"
95 #include "G4Positron.hh"
96 #include "G4MuonPlus.hh"
97 #include "G4MuonMinus.hh"
98 #include "G4PionPlus.hh"
99 #include "G4PionMinus.hh"
100 #include "G4KaonPlus.hh"
101 #include "G4KaonMinus.hh"
102 #include "G4Proton.hh"
103 #include "G4AntiProton.hh"
104 #include "G4Deuteron.hh"
105 #include "G4Triton.hh"
106 #include "G4He3.hh"
107 #include "G4Alpha.hh"
108 #include "G4GenericIon.hh"
109 
110 #include "G4PhysicsListHelper.hh"
111 #include "G4BuilderType.hh"
112 #include "G4EmModelActivator.hh"
113 
114 // factory
116 //
118 
119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
120 
122  const G4String&)
123  : G4VPhysicsConstructor("G4EmStandard_opt4_channeling"), verbose(ver)
124 {
126  param->SetDefaults();
127  param->SetVerbose(verbose);
128  param->SetMinEnergy(100*eV);
129  param->SetMaxEnergy(10*TeV);
130  param->SetLowestElectronEnergy(10*eV);
131  param->SetNumberOfBinsPerDecade(20);
133  param->SetMscThetaLimit(0.0);
134  param->SetFluo(true);
135  param->SetAuger(true);
136  param->SetPixe(true);
138 }
139 
140 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
141 
143 {}
144 
145 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
146 
148 {
149  // gamma
150  G4Gamma::Gamma();
151 
152  // leptons
157 
158  // mesons
163 
164  // barions
167 
168  // ions
171  G4He3::He3();
172  G4Alpha::Alpha();
174 }
175 
176 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
177 
179 {
180  if(verbose > 1) {
181  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
182  }
184 
185  // muon & hadron bremsstrahlung and pair production
195 
196  // muon & hadron multiple scattering
201 
202  // energy limits for e+- scattering models
203  //G4double highEnergyLimit = 100*MeV;
204  // energy limits for e+- ionisation models
205  G4double penEnergyLimit = 1*MeV;
206 
207  // nuclear stopping
208  G4NuclearStopping* pnuc = new G4NuclearStopping();
209 
210  // Add standard EM Processes
211  auto myParticleIterator=GetParticleIterator();
212  myParticleIterator->reset();
213  while( (*myParticleIterator)() ){
214  G4ParticleDefinition* particle = myParticleIterator->value();
215  G4String particleName = particle->GetParticleName();
216 
217  if (particleName == "gamma") {
218 
219  // Photoelectric
221  G4VEmModel* theLivermorePEModel = new G4LivermorePhotoElectricModel();
222  pe->SetEmModel(theLivermorePEModel,1);
223  ph->RegisterProcess(pe, particle);
224 
225  // Compton scattering
227  cs->SetEmModel(new G4KleinNishinaModel(),1);
228  G4VEmModel* theLowEPComptonModel = new G4LowEPComptonModel();
229  theLowEPComptonModel->SetHighEnergyLimit(20*MeV);
230  cs->AddEmModel(0, theLowEPComptonModel);
231  ph->RegisterProcess(cs, particle);
232 
233  // Gamma conversion
235  G4VEmModel* thePenelopeGCModel = new G4PenelopeGammaConversionModel();
236  thePenelopeGCModel->SetHighEnergyLimit(1*GeV);
237  gc->SetEmModel(thePenelopeGCModel,1);
238  ph->RegisterProcess(gc, particle);
239 
240  // Rayleigh scattering
241  ph->RegisterProcess(new G4RayleighScattering(), particle);
242 
243  } else if (particleName == "e-") {
244 
245  // multiple scattering
248  ss->SetEmModel(ssm, 1);
249 
250  // ionisation
251  G4eIonisation* eIoni = new G4eIonisation();
252  eIoni->SetStepFunction(0.2, 100*um);
254  pen->SetHighEnergyLimit(penEnergyLimit);
255  eIoni->AddEmModel(0, pen, new G4UniversalFluctuation());
256 
257  // bremsstrahlung
258  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
263  brem->SetEmModel(br1,1);
264  brem->SetEmModel(br2,2);
265  br2->SetLowEnergyLimit(GeV);
266 
267  // register processes
268  ph->RegisterProcess(eIoni, particle);
269  ph->RegisterProcess(brem, particle);
270  ph->RegisterProcess(ee, particle);
271  ph->RegisterProcess(ss, particle);
272 
273  } else if (particleName == "e+") {
274 
275  // multiple scattering
278  ss->SetEmModel(ssm, 1);
279 
280  // ionisation
281  G4eIonisation* eIoni = new G4eIonisation();
282  eIoni->SetStepFunction(0.2, 100*um);
284  pen->SetHighEnergyLimit(penEnergyLimit);
285  eIoni->AddEmModel(0, pen, new G4UniversalFluctuation());
286 
287  // bremsstrahlung
288  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
293  brem->SetEmModel(br1,1);
294  brem->SetEmModel(br2,2);
295  br2->SetLowEnergyLimit(GeV);
296 
297  // register processes
298  ph->RegisterProcess(eIoni, particle);
299  ph->RegisterProcess(brem, particle);
300  ph->RegisterProcess(ee, particle);
301  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
302  ph->RegisterProcess(ss, particle);
303 
304  } else if (particleName == "mu+" ||
305  particleName == "mu-" ) {
306 
307  G4MuIonisation* muIoni = new G4MuIonisation();
308  muIoni->SetStepFunction(0.2, 50*um);
309 
310  ph->RegisterProcess(muIoni, particle);
311  ph->RegisterProcess(mub, particle);
312  ph->RegisterProcess(mup, particle);
313  ph->RegisterProcess(muss, particle);
314 
315  } else if (particleName == "alpha" ||
316  particleName == "He3") {
317 
318  G4ionIonisation* ionIoni = new G4ionIonisation();
319  ionIoni->SetStepFunction(0.1, 10*um);
320 
321  ph->RegisterProcess(new G4CoulombScattering(), particle);
322  ph->RegisterProcess(ionIoni, particle);
323  //ph->RegisterProcess(pnuc, particle);
324 
325  } else if (particleName == "GenericIon") {
326 
327  G4ionIonisation* ionIoni = new G4ionIonisation();
328  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
329  ionIoni->SetStepFunction(0.1, 1*um);
330 
331  ph->RegisterProcess(new G4CoulombScattering(), particle);
332  ph->RegisterProcess(ionIoni, particle);
333  //ph->RegisterProcess(pnuc, particle);
334 
335  } else if (particleName == "pi+" ||
336  particleName == "pi-" ) {
337 
338  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
339  G4hIonisation* hIoni = new G4hIonisation();
340  hIoni->SetStepFunction(0.2, 50*um);
341 
342  ph->RegisterProcess(hIoni, particle);
343  ph->RegisterProcess(pib, particle);
344  ph->RegisterProcess(pip, particle);
345  ph->RegisterProcess(piss, particle);
346 
347  } else if (particleName == "kaon+" ||
348  particleName == "kaon-" ) {
349 
350  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
351  G4hIonisation* hIoni = new G4hIonisation();
352  hIoni->SetStepFunction(0.2, 50*um);
353 
354  ph->RegisterProcess(hIoni, particle);
355  ph->RegisterProcess(kb, particle);
356  ph->RegisterProcess(kp, particle);
357  ph->RegisterProcess(kss, particle);
358 
359  } else if (particleName == "proton" ||
360  particleName == "anti_proton") {
361 
362  G4hIonisation* hIoni = new G4hIonisation();
363  hIoni->SetStepFunction(0.1, 20*um);
364 
365  ph->RegisterProcess(hIoni, particle);
366  ph->RegisterProcess(pb, particle);
367  ph->RegisterProcess(pp, particle);
368  ph->RegisterProcess(pss, particle);
369  //ph->RegisterProcess(pnuc, particle);
370 
371  } else if (particleName == "B+" ||
372  particleName == "B-" ||
373  particleName == "D+" ||
374  particleName == "D-" ||
375  particleName == "Ds+" ||
376  particleName == "Ds-" ||
377  particleName == "anti_He3" ||
378  particleName == "anti_alpha" ||
379  particleName == "anti_deuteron" ||
380  particleName == "anti_lambda_c+" ||
381  particleName == "anti_omega-" ||
382  particleName == "anti_sigma_c+" ||
383  particleName == "anti_sigma_c++" ||
384  particleName == "anti_sigma+" ||
385  particleName == "anti_sigma-" ||
386  particleName == "anti_triton" ||
387  particleName == "anti_xi_c+" ||
388  particleName == "anti_xi-" ||
389  particleName == "deuteron" ||
390  particleName == "lambda_c+" ||
391  particleName == "omega-" ||
392  particleName == "sigma_c+" ||
393  particleName == "sigma_c++" ||
394  particleName == "sigma+" ||
395  particleName == "sigma-" ||
396  particleName == "tau+" ||
397  particleName == "tau-" ||
398  particleName == "triton" ||
399  particleName == "xi_c+" ||
400  particleName == "xi-" ) {
401 
402  ph->RegisterProcess(new G4CoulombScattering(), particle);
403  ph->RegisterProcess(new G4hIonisation(), particle);
404  //ph->RegisterProcess(pnuc, particle);
405  }
406  }
407 
408  // Nuclear stopping
409  pnuc->SetMaxKinEnergy(MeV);
410 
411  // Deexcitation
414 
416 }
417 
418 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......