source: trunk/source/physics_lists/builders/src/G4EmStandardPhysics_option2.cc@ 827

Last change on this file since 827 was 825, checked in by garnier, 17 years ago

import all except CVS

File size: 7.5 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: G4EmStandardPhysics_option2.cc,v 1.3 2007/10/02 11:18:02 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-01-patch-02 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName: G4EmStandardPhysics_option2
32//
33// Author: V.Ivanchenko 09.11.2005
34//
35// Modified:
36// 19.12.2005 V.Ivanchenko rename 71 -> 72
37// 15.06.2006 V.Ivanchenko use this class as a constructor of fast EM physics
38// 13.11.2006 V.Ivanchenko use G4hMultipleScattering
39// 14.11.2006 V.Ivanchenko use sub-cutoff option for all particles
40// 13.02.2007 V.Ivanchenko use default msc
41// 15.05.2007 V.Ivanchenko rename to _option2
42//
43//----------------------------------------------------------------------------
44//
45
46#include "G4EmStandardPhysics_option2.hh"
47#include "G4ParticleDefinition.hh"
48#include "G4ProcessManager.hh"
49#include "G4LossTableManager.hh"
50#include "G4EmProcessOptions.hh"
51
52#include "G4ComptonScattering.hh"
53#include "G4GammaConversion.hh"
54#include "G4PhotoElectricEffect.hh"
55
56#include "G4MultipleScattering.hh"
57#include "G4hMultipleScattering.hh"
58
59#include "G4eIonisation.hh"
60#include "G4eBremsstrahlung.hh"
61#include "G4eplusAnnihilation.hh"
62
63#include "G4MuIonisation.hh"
64#include "G4MuBremsstrahlung.hh"
65#include "G4MuPairProduction.hh"
66
67#include "G4hIonisation.hh"
68#include "G4ionIonisation.hh"
69
70#include "G4Gamma.hh"
71#include "G4Electron.hh"
72#include "G4Positron.hh"
73#include "G4MuonPlus.hh"
74#include "G4MuonMinus.hh"
75#include "G4PionPlus.hh"
76#include "G4PionMinus.hh"
77#include "G4KaonPlus.hh"
78#include "G4KaonMinus.hh"
79#include "G4Proton.hh"
80#include "G4AntiProton.hh"
81#include "G4Deuteron.hh"
82#include "G4Triton.hh"
83#include "G4He3.hh"
84#include "G4Alpha.hh"
85#include "G4GenericIon.hh"
86
87//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
88
89G4EmStandardPhysics_option2::G4EmStandardPhysics_option2(
90 G4int ver, const G4String& name)
91 : G4VPhysicsConstructor(name), verbose(ver)
92{
93 G4LossTableManager::Instance();
94}
95
96//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
97
98G4EmStandardPhysics_option2::~G4EmStandardPhysics_option2()
99{}
100
101//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
102
103void G4EmStandardPhysics_option2::ConstructParticle()
104{
105// gamma
106 G4Gamma::Gamma();
107
108// leptons
109 G4Electron::Electron();
110 G4Positron::Positron();
111 G4MuonPlus::MuonPlus();
112 G4MuonMinus::MuonMinus();
113
114// mesons
115 G4PionPlus::PionPlusDefinition();
116 G4PionMinus::PionMinusDefinition();
117 G4KaonPlus::KaonPlusDefinition();
118 G4KaonMinus::KaonMinusDefinition();
119
120// barions
121 G4Proton::Proton();
122 G4AntiProton::AntiProton();
123
124// ions
125 G4Deuteron::Deuteron();
126 G4Triton::Triton();
127 G4He3::He3();
128 G4Alpha::Alpha();
129 G4GenericIon::GenericIonDefinition();
130}
131
132//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
133
134void G4EmStandardPhysics_option2::ConstructProcess()
135{
136 // Add standard EM Processes
137 G4MultipleScattering* msc = 0;
138
139 theParticleIterator->reset();
140 while( (*theParticleIterator)() ){
141 G4ParticleDefinition* particle = theParticleIterator->value();
142 G4ProcessManager* pmanager = particle->GetProcessManager();
143 G4String particleName = particle->GetParticleName();
144 if(verbose > 1)
145 G4cout << "### " << GetPhysicsName() << " instantiates for "
146 << particleName << G4endl;
147
148 if (particleName == "gamma") {
149
150 pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
151 pmanager->AddDiscreteProcess(new G4ComptonScattering);
152 pmanager->AddDiscreteProcess(new G4GammaConversion);
153
154 } else if (particleName == "e-") {
155
156 msc = new G4MultipleScattering();
157 pmanager->AddProcess(msc, -1, 1, 1);
158 pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
159 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
160
161 } else if (particleName == "e+") {
162
163 msc = new G4MultipleScattering();
164 pmanager->AddProcess(msc, -1, 1, 1);
165 pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
166 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
167 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
168
169 } else if (particleName == "mu+" ||
170 particleName == "mu-" ) {
171
172 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
173 pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
174 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
175 pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
176
177 } else if (particleName == "alpha" ||
178 particleName == "He3" ||
179 particleName == "GenericIon") {
180
181 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
182 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
183
184 } else if (particleName == "anti_omega-" ||
185 particleName == "anti_proton" ||
186 particleName == "anti_sigma+" ||
187 particleName == "anti_sigma-" ||
188 particleName == "anti_xi-" ||
189 particleName == "deuteron" ||
190 particleName == "kaon+" ||
191 particleName == "kaon-" ||
192 particleName == "omega-" ||
193 particleName == "pi+" ||
194 particleName == "pi-" ||
195 particleName == "proton" ||
196 particleName == "sigma+" ||
197 particleName == "sigma-" ||
198 particleName == "tau+" ||
199 particleName == "tau-" ||
200 particleName == "triton" ||
201 particleName == "xi-" ) {
202
203 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
204 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
205 }
206 }
207 G4EmProcessOptions opt;
208 opt.SetVerbose(verbose);
209 opt.SetSubCutoff(true);
210 opt.SetMinEnergy(0.1*keV);
211 opt.SetMaxEnergy(10.*TeV);
212 opt.SetDEDXBinning(220);
213 opt.SetLambdaBinning(220);
214 opt.SetLinearLossLimit(1.e-6);
215}
216
217//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracBrowser for help on using the repository browser.