ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PhysicsList.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PhysicsList.cc
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 //
28 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
30 
31 #include "PhysicsList.hh"
32 #include "PhysicsListMessenger.hh"
33 
34 #include "PhysListEmStandard.hh"
35 
36 #include "G4LossTableManager.hh"
37 #include "G4UnitsTable.hh"
38 #include "G4SystemOfUnits.hh"
39 
40 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
41 
44 {
46 
47  currentDefaultCut = 1.0*mm;
51 
52  pMessenger = new PhysicsListMessenger(this);
53 
54  SetVerboseLevel(1);
55 
56  // EM physics
57  emName = G4String("standard");
59 
60 }
61 
62 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
63 
65 {
66  delete pMessenger;
67 }
68 
69 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
70 
71 // Bosons
72 #include "G4ChargedGeantino.hh"
73 #include "G4Geantino.hh"
74 #include "G4Gamma.hh"
75 #include "G4OpticalPhoton.hh"
76 
77 // leptons
78 #include "G4MuonPlus.hh"
79 #include "G4MuonMinus.hh"
80 #include "G4NeutrinoMu.hh"
81 #include "G4AntiNeutrinoMu.hh"
82 
83 #include "G4Electron.hh"
84 #include "G4Positron.hh"
85 #include "G4NeutrinoE.hh"
86 #include "G4AntiNeutrinoE.hh"
87 
88 // Mesons
89 #include "G4PionPlus.hh"
90 #include "G4PionMinus.hh"
91 #include "G4PionZero.hh"
92 #include "G4Eta.hh"
93 #include "G4EtaPrime.hh"
94 
95 #include "G4KaonPlus.hh"
96 #include "G4KaonMinus.hh"
97 #include "G4KaonZero.hh"
98 #include "G4AntiKaonZero.hh"
99 #include "G4KaonZeroLong.hh"
100 #include "G4KaonZeroShort.hh"
101 
102 // Baryons
103 #include "G4Proton.hh"
104 #include "G4AntiProton.hh"
105 #include "G4Neutron.hh"
106 #include "G4AntiNeutron.hh"
107 
108 // Nuclei
109 #include "G4Deuteron.hh"
110 #include "G4Triton.hh"
111 #include "G4Alpha.hh"
112 #include "G4GenericIon.hh"
113 
114 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
115 
117 {
118 // pseudo-particles
121 
122 // gamma
124 
125 // optical photon
127 
128 // leptons
133 
138 
139 // mesons
151 
152 // barions
157 
158 // ions
163 }
164 
165 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
166 
167 #include "G4EmProcessOptions.hh"
168 
170 {
171  // Transportation
172  //
174 
175  // Electromagnetic physics list
176  //
178 
179  // Em options
180  //
181  G4EmProcessOptions emOptions;
182  emOptions.SetBuildCSDARange(true);
183  emOptions.SetMaxEnergyForCSDARange(100*TeV);
184  emOptions.SetDEDXBinningForCSDARange(120);
185  emOptions.SetVerbose(0);
186 }
187 
188 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
189 
191 {
192  if (verboseLevel>0) {
193  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl;
194  }
195 
196  if (name == emName) return;
197 
198  if (name == "standard") {
199 
200  emName = name;
201  delete emPhysicsList;
202  emPhysicsList = new PhysListEmStandard(name);
203 
204  } else {
205 
206  G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
207  << " is not defined"
208  << G4endl;
209  }
210 }
211 
212 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
213 
214 #include "G4Gamma.hh"
215 #include "G4Electron.hh"
216 #include "G4Positron.hh"
217 
219 {
220  // set cut values for gamma at first and for e- second and next for e+,
221  // because some processes for e+/e- need cut values for gamma
222  SetCutValue(cutForGamma, "gamma");
226 }
227 
228 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
229 
231 {
232  cutForGamma = cut;
234 }
235 
236 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
237 
239 {
240  cutForElectron = cut;
242 }
243 
244 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
245 
247 {
248  cutForPositron = cut;
250 }
251 
252 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......