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
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
advanced
basic
extended
analysis
biasing
common
electromagnetic
TestEm0
TestEm1
TestEm10
TestEm11
TestEm12
TestEm13
TestEm14
TestEm15
TestEm16
TestEm17
include
src
DetectorConstruction.cc
DetectorMessenger.cc
HistoManager.cc
HistoMessenger.cc
MuCrossSections.cc
MuNuclearBuilder.cc
PhysicsList.cc
PhysicsListMessenger.cc
PhysListEmStandard.cc
PrimaryGeneratorAction.cc
RunAction.cc
StackingAction.cc
SteppingAction.cc
SteppingVerbose.cc
plotHisto.C
TestEm17.cc
TestEm18
TestEm2
TestEm3
TestEm4
TestEm5
TestEm6
TestEm7
TestEm8
TestEm9
errorpropagation
eventgenerator
exoticphysics
field
g3tog4
geometry
hadronic
medical
optical
parallel
parameterisations
persistency
physicslists
polarisation
radioactivedecay
runAndEvent
visualization
source
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
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
//
28
//
29
//
30
//
31
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33
34
#include "PhysicsList.hh"
35
#include "PhysicsListMessenger.hh"
36
37
#include "
G4EmStandardPhysics.hh
"
38
#include "
G4EmStandardPhysics_option4.hh
"
39
#include "PhysListEmStandard.hh"
40
#include "
MuNuclearBuilder.hh
"
41
42
#include "
G4EmParameters.hh
"
43
44
#include "
G4Gamma.hh
"
45
#include "
G4Electron.hh
"
46
#include "
G4Positron.hh
"
47
48
#include "
G4BosonConstructor.hh
"
49
#include "
G4LeptonConstructor.hh
"
50
#include "
G4MesonConstructor.hh
"
51
#include "
G4BosonConstructor.hh
"
52
#include "
G4BaryonConstructor.hh
"
53
#include "
G4IonConstructor.hh
"
54
#include "
G4ShortLivedConstructor.hh
"
55
56
#include "
G4SystemOfUnits.hh
"
57
58
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
59
60
PhysicsList::PhysicsList
() :
G4VModularPhysicsList
(),
61
fEmPhysicsList(0),
62
fMuNuclPhysicsList(0),
63
fMessenger(0)
64
{
65
SetVerboseLevel
(1);
66
fMessenger
=
new
PhysicsListMessenger
(
this
);
67
68
// EM physics
69
fEmName
=
G4String
(
"emstandard_opt0"
);
70
fEmPhysicsList
=
new
G4EmStandardPhysics
();
71
72
//extend energy range of PhysicsTables
73
//
74
G4EmParameters
* param =
G4EmParameters::Instance
();
75
param->
SetMinEnergy
(100*
eV
);
76
param->
SetMaxEnergy
(1000*
PeV
);
77
78
fMuNuclPhysicsList
= 0;
79
}
80
81
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
82
83
PhysicsList::~PhysicsList
()
84
{
85
delete
fMessenger
;
86
}
87
88
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
89
90
void
PhysicsList::ConstructParticle
()
91
{
92
G4BosonConstructor
pBosonConstructor;
93
pBosonConstructor.
ConstructParticle
();
94
95
G4LeptonConstructor
pLeptonConstructor;
96
pLeptonConstructor.
ConstructParticle
();
97
98
G4MesonConstructor
pMesonConstructor;
99
pMesonConstructor.
ConstructParticle
();
100
101
G4BaryonConstructor
pBaryonConstructor;
102
pBaryonConstructor.
ConstructParticle
();
103
104
G4IonConstructor
pIonConstructor;
105
pIonConstructor.
ConstructParticle
();
106
107
G4ShortLivedConstructor
pShortLivedConstructor;
108
pShortLivedConstructor.
ConstructParticle
();
109
}
110
111
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
112
113
void
PhysicsList::ConstructProcess
()
114
{
115
// transportation
116
//
117
AddTransportation
();
118
119
// electromagnetic Physics List
120
//
121
fEmPhysicsList
->
ConstructProcess
();
122
if
(
fMuNuclPhysicsList
)
fMuNuclPhysicsList
->
ConstructProcess
();
123
}
124
125
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
126
127
void
PhysicsList::AddPhysicsList
(
const
G4String
&
name
)
128
{
129
if
(
verboseLevel
>-1) {
130
G4cout
<<
"PhysicsList::AddPhysicsList: <"
<< name <<
">"
<<
G4endl
;
131
}
132
133
if
(name ==
fEmName
)
return
;
134
135
if
(name ==
"emstandard_opt0"
) {
136
137
fEmName
=
name
;
138
delete
fEmPhysicsList
;
139
fEmPhysicsList
=
new
G4EmStandardPhysics
();
140
141
}
else
if
(name ==
"emstandard_opt4"
) {
142
143
fEmName
=
name
;
144
delete
fEmPhysicsList
;
145
fEmPhysicsList
=
new
G4EmStandardPhysics_option4
();
146
147
}
else
if
(name ==
"local"
) {
148
149
fEmName
=
name
;
150
delete
fEmPhysicsList
;
151
fEmPhysicsList
=
new
PhysListEmStandard
(name);
152
153
}
else
if
(name ==
"muNucl"
) {
154
fMuNuclPhysicsList
=
new
MuNuclearBuilder
(name);
155
156
}
else
{
157
158
G4cout
<<
"PhysicsList::AddPhysicsList: <"
<< name <<
">"
159
<<
" is not defined"
160
<<
G4endl
;
161
}
162
}
163
164
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
165
166
geant4
tree
geant4-10.6-release
examples
extended
electromagnetic
TestEm17
src
PhysicsList.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:50
using
1.8.2 with
ECCE GitHub integration