Geant4  10.02.p01
G4EmLivermorePolarizedPhysics.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: G4EmLivermorePolarizedPhysics.cc 92821 2015-09-17 15:23:49Z gcosmo $
27 
29 #include "G4ParticleDefinition.hh"
30 #include "G4SystemOfUnits.hh"
31 
32 // *** Processes and models
33 
34 // gamma
35 #include "G4PhotoElectricEffect.hh"
37 
38 #include "G4ComptonScattering.hh"
40 
41 #include "G4GammaConversion.hh"
43 
44 #include "G4RayleighScattering.hh"
46 
47 // e+-
48 #include "G4eMultipleScattering.hh"
50 
51 #include "G4eIonisation.hh"
53 
54 #include "G4eBremsstrahlung.hh"
56 
57 // e+
58 #include "G4eplusAnnihilation.hh"
59 
60 // mu+-
62 #include "G4MuIonisation.hh"
63 #include "G4MuBremsstrahlung.hh"
64 #include "G4MuPairProduction.hh"
65 
70 
71 // hadrons
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 "G4UrbanMscModel.hh"
86 #include "G4WentzelVIModel.hh"
88 #include "G4CoulombScattering.hh"
90 
91 // interfaces
92 #include "G4LossTableManager.hh"
93 #include "G4EmParameters.hh"
94 #include "G4UAtomicDeexcitation.hh"
95 
96 // particles
97 #include "G4Gamma.hh"
98 #include "G4Electron.hh"
99 #include "G4Positron.hh"
100 #include "G4MuonPlus.hh"
101 #include "G4MuonMinus.hh"
102 #include "G4PionPlus.hh"
103 #include "G4PionMinus.hh"
104 #include "G4KaonPlus.hh"
105 #include "G4KaonMinus.hh"
106 #include "G4Proton.hh"
107 #include "G4AntiProton.hh"
108 #include "G4Deuteron.hh"
109 #include "G4Triton.hh"
110 #include "G4He3.hh"
111 #include "G4Alpha.hh"
112 #include "G4GenericIon.hh"
113 
114 //
115 #include "G4PhysicsListHelper.hh"
116 #include "G4BuilderType.hh"
117 #include "G4EmModelActivator.hh"
118 
119 // factory
121 //
123 
124 
125 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
126 
128  : G4VPhysicsConstructor("G4EmLivermorePolarizedPhysics"), verbose(ver)
129 {
131  param->SetDefaults();
132  param->SetVerbose(verbose);
133  param->SetMinEnergy(100*eV);
134  param->SetMaxEnergy(10*TeV);
135  param->SetLowestElectronEnergy(100*eV);
136  param->SetNumberOfBinsPerDecade(20);
138  param->SetFluo(true);
140 }
141 
142 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
143 
145  : G4VPhysicsConstructor("G4EmLivermorePolarizedPhysics"), verbose(ver)
146 {
148  param->SetDefaults();
149  param->SetVerbose(verbose);
150  param->SetMinEnergy(100*eV);
151  param->SetMaxEnergy(10*TeV);
152  param->SetNumberOfBinsPerDecade(20);
154  param->SetFluo(true);
156 }
157 
158 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
159 
161 {}
162 
163 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
164 
166 {
167  // gamma
168  G4Gamma::Gamma();
169 
170  // leptons
175 
176  // mesons
181 
182  // baryons
185 
186  // ions
189  G4He3::He3();
190  G4Alpha::Alpha();
192 
193  // dna
194  G4EmModelActivator mact;
195  mact.ConstructParticle();
196 }
197 
198 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
199 
201 {
202  if(verbose > 1) {
203  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
204  }
206 
207  // muon & hadron bremsstrahlung and pair production
216 
217  // muon & hadron multiple scattering
219  mumsc->AddEmModel(0, new G4WentzelVIModel());
221  pimsc->AddEmModel(0, new G4WentzelVIModel());
223  kmsc->AddEmModel(0, new G4WentzelVIModel());
225  pmsc->AddEmModel(0, new G4WentzelVIModel());
226  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
227 
228  // high energy limit for e+- scattering models
229  G4double highEnergyLimit = 100*MeV;
230 
231  // nuclear stopping
232  G4NuclearStopping* pnuc = new G4NuclearStopping();
233 
234  // Add Livermore EM Processes
235  aParticleIterator->reset();
236 
237  while( (*aParticleIterator)() ){
238 
239  G4ParticleDefinition* particle = aParticleIterator->value();
240  G4String particleName = particle->GetParticleName();
241 
242  //Applicability range for Livermore models
243  //for higher energies, the Standard models are used
244  G4double LivermoreHighEnergyLimit = GeV;
245 
246  if (particleName == "gamma") {
247 
248  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
250  theLivermorePhotoElectricModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
251  thePhotoElectricEffect->AddEmModel(0, theLivermorePhotoElectricModel);
252  ph->RegisterProcess(thePhotoElectricEffect, particle);
253 
254  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
255  G4LivermorePolarizedComptonModel* theLivermoreComptonModel = new G4LivermorePolarizedComptonModel();
256  theLivermoreComptonModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
257  theComptonScattering->AddEmModel(0, theLivermoreComptonModel);
258  ph->RegisterProcess(theComptonScattering, particle);
259 
260  G4GammaConversion* theGammaConversion = new G4GammaConversion();
262  theLivermoreGammaConversionModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
263  theGammaConversion->AddEmModel(0, theLivermoreGammaConversionModel);
264  ph->RegisterProcess(theGammaConversion, particle);
265 
266  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
268  theRayleighModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
269  theRayleigh->AddEmModel(0, theRayleighModel);
270  ph->RegisterProcess(theRayleigh, particle);
271 
272  } else if (particleName == "e-") {
273 
274  // multiple scattering
277  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
278  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
279  msc1->SetHighEnergyLimit(highEnergyLimit);
280  msc2->SetLowEnergyLimit(highEnergyLimit);
281  msc->AddEmModel(0, msc1);
282  msc->AddEmModel(0, msc2);
283 
286  ss->SetEmModel(ssm, 1);
287  ss->SetMinKinEnergy(highEnergyLimit);
288  ssm->SetLowEnergyLimit(highEnergyLimit);
289  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
290  ph->RegisterProcess(msc, particle);
291  ph->RegisterProcess(ss, particle);
292 
293  // Ionisation
294  G4eIonisation* eIoni = new G4eIonisation();
295  G4LivermoreIonisationModel* theIoniLivermore = new
297  theIoniLivermore->SetHighEnergyLimit(0.1*MeV);
298  eIoni->AddEmModel(0, theIoniLivermore, new G4UniversalFluctuation() );
299  eIoni->SetStepFunction(0.2, 100*um); //
300  ph->RegisterProcess(eIoni, particle);
301 
302  // Bremsstrahlung from standard
303  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
304  ph->RegisterProcess(eBrem, particle);
305 
306  } else if (particleName == "e+") {
307 
308  // multiple scattering
311  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
312  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
313  msc1->SetHighEnergyLimit(highEnergyLimit);
314  msc2->SetLowEnergyLimit(highEnergyLimit);
315  msc->AddEmModel(0, msc1);
316  msc->AddEmModel(0, msc2);
317 
320  ss->SetEmModel(ssm, 1);
321  ss->SetMinKinEnergy(highEnergyLimit);
322  ssm->SetLowEnergyLimit(highEnergyLimit);
323  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
324 
325  // Ionisation
326  G4eIonisation* eIoni = new G4eIonisation();
327  eIoni->SetStepFunction(0.2, 100*um);
328 
329  ph->RegisterProcess(msc, particle);
330  ph->RegisterProcess(eIoni, particle);
331  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
332  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
333  ph->RegisterProcess(ss, particle);
334 
335  } else if (particleName == "mu+" ||
336  particleName == "mu-" ) {
337 
338  G4MuIonisation* muIoni = new G4MuIonisation();
339  muIoni->SetStepFunction(0.2, 50*um);
340 
341  ph->RegisterProcess(mumsc, particle);
342  ph->RegisterProcess(muIoni, particle);
343  ph->RegisterProcess(mub, particle);
344  ph->RegisterProcess(mup, particle);
345  ph->RegisterProcess(new G4CoulombScattering(), particle);
346 
347  } else if (particleName == "alpha" ||
348  particleName == "He3" ) {
349 
350  // Identical to G4EmStandardPhysics_option3
351 
353  G4ionIonisation* ionIoni = new G4ionIonisation();
354  ionIoni->SetStepFunction(0.1, 10*um);
355 
356  ph->RegisterProcess(msc, particle);
357  ph->RegisterProcess(ionIoni, particle);
358  ph->RegisterProcess(pnuc, particle);
359 
360  } else if (particleName == "GenericIon") {
361 
362  // Identical to G4EmStandardPhysics_option3
363 
364  G4ionIonisation* ionIoni = new G4ionIonisation();
365  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
366  ionIoni->SetStepFunction(0.1, 1*um);
367 
368  ph->RegisterProcess(hmsc, particle);
369  ph->RegisterProcess(ionIoni, particle);
370  ph->RegisterProcess(pnuc, particle);
371 
372  } else if (particleName == "pi+" ||
373  particleName == "pi-" ) {
374 
375  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
376  G4hIonisation* hIoni = new G4hIonisation();
377  hIoni->SetStepFunction(0.2, 50*um);
378 
379  ph->RegisterProcess(pimsc, particle);
380  ph->RegisterProcess(hIoni, particle);
381  ph->RegisterProcess(pib, particle);
382  ph->RegisterProcess(pip, particle);
383  ph->RegisterProcess(new G4CoulombScattering(), particle);
384 
385  } else if (particleName == "kaon+" ||
386  particleName == "kaon-" ) {
387 
388  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
389  G4hIonisation* hIoni = new G4hIonisation();
390  hIoni->SetStepFunction(0.2, 50*um);
391 
392  ph->RegisterProcess(kmsc, particle);
393  ph->RegisterProcess(hIoni, particle);
394  ph->RegisterProcess(kb, particle);
395  ph->RegisterProcess(kp, particle);
396  ph->RegisterProcess(new G4CoulombScattering(), particle);
397 
398  } else if (particleName == "proton" ||
399  particleName == "anti_proton") {
400 
401  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
402  G4hIonisation* hIoni = new G4hIonisation();
403  hIoni->SetStepFunction(0.2, 50*um);
404 
405  ph->RegisterProcess(pmsc, particle);
406  ph->RegisterProcess(hIoni, particle);
407  ph->RegisterProcess(pb, particle);
408  ph->RegisterProcess(pp, particle);
409  ph->RegisterProcess(pnuc, particle);
410  ph->RegisterProcess(new G4CoulombScattering(), particle);
411 
412  } else if (particleName == "B+" ||
413  particleName == "B-" ||
414  particleName == "D+" ||
415  particleName == "D-" ||
416  particleName == "Ds+" ||
417  particleName == "Ds-" ||
418  particleName == "anti_He3" ||
419  particleName == "anti_alpha" ||
420  particleName == "anti_deuteron" ||
421  particleName == "anti_lambda_c+" ||
422  particleName == "anti_omega-" ||
423  particleName == "anti_sigma_c+" ||
424  particleName == "anti_sigma_c++" ||
425  particleName == "anti_sigma+" ||
426  particleName == "anti_sigma-" ||
427  particleName == "anti_triton" ||
428  particleName == "anti_xi_c+" ||
429  particleName == "anti_xi-" ||
430  particleName == "deuteron" ||
431  particleName == "lambda_c+" ||
432  particleName == "omega-" ||
433  particleName == "sigma_c+" ||
434  particleName == "sigma_c++" ||
435  particleName == "sigma+" ||
436  particleName == "sigma-" ||
437  particleName == "tau+" ||
438  particleName == "tau-" ||
439  particleName == "triton" ||
440  particleName == "xi_c+" ||
441  particleName == "xi-" ) {
442 
443  // Identical to G4EmStandardPhysics_option3
444 
445  ph->RegisterProcess(hmsc, particle);
446  ph->RegisterProcess(new G4hIonisation(), particle);
447  ph->RegisterProcess(pnuc, particle);
448  }
449  }
450 
451  // Nuclear stopping
452  pnuc->SetMaxKinEnergy(MeV);
453 
454  // Deexcitation
455  //
458 
459  G4EmModelActivator mact;
460  mact.ConstructProcess();
461 }
462 
463 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmLivermorePolarizedPhysics)
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()
void SetLowestElectronEnergy(G4double val)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
void SetStepFunction(G4double v1, G4double v2)
int G4int
Definition: G4Types.hh:78
void SetMaxEnergy(G4double val)
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)
void SetNumberOfBinsPerDecade(G4int val)
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static G4Proton * Proton()
Definition: G4Proton.cc:93
static const double GeV
Definition: G4SIunits.hh:214
void AddEmModel(G4int, G4VEmModel *, G4VEmFluctuationModel *fluc=0, const G4Region *region=0)
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 const double eV
Definition: G4SIunits.hh:212
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetMaxKinEnergy(G4double e)
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=0)
void SetMinEnergy(G4double val)
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=0)
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4EmParameters * Instance()
void SetEmModel(G4VEmModel *, G4int index=1)
static const double um
Definition: G4SIunits.hh:112
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 const double TeV
Definition: G4SIunits.hh:215
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 *)
void SetFluo(G4bool val)
void SetStepLimitType(G4MscStepLimitType val)