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

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

update ti head

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