Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 99938 2016-10-12 08:06:52Z 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 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
125 
127  const G4String&)
128  : G4VPhysicsConstructor("G4EmLivermorePolarized"), verbose(ver)
129 {
131  param->SetDefaults();
132  param->SetVerbose(verbose);
133  param->SetMinEnergy(100*eV);
134  param->SetMaxEnergy(1*TeV);
135  param->SetNumberOfBinsPerDecade(20);
137  param->SetMuHadLateralDisplacement(true);
138  param->SetFluo(true);
140 }
141 
142 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
143 
145 {}
146 
147 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
148 
150 {
151  // gamma
152  G4Gamma::Gamma();
153 
154  // leptons
159 
160  // mesons
165 
166  // baryons
169 
170  // ions
173  G4He3::He3();
174  G4Alpha::Alpha();
176 }
177 
178 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
179 
181 {
182  if(verbose > 1) {
183  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
184  }
186 
187  // muon & hadron bremsstrahlung and pair production
196 
197  // muon & hadron multiple scattering
199  mumsc->AddEmModel(0, new G4WentzelVIModel());
201  pimsc->AddEmModel(0, new G4WentzelVIModel());
203  kmsc->AddEmModel(0, new G4WentzelVIModel());
205  pmsc->AddEmModel(0, new G4WentzelVIModel());
206  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
207 
208  // high energy limit for e+- scattering models
209  G4double highEnergyLimit = 100*MeV;
210 
211  // nuclear stopping
212  G4NuclearStopping* pnuc = new G4NuclearStopping();
213 
214  // Add Livermore EM Processes
215  auto myParticleIterator=GetParticleIterator();
216  myParticleIterator->reset();
217 
218  while( (*myParticleIterator)() ){
219 
220  G4ParticleDefinition* particle = myParticleIterator->value();
221  G4String particleName = particle->GetParticleName();
222 
223  //Applicability range for Livermore models
224  //for higher energies, the Standard models are used
225  G4double LivermoreHighEnergyLimit = GeV;
226 
227  if (particleName == "gamma") {
228 
229  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
231  theLivermorePhotoElectricModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
232  thePhotoElectricEffect->AddEmModel(0, theLivermorePhotoElectricModel);
233  ph->RegisterProcess(thePhotoElectricEffect, particle);
234 
235  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
236  G4LivermorePolarizedComptonModel* theLivermoreComptonModel = new G4LivermorePolarizedComptonModel();
237  theLivermoreComptonModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
238  theComptonScattering->AddEmModel(0, theLivermoreComptonModel);
239  ph->RegisterProcess(theComptonScattering, particle);
240 
241  G4GammaConversion* theGammaConversion = new G4GammaConversion();
243  theLivermoreGammaConversionModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
244  theGammaConversion->AddEmModel(0, theLivermoreGammaConversionModel);
245  ph->RegisterProcess(theGammaConversion, particle);
246 
247  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
249  theRayleighModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
250  theRayleigh->AddEmModel(0, theRayleighModel);
251  ph->RegisterProcess(theRayleigh, particle);
252 
253  } else if (particleName == "e-") {
254 
255  // multiple scattering
258  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
259  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
260  msc1->SetHighEnergyLimit(highEnergyLimit);
261  msc2->SetLowEnergyLimit(highEnergyLimit);
262  msc->AddEmModel(0, msc1);
263  msc->AddEmModel(0, msc2);
264 
267  ss->SetEmModel(ssm, 1);
268  ss->SetMinKinEnergy(highEnergyLimit);
269  ssm->SetLowEnergyLimit(highEnergyLimit);
270  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
271  ph->RegisterProcess(msc, particle);
272  ph->RegisterProcess(ss, particle);
273 
274  // Ionisation
275  G4eIonisation* eIoni = new G4eIonisation();
276  G4LivermoreIonisationModel* theIoniLivermore = new
278  theIoniLivermore->SetHighEnergyLimit(0.1*MeV);
279  eIoni->AddEmModel(0, theIoniLivermore, new G4UniversalFluctuation() );
280  eIoni->SetStepFunction(0.2, 100*um); //
281  ph->RegisterProcess(eIoni, particle);
282 
283  // Bremsstrahlung from standard
284  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
285  ph->RegisterProcess(eBrem, particle);
286 
287  } else if (particleName == "e+") {
288 
289  // multiple scattering
292  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
293  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
294  msc1->SetHighEnergyLimit(highEnergyLimit);
295  msc2->SetLowEnergyLimit(highEnergyLimit);
296  msc->AddEmModel(0, msc1);
297  msc->AddEmModel(0, msc2);
298 
301  ss->SetEmModel(ssm, 1);
302  ss->SetMinKinEnergy(highEnergyLimit);
303  ssm->SetLowEnergyLimit(highEnergyLimit);
304  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
305 
306  // Ionisation
307  G4eIonisation* eIoni = new G4eIonisation();
308  eIoni->SetStepFunction(0.2, 100*um);
309 
310  ph->RegisterProcess(msc, particle);
311  ph->RegisterProcess(eIoni, particle);
312  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
313  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
314  ph->RegisterProcess(ss, particle);
315 
316  } else if (particleName == "mu+" ||
317  particleName == "mu-" ) {
318 
319  G4MuIonisation* muIoni = new G4MuIonisation();
320  muIoni->SetStepFunction(0.2, 50*um);
321 
322  ph->RegisterProcess(mumsc, particle);
323  ph->RegisterProcess(muIoni, particle);
324  ph->RegisterProcess(mub, particle);
325  ph->RegisterProcess(mup, particle);
326  ph->RegisterProcess(new G4CoulombScattering(), particle);
327 
328  } else if (particleName == "alpha" ||
329  particleName == "He3" ) {
330 
331  // Identical to G4EmStandardPhysics_option3
332 
334  G4ionIonisation* ionIoni = new G4ionIonisation();
335  ionIoni->SetStepFunction(0.1, 10*um);
336 
337  ph->RegisterProcess(msc, particle);
338  ph->RegisterProcess(ionIoni, particle);
339  ph->RegisterProcess(pnuc, particle);
340 
341  } else if (particleName == "GenericIon") {
342 
343  // Identical to G4EmStandardPhysics_option3
344 
345  G4ionIonisation* ionIoni = new G4ionIonisation();
346  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
347  ionIoni->SetStepFunction(0.1, 1*um);
348 
349  ph->RegisterProcess(hmsc, particle);
350  ph->RegisterProcess(ionIoni, particle);
351  ph->RegisterProcess(pnuc, particle);
352 
353  } else if (particleName == "pi+" ||
354  particleName == "pi-" ) {
355 
356  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
357  G4hIonisation* hIoni = new G4hIonisation();
358  hIoni->SetStepFunction(0.2, 50*um);
359 
360  ph->RegisterProcess(pimsc, particle);
361  ph->RegisterProcess(hIoni, particle);
362  ph->RegisterProcess(pib, particle);
363  ph->RegisterProcess(pip, particle);
364  ph->RegisterProcess(new G4CoulombScattering(), particle);
365 
366  } else if (particleName == "kaon+" ||
367  particleName == "kaon-" ) {
368 
369  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
370  G4hIonisation* hIoni = new G4hIonisation();
371  hIoni->SetStepFunction(0.2, 50*um);
372 
373  ph->RegisterProcess(kmsc, particle);
374  ph->RegisterProcess(hIoni, particle);
375  ph->RegisterProcess(kb, particle);
376  ph->RegisterProcess(kp, particle);
377  ph->RegisterProcess(new G4CoulombScattering(), particle);
378 
379  } else if (particleName == "proton" ||
380  particleName == "anti_proton") {
381 
382  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
383  G4hIonisation* hIoni = new G4hIonisation();
384  hIoni->SetStepFunction(0.2, 50*um);
385 
386  ph->RegisterProcess(pmsc, particle);
387  ph->RegisterProcess(hIoni, particle);
388  ph->RegisterProcess(pb, particle);
389  ph->RegisterProcess(pp, particle);
390  ph->RegisterProcess(pnuc, particle);
391  ph->RegisterProcess(new G4CoulombScattering(), particle);
392 
393  } else if (particleName == "B+" ||
394  particleName == "B-" ||
395  particleName == "D+" ||
396  particleName == "D-" ||
397  particleName == "Ds+" ||
398  particleName == "Ds-" ||
399  particleName == "anti_He3" ||
400  particleName == "anti_alpha" ||
401  particleName == "anti_deuteron" ||
402  particleName == "anti_lambda_c+" ||
403  particleName == "anti_omega-" ||
404  particleName == "anti_sigma_c+" ||
405  particleName == "anti_sigma_c++" ||
406  particleName == "anti_sigma+" ||
407  particleName == "anti_sigma-" ||
408  particleName == "anti_triton" ||
409  particleName == "anti_xi_c+" ||
410  particleName == "anti_xi-" ||
411  particleName == "deuteron" ||
412  particleName == "lambda_c+" ||
413  particleName == "omega-" ||
414  particleName == "sigma_c+" ||
415  particleName == "sigma_c++" ||
416  particleName == "sigma+" ||
417  particleName == "sigma-" ||
418  particleName == "tau+" ||
419  particleName == "tau-" ||
420  particleName == "triton" ||
421  particleName == "xi_c+" ||
422  particleName == "xi-" ) {
423 
424  // Identical to G4EmStandardPhysics_option3
425 
426  ph->RegisterProcess(hmsc, particle);
427  ph->RegisterProcess(new G4hIonisation(), particle);
428  ph->RegisterProcess(pnuc, particle);
429  }
430  }
431 
432  // Nuclear stopping
433  pnuc->SetMaxKinEnergy(MeV);
434 
435  // Deexcitation
436  //
439 
441 }
442 
443 //....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()
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
int G4int
Definition: G4Types.hh:78
void SetMaxEnergy(G4double val)
void SetStepFunction(G4double v1, G4double v2, G4bool lock=true)
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:732
static constexpr double TeV
Definition: G4SIunits.hh:218
void AddEmModel(G4int, G4VEmModel *, G4VEmFluctuationModel *fluc=0, const G4Region *region=nullptr)
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
static constexpr double um
Definition: G4SIunits.hh:113
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
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 constexpr double eV
Definition: G4SIunits.hh:215
const G4String & GetPhysicsName() const
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:753
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=nullptr)
static G4Positron * Positron()
Definition: G4Positron.cc:94
void SetMaxKinEnergy(G4double e)
void SetMuHadLateralDisplacement(G4bool val)
void SetMinEnergy(G4double val)
static G4PhysicsListHelper * GetPhysicsListHelper()
G4EmLivermorePolarizedPhysics(G4int ver=1, const G4String &name="")
static G4EmParameters * Instance()
void SetEmModel(G4VEmModel *, G4int index=1)
static constexpr double GeV
Definition: G4SIunits.hh:217
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=nullptr)
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 constexpr double MeV
Definition: G4SIunits.hh:214
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
void SetMinKinEnergy(G4double e)
double G4double
Definition: G4Types.hh:76
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:739
static G4He3 * He3()
Definition: G4He3.cc:94
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetFluo(G4bool val)
void SetStepLimitType(G4MscStepLimitType val)
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)