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

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

update ti head

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