ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
42
PhysicsList::PhysicsList
()
43
:
G4VModularPhysicsList
()
44
{
45
G4LossTableManager::Instance
();
46
47
currentDefaultCut
= 1.0*
mm
;
48
cutForGamma
=
currentDefaultCut
;
49
cutForElectron
=
currentDefaultCut
;
50
cutForPositron
=
currentDefaultCut
;
51
52
pMessenger
=
new
PhysicsListMessenger
(
this
);
53
54
SetVerboseLevel
(1);
55
56
// EM physics
57
emName
=
G4String
(
"standard"
);
58
emPhysicsList
=
new
PhysListEmStandard
(
emName
);
59
60
}
61
62
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
63
64
PhysicsList::~PhysicsList
()
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
116
void
PhysicsList::ConstructParticle
()
117
{
118
// pseudo-particles
119
G4Geantino::GeantinoDefinition
();
120
G4ChargedGeantino::ChargedGeantinoDefinition
();
121
122
// gamma
123
G4Gamma::GammaDefinition
();
124
125
// optical photon
126
G4OpticalPhoton::OpticalPhotonDefinition
();
127
128
// leptons
129
G4Electron::ElectronDefinition
();
130
G4Positron::PositronDefinition
();
131
G4MuonPlus::MuonPlusDefinition
();
132
G4MuonMinus::MuonMinusDefinition
();
133
134
G4NeutrinoE::NeutrinoEDefinition
();
135
G4AntiNeutrinoE::AntiNeutrinoEDefinition
();
136
G4NeutrinoMu::NeutrinoMuDefinition
();
137
G4AntiNeutrinoMu::AntiNeutrinoMuDefinition
();
138
139
// mesons
140
G4PionPlus::PionPlusDefinition
();
141
G4PionMinus::PionMinusDefinition
();
142
G4PionZero::PionZeroDefinition
();
143
G4Eta::EtaDefinition
();
144
G4EtaPrime::EtaPrimeDefinition
();
145
G4KaonPlus::KaonPlusDefinition
();
146
G4KaonMinus::KaonMinusDefinition
();
147
G4KaonZero::KaonZeroDefinition
();
148
G4AntiKaonZero::AntiKaonZeroDefinition
();
149
G4KaonZeroLong::KaonZeroLongDefinition
();
150
G4KaonZeroShort::KaonZeroShortDefinition
();
151
152
// barions
153
G4Proton::ProtonDefinition
();
154
G4AntiProton::AntiProtonDefinition
();
155
G4Neutron::NeutronDefinition
();
156
G4AntiNeutron::AntiNeutronDefinition
();
157
158
// ions
159
G4Deuteron::DeuteronDefinition
();
160
G4Triton::TritonDefinition
();
161
G4Alpha::AlphaDefinition
();
162
G4GenericIon::GenericIonDefinition
();
163
}
164
165
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
166
167
#include "
G4EmProcessOptions.hh
"
168
169
void
PhysicsList::ConstructProcess
()
170
{
171
// Transportation
172
//
173
AddTransportation
();
174
175
// Electromagnetic physics list
176
//
177
emPhysicsList
->
ConstructProcess
();
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
190
void
PhysicsList::AddPhysicsList
(
const
G4String
&
name
)
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
218
void
PhysicsList::SetCuts
()
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"
);
223
SetCutValue
(
cutForElectron
,
"e-"
);
224
SetCutValue
(
cutForPositron
,
"e+"
);
225
DumpCutValuesTable
();
226
}
227
228
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
229
230
void
PhysicsList::SetCutForGamma
(
G4double
cut)
231
{
232
cutForGamma
= cut;
233
SetParticleCuts
(
cutForGamma
,
G4Gamma::Gamma
());
234
}
235
236
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
237
238
void
PhysicsList::SetCutForElectron
(
G4double
cut)
239
{
240
cutForElectron
= cut;
241
SetParticleCuts
(
cutForElectron
,
G4Electron::Electron
());
242
}
243
244
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
245
246
void
PhysicsList::SetCutForPositron
(
G4double
cut)
247
{
248
cutForPositron
= cut;
249
SetParticleCuts
(
cutForPositron
,
G4Positron::Positron
());
250
}
251
252
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
geant4
tree
geant4-10.6-release
environments
g4py
examples
demos
TestEm0
module
PhysicsList.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:50
using
1.8.2 with
ECCE GitHub integration