Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 //
26 //
27 // $Id: PhysicsList.cc,v 1.1 2007-06-21 15:18:32 jjacquem Exp $
28 // GEANT4 tag $Name: not supported by cvs2svn $
29 //
30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32 
33 #include "PhysicsList.hh"
34 #include "PhysicsListMessenger.hh"
35 
36 #include "PhysListEmStandard.hh"
37 
38 #include "G4LossTableManager.hh"
39 #include "G4UnitsTable.hh"
40 #include "G4SystemOfUnits.hh"
41 
42 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43 
46 {
48 
49  currentDefaultCut = 1.0*mm;
50  cutForGamma = currentDefaultCut;
51  cutForElectron = currentDefaultCut;
52  cutForPositron = currentDefaultCut;
53 
54  pMessenger = new PhysicsListMessenger(this);
55 
56  SetVerboseLevel(1);
57 
58  // EM physics
59  emName = G4String("standard");
60  emPhysicsList = new PhysListEmStandard(emName);
61 
62 }
63 
64 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
65 
67 {
68  delete pMessenger;
69 }
70 
71 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
72 
73 // Bosons
74 #include "G4ChargedGeantino.hh"
75 #include "G4Geantino.hh"
76 #include "G4Gamma.hh"
77 #include "G4OpticalPhoton.hh"
78 
79 // leptons
80 #include "G4MuonPlus.hh"
81 #include "G4MuonMinus.hh"
82 #include "G4NeutrinoMu.hh"
83 #include "G4AntiNeutrinoMu.hh"
84 
85 #include "G4Electron.hh"
86 #include "G4Positron.hh"
87 #include "G4NeutrinoE.hh"
88 #include "G4AntiNeutrinoE.hh"
89 
90 // Mesons
91 #include "G4PionPlus.hh"
92 #include "G4PionMinus.hh"
93 #include "G4PionZero.hh"
94 #include "G4Eta.hh"
95 #include "G4EtaPrime.hh"
96 
97 #include "G4KaonPlus.hh"
98 #include "G4KaonMinus.hh"
99 #include "G4KaonZero.hh"
100 #include "G4AntiKaonZero.hh"
101 #include "G4KaonZeroLong.hh"
102 #include "G4KaonZeroShort.hh"
103 
104 // Baryons
105 #include "G4Proton.hh"
106 #include "G4AntiProton.hh"
107 #include "G4Neutron.hh"
108 #include "G4AntiNeutron.hh"
109 
110 // Nuclei
111 #include "G4Deuteron.hh"
112 #include "G4Triton.hh"
113 #include "G4Alpha.hh"
114 #include "G4GenericIon.hh"
115 
116 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
117 
119 {
120 // pseudo-particles
123 
124 // gamma
126 
127 // optical photon
129 
130 // leptons
135 
140 
141 // mesons
153 
154 // barions
159 
160 // ions
165 }
166 
167 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
168 
169 #include "G4EmProcessOptions.hh"
170 
172 {
173  // Transportation
174  //
176 
177  // Electromagnetic physics list
178  //
179  emPhysicsList->ConstructProcess();
180 
181  // Em options
182  //
183  G4EmProcessOptions emOptions;
184  emOptions.SetBuildCSDARange(true);
185  emOptions.SetMaxEnergyForCSDARange(100*TeV);
186  emOptions.SetDEDXBinningForCSDARange(120);
187  emOptions.SetVerbose(0);
188 }
189 
190 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
191 
193 {
194  if (verboseLevel>0) {
195  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl;
196  }
197 
198  if (name == emName) return;
199 
200  if (name == "standard") {
201 
202  emName = name;
203  delete emPhysicsList;
204  emPhysicsList = new PhysListEmStandard(name);
205 
206  } else {
207 
208  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
209  << " is not defined"
210  << G4endl;
211  }
212 }
213 
214 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
215 
216 #include "G4Gamma.hh"
217 #include "G4Electron.hh"
218 #include "G4Positron.hh"
219 
221 {
222  // set cut values for gamma at first and for e- second and next for e+,
223  // because some processes for e+/e- need cut values for gamma
224  SetCutValue(cutForGamma, "gamma");
225  SetCutValue(cutForElectron, "e-");
226  SetCutValue(cutForPositron, "e+");
228 }
229 
230 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
231 
233 {
234  cutForGamma = cut;
235  SetParticleCuts(cutForGamma, G4Gamma::Gamma());
236 }
237 
238 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
239 
241 {
242  cutForElectron = cut;
243  SetParticleCuts(cutForElectron, G4Electron::Electron());
244 }
245 
246 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
247 
249 {
250  cutForPositron = cut;
251  SetParticleCuts(cutForPositron, G4Positron::Positron());
252 }
253 
254 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......