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
examples
extended
runAndEvent
RE04
src
RE04PhysicsList.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: $
30
//
31
#include "
RE04PhysicsList.hh
"
32
33
#include "
G4EmStandardPhysics.hh
"
34
#include "
G4EmExtraPhysics.hh
"
35
#include "
G4DecayPhysics.hh
"
36
#include "
G4HadronElasticPhysics.hh
"
37
#include "
HadronPhysicsQGSP_BERT.hh
"
38
#include "
G4StoppingPhysics.hh
"
39
#include "
G4IonPhysics.hh
"
40
#include "
G4SystemOfUnits.hh
"
41
42
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43
RE04PhysicsList::RE04PhysicsList
(
G4String
& parWorldName)
44
:fpWorldName(parWorldName)
45
{
46
defaultCutValue
= 0.01*
mm
;
47
G4int
ver = 1;
48
SetVerboseLevel
(ver);
49
50
// EM Physics
51
this->
RegisterPhysics
(
new
G4EmStandardPhysics
(ver) );
52
53
// Synchrotron Radiation & GN Physics
54
this->
RegisterPhysics
(
new
G4EmExtraPhysics
(ver) );
55
56
// Decays
57
this->
RegisterPhysics
(
new
G4DecayPhysics
(ver) );
58
59
// Hadron Elastic scattering
60
this->
RegisterPhysics
(
new
G4HadronElasticPhysics
(ver) );
61
62
// Hadron Physics
63
this->
RegisterPhysics
(
new
HadronPhysicsQGSP_BERT
(ver));
64
65
// Stopping Physics
66
this->
RegisterPhysics
(
new
G4StoppingPhysics
(ver) );
67
68
// Ion Physics
69
this->
RegisterPhysics
(
new
G4IonPhysics
(ver));
70
71
}
72
73
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
74
RE04PhysicsList::~RE04PhysicsList
()
75
{}
76
77
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
78
void
RE04PhysicsList::ConstructProcess
()
79
{
80
AddTransportation
();
81
82
AddParallelWorldProcess();
83
84
G4PhysConstVector::iterator itr;
85
for
(itr =
physicsVector
->begin(); itr!=
physicsVector
->end(); ++itr) {
86
(*itr)->ConstructProcess();
87
}
88
}
89
90
#include "
G4ProcessManager.hh
"
91
#include "
G4ProcessVector.hh
"
92
#include "
G4ParticleDefinition.hh
"
93
#include "
G4ParticleTable.hh
"
94
#include "
G4ChargedGeantino.hh
"
95
96
#include "
G4ParallelWorldProcess.hh
"
97
98
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
99
void
RE04PhysicsList::AddParallelWorldProcess()
100
{
101
// Add parallel world process
102
G4ParallelWorldProcess
* theParallelWorldProcess
103
=
new
G4ParallelWorldProcess
(
"paraWorldProc"
);
104
theParallelWorldProcess->
SetParallelWorld
(fpWorldName);
105
theParallelWorldProcess->
SetLayeredMaterialFlag
();
106
107
theParticleIterator
->
reset
();
108
while
( (*
theParticleIterator
)() ){
109
G4ParticleDefinition
* particle =
theParticleIterator
->
value
();
110
if
(particle!=
G4ChargedGeantino::Definition
()) {
111
G4ProcessManager
* pmanager = particle->
GetProcessManager
();
112
pmanager->
AddProcess
(theParallelWorldProcess);
113
if
(theParallelWorldProcess->
IsAtRestRequired
(particle))
114
{pmanager->
SetProcessOrdering
(theParallelWorldProcess,
idxAtRest
, 9999);}
115
pmanager->
SetProcessOrdering
(theParallelWorldProcess,
idxAlongStep
, 1);
116
pmanager->
SetProcessOrdering
(theParallelWorldProcess,
idxPostStep
, 9999);
117
}
118
}
119
}
120
121
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
122
void
RE04PhysicsList::SetCuts
()
123
{
124
SetCutsWithDefault
();
125
}
Generated on Sat May 25 2013 14:33:02 for Geant4 by
1.8.4