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
RE02
src
RE02GeneralPhysics.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
//
32
// 22-Nov-2004 Construct ALL Particles by T. Koi
33
34
#include "
RE02GeneralPhysics.hh
"
35
36
#include "
globals.hh
"
37
#include "
G4ios.hh
"
38
#include <iomanip>
39
40
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
41
RE02GeneralPhysics::RE02GeneralPhysics
(
const
G4String
&
name
)
42
:
G4VPhysicsConstructor
(name)
43
{
44
}
45
46
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
47
RE02GeneralPhysics::~RE02GeneralPhysics
()
48
{
49
}
50
51
#include "
G4BaryonConstructor.hh
"
52
#include "
G4BosonConstructor.hh
"
53
#include "
G4IonConstructor.hh
"
54
#include "
G4LeptonConstructor.hh
"
55
#include "
G4MesonConstructor.hh
"
56
#include "
G4ShortLivedConstructor.hh
"
57
58
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
59
void
RE02GeneralPhysics::ConstructParticle
()
60
{
61
// In Alphabetical Order
62
63
// Construct all barions
64
G4BaryonConstructor
* baryonConstructor =
new
G4BaryonConstructor
();
65
baryonConstructor ->
ConstructParticle
();
66
delete
baryonConstructor;
67
68
// Construct all bosons (including geantinos)
69
G4BosonConstructor
* bosonConstructor =
new
G4BosonConstructor
();
70
bosonConstructor ->
ConstructParticle
();
71
delete
bosonConstructor;
72
73
// Construct all ions
74
G4IonConstructor
* ionConstructor =
new
G4IonConstructor
();
75
ionConstructor ->
ConstructParticle
();
76
delete
ionConstructor;
77
78
// Construct all leptons
79
G4LeptonConstructor
* leptonConstructor =
new
G4LeptonConstructor
();
80
leptonConstructor ->
ConstructParticle
();
81
delete
leptonConstructor;
82
83
// Construct all mesons
84
G4MesonConstructor
* mesonConstructor =
new
G4MesonConstructor
();
85
mesonConstructor ->
ConstructParticle
();
86
delete
mesonConstructor;
87
88
// Construct resonaces and quarks
89
G4ShortLivedConstructor
* shortLivedConstructor =
90
new
G4ShortLivedConstructor
();
91
shortLivedConstructor ->
ConstructParticle
();
92
delete
shortLivedConstructor;
93
94
}
95
96
#include "
G4Decay.hh
"
97
#include "
G4ParticleDefinition.hh
"
98
#include "
G4ProcessManager.hh
"
99
100
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
101
void
RE02GeneralPhysics::ConstructProcess
()
102
{
103
// Add Decay Process
104
G4Decay
* theDecayProcess =
new
G4Decay
();
105
theParticleIterator
->
reset
();
106
while
( (*
theParticleIterator
)() ){
107
G4ParticleDefinition
* particle =
theParticleIterator
->
value
();
108
G4ProcessManager
* pmanager = particle->
GetProcessManager
();
109
if
(theDecayProcess->
IsApplicable
(*particle)) {
110
pmanager ->
AddProcess
(theDecayProcess);
111
// set ordering for PostStepDoIt and AtRestDoIt
112
pmanager ->
SetProcessOrdering
(theDecayProcess,
idxPostStep
);
113
pmanager ->
SetProcessOrdering
(theDecayProcess,
idxAtRest
);
114
}
115
}
116
}
117
118
Generated on Sat May 25 2013 14:33:01 for Geant4 by
1.8.4