Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4EmStandardPhysics_option3.cc
Go to the documentation of this file.
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$
27//
28//---------------------------------------------------------------------------
29//
30// ClassName: G4EmStandardPhysics_option3
31//
32// Author: V.Ivanchenko 13.03.2008
33//
34// Modified:
35// 21.04.2008 V.Ivanchenko add long-lived D and B mesons; use spline
36// 28.05.2008 V.Ivanchenko linLossLimit=0.01 for ions 0.001 for others
37//
38//----------------------------------------------------------------------------
39//
40
42
43#include "G4SystemOfUnits.hh"
45#include "G4LossTableManager.hh"
46#include "G4EmProcessOptions.hh"
47
49#include "G4GammaConversion.hh"
54
58#include "G4MscStepLimitType.hh"
59#include "G4UrbanMscModel93.hh"
60#include "G4UrbanMscModel95.hh"
61#include "G4DummyModel.hh"
62#include "G4WentzelVIModel.hh"
64
65#include "G4eIonisation.hh"
66#include "G4eBremsstrahlung.hh"
67#include "G4Generator2BS.hh"
69
72
73#include "G4MuIonisation.hh"
74#include "G4MuBremsstrahlung.hh"
75#include "G4MuPairProduction.hh"
76#include "G4hBremsstrahlung.hh"
77#include "G4hPairProduction.hh"
78
83
84#include "G4hIonisation.hh"
85#include "G4ionIonisation.hh"
87#include "G4NuclearStopping.hh"
88
89#include "G4Gamma.hh"
90#include "G4Electron.hh"
91#include "G4Positron.hh"
92#include "G4MuonPlus.hh"
93#include "G4MuonMinus.hh"
94#include "G4PionPlus.hh"
95#include "G4PionMinus.hh"
96#include "G4KaonPlus.hh"
97#include "G4KaonMinus.hh"
98#include "G4Proton.hh"
99#include "G4AntiProton.hh"
100#include "G4Deuteron.hh"
101#include "G4Triton.hh"
102#include "G4He3.hh"
103#include "G4Alpha.hh"
104#include "G4GenericIon.hh"
105
106#include "G4PhysicsListHelper.hh"
107#include "G4BuilderType.hh"
108
109// factory
111//
113
114//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
115
117 : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
118{
121}
122
123//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
124
126 : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
127{
130}
131
132//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
133
135{}
136
137//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
138
140{
141// gamma
143
144// leptons
149
150// mesons
155
156// barions
159
160// ions
163 G4He3::He3();
166}
167
168//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
169
171{
173
174 // muon & hadron bremsstrahlung and pair production
183
184 // muon & hadron multiple scattering
186 mumsc->AddEmModel(0, new G4WentzelVIModel());
187 //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
188 // pimsc->AddEmModel(0, new G4WentzelVIModel());
189 // G4hMultipleScattering* kmsc = new G4hMultipleScattering();
190 // kmsc->AddEmModel(0, new G4WentzelVIModel());
191 //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
192 //pmsc->AddEmModel(0, new G4WentzelVIModel());
193 G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
194
195 // nuclear stopping
196 G4NuclearStopping* ionnuc = new G4NuclearStopping();
198
199 // Add standard EM Processes
201 while( (*theParticleIterator)() ){
203 G4String particleName = particle->GetParticleName();
204 if(verbose > 1)
205 G4cout << "### " << GetPhysicsName() << " instantiates for "
206 << particleName << G4endl;
207
208 if (particleName == "gamma") {
209
212
213 ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
214 ph->RegisterProcess(cs, particle);
215 ph->RegisterProcess(new G4GammaConversion(), particle);
216 ph->RegisterProcess(new G4RayleighScattering(), particle);
217
218 } else if (particleName == "e-") {
219
221 //msc->AddEmModel(0, new G4UrbanMscModel95());
223 G4eIonisation* eIoni = new G4eIonisation();
224 eIoni->SetStepFunction(0.2, 100*um);
225
227 ph->RegisterProcess(msc, particle);
228 ph->RegisterProcess(eIoni, particle);
229 ph->RegisterProcess(brem, particle);
230
231 } else if (particleName == "e+") {
232
234 //msc->AddEmModel(0, new G4UrbanMscModel95());
236 G4eIonisation* eIoni = new G4eIonisation();
237 eIoni->SetStepFunction(0.2, 100*um);
238
239 ph->RegisterProcess(msc, particle);
240 ph->RegisterProcess(eIoni, particle);
241 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
242 ph->RegisterProcess(new G4eplusAnnihilation(), particle);
243
244 } else if (particleName == "mu+" ||
245 particleName == "mu-" ) {
246
247 G4MuIonisation* muIoni = new G4MuIonisation();
248 muIoni->SetStepFunction(0.2, 50*um);
249
250 ph->RegisterProcess(mumsc, particle);
251 ph->RegisterProcess(muIoni, particle);
252 ph->RegisterProcess(mub, particle);
253 ph->RegisterProcess(mup, particle);
254 ph->RegisterProcess(new G4CoulombScattering(), particle);
255
256 } else if (particleName == "alpha" ||
257 particleName == "He3") {
258
260 G4ionIonisation* ionIoni = new G4ionIonisation();
261 ionIoni->SetStepFunction(0.1, 10*um);
262
263 ph->RegisterProcess(msc, particle);
264 ph->RegisterProcess(ionIoni, particle);
265 ph->RegisterProcess(ionnuc, particle);
266
267 } else if (particleName == "GenericIon") {
268
269 G4ionIonisation* ionIoni = new G4ionIonisation();
271 ionIoni->SetStepFunction(0.1, 1*um);
272
273 ph->RegisterProcess(hmsc, particle);
274 ph->RegisterProcess(ionIoni, particle);
275 ph->RegisterProcess(ionnuc, particle);
276
277 } else if (particleName == "pi+" ||
278 particleName == "pi-" ) {
279
281 G4hIonisation* hIoni = new G4hIonisation();
282 hIoni->SetStepFunction(0.2, 50*um);
283
284 ph->RegisterProcess(pimsc, particle);
285 ph->RegisterProcess(hIoni, particle);
286 ph->RegisterProcess(pib, particle);
287 ph->RegisterProcess(pip, particle);
288
289 } else if (particleName == "kaon+" ||
290 particleName == "kaon-" ) {
291
293 G4hIonisation* hIoni = new G4hIonisation();
294 hIoni->SetStepFunction(0.2, 50*um);
295
296 ph->RegisterProcess(kmsc, particle);
297 ph->RegisterProcess(hIoni, particle);
298 ph->RegisterProcess(kb, particle);
299 ph->RegisterProcess(kp, particle);
300
301 } else if (particleName == "proton" ||
302 particleName == "anti_proton") {
303
305 G4hIonisation* hIoni = new G4hIonisation();
306 hIoni->SetStepFunction(0.2, 50*um);
307
308 ph->RegisterProcess(pmsc, particle);
309 ph->RegisterProcess(hIoni, particle);
310 ph->RegisterProcess(pb, particle);
311 ph->RegisterProcess(pp, particle);
312 ph->RegisterProcess(pnuc, particle);
313
314 } else if (particleName == "B+" ||
315 particleName == "B-" ||
316 particleName == "D+" ||
317 particleName == "D-" ||
318 particleName == "Ds+" ||
319 particleName == "Ds-" ||
320 particleName == "anti_He3" ||
321 particleName == "anti_alpha" ||
322 particleName == "anti_deuteron" ||
323 particleName == "anti_lambda_c+" ||
324 particleName == "anti_omega-" ||
325 particleName == "anti_sigma_c+" ||
326 particleName == "anti_sigma_c++" ||
327 particleName == "anti_sigma+" ||
328 particleName == "anti_sigma-" ||
329 particleName == "anti_triton" ||
330 particleName == "anti_xi_c+" ||
331 particleName == "anti_xi-" ||
332 particleName == "deuteron" ||
333 particleName == "lambda_c+" ||
334 particleName == "omega-" ||
335 particleName == "sigma_c+" ||
336 particleName == "sigma_c++" ||
337 particleName == "sigma+" ||
338 particleName == "sigma-" ||
339 particleName == "tau+" ||
340 particleName == "tau-" ||
341 particleName == "triton" ||
342 particleName == "xi_c+" ||
343 particleName == "xi-" ) {
344
345 ph->RegisterProcess(hmsc, particle);
346 ph->RegisterProcess(new G4hIonisation(), particle);
347 }
348 }
349
350 // Em options
351 //
353 opt.SetVerbose(verbose);
354
355 // Multiple Coulomb scattering
356 //
357 opt.SetPolarAngleLimit(CLHEP::pi);
358
359 // Physics tables
360 //
361 opt.SetMinEnergy(10*eV);
362 opt.SetMaxEnergy(10*TeV);
363 opt.SetDEDXBinning(240);
364 opt.SetLambdaBinning(240);
365
366 // Nuclear stopping
367 pnuc->SetMaxKinEnergy(MeV);
368
369 // Ionization
370 //
371 //opt.SetSubCutoff(true);
372
373 // Deexcitation
376 de->SetFluo(true);
377}
378
379//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@ bElectromagnetic
@ fUseDistanceToBoundary
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
int G4int
Definition: G4Types.hh:66
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4Electron * Electron()
Definition: G4Electron.cc:94
void SetMaxEnergy(G4double val)
void SetDEDXBinning(G4int val)
void SetLambdaBinning(G4int val)
void SetPolarAngleLimit(G4double val)
void SetVerbose(G4int val, const G4String &name="all")
void SetMinEnergy(G4double val)
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:87
static G4He3 * He3()
Definition: G4He3.cc:94
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
void SetAtomDeexcitation(G4VAtomDeexcitation *)
static G4LossTableManager * Instance()
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
const G4String & GetParticleName() const
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static G4Positron * Positron()
Definition: G4Positron.cc:94
static G4Proton * Proton()
Definition: G4Proton.cc:93
static G4Triton * Triton()
Definition: G4Triton.cc:95
void SetEmModel(G4VEmModel *, G4int index=1)
void SetMaxKinEnergy(G4double e)
void SetEmModel(G4VEmModel *, G4int index=1)
void SetStepFunction(G4double v1, G4double v2)
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=0)
void SetStepLimitType(G4MscStepLimitType val)
const G4String & GetPhysicsName() const
G4ParticleTable::G4PTblDicIterator * theParticleIterator