Geant4  10.02
PhysicsList.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 //
28 //
29 //
30 // $Id: PhysicsList.cc 93512 2015-10-23 13:45:07Z gcosmo $
31 //
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
34 
35 #include "PhysicsList.hh"
36 #include "PhysicsListMessenger.hh"
37 
38 #include "PhysListEmStandard.hh"
39 #include "G4EmStandardPhysics.hh"
44 #include "G4EmLivermorePhysics.hh"
45 #include "G4EmPenelopePhysics.hh"
46 
47 #include "G4LossTableManager.hh"
48 #include "G4UnitsTable.hh"
49 #include "G4SystemOfUnits.hh"
50 
51 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
52 
55  fEmPhysicsList(0),fEmName("local"),fMessenger(0)
56 {
58 
59  // set default cut value
60  SetDefaultCutValue(1.0*mm);
61 
62  fMessenger = new PhysicsListMessenger(this);
63 
64  SetVerboseLevel(1);
65 
66  // EM physics
67  fEmName = G4String("local");
69 
70  //add new units for cross sections
71  //
72  new G4UnitDefinition( "mm2/g", "mm2/g","Surface/Mass", mm2/g);
73  new G4UnitDefinition( "um2/mg", "um2/mg","Surface/Mass", um*um/mg);
74 }
75 
76 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
77 
79 {
80  delete fMessenger;
81 }
82 
83 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
84 
85 // Bosons
86 #include "G4ChargedGeantino.hh"
87 #include "G4Geantino.hh"
88 #include "G4Gamma.hh"
89 #include "G4OpticalPhoton.hh"
90 
91 // leptons
92 #include "G4MuonPlus.hh"
93 #include "G4MuonMinus.hh"
94 #include "G4NeutrinoMu.hh"
95 #include "G4AntiNeutrinoMu.hh"
96 
97 #include "G4Electron.hh"
98 #include "G4Positron.hh"
99 #include "G4NeutrinoE.hh"
100 #include "G4AntiNeutrinoE.hh"
101 
102 // Mesons
103 #include "G4PionPlus.hh"
104 #include "G4PionMinus.hh"
105 #include "G4PionZero.hh"
106 #include "G4Eta.hh"
107 #include "G4EtaPrime.hh"
108 
109 #include "G4KaonPlus.hh"
110 #include "G4KaonMinus.hh"
111 #include "G4KaonZero.hh"
112 #include "G4AntiKaonZero.hh"
113 #include "G4KaonZeroLong.hh"
114 #include "G4KaonZeroShort.hh"
115 
116 // Baryons
117 #include "G4Proton.hh"
118 #include "G4AntiProton.hh"
119 #include "G4Neutron.hh"
120 #include "G4AntiNeutron.hh"
121 
122 // Nuclei
123 #include "G4Deuteron.hh"
124 #include "G4Triton.hh"
125 #include "G4Alpha.hh"
126 #include "G4GenericIon.hh"
127 
128 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
129 
131 {
132 // pseudo-particles
135 
136 // gamma
138 
139 // optical photon
141 
142 // leptons
147 
152 
153 // mesons
165 
166 // barions
171 
172 // ions
177 }
178 
179 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
180 
181 #include "G4EmProcessOptions.hh"
182 
184 {
185  // Transportation
186  //
188 
189  // Electromagnetic physics list
190  //
192 
193  // Em options
194  //
195  // Main options and setting parameters are shown here.
196  // Several of them have default values.
197  //
198  G4EmProcessOptions emOptions;
199 
200  //physics tables
201  //
202  //emOptions.SetMinEnergy(100*eV); //default
203  //emOptions.SetMaxEnergy(100*TeV); //default
204  //emOptions.SetDEDXBinning(12*20); //default=12*7
205  //emOptions.SetLambdaBinning(12*20); //default=12*7
206 
207  emOptions.SetBuildCSDARange(true);
208  emOptions.SetMaxEnergyForCSDARange(10*GeV);
209  //emOptions.SetDEDXBinningForCSDARange(12*20);
210 
211  //emOptions.SetSplineFlag(true); //default
212 
213  emOptions.SetVerbose(0);
214 }
215 
216 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
217 
219 {
220  if (verboseLevel>0) {
221  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl;
222  }
223 
224  if (name == fEmName) return;
225 
226  if (name == "local") {
227 
228  fEmName = name;
229  delete fEmPhysicsList;
231 
232  } else if (name == "emstandard_opt0"){
233  fEmName = name;
234  delete fEmPhysicsList;
236 
237  } else if (name == "emstandard_opt1"){
238  fEmName = name;
239  delete fEmPhysicsList;
241 
242  } else if (name == "emstandard_opt2"){
243  fEmName = name;
244  delete fEmPhysicsList;
246 
247  } else if (name == "emstandard_opt3"){
248  fEmName = name;
249  delete fEmPhysicsList;
251 
252  } else if (name == "emstandard_opt4"){
253  fEmName = name;
254  delete fEmPhysicsList;
256 
257  } else if (name == "empenelope"){
258  fEmName = name;
259  delete fEmPhysicsList;
261 
262  } else if (name == "emlivermore"){
263  fEmName = name;
264  delete fEmPhysicsList;
266 
267  } else {
268 
269  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
270  << " is not defined"
271  << G4endl;
272  }
273 }
274 
275 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
276 
277 #include "G4Gamma.hh"
278 #include "G4Electron.hh"
279 #include "G4Positron.hh"
280 
282 {
283  // fixe lower limit for cut
285 
286  // call base class method to set cuts which default value can be
287  // modified via /run/setCut/* commands
289 
291 }
292 
293 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
static G4Geantino * GeantinoDefinition()
Definition: G4Geantino.cc:82
void SetDefaultCutValue(G4double newCutValue)
static G4Electron * ElectronDefinition()
Definition: G4Electron.cc:89
static G4Triton * TritonDefinition()
Definition: G4Triton.cc:90
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
void ConstructParticle()
Definition: PhysicsList.cc:117
static G4MuonPlus * MuonPlusDefinition()
Definition: G4MuonPlus.cc:94
static G4LossTableManager * Instance()
void SetEnergyRange(G4double lowedge, G4double highedge)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
G4String name
Definition: TRTMaterials.hh:40
static G4Proton * ProtonDefinition()
Definition: G4Proton.cc:88
static G4KaonZero * KaonZeroDefinition()
Definition: G4KaonZero.cc:99
static G4AntiKaonZero * AntiKaonZeroDefinition()
static G4KaonZeroShort * KaonZeroShortDefinition()
static const double mg
Definition: G4SIunits.hh:181
static G4AntiProton * AntiProtonDefinition()
Definition: G4AntiProton.cc:88
static G4AntiNeutron * AntiNeutronDefinition()
static G4PionZero * PionZeroDefinition()
Definition: G4PionZero.cc:103
PhysicsListMessenger * fMessenger
Definition: PhysicsList.hh:78
void SetMaxEnergyForCSDARange(G4double val)
void AddPhysicsList(const G4String &name)
Definition: PhysicsList.cc:191
void DumpCutValuesTable(G4int flag=1)
G4GLOB_DLL std::ostream G4cout
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
static G4KaonZeroLong * KaonZeroLongDefinition()
static G4NeutrinoE * NeutrinoEDefinition()
Definition: G4NeutrinoE.cc:80
static G4AntiNeutrinoMu * AntiNeutrinoMuDefinition()
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static const double GeV
Definition: G4SIunits.hh:214
void SetVerbose(G4int val)
void SetVerboseLevel(G4int value)
void SetCuts()
Definition: PhysicsList.cc:219
static G4Positron * PositronDefinition()
Definition: G4Positron.cc:89
static G4EtaPrime * EtaPrimeDefinition()
Definition: G4EtaPrime.cc:106
static G4ProductionCutsTable * GetProductionCutsTable()
static const double eV
Definition: G4SIunits.hh:212
static const double mm2
Definition: G4SIunits.hh:115
static const double g
Definition: G4SIunits.hh:180
static G4MuonMinus * MuonMinusDefinition()
Definition: G4MuonMinus.cc:95
G4VPhysicsConstructor * fEmPhysicsList
Definition: PhysicsList.hh:73
virtual void ConstructProcess()=0
void SetBuildCSDARange(G4bool val)
static const double um
Definition: G4SIunits.hh:112
static G4ChargedGeantino * ChargedGeantinoDefinition()
#define G4endl
Definition: G4ios.hh:61
static G4AntiNeutrinoE * AntiNeutrinoEDefinition()
static G4OpticalPhoton * OpticalPhotonDefinition()
G4String fEmName
Definition: PhysicsList.hh:72
void ConstructProcess()
Definition: PhysicsList.cc:170
static G4NeutrinoMu * NeutrinoMuDefinition()
Definition: G4NeutrinoMu.cc:80
static G4Deuteron * DeuteronDefinition()
Definition: G4Deuteron.cc:89
static const double mm
Definition: G4SIunits.hh:114
static G4Alpha * AlphaDefinition()
Definition: G4Alpha.cc:84
static G4Neutron * NeutronDefinition()
Definition: G4Neutron.cc:99
static G4Eta * EtaDefinition()
Definition: G4Eta.cc:104
static G4Gamma * GammaDefinition()
Definition: G4Gamma.cc:81