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