Geant4
10.01.p03
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ExExChIonPhysics.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
#include "
ExExChIonPhysics.hh
"
28
#include "
G4SystemOfUnits.hh
"
29
#include "
G4ParticleDefinition.hh
"
30
#include "
G4ProcessManager.hh
"
31
#include "
G4Deuteron.hh
"
32
#include "
G4Triton.hh
"
33
#include "
G4He3.hh
"
34
#include "
G4Alpha.hh
"
35
#include "
G4GenericIon.hh
"
36
#include "
G4IonConstructor.hh
"
37
38
#include "
G4HadronInelasticProcess.hh
"
39
#include "
G4BinaryLightIonReaction.hh
"
40
#include "
G4ComponentGGNuclNuclXsc.hh
"
41
#include "
G4CrossSectionInelastic.hh
"
42
43
#include "
G4PreCompoundModel.hh
"
44
#include "
G4ExcitationHandler.hh
"
45
#include "
G4FTFBuilder.hh
"
46
#include "
G4HadronicInteraction.hh
"
47
#include "
G4BuilderType.hh
"
48
49
using namespace
std
;
50
51
// factory
52
#include "
G4PhysicsConstructorFactory.hh
"
53
//
54
55
// Wrapper
56
#include "
XWrapperDiscreteProcess.hh
"
57
58
G4_DECLARE_PHYSCONSTR_FACTORY
(
ExExChIonPhysics
);
59
60
G4ThreadLocal
G4bool
ExExChIonPhysics::wasActivated
=
false
;
61
G4ThreadLocal
G4BinaryLightIonReaction
*
ExExChIonPhysics::theIonBC
= 0;
62
G4ThreadLocal
G4HadronicInteraction
*
ExExChIonPhysics::theFTFP
= 0;
63
G4ThreadLocal
G4VCrossSectionDataSet
*
64
ExExChIonPhysics::theNuclNuclData
= 0;
65
G4ThreadLocal
G4VComponentCrossSection
*
66
ExExChIonPhysics::theGGNuclNuclXS
= 0;
67
G4ThreadLocal
G4FTFBuilder
*
ExExChIonPhysics::theBuilder
;
68
69
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
70
71
ExExChIonPhysics::ExExChIonPhysics
(
G4int
ver)
72
:
G4VPhysicsConstructor
(
"ionInelasticFTFP_BIC"
),verbose(ver)
73
{
74
SetPhysicsType
(
bIons
);
75
if
(
verbose
> 1) {
G4cout
<<
"### ExExChIonPhysics"
<<
G4endl
; }
76
}
77
78
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
79
80
ExExChIonPhysics::ExExChIonPhysics
(
const
G4String
& nname)
81
:
G4VPhysicsConstructor
(nname),verbose(1)
82
{
83
SetPhysicsType
(
bIons
);
84
if
(
verbose
> 1) {
G4cout
<<
"### ExExChIonPhysics"
<<
G4endl
; }
85
}
86
87
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
88
89
ExExChIonPhysics::~ExExChIonPhysics
()
90
{
91
//Explictly setting pointers to zero is actually needed.
92
//These are static variables, in case we restart threads
93
//we need to re-create objects
94
delete
theBuilder
;
theBuilder
= 0;
95
delete
theGGNuclNuclXS
;
theGGNuclNuclXS
= 0;
96
delete
theNuclNuclData
;
theNuclNuclData
= 0;
97
delete
theIonBC
;
theIonBC
= 0;
98
delete
theFTFP
;
theFTFP
= 0;
99
}
100
101
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
102
103
void
ExExChIonPhysics::ConstructParticle
()
104
{
105
// Construct ions
106
G4IonConstructor
pConstructor;
107
pConstructor.
ConstructParticle
();
108
}
109
110
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
111
112
void
ExExChIonPhysics::ConstructProcess
()
113
{
114
if
(
wasActivated
) {
return
; }
115
wasActivated
=
true
;
116
117
G4double
emax = 100.*
TeV
;
118
119
G4ExcitationHandler
* handler =
new
G4ExcitationHandler
();
120
G4PreCompoundModel
* thePreCompound =
new
G4PreCompoundModel
(handler);
121
122
// Binary Cascade
123
theIonBC
=
new
G4BinaryLightIonReaction
(thePreCompound);
124
theIonBC
->
SetMinEnergy
(0.0);
125
theIonBC
->
SetMaxEnergy
(4*
GeV
);
126
127
// FTFP
128
theBuilder
=
new
G4FTFBuilder
(
"FTFP"
,thePreCompound);
129
theFTFP
=
theBuilder
->
GetModel
();
130
theFTFP
->
SetMinEnergy
(2*
GeV
);
131
theFTFP
->
SetMaxEnergy
(emax);
132
133
theGGNuclNuclXS
=
new
G4ComponentGGNuclNuclXsc
();
134
theNuclNuclData
=
new
G4CrossSectionInelastic
(
theGGNuclNuclXS
);
135
136
AddProcess
(
"dInelastic"
,
G4Deuteron::Deuteron
(),
false
);
137
AddProcess
(
"tInelastic"
,
G4Triton::Triton
(),
false
);
138
AddProcess
(
"He3Inelastic"
,
G4He3::He3
(),
true
);
139
AddProcess
(
"alphaInelastic"
,
G4Alpha::Alpha
(),
true
);
140
AddProcess
(
"ionInelastic"
,
G4GenericIon::GenericIon
(),
true
);
141
142
if
(
verbose
> 1) {
143
G4cout
<<
"ExExChIonPhysics::ConstructProcess done! "
144
<<
G4endl
;
145
}
146
}
147
148
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
149
150
void
ExExChIonPhysics::AddProcess
(
const
G4String
&
name
,
151
G4ParticleDefinition
* part,
152
G4bool
)
//isIon)
153
{
154
G4HadronInelasticProcess
* hadi =
new
G4HadronInelasticProcess
(name, part);
155
G4ProcessManager
* pManager = part->
GetProcessManager
();
156
157
158
hadi->
AddDataSet
(
theNuclNuclData
);
159
160
hadi->
RegisterMe
(
theIonBC
);
161
hadi->
RegisterMe
(
theFTFP
);
162
163
XWrapperDiscreteProcess
* hadi_wrapper =
new
XWrapperDiscreteProcess
();
164
hadi_wrapper->
RegisterProcess
(hadi,1);
165
pManager->
AddDiscreteProcess
(hadi_wrapper);
166
167
}
168
169
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4BinaryLightIonReaction.hh
G4GenericIon.hh
ExExChIonPhysics::ConstructProcess
void ConstructProcess()
Definition:
ExExChIonPhysics.cc:112
ExExChIonPhysics::~ExExChIonPhysics
virtual ~ExExChIonPhysics()
Definition:
ExExChIonPhysics.cc:89
G4Triton.hh
ExExChIonPhysics::theBuilder
static G4ThreadLocal G4FTFBuilder * theBuilder
Definition:
ExExChIonPhysics.hh:63
G4ExcitationHandler.hh
ExExChIonPhysics
Definition:
ExExChIonPhysics.hh:40
name
G4String name
Definition:
TRTMaterials.hh:40
G4ProcessManager::AddDiscreteProcess
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
std
G4ComponentGGNuclNuclXsc
Definition:
G4ComponentGGNuclNuclXsc.hh:50
G4IonConstructor.hh
G4BuilderType.hh
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:111
G4ThreadLocal
#define G4ThreadLocal
Definition:
tls.hh:89
G4VCrossSectionDataSet
Definition:
G4VCrossSectionDataSet.hh:70
G4ParticleDefinition::GetProcessManager
G4ProcessManager * GetProcessManager() const
G4int
int G4int
Definition:
G4Types.hh:78
G4HadronicInteraction
Definition:
G4HadronicInteraction.hh:62
G4FTFBuilder.hh
G4_DECLARE_PHYSCONSTR_FACTORY
G4_DECLARE_PHYSCONSTR_FACTORY(ExExChIonPhysics)
G4VHadronModelBuilder::GetModel
G4HadronicInteraction * GetModel()
Definition:
G4VHadronModelBuilder.cc:48
ExExChIonPhysics::verbose
G4int verbose
Definition:
ExExChIonPhysics.hh:65
G4IonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4IonConstructor.cc:59
G4VComponentCrossSection
Definition:
G4VComponentCrossSection.hh:52
G4HadronicProcess::RegisterMe
void RegisterMe(G4HadronicInteraction *a)
Definition:
G4HadronicProcess.cc:140
G4FTFBuilder
Definition:
G4FTFBuilder.hh:50
ExExChIonPhysics::ConstructParticle
void ConstructParticle()
Definition:
ExExChIonPhysics.cc:103
G4HadronicInteraction::SetMinEnergy
void SetMinEnergy(G4double anEnergy)
Definition:
G4HadronicInteraction.hh:89
G4HadronicProcess::AddDataSet
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
Definition:
G4HadronicProcess.hh:116
G4PreCompoundModel.hh
G4cout
G4GLOB_DLL std::ostream G4cout
ExExChIonPhysics::AddProcess
void AddProcess(const G4String &, G4ParticleDefinition *, G4bool isIon)
Definition:
ExExChIonPhysics.cc:150
G4PreCompoundModel
Definition:
G4PreCompoundModel.hh:64
G4bool
bool G4bool
Definition:
G4Types.hh:79
G4ExcitationHandler
Definition:
G4ExcitationHandler.hh:64
G4CrossSectionInelastic
Definition:
G4CrossSectionInelastic.hh:61
G4Alpha.hh
G4Triton::Triton
static G4Triton * Triton()
Definition:
G4Triton.cc:95
GeV
static const double GeV
Definition:
G4SIunits.hh:196
G4ProcessManager.hh
G4ParticleDefinition.hh
G4BinaryLightIonReaction
Definition:
G4BinaryLightIonReaction.hh:34
G4IonConstructor
Definition:
G4IonConstructor.hh:39
G4HadronInelasticProcess.hh
G4Deuteron::Deuteron
static G4Deuteron * Deuteron()
Definition:
G4Deuteron.cc:94
G4Deuteron.hh
bIons
Definition:
G4BuilderType.hh:54
ExExChIonPhysics::wasActivated
static G4ThreadLocal G4bool wasActivated
Definition:
ExExChIonPhysics.hh:66
ExExChIonPhysics::ExExChIonPhysics
ExExChIonPhysics(G4int ver=0)
Definition:
ExExChIonPhysics.cc:71
G4HadronInelasticProcess
Definition:
G4HadronInelasticProcess.hh:48
G4GenericIon::GenericIon
static G4GenericIon * GenericIon()
Definition:
G4GenericIon.cc:93
XWrapperDiscreteProcess.hh
G4HadronicInteraction.hh
ExExChIonPhysics.hh
G4He3.hh
G4PhysicsConstructorFactory.hh
ExExChIonPhysics::theFTFP
static G4ThreadLocal G4HadronicInteraction * theFTFP
Definition:
ExExChIonPhysics.hh:62
G4HadronicInteraction::SetMaxEnergy
void SetMaxEnergy(const G4double anEnergy)
Definition:
G4HadronicInteraction.hh:102
ExExChIonPhysics::theGGNuclNuclXS
static G4ThreadLocal G4VComponentCrossSection * theGGNuclNuclXS
Definition:
ExExChIonPhysics.hh:59
G4endl
#define G4endl
Definition:
G4ios.hh:61
G4ProcessManager
Definition:
G4ProcessManager.hh:106
TeV
static const double TeV
Definition:
G4SIunits.hh:197
XWrapperDiscreteProcess::RegisterProcess
void RegisterProcess(G4VDiscreteProcess *)
Definition:
XWrapperDiscreteProcess.cc:75
G4Alpha::Alpha
static G4Alpha * Alpha()
Definition:
G4Alpha.cc:89
ExExChIonPhysics::theNuclNuclData
static G4ThreadLocal G4VCrossSectionDataSet * theNuclNuclData
Definition:
ExExChIonPhysics.hh:58
G4double
double G4double
Definition:
G4Types.hh:76
XWrapperDiscreteProcess
Definition:
XWrapperDiscreteProcess.hh:37
G4SystemOfUnits.hh
G4CrossSectionInelastic.hh
ExExChIonPhysics::theIonBC
static G4ThreadLocal G4BinaryLightIonReaction * theIonBC
Definition:
ExExChIonPhysics.hh:61
G4He3::He3
static G4He3 * He3()
Definition:
G4He3.cc:94
G4VPhysicsConstructor::SetPhysicsType
void SetPhysicsType(G4int)
Definition:
G4VPhysicsConstructor.hh:199
G4VPhysicsConstructor
Definition:
G4VPhysicsConstructor.hh:121
G4ComponentGGNuclNuclXsc.hh
G4String
Definition:
G4String.hh:45
geant4.10.01.p03
examples
extended
exoticphysics
channeling
src
ExExChIonPhysics.cc
Generated on Fri Feb 19 2016 15:53:07 for Geant4 by
1.8.8