Geant4
10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronPhysicsQGS_BIC.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
//---------------------------------------------------------------------------
28
//
29
// ClassName: G4HadronPhysicsQGS_BIC
30
//
31
// Author: 2007 Gunter Folger
32
// created from G4HadronPhysicsQGSP_BIC by H.P.Wellisch
33
//
34
// Modified:
35
//
36
//----------------------------------------------------------------------------
37
//
38
#include <iomanip>
39
40
#include "
G4HadronPhysicsQGS_BIC.hh
"
41
#include "
G4PionBuilder.hh
"
42
#include "
G4BinaryPionBuilder.hh
"
43
#include "
G4BertiniPionBuilder.hh
"
44
#include "
G4FTFBinaryPionBuilder.hh
"
45
#include "
G4QGSBinaryPionBuilder.hh
"
46
47
#include "
G4KaonBuilder.hh
"
48
#include "
G4BertiniKaonBuilder.hh
"
49
#include "
G4FTFBinaryKaonBuilder.hh
"
50
#include "
G4QGSBinaryKaonBuilder.hh
"
51
52
#include "
G4ProtonBuilder.hh
"
53
#include "
G4FTFBinaryProtonBuilder.hh
"
54
#include "
G4QGSBinaryProtonBuilder.hh
"
55
#include "
G4BinaryProtonBuilder.hh
"
56
57
#include "
G4NeutronBuilder.hh
"
58
#include "
G4FTFBinaryNeutronBuilder.hh
"
59
#include "
G4QGSBinaryNeutronBuilder.hh
"
60
#include "
G4BinaryNeutronBuilder.hh
"
61
62
#include "
globals.hh
"
63
#include "
G4ios.hh
"
64
#include "
G4SystemOfUnits.hh
"
65
#include "
G4ParticleDefinition.hh
"
66
#include "
G4ParticleTable.hh
"
67
68
#include "
G4HadronCaptureProcess.hh
"
69
#include "
G4NeutronRadCapture.hh
"
70
#include "
G4NeutronInelasticXS.hh
"
71
#include "
G4NeutronCaptureXS.hh
"
72
73
#include "
G4PhysListUtil.hh
"
74
#include "
G4HadParticles.hh
"
75
#include "
G4HadronicParameters.hh
"
76
77
#include "
G4PhysicsConstructorFactory.hh
"
78
//
79
G4_DECLARE_PHYSCONSTR_FACTORY
(
G4HadronPhysicsQGS_BIC
);
80
81
G4HadronPhysicsQGS_BIC::G4HadronPhysicsQGS_BIC
(
G4int
)
82
:
G4HadronPhysicsQGS_BIC
(
"hInelastic QGS_BIC"
,true) {}
83
84
G4HadronPhysicsQGS_BIC::G4HadronPhysicsQGS_BIC
(
const
G4String
& name,
G4bool
qe)
85
:
G4HadronPhysicsQGSP_BERT
(name, qe)
86
{
87
minBERT_pion = 1.0*GeV;
88
maxBIC_pion = 1.5*GeV;
89
}
90
91
G4HadronPhysicsQGS_BIC::~G4HadronPhysicsQGS_BIC
()
92
{}
93
94
void
G4HadronPhysicsQGS_BIC::Neutron
()
95
{
96
G4HadronicParameters
* param =
G4HadronicParameters::Instance
();
97
G4bool
useFactorXS = param->
ApplyFactorXS
();
98
//General schema:
99
// 1) Create a builder
100
// 2) Call AddBuilder
101
// 3) Configure the builder, possibly with sub-builders
102
// 4) Call builder->Build()
103
auto
neu =
new
G4NeutronBuilder
;
104
AddBuilder
(neu);
105
auto
qgs =
new
G4QGSBinaryNeutronBuilder
(
QuasiElasticQGS
);
106
AddBuilder
(qgs);
107
qgs->SetMinEnergy(
minQGSP_neutron
);
108
neu->RegisterMe(qgs);
109
auto
ftf =
new
G4FTFBinaryNeutronBuilder
(
QuasiElasticFTF
);
110
AddBuilder
(ftf);
111
ftf->SetMinEnergy(
minFTFP_neutron
);
112
ftf->SetMaxEnergy(
maxFTFP_neutron
);
113
neu->RegisterMe(ftf);
114
auto
bicn =
new
G4BinaryNeutronBuilder
;
115
AddBuilder
(bicn);
116
bicn->SetMaxEnergy(
maxBERT_neutron
);
117
neu->RegisterMe(bicn);
118
neu->Build();
119
120
const
G4ParticleDefinition
* neutron =
G4Neutron::Neutron
();
121
G4HadronicProcess
* inel =
G4PhysListUtil::FindInelasticProcess
(neutron);
122
if
(inel) {
123
inel->
AddDataSet
(
new
G4NeutronInelasticXS
());
124
if
( useFactorXS ) inel->
MultiplyCrossSectionBy
( param->
XSFactorNucleonInelastic
() );
125
}
126
G4HadronicProcess
* capture =
G4PhysListUtil::FindCaptureProcess
(neutron);
127
if
(capture) {
128
capture->
RegisterMe
(
new
G4NeutronRadCapture
());
129
}
130
}
131
132
void
G4HadronPhysicsQGS_BIC::Proton
()
133
{
134
G4HadronicParameters
* param =
G4HadronicParameters::Instance
();
135
G4bool
useFactorXS = param->
ApplyFactorXS
();
136
137
auto
pro =
new
G4ProtonBuilder
;
138
AddBuilder
(pro);
139
auto
qgs =
new
G4QGSBinaryProtonBuilder
(
QuasiElasticQGS
);
140
AddBuilder
(qgs);
141
qgs->SetMinEnergy(
minQGSP_proton
);
142
pro->RegisterMe(qgs);
143
auto
ftf =
new
G4FTFBinaryProtonBuilder
(
QuasiElasticFTF
);
144
AddBuilder
(ftf);
145
ftf->SetMinEnergy(
minFTFP_proton
);
146
ftf->SetMaxEnergy(
maxFTFP_proton
);
147
pro->RegisterMe(ftf);
148
auto
bic =
new
G4BinaryProtonBuilder
;
149
AddBuilder
(bic);
150
bic->SetMaxEnergy(
maxBERT_proton
);
151
pro->RegisterMe(bic);
152
pro->Build();
153
154
const
G4ParticleDefinition
* proton =
G4Proton::Proton
();
155
G4HadronicProcess
* inel =
G4PhysListUtil::FindInelasticProcess
(proton);
156
if
(inel) {
157
if
( useFactorXS ) inel->
MultiplyCrossSectionBy
( param->
XSFactorNucleonInelastic
() );
158
}
159
}
160
161
void
G4HadronPhysicsQGS_BIC::Pion
()
162
{
163
G4HadronicParameters
* param =
G4HadronicParameters::Instance
();
164
G4bool
useFactorXS = param->
ApplyFactorXS
();
165
166
auto
pi =
new
G4PionBuilder
;
167
AddBuilder
(pi);
168
auto
qgs =
new
G4QGSBinaryPionBuilder
(
QuasiElasticQGS
);
169
AddBuilder
(qgs);
170
qgs->SetMinEnergy(
minQGSP_pik
);
171
pi->RegisterMe(qgs);
172
auto
ftf =
new
G4FTFBinaryPionBuilder
(
QuasiElasticFTF
);
173
AddBuilder
(ftf);
174
ftf->SetMinEnergy(
minFTFP_pik
);
175
ftf->SetMaxEnergy(
maxFTFP_pik
);
176
pi->RegisterMe(ftf);
177
auto
bert =
new
G4BertiniPionBuilder
;
178
AddBuilder
(bert);
179
bert->SetMinEnergy(minBERT_pion);
180
bert->SetMaxEnergy(
maxBERT_pik
);
181
pi->RegisterMe(bert);
182
auto
bic =
new
G4BinaryPionBuilder
;
183
AddBuilder
(bic);
184
bic->SetMaxEnergy(maxBIC_pion);
185
pi->RegisterMe(bic);
186
pi->Build();
187
188
auto
k =
new
G4KaonBuilder
;
189
AddBuilder
(k);
190
auto
qgsk =
new
G4QGSBinaryKaonBuilder
(
QuasiElasticQGS
);
191
AddBuilder
(qgsk);
192
qgsk->SetMinEnergy(
minQGSP_pik
);
193
k->RegisterMe(qgsk);
194
auto
ftfk =
new
G4FTFBinaryKaonBuilder
(
QuasiElasticFTF
);
195
AddBuilder
(ftfk);
196
ftfk->SetMaxEnergy(
maxFTFP_pik
);
197
k->RegisterMe(ftfk);
198
auto
bertk =
new
G4BertiniKaonBuilder
;
199
AddBuilder
(bertk);
200
bertk->SetMaxEnergy(
maxBERT_pik
);
201
k->RegisterMe(bertk);
202
k->Build();
203
204
// add cross section factor
205
if
( useFactorXS ) {
206
const
G4ParticleDefinition
* pion =
G4PionPlus::PionPlus
();
207
G4HadronicProcess
* inel =
G4PhysListUtil::FindInelasticProcess
(pion);
208
if
(inel) {
209
inel->
MultiplyCrossSectionBy
( param->
XSFactorPionInelastic
() );
210
}
211
pion =
G4PionMinus::PionMinus
();
212
inel =
G4PhysListUtil::FindInelasticProcess
(pion);
213
if
(inel) {
214
inel->
MultiplyCrossSectionBy
( param->
XSFactorPionInelastic
() );
215
}
216
G4ParticleTable
* table =
G4ParticleTable::GetParticleTable
();
217
for
(
auto
& pdg :
G4HadParticles::GetKaons
() ) {
218
auto
part = table->
FindParticle
( pdg );
219
if
( part ==
nullptr
) {
continue
; }
220
inel =
G4PhysListUtil::FindInelasticProcess
(part);
221
if
(inel) {
222
inel->
MultiplyCrossSectionBy
( param->
XSFactorHadronInelastic
() );
223
}
224
}
225
}
226
}
G4BertiniKaonBuilder.hh
G4BertiniPionBuilder.hh
G4BinaryNeutronBuilder.hh
G4BinaryPionBuilder.hh
G4BinaryProtonBuilder.hh
G4FTFBinaryKaonBuilder.hh
G4FTFBinaryNeutronBuilder.hh
G4FTFBinaryPionBuilder.hh
G4FTFBinaryProtonBuilder.hh
G4HadParticles.hh
G4HadronCaptureProcess.hh
G4HadronPhysicsQGS_BIC.hh
G4HadronicParameters.hh
G4KaonBuilder.hh
G4NeutronBuilder.hh
G4NeutronCaptureXS.hh
G4NeutronInelasticXS.hh
G4NeutronRadCapture.hh
G4ParticleDefinition.hh
G4ParticleTable.hh
G4PhysListUtil.hh
G4PhysicsConstructorFactory.hh
G4_DECLARE_PHYSCONSTR_FACTORY
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
Definition:
G4PhysicsConstructorFactory.hh:59
G4PionBuilder.hh
G4ProtonBuilder.hh
G4QGSBinaryKaonBuilder.hh
G4QGSBinaryNeutronBuilder.hh
G4QGSBinaryPionBuilder.hh
G4QGSBinaryProtonBuilder.hh
G4SystemOfUnits.hh
G4bool
bool G4bool
Definition:
G4Types.hh:86
G4int
int G4int
Definition:
G4Types.hh:85
G4ios.hh
G4BertiniKaonBuilder
Definition:
G4BertiniKaonBuilder.hh:53
G4BertiniPionBuilder
Definition:
G4BertiniPionBuilder.hh:55
G4BinaryNeutronBuilder
Definition:
G4BinaryNeutronBuilder.hh:53
G4BinaryPionBuilder
Definition:
G4BinaryPionBuilder.hh:53
G4BinaryProtonBuilder
Definition:
G4BinaryProtonBuilder.hh:52
G4FTFBinaryKaonBuilder
Definition:
G4FTFBinaryKaonBuilder.hh:57
G4FTFBinaryNeutronBuilder
Definition:
G4FTFBinaryNeutronBuilder.hh:58
G4FTFBinaryPionBuilder
Definition:
G4FTFBinaryPionBuilder.hh:58
G4FTFBinaryProtonBuilder
Definition:
G4FTFBinaryProtonBuilder.hh:58
G4HadParticles::GetKaons
static const std::vector< G4int > & GetKaons()
Definition:
G4HadParticles.cc:122
G4HadronPhysicsQGSP_BERT
Definition:
G4HadronPhysicsQGSP_BERT.hh:52
G4HadronPhysicsQGSP_BERT::minFTFP_proton
G4double minFTFP_proton
Definition:
G4HadronPhysicsQGSP_BERT.hh:77
G4HadronPhysicsQGSP_BERT::maxFTFP_pik
G4double maxFTFP_pik
Definition:
G4HadronPhysicsQGSP_BERT.hh:82
G4HadronPhysicsQGSP_BERT::maxBERT_proton
G4double maxBERT_proton
Definition:
G4HadronPhysicsQGSP_BERT.hh:86
G4HadronPhysicsQGSP_BERT::minQGSP_proton
G4double minQGSP_proton
Definition:
G4HadronPhysicsQGSP_BERT.hh:74
G4HadronPhysicsQGSP_BERT::QuasiElasticFTF
G4bool QuasiElasticFTF
Definition:
G4HadronPhysicsQGSP_BERT.hh:90
G4HadronPhysicsQGSP_BERT::minFTFP_neutron
G4double minFTFP_neutron
Definition:
G4HadronPhysicsQGSP_BERT.hh:78
G4HadronPhysicsQGSP_BERT::maxFTFP_proton
G4double maxFTFP_proton
Definition:
G4HadronPhysicsQGSP_BERT.hh:80
G4HadronPhysicsQGSP_BERT::maxFTFP_neutron
G4double maxFTFP_neutron
Definition:
G4HadronPhysicsQGSP_BERT.hh:81
G4HadronPhysicsQGSP_BERT::maxBERT_pik
G4double maxBERT_pik
Definition:
G4HadronPhysicsQGSP_BERT.hh:88
G4HadronPhysicsQGSP_BERT::minFTFP_pik
G4double minFTFP_pik
Definition:
G4HadronPhysicsQGSP_BERT.hh:79
G4HadronPhysicsQGSP_BERT::QuasiElasticQGS
G4bool QuasiElasticQGS
Definition:
G4HadronPhysicsQGSP_BERT.hh:91
G4HadronPhysicsQGSP_BERT::minQGSP_neutron
G4double minQGSP_neutron
Definition:
G4HadronPhysicsQGSP_BERT.hh:75
G4HadronPhysicsQGSP_BERT::minQGSP_pik
G4double minQGSP_pik
Definition:
G4HadronPhysicsQGSP_BERT.hh:76
G4HadronPhysicsQGSP_BERT::maxBERT_neutron
G4double maxBERT_neutron
Definition:
G4HadronPhysicsQGSP_BERT.hh:87
G4HadronPhysicsQGS_BIC
Definition:
G4HadronPhysicsQGS_BIC.hh:45
G4HadronPhysicsQGS_BIC::Proton
virtual void Proton()
Definition:
G4HadronPhysicsQGS_BIC.cc:132
G4HadronPhysicsQGS_BIC::Neutron
virtual void Neutron()
Definition:
G4HadronPhysicsQGS_BIC.cc:94
G4HadronPhysicsQGS_BIC::~G4HadronPhysicsQGS_BIC
virtual ~G4HadronPhysicsQGS_BIC()
Definition:
G4HadronPhysicsQGS_BIC.cc:91
G4HadronPhysicsQGS_BIC::G4HadronPhysicsQGS_BIC
G4HadronPhysicsQGS_BIC(G4int verbose=1)
Definition:
G4HadronPhysicsQGS_BIC.cc:81
G4HadronPhysicsQGS_BIC::Pion
virtual void Pion()
Definition:
G4HadronPhysicsQGS_BIC.cc:161
G4HadronicParameters
Definition:
G4HadronicParameters.hh:48
G4HadronicParameters::ApplyFactorXS
G4bool ApplyFactorXS() const
Definition:
G4HadronicParameters.hh:215
G4HadronicParameters::Instance
static G4HadronicParameters * Instance()
Definition:
G4HadronicParameters.cc:52
G4HadronicParameters::XSFactorHadronInelastic
G4double XSFactorHadronInelastic() const
Definition:
G4HadronicParameters.hh:195
G4HadronicParameters::XSFactorPionInelastic
G4double XSFactorPionInelastic() const
Definition:
G4HadronicParameters.hh:187
G4HadronicParameters::XSFactorNucleonInelastic
G4double XSFactorNucleonInelastic() const
Definition:
G4HadronicParameters.hh:179
G4HadronicProcess
Definition:
G4HadronicProcess.hh:69
G4HadronicProcess::AddDataSet
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
Definition:
G4HadronicProcess.cc:769
G4HadronicProcess::MultiplyCrossSectionBy
void MultiplyCrossSectionBy(G4double factor)
Definition:
G4HadronicProcess.cc:485
G4HadronicProcess::RegisterMe
void RegisterMe(G4HadronicInteraction *a)
Definition:
G4HadronicProcess.cc:143
G4KaonBuilder
Definition:
G4KaonBuilder.hh:52
G4NeutronBuilder
Definition:
G4NeutronBuilder.hh:53
G4NeutronInelasticXS
Definition:
G4NeutronInelasticXS.hh:59
G4NeutronRadCapture
Definition:
G4NeutronRadCapture.hh:52
G4Neutron::Neutron
static G4Neutron * Neutron()
Definition:
G4Neutron.cc:103
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:60
G4ParticleTable
Definition:
G4ParticleTable.hh:60
G4ParticleTable::FindParticle
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
Definition:
G4ParticleTable.cc:586
G4ParticleTable::GetParticleTable
static G4ParticleTable * GetParticleTable()
Definition:
G4ParticleTable.cc:87
G4PhysListUtil::FindInelasticProcess
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
Definition:
G4PhysListUtil.cc:58
G4PhysListUtil::FindCaptureProcess
static G4HadronicProcess * FindCaptureProcess(const G4ParticleDefinition *)
Definition:
G4PhysListUtil.cc:94
G4PionBuilder
Definition:
G4PionBuilder.hh:49
G4PionMinus::PionMinus
static G4PionMinus * PionMinus()
Definition:
G4PionMinus.cc:97
G4PionPlus::PionPlus
static G4PionPlus * PionPlus()
Definition:
G4PionPlus.cc:97
G4ProtonBuilder
Definition:
G4ProtonBuilder.hh:52
G4Proton::Proton
static G4Proton * Proton()
Definition:
G4Proton.cc:92
G4QGSBinaryKaonBuilder
Definition:
G4QGSBinaryKaonBuilder.hh:58
G4QGSBinaryNeutronBuilder
Definition:
G4QGSBinaryNeutronBuilder.hh:59
G4QGSBinaryPionBuilder
Definition:
G4QGSBinaryPionBuilder.hh:58
G4QGSBinaryProtonBuilder
Definition:
G4QGSBinaryProtonBuilder.hh:58
G4String
Definition:
G4String.hh:53
G4VPhysicsConstructor::AddBuilder
void AddBuilder(G4PhysicsBuilderInterface *bld)
Definition:
G4VPhysicsConstructor.cc:114
globals.hh
geant4-v10.7.0
source
physics_lists
constructors
hadron_inelastic
src
G4HadronPhysicsQGS_BIC.cc
Generated by
1.9.6