Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4EmDNAPhysics.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: G4EmDNAPhysics.cc 73244 2013-08-22 13:12:17Z gcosmo $
27 
28 #include "G4EmDNAPhysics.hh"
29 
30 #include "G4SystemOfUnits.hh"
31 
33 
34 // *** Processes and models for Geant4-DNA
35 
36 #include "G4DNAElastic.hh"
39 
40 #include "G4DNAExcitation.hh"
41 #include "G4DNAAttachment.hh"
42 #include "G4DNAVibExcitation.hh"
43 #include "G4DNAIonisation.hh"
44 #include "G4DNAChargeDecrease.hh"
45 #include "G4DNAChargeIncrease.hh"
46 
47 // particles
48 
49 #include "G4Electron.hh"
50 #include "G4Proton.hh"
51 #include "G4GenericIon.hh"
52 
53 // Warning : the following is needed in order to use EM Physics builders
54 // e+
55 #include "G4Positron.hh"
56 #include "G4eMultipleScattering.hh"
57 #include "G4eIonisation.hh"
58 #include "G4eBremsstrahlung.hh"
59 #include "G4eplusAnnihilation.hh"
60 // gamma
61 #include "G4Gamma.hh"
62 #include "G4PhotoElectricEffect.hh"
64 #include "G4ComptonScattering.hh"
66 #include "G4GammaConversion.hh"
68 #include "G4RayleighScattering.hh"
70 // end of warning
71 
72 #include "G4LossTableManager.hh"
73 #include "G4UAtomicDeexcitation.hh"
74 #include "G4PhysicsListHelper.hh"
75 #include "G4BuilderType.hh"
76 
77 // factory
79 //
81 
82 
83 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
84 
86  : G4VPhysicsConstructor("G4EmDNAPhysics"), verbose(ver)
87 {
89 }
90 
91 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
92 
94  : G4VPhysicsConstructor("G4EmDNAPhysics"), verbose(ver)
95 {
97 }
98 
99 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
100 
102 {}
103 
104 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
105 
107 {
108 // bosons
109  G4Gamma::Gamma();
110 
111 // leptons
114 
115 // baryons
117 
119 
120  G4DNAGenericIonsManager * genericIonsManager;
121  genericIonsManager=G4DNAGenericIonsManager::Instance();
122  genericIonsManager->GetIon("alpha++");
123  genericIonsManager->GetIon("alpha+");
124  genericIonsManager->GetIon("helium");
125  genericIonsManager->GetIon("hydrogen");
126  genericIonsManager->GetIon("carbon");
127  genericIonsManager->GetIon("nitrogen");
128  genericIonsManager->GetIon("oxygen");
129  genericIonsManager->GetIon("iron");
130 
131 }
132 
133 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
134 
136 {
137  if(verbose > 1) {
138  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
139  }
141 
142  aParticleIterator->reset();
143  while( (*aParticleIterator)() )
144  {
145  G4ParticleDefinition* particle = aParticleIterator->value();
146  G4String particleName = particle->GetParticleName();
147 
148  if (particleName == "e-") {
149 
150  // *** Elastic scattering (two alternative models available) ***
151 
152  G4DNAElastic* theDNAElasticProcess = new G4DNAElastic("e-_G4DNAElastic");
153  theDNAElasticProcess->SetEmModel(new G4DNAChampionElasticModel());
154 
155  // or alternative model
156  //theDNAElasticProcess->SetEmModel(new G4DNAScreenedRutherfordElasticModel());
157 
158  ph->RegisterProcess(theDNAElasticProcess, particle);
159 
160  // *** Excitation ***
161  ph->RegisterProcess(new G4DNAExcitation("e-_G4DNAExcitation"), particle);
162 
163  // *** Ionisation ***
164  ph->RegisterProcess(new G4DNAIonisation("e-_G4DNAIonisation"), particle);
165 
166  // *** Vibrational excitation ***
167  ph->RegisterProcess(new G4DNAVibExcitation("e-_G4DNAVibExcitation"), particle);
168 
169  // *** Attachment ***
170  ph->RegisterProcess(new G4DNAAttachment("e-_G4DNAAttachment"), particle);
171 
172  } else if ( particleName == "proton" ) {
173  ph->RegisterProcess(new G4DNAExcitation("proton_G4DNAExcitation"), particle);
174  ph->RegisterProcess(new G4DNAIonisation("proton_G4DNAIonisation"), particle);
175  ph->RegisterProcess(new G4DNAChargeDecrease("proton_G4DNAChargeDecrease"), particle);
176 
177  } else if ( particleName == "hydrogen" ) {
178  ph->RegisterProcess(new G4DNAExcitation("hydrogen_G4DNAExcitation"), particle);
179  ph->RegisterProcess(new G4DNAIonisation("hydrogen_G4DNAIonisation"), particle);
180  ph->RegisterProcess(new G4DNAChargeIncrease("hydrogen_G4DNAChargeIncrease"), particle);
181 
182  } else if ( particleName == "alpha" ) {
183  ph->RegisterProcess(new G4DNAExcitation("alpha_G4DNAExcitation"), particle);
184  ph->RegisterProcess(new G4DNAIonisation("alpha_G4DNAIonisation"), particle);
185  ph->RegisterProcess(new G4DNAChargeDecrease("alpha_G4DNAChargeDecrease"), particle);
186 
187  } else if ( particleName == "alpha+" ) {
188  ph->RegisterProcess(new G4DNAExcitation("alpha+_G4DNAExcitation"), particle);
189  ph->RegisterProcess(new G4DNAIonisation("alpha+_G4DNAIonisation"), particle);
190  ph->RegisterProcess(new G4DNAChargeDecrease("alpha+_G4DNAChargeDecrease"), particle);
191  ph->RegisterProcess(new G4DNAChargeIncrease("alpha+_G4DNAChargeIncrease"), particle);
192 
193  } else if ( particleName == "helium" ) {
194  ph->RegisterProcess(new G4DNAExcitation("helium_G4DNAExcitation"), particle);
195  ph->RegisterProcess(new G4DNAIonisation("helium_G4DNAIonisation"), particle);
196  ph->RegisterProcess(new G4DNAChargeIncrease("helium_G4DNAChargeIncrease"), particle);
197 
198  // Extension to HZE proposed by Z. Francis
199 
200  } else if ( particleName == "carbon" ) {
201  ph->RegisterProcess(new G4DNAIonisation("carbon_G4DNAIonisation"), particle);
202 
203  } else if ( particleName == "nitrogen" ) {
204  ph->RegisterProcess(new G4DNAIonisation("nitrogen_G4DNAIonisation"), particle);
205 
206  } else if ( particleName == "oxygen" ) {
207  ph->RegisterProcess(new G4DNAIonisation("oxygen_G4DNAIonisation"), particle);
208 
209  } else if ( particleName == "iron" ) {
210  ph->RegisterProcess(new G4DNAIonisation("iron_G4DNAIonisation"), particle);
211 
212  }
213 
214  // Warning : the following particles and processes are needed by EM Physics builders
215  // They are taken from the default Livermore Physics list
216  // These particles are currently not handled by Geant4-DNA
217 
218  // e+
219 
220  else if (particleName == "e+") {
221 
222  // Identical to G4EmStandardPhysics_option3
223 
226  G4eIonisation* eIoni = new G4eIonisation();
227  eIoni->SetStepFunction(0.2, 100*um);
228 
229  ph->RegisterProcess(msc, particle);
230  ph->RegisterProcess(eIoni, particle);
231  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
232  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
233 
234  } else if (particleName == "gamma") {
235 
236  G4double LivermoreHighEnergyLimit = GeV;
237 
238  G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
239  G4LivermorePhotoElectricModel* theLivermorePhotoElectricModel =
241  theLivermorePhotoElectricModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
242  thePhotoElectricEffect->AddEmModel(0, theLivermorePhotoElectricModel);
243  ph->RegisterProcess(thePhotoElectricEffect, particle);
244 
245  G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
246  G4LivermoreComptonModel* theLivermoreComptonModel =
248  theLivermoreComptonModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
249  theComptonScattering->AddEmModel(0, theLivermoreComptonModel);
250  ph->RegisterProcess(theComptonScattering, particle);
251 
252  G4GammaConversion* theGammaConversion = new G4GammaConversion();
253  G4LivermoreGammaConversionModel* theLivermoreGammaConversionModel =
255  theLivermoreGammaConversionModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
256  theGammaConversion->AddEmModel(0, theLivermoreGammaConversionModel);
257  ph->RegisterProcess(theGammaConversion, particle);
258 
259  G4RayleighScattering* theRayleigh = new G4RayleighScattering();
260  G4LivermoreRayleighModel* theRayleighModel = new G4LivermoreRayleighModel();
261  theRayleighModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
262  theRayleigh->AddEmModel(0, theRayleighModel);
263  ph->RegisterProcess(theRayleigh, particle);
264  }
265 
266  // Warning : end of particles and processes are needed by EM Physics builders
267 
268  }
269 
270  // Deexcitation
271  //
274  de->SetFluo(true);
275 }
276 
277 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
virtual void ConstructParticle()
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
static G4LossTableManager * Instance()
virtual ~G4EmDNAPhysics()
void SetStepFunction(G4double v1, G4double v2)
G4EmDNAPhysics(G4int ver=1)
int G4int
Definition: G4Types.hh:78
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:683
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
G4_DECLARE_PHYSCONSTR_FACTORY(G4EmDNAPhysics)
#define aParticleIterator
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4Proton * Proton()
Definition: G4Proton.cc:93
const G4String & GetPhysicsName() const
static G4DNAGenericIonsManager * Instance(void)
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Positron * Positron()
Definition: G4Positron.cc:94
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=0)
static G4PhysicsListHelper * GetPhysicsListHelper()
virtual void ConstructProcess()
static G4Electron * Electron()
Definition: G4Electron.cc:94
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetStepLimitType(G4MscStepLimitType val)
G4ParticleDefinition * GetIon(const G4String &name)