Geant4
10.03.p03
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
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
//
28
//
29
// $Id: PhysicsList.cc 85260 2014-10-27 08:53:35Z gcosmo $
30
//
31
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33
34
#include "PhysicsList.hh"
35
#include "PhysicsListMessenger.hh"
36
37
#include "
G4EmDNAPhysics.hh
"
38
#include "
G4EmDNAPhysics_option1.hh
"
39
#include "
G4EmDNAPhysics_option2.hh
"
40
#include "
G4EmDNAPhysics_option3.hh
"
41
#include "
G4EmDNAPhysics_option4.hh
"
42
#include "
G4EmDNAPhysics_option5.hh
"
43
#include "
G4EmDNAPhysics_option7.hh
"
44
#include "
G4EmStandardPhysics_option3.hh
"
45
46
#include "
G4UnitsTable.hh
"
47
#include "
G4SystemOfUnits.hh
"
48
#include "
G4UserSpecialCuts.hh
"
49
50
// particles
51
52
#include "
G4BosonConstructor.hh
"
53
#include "
G4LeptonConstructor.hh
"
54
#include "
G4MesonConstructor.hh
"
55
#include "
G4BosonConstructor.hh
"
56
#include "
G4BaryonConstructor.hh
"
57
#include "
G4IonConstructor.hh
"
58
#include "
G4ShortLivedConstructor.hh
"
59
#include "
G4DNAGenericIonsManager.hh
"
60
61
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
62
63
PhysicsList::PhysicsList
() :
G4VModularPhysicsList
(),
64
fEmPhysicsList(0), fMessenger(0)
65
{
66
fMessenger =
new
PhysicsListMessenger
(
this
);
67
68
SetVerboseLevel
(1);
69
70
// EM physics
71
fEmPhysicsList =
new
G4EmDNAPhysics
();
72
}
73
74
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
75
76
PhysicsList::~PhysicsList
()
77
{
78
delete
fMessenger;
79
delete
fEmPhysicsList;
80
}
81
82
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
83
84
void
PhysicsList::ConstructParticle
()
85
{
86
G4BosonConstructor
pBosonConstructor;
87
pBosonConstructor.
ConstructParticle
();
88
89
G4LeptonConstructor
pLeptonConstructor;
90
pLeptonConstructor.
ConstructParticle
();
91
92
G4MesonConstructor
pMesonConstructor;
93
pMesonConstructor.
ConstructParticle
();
94
95
G4BaryonConstructor
pBaryonConstructor;
96
pBaryonConstructor.
ConstructParticle
();
97
98
G4IonConstructor
pIonConstructor;
99
pIonConstructor.
ConstructParticle
();
100
101
G4ShortLivedConstructor
pShortLivedConstructor;
102
pShortLivedConstructor.
ConstructParticle
();
103
104
G4DNAGenericIonsManager
* genericIonsManager;
105
genericIonsManager=
G4DNAGenericIonsManager::Instance
();
106
genericIonsManager->
GetIon
(
"alpha++"
);
107
genericIonsManager->
GetIon
(
"alpha+"
);
108
genericIonsManager->
GetIon
(
"helium"
);
109
genericIonsManager->
GetIon
(
"hydrogen"
);
110
}
111
112
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
113
114
#include "
G4ProcessManager.hh
"
115
#include "
G4EmProcessOptions.hh
"
116
117
void
PhysicsList::ConstructProcess
()
118
{
119
// transportation
120
//
121
AddTransportation
();
122
123
// electromagnetic physics list
124
//
125
fEmPhysicsList->
ConstructProcess
();
126
127
// tracking cut
128
//
129
AddTrackingCut
();
130
}
131
132
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
133
134
void
PhysicsList::AddPhysicsList
(
const
G4String
&
name
)
135
{
136
if
(
verboseLevel
>-1) {
137
G4cout
<<
"PhysicsList::AddPhysicsList: <"
<< name <<
">"
<<
G4endl
;
138
}
139
140
if
(name == fEmName)
return
;
141
142
if
(name ==
"dna"
) {
143
fEmName =
name
;
144
delete
fEmPhysicsList;
145
fEmPhysicsList =
new
G4EmDNAPhysics
();
146
147
}
else
if
(name ==
"dna_opt1"
) {
148
fEmName =
name
;
149
delete
fEmPhysicsList;
150
fEmPhysicsList =
new
G4EmDNAPhysics_option1
();
151
}
152
else
if
(name ==
"dna_opt2"
) {
153
fEmName =
name
;
154
delete
fEmPhysicsList;
155
fEmPhysicsList =
new
G4EmDNAPhysics_option2
();
156
}
157
else
if
(name ==
"dna_opt3"
) {
158
fEmName =
name
;
159
delete
fEmPhysicsList;
160
fEmPhysicsList =
new
G4EmDNAPhysics_option3
();
161
}
162
else
if
(name ==
"dna_opt4"
) {
163
fEmName =
name
;
164
delete
fEmPhysicsList;
165
fEmPhysicsList =
new
G4EmDNAPhysics_option4
();
166
}
167
else
if
(name ==
"dna_opt5"
) {
168
fEmName =
name
;
169
delete
fEmPhysicsList;
170
fEmPhysicsList =
new
G4EmDNAPhysics_option5
();
171
}
172
else
if
(name ==
"dna_opt7"
) {
173
fEmName =
name
;
174
delete
fEmPhysicsList;
175
fEmPhysicsList =
new
G4EmDNAPhysics_option7
();
176
}
177
else
if
(name ==
"std_opt3"
) {
178
fEmName =
name
;
179
delete
fEmPhysicsList;
180
fEmPhysicsList =
new
G4EmStandardPhysics_option3
();
181
}
182
else
{
183
G4cout
<<
"PhysicsList::AddPhysicsList: <"
<< name <<
">"
184
<<
" is not defined"
185
<<
G4endl
;
186
}
187
}
188
189
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
190
191
void
PhysicsList::AddTrackingCut
()
192
{
193
G4PhysicsListHelper
* ph =
G4PhysicsListHelper::GetPhysicsListHelper
();
194
195
auto
particleIterator
=
GetParticleIterator
();
196
particleIterator
->reset();
197
while
( (*
particleIterator
)() )
198
{
199
G4ParticleDefinition
* particle =
particleIterator
->value();
200
G4String
particleName = particle->
GetParticleName
();
201
202
if
(particleName ==
"e-"
)
203
ph->
RegisterProcess
(
new
G4UserSpecialCuts
(), particle);
204
}
205
}
206
207
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4DNAGenericIonsManager.hh
name
const XML_Char * name
Definition:
expat.h:151
G4EmDNAPhysics_option1.hh
PhysicsList::ConstructParticle
void ConstructParticle()
Definition:
PhysicsList.cc:117
G4MesonConstructor.hh
PhysicsList::AddTrackingCut
void AddTrackingCut()
Definition:
PhysicsList.cc:188
G4UserSpecialCuts.hh
G4BaryonConstructor.hh
G4BaryonConstructor
Definition:
G4BaryonConstructor.hh:39
G4EmDNAPhysics_option5.hh
G4UserSpecialCuts
Definition:
G4UserSpecialCuts.hh:47
G4EmDNAPhysics.hh
G4MesonConstructor
Definition:
G4MesonConstructor.hh:39
G4EmDNAPhysics
Definition:
G4EmDNAPhysics.hh:37
G4UnitsTable.hh
G4BaryonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4BaryonConstructor.cc:102
G4IonConstructor.hh
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:72
G4ShortLivedConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4ShortLivedConstructor.cc:58
G4EmDNAPhysics_option3.hh
G4MesonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4MesonConstructor.cc:80
G4EmDNAPhysics_option5
Definition:
G4EmDNAPhysics_option5.hh:37
G4ParticleDefinition::GetParticleName
const G4String & GetParticleName() const
Definition:
G4ParticleDefinition.hh:120
PhysicsList::AddPhysicsList
void AddPhysicsList(const G4String &name)
Definition:
PhysicsList.cc:191
G4IonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4IonConstructor.cc:59
G4VModularPhysicsList::verboseLevel
G4int verboseLevel
Definition:
G4VModularPhysicsList.hh:146
G4cout
G4GLOB_DLL std::ostream G4cout
G4BosonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4BosonConstructor.cc:53
G4LeptonConstructor.hh
G4PhysicsListHelper::RegisterProcess
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
Definition:
G4PhysicsListHelper.cc:413
G4EmDNAPhysics_option2
Definition:
G4EmDNAPhysics_option2.hh:37
G4EmDNAPhysics_option4
Definition:
G4EmDNAPhysics_option4.hh:37
G4ProcessManager.hh
G4IonConstructor
Definition:
G4IonConstructor.hh:39
G4DNAGenericIonsManager::Instance
static G4DNAGenericIonsManager * Instance(void)
Definition:
G4DNAGenericIonsManager.cc:36
G4VModularPhysicsList::SetVerboseLevel
void SetVerboseLevel(G4int value)
Definition:
G4VModularPhysicsList.cc:377
PhysicsList::~PhysicsList
~PhysicsList()
Definition:
PhysicsList.cc:65
G4LeptonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4LeptonConstructor.cc:60
G4EmStandardPhysics_option3.hh
G4ShortLivedConstructor.hh
G4EmDNAPhysics_option2.hh
G4EmStandardPhysics_option3
Definition:
G4EmStandardPhysics_option3.hh:52
G4VUserPhysicsList::AddTransportation
void AddTransportation()
Definition:
G4VUserPhysicsList.cc:953
PhysicsList::PhysicsList
PhysicsList()
Definition:
PhysicsList.cc:43
G4EmDNAPhysics_option1
Definition:
G4EmDNAPhysics_option1.hh:37
G4PhysicsListHelper::GetPhysicsListHelper
static G4PhysicsListHelper * GetPhysicsListHelper()
Definition:
G4PhysicsListHelper.cc:89
G4EmDNAPhysics_option3
Definition:
G4EmDNAPhysics_option3.hh:34
G4VPhysicsConstructor::ConstructProcess
virtual void ConstructProcess()=0
particleIterator
std::vector< G4InuclElementaryParticle >::iterator particleIterator
Definition:
G4BigBanger.cc:65
G4VUserPhysicsList::GetParticleIterator
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
Definition:
G4VUserPhysicsList.cc:972
G4endl
#define G4endl
Definition:
G4ios.hh:61
G4ShortLivedConstructor
Definition:
G4ShortLivedConstructor.hh:39
G4DNAGenericIonsManager
Definition:
G4DNAGenericIonsManager.hh:39
G4PhysicsListHelper
Definition:
G4PhysicsListHelper.hh:50
G4SystemOfUnits.hh
G4BosonConstructor
Definition:
G4BosonConstructor.hh:39
PhysicsList::ConstructProcess
void ConstructProcess()
Definition:
PhysicsList.cc:170
G4EmDNAPhysics_option7
Definition:
G4EmDNAPhysics_option7.hh:37
G4EmDNAPhysics_option4.hh
G4EmProcessOptions.hh
G4BosonConstructor.hh
G4EmDNAPhysics_option7.hh
G4LeptonConstructor
Definition:
G4LeptonConstructor.hh:39
G4DNAGenericIonsManager::GetIon
G4ParticleDefinition * GetIon(const G4String &name)
Definition:
G4DNAGenericIonsManager.cc:46
G4VModularPhysicsList
Definition:
G4VModularPhysicsList.hh:90
G4String
Definition:
G4String.hh:45
PhysicsListMessenger
Definition:
PhysicsListMessenger.hh:44
source
geant4.10.03.p03
examples
extended
medical
dna
svalue
src
PhysicsList.cc
Generated on Tue Nov 28 2017 21:43:41 for Geant4 by
1.8.5