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
UltraPhysicsList.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file UltraPhysicsList.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
// GEANT 4 - ULTRA experiment example
29
// --------------------------------------------------------------
30
//
31
// Code developed by:
32
// B. Tome, M.C. Espirito-Santo, A. Trindade, P. Rodrigues
33
//
34
// ****************************************************
35
// * UltraPhysicsList.cc
36
// ****************************************************
37
//
38
// Ultra Physics List class; Standard and Low Energy EM processes are defined for
39
// the relevant particles. Optical processes are declared.
40
//
41
#include "
G4ios.hh
"
42
//#include "iomanip.h"
43
#include "
globals.hh
"
44
45
#include "
UltraPhysicsList.hh
"
46
47
#include "
G4ParticleDefinition.hh
"
48
#include "
G4ParticleTypes.hh
"
49
#include "
G4ParticleWithCuts.hh
"
50
#include "
G4ParticleTable.hh
"
51
#include "
G4Material.hh
"
52
#include "
G4MaterialTable.hh
"
53
#include "
G4ProcessManager.hh
"
54
#include "
G4ProcessVector.hh
"
55
56
#include "
G4EmStandardPhysics.hh
"
57
#include "
G4EmLivermorePhysics.hh
"
58
#include "
G4EmPenelopePhysics.hh
"
59
#include "
G4EmLowEPPhysics.hh
"
60
#include "
G4DecayPhysics.hh
"
61
#include "
G4HadronElasticPhysics.hh
"
62
#include "
G4HadronInelasticQBBC.hh
"
63
#include "
G4IonPhysics.hh
"
64
#include "
G4EmExtraPhysics.hh
"
65
#include "
G4StoppingPhysics.hh
"
66
#include "
G4OpticalPhysics.hh
"
67
68
#include "
G4UnitsTable.hh
"
69
#include "
G4SystemOfUnits.hh
"
70
#include "
G4LossTableManager.hh
"
71
72
UltraPhysicsList::UltraPhysicsList
() :
G4VModularPhysicsList
(),
73
fEmPhysicsList(0),
74
fOpPhysicsList(0),
75
fDecayPhysicsList(0),
76
fVerboseLebel(1),
77
fMaxNumPhotonStep(20)
78
{
79
G4LossTableManager::Instance
();
80
SetDefaultCutValue
(1*
mm
);
81
82
// fMessenger = new UltraPhysicsListMessenger(this);
83
// fStepMaxProcess = new StepMax();
84
85
// Initilise flags
86
87
SetVerboseLevel
(1);
88
89
90
// EM physics
91
fEmName
=
G4String
(
"emstandard"
);
92
fEmPhysicsList
=
new
G4EmStandardPhysics
();
93
fOpPhysicsList
=
new
G4OpticalPhysics
();
94
95
// Decay Physics is always defined
96
fDecayPhysicsList
=
new
G4DecayPhysics
();
97
}
98
99
UltraPhysicsList::~UltraPhysicsList
()
100
{
101
delete
fDecayPhysicsList
;
102
delete
fEmPhysicsList
;
103
delete
fOpPhysicsList
;
104
// delete fStepMaxProcess;
105
for
(
size_t
i=0; i<
fHadronPhys
.size(); i++)
106
delete
fHadronPhys
[i];
107
}
108
109
110
void
UltraPhysicsList::ConstructParticle
()
111
{
112
fDecayPhysicsList
->
ConstructParticle
();
113
}
114
115
116
void
UltraPhysicsList::ConstructProcess
()
117
{
118
AddTransportation
();
119
if
(
fEmPhysicsList
)
120
fEmPhysicsList
->
ConstructProcess
();
121
122
if
(
fOpPhysicsList
)
123
fOpPhysicsList
->
ConstructProcess
();
124
125
if
(
fDecayPhysicsList
)
126
fDecayPhysicsList
->
ConstructProcess
();
127
128
for
(
size_t
i=0; i<
fHadronPhys
.size(); ++i) {
129
fHadronPhys
[i]->ConstructProcess();
130
}
131
}
132
133
134
void
UltraPhysicsList::SetCuts
()
135
{
136
if
(
verboseLevel
>1){
137
G4cout
<<
"UltraPhysicsList::SetCuts:"
;
138
}
139
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
140
// the default cut value for all particle types
141
SetCutsWithDefault
();
142
}
geant4
tree
geant4-10.6-release
examples
advanced
air_shower
src
UltraPhysicsList.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:53
using
1.8.2 with
ECCE GitHub integration