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

Last change on this file since 1036 was 988, checked in by garnier, 17 years ago

fichiers manquants

File size: 9.1 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.14 2008/11/21 16:50:30 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-02-ref-02 $
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 "G4LowEnergyRayleigh.hh"
53
54#include "G4eMultipleScattering.hh"
55#include "G4hMultipleScattering.hh"
56#include "G4MscStepLimitType.hh"
57
58#include "G4eIonisation.hh"
59#include "G4eBremsstrahlung.hh"
60#include "G4eplusAnnihilation.hh"
61
62#include "G4MuIonisation.hh"
63#include "G4MuBremsstrahlung.hh"
64#include "G4MuPairProduction.hh"
65#include "G4hBremsstrahlung.hh"
66#include "G4hPairProduction.hh"
67
68#include "G4hIonisation.hh"
69#include "G4ionIonisation.hh"
70
71#include "G4Gamma.hh"
72#include "G4Electron.hh"
73#include "G4Positron.hh"
74#include "G4MuonPlus.hh"
75#include "G4MuonMinus.hh"
76#include "G4PionPlus.hh"
77#include "G4PionMinus.hh"
78#include "G4KaonPlus.hh"
79#include "G4KaonMinus.hh"
80#include "G4Proton.hh"
81#include "G4AntiProton.hh"
82#include "G4Deuteron.hh"
83#include "G4Triton.hh"
84#include "G4He3.hh"
85#include "G4Alpha.hh"
86#include "G4GenericIon.hh"
87
88//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
89
90G4EmStandardPhysics_option3::G4EmStandardPhysics_option3(
91 G4int ver, const G4String& name)
92 : G4VPhysicsConstructor(name), verbose(ver)
93{
94 G4LossTableManager::Instance();
95}
96
97//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
98
99G4EmStandardPhysics_option3::~G4EmStandardPhysics_option3()
100{}
101
102//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
103
104void G4EmStandardPhysics_option3::ConstructParticle()
105{
106// gamma
107 G4Gamma::Gamma();
108
109// leptons
110 G4Electron::Electron();
111 G4Positron::Positron();
112 G4MuonPlus::MuonPlus();
113 G4MuonMinus::MuonMinus();
114
115// mesons
116 G4PionPlus::PionPlusDefinition();
117 G4PionMinus::PionMinusDefinition();
118 G4KaonPlus::KaonPlusDefinition();
119 G4KaonMinus::KaonMinusDefinition();
120
121// barions
122 G4Proton::Proton();
123 G4AntiProton::AntiProton();
124
125// ions
126 G4Deuteron::Deuteron();
127 G4Triton::Triton();
128 G4He3::He3();
129 G4Alpha::Alpha();
130 G4GenericIon::GenericIonDefinition();
131}
132
133//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
134
135void G4EmStandardPhysics_option3::ConstructProcess()
136{
137 // Add standard EM Processes
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 G4LowEnergyRayleigh);
151 pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
152 pmanager->AddDiscreteProcess(new G4ComptonScattering);
153 pmanager->AddDiscreteProcess(new G4GammaConversion);
154
155 } else if (particleName == "e-") {
156
157 G4eMultipleScattering* msc = new G4eMultipleScattering();
158 msc->SetStepLimitType(fUseDistanceToBoundary);
159 pmanager->AddProcess(msc, -1, 1, 1);
160 G4eIonisation* eIoni = new G4eIonisation();
161 eIoni->SetStepFunction(0.2, 100*um);
162 pmanager->AddProcess(eIoni, -1, 2, 2);
163 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
164
165 } else if (particleName == "e+") {
166
167 G4eMultipleScattering* msc = new G4eMultipleScattering();
168 msc->SetStepLimitType(fUseDistanceToBoundary);
169 pmanager->AddProcess(msc, -1, 1, 1);
170 G4eIonisation* eIoni = new G4eIonisation();
171 eIoni->SetStepFunction(0.2, 100*um);
172 pmanager->AddProcess(eIoni, -1, 2, 2);
173 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
174 pmanager->AddProcess(new G4eplusAnnihilation,0,-1, 4);
175
176 } else if (particleName == "mu+" ||
177 particleName == "mu-" ) {
178
179 pmanager->AddProcess(new G4eMultipleScattering, -1, 1, 1);
180 G4MuIonisation* muIoni = new G4MuIonisation();
181 muIoni->SetStepFunction(0.2, 50*um);
182 pmanager->AddProcess(muIoni, -1, 2, 2);
183 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
184 pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
185
186 } else if (particleName == "alpha" ||
187 particleName == "He3" ||
188 particleName == "GenericIon") {
189
190 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
191 G4ionIonisation* ionIoni = new G4ionIonisation();
192 ionIoni->SetStepFunction(0.1, 20*um);
193 pmanager->AddProcess(ionIoni, -1, 2, 2);
194
195 } else if (particleName == "pi+" ||
196 particleName == "pi-" ||
197 particleName == "proton" ) {
198
199 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
200 G4hIonisation* hIoni = new G4hIonisation();
201 hIoni->SetStepFunction(0.2, 50*um);
202 pmanager->AddProcess(hIoni, -1, 2, 2);
203 pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3);
204 pmanager->AddProcess(new G4hPairProduction, -1,-4, 4);
205
206 } else if (particleName == "B+" ||
207 particleName == "B-" ||
208 particleName == "D+" ||
209 particleName == "D-" ||
210 particleName == "Ds+" ||
211 particleName == "Ds-" ||
212 particleName == "anti_lambda_c+" ||
213 particleName == "anti_omega-" ||
214 particleName == "anti_proton" ||
215 particleName == "anti_sigma_c+" ||
216 particleName == "anti_sigma_c++" ||
217 particleName == "anti_sigma+" ||
218 particleName == "anti_sigma-" ||
219 particleName == "anti_xi_c+" ||
220 particleName == "anti_xi-" ||
221 particleName == "deuteron" ||
222 particleName == "kaon+" ||
223 particleName == "kaon-" ||
224 particleName == "lambda_c+" ||
225 particleName == "omega-" ||
226 particleName == "sigma_c+" ||
227 particleName == "sigma_c++" ||
228 particleName == "sigma+" ||
229 particleName == "sigma-" ||
230 particleName == "tau+" ||
231 particleName == "tau-" ||
232 particleName == "triton" ||
233 particleName == "xi_c+" ||
234 particleName == "xi-" ) {
235
236 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
237 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
238 }
239 }
240
241 // Em options
242 //
243 G4EmProcessOptions opt;
244 opt.SetVerbose(verbose);
245
246 // Multiple Coulomb scattering
247 //
248 //opt.SetMscStepLimitation(fUseDistanceToBoundary);
249 //opt.SetMscRangeFactor(0.02);
250
251 // Physics tables
252 //
253 opt.SetMinEnergy(100*eV);
254 opt.SetMaxEnergy(10*TeV);
255 opt.SetDEDXBinning(220);
256 opt.SetLambdaBinning(220);
257 //opt.SetSplineFlag(true);
258
259 // Ionization
260 //
261 //opt.SetSubCutoff(true);
262}
263
264//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracBrowser for help on using the repository browser.