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
PhysListEmStandard.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PhysListEmStandard.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
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
28
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
29
30
#include "PhysListEmStandard.hh"
31
32
#include "
G4BuilderType.hh
"
33
#include "
G4ParticleDefinition.hh
"
34
#include "
G4PhysicsListHelper.hh
"
35
36
#include "
G4ComptonScattering.hh
"
37
#include "
G4GammaConversion.hh
"
38
#include "
G4PhotoElectricEffect.hh
"
39
40
#include "
G4eMultipleScattering.hh
"
41
#include "
G4hMultipleScattering.hh
"
42
43
#include "
G4eIonisation.hh
"
44
#include "
G4eBremsstrahlung.hh
"
45
#include "
G4eplusAnnihilation.hh
"
46
47
#include "
G4MuIonisation.hh
"
48
#include "
G4MuBremsstrahlung.hh
"
49
#include "
G4MuPairProduction.hh
"
50
51
#include "
G4hIonisation.hh
"
52
#include "
G4hBremsstrahlung.hh
"
53
#include "
G4hPairProduction.hh
"
54
55
#include "
G4ionIonisation.hh
"
56
57
#include "
G4MscStepLimitType.hh
"
58
59
#include "
G4SystemOfUnits.hh
"
60
61
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
62
63
PhysListEmStandard::PhysListEmStandard
(
const
G4String
&
name
)
64
:
G4VPhysicsConstructor
(name)
65
{
66
SetPhysicsType
(
bElectromagnetic
);
67
68
G4EmParameters
* param =
G4EmParameters::Instance
();
69
param->
SetDefaults
();
70
param->
SetVerbose
(0);
71
param->
SetMinEnergy
(100*
eV
);
72
param->
SetMaxEnergy
(100*
TeV
);
73
param->
SetNumberOfBinsPerDecade
(10);
74
param->
SetMscStepLimitType
(
fUseSafety
);
75
param->
SetStepFunction
(0.2, 100*
um
);
76
param->
SetStepFunctionMuHad
(0.2, 100*
um
);
77
}
78
79
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
80
81
PhysListEmStandard::~PhysListEmStandard
()
82
{}
83
84
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
85
86
void
PhysListEmStandard::ConstructProcess
()
87
{
88
G4PhysicsListHelper
* ph =
G4PhysicsListHelper::GetPhysicsListHelper
();
89
90
// Add standard EM Processes
91
//
92
auto
particleIterator
=
GetParticleIterator
();
93
particleIterator
->reset();
94
while
( (*
particleIterator
)() ){
95
G4ParticleDefinition
*
particle
=
particleIterator
->value();
96
G4String
particleName = particle->
GetParticleName
();
97
98
if
(particleName ==
"gamma"
) {
99
// gamma
100
ph->
RegisterProcess
(
new
G4PhotoElectricEffect
, particle);
101
ph->
RegisterProcess
(
new
G4ComptonScattering
, particle);
102
ph->
RegisterProcess
(
new
G4GammaConversion
, particle);
103
104
}
else
if
(particleName ==
"e-"
) {
105
//electron
106
ph->
RegisterProcess
(
new
G4eMultipleScattering
, particle);
107
ph->
RegisterProcess
(
new
G4eIonisation
, particle);
108
ph->
RegisterProcess
(
new
G4eBremsstrahlung
(), particle);
109
110
}
else
if
(particleName ==
"e+"
) {
111
//positron
112
ph->
RegisterProcess
(
new
G4eMultipleScattering
, particle);
113
ph->
RegisterProcess
(
new
G4eIonisation
, particle);
114
ph->
RegisterProcess
(
new
G4eBremsstrahlung
(), particle);
115
ph->
RegisterProcess
(
new
G4eplusAnnihilation
, particle);
116
117
}
else
if
( particleName ==
"mu-"
||
118
particleName ==
"mu+"
) {
119
//muon
120
ph->
RegisterProcess
(
new
G4hMultipleScattering
, particle);
121
ph->
RegisterProcess
(
new
G4MuIonisation
, particle);
122
ph->
RegisterProcess
(
new
G4MuBremsstrahlung
, particle);
123
ph->
RegisterProcess
(
new
G4MuPairProduction
, particle);
124
125
}
else
if
( particleName ==
"proton"
||
126
particleName ==
"pi-"
||
127
particleName ==
"pi+"
) {
128
//proton
129
ph->
RegisterProcess
(
new
G4hMultipleScattering
, particle);
130
ph->
RegisterProcess
(
new
G4hIonisation
, particle);
131
ph->
RegisterProcess
(
new
G4hBremsstrahlung
, particle);
132
ph->
RegisterProcess
(
new
G4hPairProduction
, particle);
133
134
}
else
if
( particleName ==
"alpha"
||
135
particleName ==
"He3"
||
136
particleName ==
"GenericIon"
) {
137
//Ions
138
ph->
RegisterProcess
(
new
G4hMultipleScattering
, particle);
139
ph->
RegisterProcess
(
new
G4ionIonisation
, particle);
140
141
}
else
if
((!particle->
IsShortLived
()) &&
142
(particle->
GetPDGCharge
() != 0.0) &&
143
(particle->
GetParticleName
() !=
"chargedgeantino"
)) {
144
//all others charged particles except geantino
145
ph->
RegisterProcess
(
new
G4hMultipleScattering
, particle);
146
ph->
RegisterProcess
(
new
G4hIonisation
, particle);
147
}
148
}
149
}
150
151
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
152
geant4
tree
geant4-10.6-release
examples
advanced
amsEcal
src
PhysListEmStandard.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:51
using
1.8.2 with
ECCE GitHub integration