source: trunk/source/physics_lists/builders/src/G4EmDNAPhysics.cc @ 1319

Last change on this file since 1319 was 1315, checked in by garnier, 14 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 8.9 KB
Line 
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,v 1.4 2010/06/02 17:21:29 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
28
29#include "G4EmDNAPhysics.hh"
30
31#include "G4ProcessManager.hh"
32#include "G4DNAGenericIonsManager.hh"
33
34// *** Processes and models for Geant4-DNA
35
36#include "G4DNAElastic.hh"
37#include "G4DNAChampionElasticModel.hh"
38#include "G4DNAScreenedRutherfordElasticModel.hh"
39
40#include "G4DNAExcitation.hh"
41#include "G4DNAEmfietzoglouExcitationModel.hh"
42#include "G4DNAMillerGreenExcitationModel.hh"
43#include "G4DNABornExcitationModel.hh"
44
45#include "G4DNAIonisation.hh"
46#include "G4DNABornIonisationModel.hh"
47#include "G4DNARuddIonisationModel.hh"
48
49#include "G4DNAChargeDecrease.hh"
50#include "G4DNADingfelderChargeDecreaseModel.hh"
51
52#include "G4DNAChargeIncrease.hh"
53#include "G4DNADingfelderChargeIncreaseModel.hh"
54
55// particles
56
57#include "G4Electron.hh"
58#include "G4Proton.hh"
59
60// Warning : the following is needed in order to use EM Physics builders
61// e+
62#include "G4Positron.hh"
63#include "G4eMultipleScattering.hh"
64#include "G4GoudsmitSaundersonMscModel.hh"
65#include "G4eIonisation.hh"
66#include "G4eBremsstrahlung.hh"
67#include "G4eplusAnnihilation.hh"
68// gamma
69#include "G4Gamma.hh"
70#include "G4PhotoElectricEffect.hh"
71#include "G4LivermorePhotoElectricModel.hh"
72#include "G4ComptonScattering.hh"
73#include "G4LivermoreComptonModel.hh"
74#include "G4GammaConversion.hh"
75#include "G4LivermoreGammaConversionModel.hh"
76#include "G4RayleighScattering.hh"
77#include "G4LivermoreRayleighModel.hh"
78// end of warning
79
80//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
81
82G4EmDNAPhysics::G4EmDNAPhysics(G4int ver)
83  : G4VPhysicsConstructor("G4EmDNAPhysics"), verbose(ver)
84{}
85
86//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
87
88G4EmDNAPhysics::G4EmDNAPhysics(G4int ver, const G4String&)
89  : G4VPhysicsConstructor("G4EmDNAPhysics"), verbose(ver)
90{}
91
92//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
93
94G4EmDNAPhysics::~G4EmDNAPhysics()
95{}
96
97#include "G4GenericIon.hh"
98
99//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
100
101void G4EmDNAPhysics::ConstructParticle()
102{
103// bosons
104  G4Gamma::Gamma();
105
106// leptons
107  G4Electron::Electron();
108  G4Positron::Positron();
109 
110// baryons
111  G4Proton::Proton();
112
113  G4GenericIon::GenericIonDefinition();
114
115  G4DNAGenericIonsManager * genericIonsManager;
116  genericIonsManager=G4DNAGenericIonsManager::Instance();
117  genericIonsManager->GetIon("alpha++");
118  genericIonsManager->GetIon("alpha+");
119  genericIonsManager->GetIon("helium");
120  genericIonsManager->GetIon("hydrogen");
121
122}
123
124//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
125
126void G4EmDNAPhysics::ConstructProcess()
127{
128  theParticleIterator->reset();
129  while( (*theParticleIterator)() )
130  {
131    G4ParticleDefinition* particle = theParticleIterator->value();
132    G4ProcessManager* pmanager = particle->GetProcessManager();
133    G4String particleName = particle->GetParticleName();
134
135    if (particleName == "e-") {
136
137      // *** Elastic scattering (two alternative models available) ***
138     
139      G4DNAElastic* theDNAElasticProcess = new G4DNAElastic();
140      theDNAElasticProcess->SetModel(new G4DNAScreenedRutherfordElasticModel());
141     
142      // or alternative model
143      // theDNAElasticProcess->SetModel(new G4DNAChampionElasticModel());     
144     
145      pmanager->AddDiscreteProcess(theDNAElasticProcess);
146
147      // *** Excitation ***
148      pmanager->AddDiscreteProcess(new G4DNAExcitation());
149
150      // *** Ionisation ***
151      pmanager->AddDiscreteProcess(new G4DNAIonisation());
152
153   
154    } else if ( particleName == "proton" ) {
155      pmanager->AddDiscreteProcess(new G4DNAExcitation());
156      pmanager->AddDiscreteProcess(new G4DNAIonisation());
157      pmanager->AddDiscreteProcess(new G4DNAChargeDecrease());
158
159    } else if ( particleName == "hydrogen" ) {
160      pmanager->AddDiscreteProcess(new G4DNAIonisation());
161      pmanager->AddDiscreteProcess(new G4DNAChargeIncrease());
162
163    } else if ( particleName == "alpha" ) {
164      pmanager->AddDiscreteProcess(new G4DNAExcitation());
165      pmanager->AddDiscreteProcess(new G4DNAIonisation());
166      pmanager->AddDiscreteProcess(new G4DNAChargeDecrease());
167
168    } else if ( particleName == "alpha+" ) {
169      pmanager->AddDiscreteProcess(new G4DNAExcitation());
170      pmanager->AddDiscreteProcess(new G4DNAIonisation());
171      pmanager->AddDiscreteProcess(new G4DNAChargeDecrease());
172      pmanager->AddDiscreteProcess(new G4DNAChargeIncrease());
173
174    } else if ( particleName == "helium" ) {
175      pmanager->AddDiscreteProcess(new G4DNAExcitation());
176      pmanager->AddDiscreteProcess(new G4DNAIonisation());
177      pmanager->AddDiscreteProcess(new G4DNAChargeIncrease());
178
179    }
180   
181    // Warning : the following particles and processes are needed by EM Physics builders
182    // They are taken from the default Livermore Physics list
183    // These particles are currently not handled by Geant4-DNA
184   
185      // e+
186     
187      else if (particleName == "e+") {
188
189      // Identical to G4EmStandardPhysics_option3
190     
191      G4eMultipleScattering* msc = new G4eMultipleScattering();
192      msc->SetStepLimitType(fUseDistanceToBoundary);
193      msc->AddEmModel(0, new G4GoudsmitSaundersonMscModel());
194      pmanager->AddProcess(msc,                   -1, 1, 1);
195
196      G4eIonisation* eIoni = new G4eIonisation();
197      eIoni->SetStepFunction(0.2, 100*um);     
198
199      pmanager->AddProcess(eIoni,                 -1, 2, 2);
200      pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);     
201      pmanager->AddProcess(new G4eplusAnnihilation,0,-1, 4);
202
203    }  else if (particleName == "gamma") {
204   
205      G4double LivermoreHighEnergyLimit = GeV;
206
207      G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
208      G4LivermorePhotoElectricModel* theLivermorePhotoElectricModel = 
209        new G4LivermorePhotoElectricModel();
210      theLivermorePhotoElectricModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
211      thePhotoElectricEffect->AddEmModel(0, theLivermorePhotoElectricModel);
212      pmanager->AddDiscreteProcess(thePhotoElectricEffect);
213
214      G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
215      G4LivermoreComptonModel* theLivermoreComptonModel = 
216        new G4LivermoreComptonModel();
217      theLivermoreComptonModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
218      theComptonScattering->AddEmModel(0, theLivermoreComptonModel);
219      pmanager->AddDiscreteProcess(theComptonScattering);
220
221      G4GammaConversion* theGammaConversion = new G4GammaConversion();
222      G4LivermoreGammaConversionModel* theLivermoreGammaConversionModel = 
223        new G4LivermoreGammaConversionModel();
224      theLivermoreGammaConversionModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
225      theGammaConversion->AddEmModel(0, theLivermoreGammaConversionModel);
226      pmanager->AddDiscreteProcess(theGammaConversion);
227
228      G4RayleighScattering* theRayleigh = new G4RayleighScattering();
229      G4LivermoreRayleighModel* theRayleighModel = new G4LivermoreRayleighModel();
230      theRayleighModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
231      theRayleigh->AddEmModel(0, theRayleighModel);
232      pmanager->AddDiscreteProcess(theRayleigh);
233    }
234   
235   // Warning : end of particles and processes are needed by EM Physics builders
236   
237  }
238}
239
240//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracBrowser for help on using the repository browser.