SToGS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SToGS_PenelopeEMPhysicsList.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 //
27 
28 #include "ParisPenelopeEMPhysicsList.hh"
29 
30 #include "G4ProcessManager.hh"
31 #include "G4ProcessVector.hh"
32 #include "G4LossTableManager.hh"
33 #include "G4ParticleDefinition.hh"
34 #include "G4ParticleWithCuts.hh"
35 #include "G4ParticleTypes.hh"
36 #include "G4ParticleTable.hh"
37 #include "G4Material.hh"
38 #include "G4ios.hh"
39 
40 // gamma
41 #include "G4PhotoElectricEffect.hh"
42 #include "G4PenelopePhotoElectricModel.hh"
43 
44 #include "G4ComptonScattering.hh"
45 #include "G4PenelopeComptonModel.hh"
46 
47 #include "G4GammaConversion.hh"
48 #include "G4PenelopeGammaConversionModel.hh"
49 
50 #include "G4RayleighScattering.hh"
51 #include "G4PenelopeRayleighModel.hh"
52 
53 // e-
54 #include "G4eMultipleScattering.hh"
55 #include "G4UniversalFluctuation.hh"
56 
57 #include "G4eIonisation.hh"
58 #include "G4PenelopeIonisationModel.hh"
59 
60 #include "G4eBremsstrahlung.hh"
61 #include "G4PenelopeBremsstrahlungModel.hh"
62 
63 // e+ only
64 #include "G4eplusAnnihilation.hh"
65 #include "G4PenelopeAnnihilationModel.hh"
66 
67 
68 
69 ParisPenelopeEMPhysicsList::ParisPenelopeEMPhysicsList(const G4String& name): G4VPhysicsConstructor(name)
70 {
71 }
72 
74 {
75 }
76 
78 {
79  // gamma
80  G4Gamma::GammaDefinition();
81 
82  // electron
83  G4Electron::ElectronDefinition();
84  G4Positron::PositronDefinition();
85 
86  // pseudo-particles
87  G4Geantino::GeantinoDefinition();
88 }
89 
91 {
92  theParticleIterator->reset();
93  //
94  while( (*theParticleIterator)() ){
95  G4ParticleDefinition* particle = theParticleIterator->value();
96  G4ProcessManager* pmanager = particle->GetProcessManager();
97  G4String particleName = particle->GetParticleName();
98 
99  if (particleName == "gamma") {
100 
101  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
102  thePhotoElectricEffect->SetModel(new G4PenelopePhotoElectricModel());
103 
104  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
105  theComptonScattering->SetModel(new G4PenelopeComptonModel());
106 
107  G4GammaConversion* theGammaConversion = new G4GammaConversion();
108  theGammaConversion->SetModel(new G4PenelopeGammaConversionModel());
109 
110  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
111  theRayleigh->SetModel(new G4PenelopeRayleighModel());
112 
113  pmanager->AddDiscreteProcess(thePhotoElectricEffect);
114  pmanager->AddDiscreteProcess(theComptonScattering);
115  pmanager->AddDiscreteProcess(theGammaConversion);
116  pmanager->AddDiscreteProcess(theRayleigh);
117 
118  } else if (particleName == "e-") {
119 
120  G4eMultipleScattering* msc = new G4eMultipleScattering();
121 
122  // Ionisation
123  G4eIonisation* eIoni = new G4eIonisation();
124  eIoni->SetEmModel(new G4PenelopeIonisationModel());
125  eIoni->SetFluctModel(new G4UniversalFluctuation() );
126 
127  // Bremsstrahlung
128  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
129  eBrem->SetEmModel(new G4PenelopeBremsstrahlungModel());
130 
131  pmanager->AddProcess(msc ,-1, 1,1);
132  pmanager->AddProcess(eIoni ,-1, 2,2);
133  pmanager->AddProcess(eBrem ,-1,-1,3);
134 
135  } else if (particleName == "e+") {
136 
137  G4eMultipleScattering* msc = new G4eMultipleScattering();
138 
139  // Ionisation
140  G4eIonisation* eIoni = new G4eIonisation();
141  eIoni->SetEmModel(new G4PenelopeIonisationModel());
142  eIoni->SetFluctModel(new G4UniversalFluctuation());
143 
144  // Bremsstrahlung
145  G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
146  eBrem->SetEmModel(new G4PenelopeBremsstrahlungModel());
147 
148  //Annihilation
149  G4eplusAnnihilation* eAnni = new G4eplusAnnihilation();
150  eAnni->AddEmModel(0,new G4PenelopeAnnihilationModel());
151 
152  pmanager->AddProcess(msc ,-1, 1,1);
153  pmanager->AddProcess(eIoni ,-1, 2,2);
154  pmanager->AddProcess(eBrem ,-1,-1,3);
155  pmanager->AddProcess(eAnni , 0,-1,4);
156 
157  }
158  }
159 }
160 
161 
163 {
164  /*
165  if ( verboseLevel > 0 ) {
166  G4cout << " ParisPenelopeEMPhysicsList::SetCuts:";
167  G4cout << " CutLength : " << G4BestUnit(defaultCutValue,"Length") << G4endl;
168  }
169 
170  // set cut values for gamma at first and for e- second and next for e+,
171  // because some processes for e+/e- need cut values for gamma
172  //
173  SetCutValue(defaultCutValue, "gamma");
174  SetCutValue(defaultCutValue, "e-");
175  SetCutValue(defaultCutValue, "e+");
176 
177  if (verboseLevel>0) DumpCutValuesTable();
178 
179  */
180 }
181 
182 
183 
184 
void ConstructParticle()
these methods Construct particles