Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
environments
g4py
examples
demos
TestEm0
g4lib
PhysicsList.cc
Go to the documentation of this file.
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
// $Id: PhysicsList.cc,v 1.1 2007-06-21 15:18:32 jjacquem Exp $
28
// GEANT4 tag $Name: not supported by cvs2svn $
29
//
30
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
31
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32
33
#include "
PhysicsList.hh
"
34
#include "
PhysicsListMessenger.hh
"
35
36
#include "
PhysListEmStandard.hh
"
37
38
#include "
G4LossTableManager.hh
"
39
#include "
G4UnitsTable.hh
"
40
#include "
G4SystemOfUnits.hh
"
41
42
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43
44
PhysicsList::PhysicsList
()
45
:
G4VModularPhysicsList
()
46
{
47
G4LossTableManager::Instance
();
48
49
currentDefaultCut = 1.0*
mm
;
50
cutForGamma = currentDefaultCut;
51
cutForElectron = currentDefaultCut;
52
cutForPositron = currentDefaultCut;
53
54
pMessenger =
new
PhysicsListMessenger
(
this
);
55
56
SetVerboseLevel
(1);
57
58
// EM physics
59
emName =
G4String
(
"standard"
);
60
emPhysicsList =
new
PhysListEmStandard
(emName);
61
62
}
63
64
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
65
66
PhysicsList::~PhysicsList
()
67
{
68
delete
pMessenger;
69
}
70
71
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
72
73
// Bosons
74
#include "
G4ChargedGeantino.hh
"
75
#include "
G4Geantino.hh
"
76
#include "
G4Gamma.hh
"
77
#include "
G4OpticalPhoton.hh
"
78
79
// leptons
80
#include "
G4MuonPlus.hh
"
81
#include "
G4MuonMinus.hh
"
82
#include "
G4NeutrinoMu.hh
"
83
#include "
G4AntiNeutrinoMu.hh
"
84
85
#include "
G4Electron.hh
"
86
#include "
G4Positron.hh
"
87
#include "
G4NeutrinoE.hh
"
88
#include "
G4AntiNeutrinoE.hh
"
89
90
// Mesons
91
#include "
G4PionPlus.hh
"
92
#include "
G4PionMinus.hh
"
93
#include "
G4PionZero.hh
"
94
#include "
G4Eta.hh
"
95
#include "
G4EtaPrime.hh
"
96
97
#include "
G4KaonPlus.hh
"
98
#include "
G4KaonMinus.hh
"
99
#include "
G4KaonZero.hh
"
100
#include "
G4AntiKaonZero.hh
"
101
#include "
G4KaonZeroLong.hh
"
102
#include "
G4KaonZeroShort.hh
"
103
104
// Baryons
105
#include "
G4Proton.hh
"
106
#include "
G4AntiProton.hh
"
107
#include "
G4Neutron.hh
"
108
#include "
G4AntiNeutron.hh
"
109
110
// Nuclei
111
#include "
G4Deuteron.hh
"
112
#include "
G4Triton.hh
"
113
#include "
G4Alpha.hh
"
114
#include "
G4GenericIon.hh
"
115
116
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
117
118
void
PhysicsList::ConstructParticle
()
119
{
120
// pseudo-particles
121
G4Geantino::GeantinoDefinition
();
122
G4ChargedGeantino::ChargedGeantinoDefinition
();
123
124
// gamma
125
G4Gamma::GammaDefinition
();
126
127
// optical photon
128
G4OpticalPhoton::OpticalPhotonDefinition
();
129
130
// leptons
131
G4Electron::ElectronDefinition
();
132
G4Positron::PositronDefinition
();
133
G4MuonPlus::MuonPlusDefinition
();
134
G4MuonMinus::MuonMinusDefinition
();
135
136
G4NeutrinoE::NeutrinoEDefinition
();
137
G4AntiNeutrinoE::AntiNeutrinoEDefinition
();
138
G4NeutrinoMu::NeutrinoMuDefinition
();
139
G4AntiNeutrinoMu::AntiNeutrinoMuDefinition
();
140
141
// mesons
142
G4PionPlus::PionPlusDefinition
();
143
G4PionMinus::PionMinusDefinition
();
144
G4PionZero::PionZeroDefinition
();
145
G4Eta::EtaDefinition
();
146
G4EtaPrime::EtaPrimeDefinition
();
147
G4KaonPlus::KaonPlusDefinition
();
148
G4KaonMinus::KaonMinusDefinition
();
149
G4KaonZero::KaonZeroDefinition
();
150
G4AntiKaonZero::AntiKaonZeroDefinition
();
151
G4KaonZeroLong::KaonZeroLongDefinition
();
152
G4KaonZeroShort::KaonZeroShortDefinition
();
153
154
// barions
155
G4Proton::ProtonDefinition
();
156
G4AntiProton::AntiProtonDefinition
();
157
G4Neutron::NeutronDefinition
();
158
G4AntiNeutron::AntiNeutronDefinition
();
159
160
// ions
161
G4Deuteron::DeuteronDefinition
();
162
G4Triton::TritonDefinition
();
163
G4Alpha::AlphaDefinition
();
164
G4GenericIon::GenericIonDefinition
();
165
}
166
167
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
168
169
#include "
G4EmProcessOptions.hh
"
170
171
void
PhysicsList::ConstructProcess
()
172
{
173
// Transportation
174
//
175
AddTransportation
();
176
177
// Electromagnetic physics list
178
//
179
emPhysicsList->
ConstructProcess
();
180
181
// Em options
182
//
183
G4EmProcessOptions
emOptions;
184
emOptions.
SetBuildCSDARange
(
true
);
185
emOptions.
SetMaxEnergyForCSDARange
(100*
TeV
);
186
emOptions.
SetDEDXBinningForCSDARange
(120);
187
emOptions.
SetVerbose
(0);
188
}
189
190
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
191
192
void
PhysicsList::AddPhysicsList
(
const
G4String
&
name
)
193
{
194
if
(
verboseLevel
>0) {
195
G4cout
<<
"PhysicsList::AddPhysicsList: <"
<< name <<
">"
<<
G4endl
;
196
}
197
198
if
(name == emName)
return
;
199
200
if
(name ==
"standard"
) {
201
202
emName =
name
;
203
delete
emPhysicsList;
204
emPhysicsList =
new
PhysListEmStandard
(name);
205
206
}
else
{
207
208
G4cout
<<
"PhysicsList::AddPhysicsList: <"
<< name <<
">"
209
<<
" is not defined"
210
<<
G4endl
;
211
}
212
}
213
214
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
215
216
#include "
G4Gamma.hh
"
217
#include "
G4Electron.hh
"
218
#include "
G4Positron.hh
"
219
220
void
PhysicsList::SetCuts
()
221
{
222
// set cut values for gamma at first and for e- second and next for e+,
223
// because some processes for e+/e- need cut values for gamma
224
SetCutValue
(cutForGamma,
"gamma"
);
225
SetCutValue
(cutForElectron,
"e-"
);
226
SetCutValue
(cutForPositron,
"e+"
);
227
DumpCutValuesTable
();
228
}
229
230
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
231
232
void
PhysicsList::SetCutForGamma
(
G4double
cut)
233
{
234
cutForGamma = cut;
235
SetParticleCuts
(cutForGamma,
G4Gamma::Gamma
());
236
}
237
238
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
239
240
void
PhysicsList::SetCutForElectron
(
G4double
cut)
241
{
242
cutForElectron = cut;
243
SetParticleCuts
(cutForElectron,
G4Electron::Electron
());
244
}
245
246
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
247
248
void
PhysicsList::SetCutForPositron
(
G4double
cut)
249
{
250
cutForPositron = cut;
251
SetParticleCuts
(cutForPositron,
G4Positron::Positron
());
252
}
253
254
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Generated on Sat May 25 2013 14:31:57 for Geant4 by
1.8.4