source: trunk/source/physics_lists/builders/src/G4EmStandardPhysics_option3.cc@ 1271

Last change on this file since 1271 was 1228, checked in by garnier, 16 years ago

update geant4.9.3 tag

File size: 10.0 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_option3.cc,v 1.18 2009/11/24 12:53:22 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName: G4EmStandardPhysics_option3
32//
33// Author: V.Ivanchenko 13.03.2008
34//
35// Modified:
36// 21.04.2008 V.Ivanchenko add long-lived D and B mesons; use spline
37// 28.05.2008 V.Ivanchenko linLossLimit=0.01 for ions 0.001 for others
38//
39//----------------------------------------------------------------------------
40//
41
42#include "G4EmStandardPhysics_option3.hh"
43
44#include "G4ParticleDefinition.hh"
45#include "G4ProcessManager.hh"
46#include "G4LossTableManager.hh"
47#include "G4EmProcessOptions.hh"
48
49#include "G4ComptonScattering.hh"
50#include "G4GammaConversion.hh"
51#include "G4PhotoElectricEffect.hh"
52#include "G4RayleighScattering.hh"
53
54#include "G4eMultipleScattering.hh"
55#include "G4MuMultipleScattering.hh"
56#include "G4hMultipleScattering.hh"
57#include "G4MscStepLimitType.hh"
58#include "G4UrbanMscModel93.hh"
59#include "G4WentzelVIModel.hh"
60#include "G4CoulombScattering.hh"
61
62#include "G4eIonisation.hh"
63#include "G4eBremsstrahlung.hh"
64#include "G4eplusAnnihilation.hh"
65
66#include "G4MuIonisation.hh"
67#include "G4MuBremsstrahlung.hh"
68#include "G4MuPairProduction.hh"
69#include "G4hBremsstrahlung.hh"
70#include "G4hPairProduction.hh"
71
72#include "G4hIonisation.hh"
73#include "G4ionIonisation.hh"
74#include "G4IonParametrisedLossModel.hh"
75#include "G4NuclearStopping.hh"
76
77#include "G4Gamma.hh"
78#include "G4Electron.hh"
79#include "G4Positron.hh"
80#include "G4MuonPlus.hh"
81#include "G4MuonMinus.hh"
82#include "G4PionPlus.hh"
83#include "G4PionMinus.hh"
84#include "G4KaonPlus.hh"
85#include "G4KaonMinus.hh"
86#include "G4Proton.hh"
87#include "G4AntiProton.hh"
88#include "G4Deuteron.hh"
89#include "G4Triton.hh"
90#include "G4He3.hh"
91#include "G4Alpha.hh"
92#include "G4GenericIon.hh"
93
94//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
95
96G4EmStandardPhysics_option3::G4EmStandardPhysics_option3(
97 G4int ver, const G4String& name)
98 : G4VPhysicsConstructor(name), verbose(ver)
99{
100 G4LossTableManager::Instance();
101}
102
103//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
104
105G4EmStandardPhysics_option3::~G4EmStandardPhysics_option3()
106{}
107
108//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
109
110void G4EmStandardPhysics_option3::ConstructParticle()
111{
112// gamma
113 G4Gamma::Gamma();
114
115// leptons
116 G4Electron::Electron();
117 G4Positron::Positron();
118 G4MuonPlus::MuonPlus();
119 G4MuonMinus::MuonMinus();
120
121// mesons
122 G4PionPlus::PionPlusDefinition();
123 G4PionMinus::PionMinusDefinition();
124 G4KaonPlus::KaonPlusDefinition();
125 G4KaonMinus::KaonMinusDefinition();
126
127// barions
128 G4Proton::Proton();
129 G4AntiProton::AntiProton();
130
131// ions
132 G4Deuteron::Deuteron();
133 G4Triton::Triton();
134 G4He3::He3();
135 G4Alpha::Alpha();
136 G4GenericIon::GenericIonDefinition();
137}
138
139//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
140
141void G4EmStandardPhysics_option3::ConstructProcess()
142{
143 // Add standard EM Processes
144
145 theParticleIterator->reset();
146 while( (*theParticleIterator)() ){
147 G4ParticleDefinition* particle = theParticleIterator->value();
148 G4ProcessManager* pmanager = particle->GetProcessManager();
149 G4String particleName = particle->GetParticleName();
150 if(verbose > 1)
151 G4cout << "### " << GetPhysicsName() << " instantiates for "
152 << particleName << G4endl;
153
154 if (particleName == "gamma") {
155
156 pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
157 pmanager->AddDiscreteProcess(new G4ComptonScattering);
158 pmanager->AddDiscreteProcess(new G4GammaConversion);
159 pmanager->AddDiscreteProcess(new G4RayleighScattering);
160
161 } else if (particleName == "e-") {
162
163 G4eMultipleScattering* msc = new G4eMultipleScattering();
164 msc->AddEmModel(0, new G4UrbanMscModel93());
165 msc->SetStepLimitType(fUseDistanceToBoundary);
166 pmanager->AddProcess(msc, -1, 1, 1);
167 G4eIonisation* eIoni = new G4eIonisation();
168 eIoni->SetStepFunction(0.2, 100*um);
169 pmanager->AddProcess(eIoni, -1, 2, 2);
170 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
171
172 } else if (particleName == "e+") {
173
174 G4eMultipleScattering* msc = new G4eMultipleScattering();
175 msc->AddEmModel(0, new G4UrbanMscModel93());
176 msc->SetStepLimitType(fUseDistanceToBoundary);
177 pmanager->AddProcess(msc, -1, 1, 1);
178 G4eIonisation* eIoni = new G4eIonisation();
179 eIoni->SetStepFunction(0.2, 100*um);
180 pmanager->AddProcess(eIoni, -1, 2, 2);
181 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
182 pmanager->AddProcess(new G4eplusAnnihilation,0,-1, 4);
183
184 } else if (particleName == "mu+" ||
185 particleName == "mu-" ) {
186
187 G4MuMultipleScattering* msc = new G4MuMultipleScattering();
188 msc->AddEmModel(0, new G4WentzelVIModel());
189 pmanager->AddProcess(msc, -1, 1, 1);
190 G4MuIonisation* muIoni = new G4MuIonisation();
191 muIoni->SetStepFunction(0.2, 50*um);
192 pmanager->AddProcess(muIoni, -1, 2, 2);
193 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
194 pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
195 pmanager->AddDiscreteProcess(new G4CoulombScattering());
196
197 } else if (particleName == "alpha" ||
198 particleName == "He3") {
199
200 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
201 G4ionIonisation* ionIoni = new G4ionIonisation();
202 ionIoni->SetStepFunction(0.1, 20*um);
203 pmanager->AddProcess(ionIoni, -1, 2, 2);
204 pmanager->AddProcess(new G4NuclearStopping(), -1, 3,-1);
205
206 } else if (particleName == "GenericIon") {
207
208 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
209 G4ionIonisation* ionIoni = new G4ionIonisation();
210 ionIoni->SetEmModel(new G4IonParametrisedLossModel());
211 ionIoni->SetStepFunction(0.1, 10*um);
212 pmanager->AddProcess(ionIoni, -1, 2, 2);
213 pmanager->AddProcess(new G4NuclearStopping(), -1, 3,-1);
214
215 } else if (particleName == "pi+" ||
216 particleName == "pi-" ||
217 particleName == "kaon+" ||
218 particleName == "kaon-" ||
219 particleName == "proton" ) {
220
221 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
222 G4hIonisation* hIoni = new G4hIonisation();
223 hIoni->SetStepFunction(0.2, 50*um);
224 pmanager->AddProcess(hIoni, -1, 2, 2);
225 pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3);
226 pmanager->AddProcess(new G4hPairProduction, -1,-4, 4);
227
228 } else if (particleName == "B+" ||
229 particleName == "B-" ||
230 particleName == "D+" ||
231 particleName == "D-" ||
232 particleName == "Ds+" ||
233 particleName == "Ds-" ||
234 particleName == "anti_lambda_c+" ||
235 particleName == "anti_omega-" ||
236 particleName == "anti_proton" ||
237 particleName == "anti_sigma_c+" ||
238 particleName == "anti_sigma_c++" ||
239 particleName == "anti_sigma+" ||
240 particleName == "anti_sigma-" ||
241 particleName == "anti_xi_c+" ||
242 particleName == "anti_xi-" ||
243 particleName == "deuteron" ||
244 particleName == "lambda_c+" ||
245 particleName == "omega-" ||
246 particleName == "sigma_c+" ||
247 particleName == "sigma_c++" ||
248 particleName == "sigma+" ||
249 particleName == "sigma-" ||
250 particleName == "tau+" ||
251 particleName == "tau-" ||
252 particleName == "triton" ||
253 particleName == "xi_c+" ||
254 particleName == "xi-" ) {
255
256 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
257 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
258 }
259 }
260
261 // Em options
262 //
263 G4EmProcessOptions opt;
264 opt.SetVerbose(verbose);
265
266 // Multiple Coulomb scattering
267 //
268 //opt.SetMscStepLimitation(fUseDistanceToBoundary);
269 //opt.SetMscRangeFactor(0.02);
270
271 // Physics tables
272 //
273 opt.SetMinEnergy(100*eV);
274 opt.SetMaxEnergy(10*TeV);
275 opt.SetDEDXBinning(220);
276 opt.SetLambdaBinning(220);
277 //opt.SetSplineFlag(true);
278 opt.SetPolarAngleLimit(0.2);
279
280 // Ionization
281 //
282 //opt.SetSubCutoff(true);
283}
284
285//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracBrowser for help on using the repository browser.