Geant4
10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronPhysicsFTF_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: G4HadronPhysicsFTF_BIC
30
//
31
// Author: 2007 Gunter Folger
32
//
33
// Modified:
34
//
35
//----------------------------------------------------------------------------
36
//
37
#include <iomanip>
38
#include "
G4HadronPhysicsFTF_BIC.hh
"
39
#include "
globals.hh
"
40
#include "
G4ios.hh
"
41
#include "
G4SystemOfUnits.hh
"
42
#include "
G4ParticleDefinition.hh
"
43
#include "
G4ParticleTable.hh
"
44
#include "
G4PionBuilder.hh
"
45
#include "
G4KaonBuilder.hh
"
46
#include "
G4BinaryPionBuilder.hh
"
47
#include "
G4BertiniPionBuilder.hh
"
48
#include "
G4BertiniKaonBuilder.hh
"
49
#include "
G4FTFBinaryPionBuilder.hh
"
50
#include "
G4FTFBinaryKaonBuilder.hh
"
51
#include "
G4ProtonBuilder.hh
"
52
#include "
G4FTFBinaryProtonBuilder.hh
"
53
#include "
G4BinaryProtonBuilder.hh
"
54
#include "
G4NeutronBuilder.hh
"
55
#include "
G4FTFBinaryNeutronBuilder.hh
"
56
#include "
G4BinaryNeutronBuilder.hh
"
57
#include "
G4ProcessManager.hh
"
58
#include "
G4ProcessVector.hh
"
59
#include "
G4HadronCaptureProcess.hh
"
60
#include "
G4NeutronRadCapture.hh
"
61
#include "
G4NeutronInelasticXS.hh
"
62
#include "
G4NeutronCaptureXS.hh
"
63
#include "
G4PhysListUtil.hh
"
64
#include "
G4HadParticles.hh
"
65
#include "
G4HadronicParameters.hh
"
66
#include "
G4PhysicsConstructorFactory.hh
"
67
68
G4_DECLARE_PHYSCONSTR_FACTORY
(
G4HadronPhysicsFTF_BIC
);
69
70
G4HadronPhysicsFTF_BIC::G4HadronPhysicsFTF_BIC
(
G4int
)
71
:
G4HadronPhysicsFTF_BIC
(
"hInelastic FTF_BIC"
,false) {}
72
73
G4HadronPhysicsFTF_BIC::G4HadronPhysicsFTF_BIC
(
const
G4String
& name,
G4bool
qe)
74
:
G4HadronPhysicsFTFP_BERT
(name, qe)
75
{
76
maxBIC_pion = 1.5*GeV;
77
minBERT_pion = 1.0*GeV;
78
}
79
80
G4HadronPhysicsFTF_BIC::~G4HadronPhysicsFTF_BIC
()
81
{}
82
83
void
G4HadronPhysicsFTF_BIC::Neutron
()
84
{
85
G4HadronicParameters
* param =
G4HadronicParameters::Instance
();
86
G4bool
useFactorXS = param->
ApplyFactorXS
();
87
//General schema:
88
// 1) Create a builder
89
// 2) Call AddBuilder
90
// 3) Configure the builder, possibly with sub-builders
91
// 4) Call builder->Build()
92
auto
neu =
new
G4NeutronBuilder
;
93
AddBuilder
(neu);
94
auto
ftfn =
new
G4FTFBinaryNeutronBuilder
(
QuasiElastic
);
95
AddBuilder
( ftfn );
96
neu->RegisterMe(ftfn);
97
auto
bicn =
new
G4BinaryNeutronBuilder
;
98
AddBuilder
(bicn);
99
neu->RegisterMe(bicn);
100
bicn->SetMinEnergy(0.0);
101
bicn->SetMaxEnergy(
maxBERT_neutron
);
102
neu->Build();
103
104
// add cross section factor
105
const
G4ParticleDefinition
* neutron =
G4Neutron::Neutron
();
106
G4HadronicProcess
* inel =
G4PhysListUtil::FindInelasticProcess
(neutron);
107
if
(inel) {
108
inel->
AddDataSet
(
new
G4NeutronInelasticXS
());
109
if
( useFactorXS ) inel->
MultiplyCrossSectionBy
( param->
XSFactorNucleonInelastic
() );
110
}
111
G4HadronicProcess
* capture =
G4PhysListUtil::FindCaptureProcess
(neutron);
112
if
(capture) {
113
capture->
RegisterMe
(
new
G4NeutronRadCapture
());
114
}
115
}
116
117
void
G4HadronPhysicsFTF_BIC::Proton
()
118
{
119
G4HadronicParameters
* param =
G4HadronicParameters::Instance
();
120
G4bool
useFactorXS = param->
ApplyFactorXS
();
121
122
auto
pro =
new
G4ProtonBuilder
;
123
AddBuilder
(pro);
124
auto
ftfp =
new
G4FTFBinaryProtonBuilder
(
QuasiElastic
);
125
AddBuilder
(ftfp);
126
pro->RegisterMe(ftfp);
127
auto
bicp =
new
G4BinaryProtonBuilder
;
128
AddBuilder
(bicp);
129
pro->RegisterMe(bicp);
130
bicp->SetMaxEnergy(
maxBERT_proton
);
131
pro->Build();
132
133
// add cross section factor
134
const
G4ParticleDefinition
* proton =
G4Proton::Proton
();
135
G4HadronicProcess
* inel =
G4PhysListUtil::FindInelasticProcess
(proton);
136
if
(inel) {
137
if
( useFactorXS ) inel->
MultiplyCrossSectionBy
( param->
XSFactorNucleonInelastic
() );
138
}
139
}
140
141
void
G4HadronPhysicsFTF_BIC::Pion
()
142
{
143
G4HadronicParameters
* param =
G4HadronicParameters::Instance
();
144
G4bool
useFactorXS = param->
ApplyFactorXS
();
145
146
auto
pi =
new
G4PionBuilder
;
147
AddBuilder
(pi);
148
auto
ftfpi =
new
G4FTFBinaryPionBuilder
(
QuasiElastic
);
149
AddBuilder
(ftfpi);
150
pi->RegisterMe(ftfpi);
151
auto
bertpi =
new
G4BertiniPionBuilder
;
152
AddBuilder
(bertpi);
153
bertpi->SetMinEnergy(minBERT_pion);
154
bertpi->SetMaxEnergy(
maxBERT_pion
);
155
pi->RegisterMe(bertpi);
156
auto
bicpi =
new
G4BinaryPionBuilder
;
157
AddBuilder
(bicpi);
158
pi->RegisterMe(bicpi);
159
bicpi->SetMaxEnergy(maxBIC_pion);
160
pi->Build();
161
162
// add cross section factor
163
if
( useFactorXS ) {
164
const
G4ParticleDefinition
* pion =
G4PionPlus::PionPlus
();
165
G4HadronicProcess
* inel =
G4PhysListUtil::FindInelasticProcess
(pion);
166
if
(inel) {
167
inel->
MultiplyCrossSectionBy
( param->
XSFactorPionInelastic
() );
168
}
169
pion =
G4PionMinus::PionMinus
();
170
inel =
G4PhysListUtil::FindInelasticProcess
(pion);
171
if
(inel) {
172
inel->
MultiplyCrossSectionBy
( param->
XSFactorPionInelastic
() );
173
}
174
}
175
}
176
177
void
G4HadronPhysicsFTF_BIC::Kaon
()
178
{
179
G4HadronicParameters
* param =
G4HadronicParameters::Instance
();
180
G4bool
useFactorXS = param->
ApplyFactorXS
();
181
182
auto
k =
new
G4KaonBuilder
;
183
AddBuilder
(k);
184
auto
ftfk =
new
G4FTFBinaryKaonBuilder
(
QuasiElastic
);
185
AddBuilder
(ftfk);
186
k->RegisterMe(ftfk);
187
auto
bertk =
new
G4BertiniKaonBuilder
;
188
AddBuilder
(bertk);
189
k->RegisterMe(bertk);
190
bertk->SetMaxEnergy(
maxBERT_kaon
);
191
k->Build();
192
// add cross section factor
193
if
( useFactorXS ) {
194
G4ParticleTable
* table =
G4ParticleTable::GetParticleTable
();
195
for
(
auto
& pdg :
G4HadParticles::GetKaons
() ) {
196
auto
part = table->
FindParticle
( pdg );
197
if
( part ==
nullptr
) {
continue
; }
198
G4HadronicProcess
* inel =
G4PhysListUtil::FindInelasticProcess
(part);
199
if
(inel) {
200
inel->
MultiplyCrossSectionBy
( param->
XSFactorHadronInelastic
() );
201
}
202
}
203
}
204
}
205
G4BertiniKaonBuilder.hh
G4BertiniPionBuilder.hh
G4BinaryNeutronBuilder.hh
G4BinaryPionBuilder.hh
G4BinaryProtonBuilder.hh
G4FTFBinaryKaonBuilder.hh
G4FTFBinaryNeutronBuilder.hh
G4FTFBinaryPionBuilder.hh
G4FTFBinaryProtonBuilder.hh
G4HadParticles.hh
G4HadronCaptureProcess.hh
G4HadronPhysicsFTF_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
G4ProcessManager.hh
G4ProcessVector.hh
G4ProtonBuilder.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
G4HadronPhysicsFTFP_BERT
Definition:
G4HadronPhysicsFTFP_BERT.hh:49
G4HadronPhysicsFTFP_BERT::maxBERT_proton
G4double maxBERT_proton
Definition:
G4HadronPhysicsFTFP_BERT.hh:77
G4HadronPhysicsFTFP_BERT::maxBERT_pion
G4double maxBERT_pion
Definition:
G4HadronPhysicsFTFP_BERT.hh:73
G4HadronPhysicsFTFP_BERT::maxBERT_kaon
G4double maxBERT_kaon
Definition:
G4HadronPhysicsFTFP_BERT.hh:75
G4HadronPhysicsFTFP_BERT::QuasiElastic
G4bool QuasiElastic
Definition:
G4HadronPhysicsFTFP_BERT.hh:82
G4HadronPhysicsFTFP_BERT::maxBERT_neutron
G4double maxBERT_neutron
Definition:
G4HadronPhysicsFTFP_BERT.hh:79
G4HadronPhysicsFTF_BIC
Definition:
G4HadronPhysicsFTF_BIC.hh:44
G4HadronPhysicsFTF_BIC::G4HadronPhysicsFTF_BIC
G4HadronPhysicsFTF_BIC(G4int verbose=1)
Definition:
G4HadronPhysicsFTF_BIC.cc:70
G4HadronPhysicsFTF_BIC::~G4HadronPhysicsFTF_BIC
~G4HadronPhysicsFTF_BIC() override
Definition:
G4HadronPhysicsFTF_BIC.cc:80
G4HadronPhysicsFTF_BIC::Neutron
void Neutron() override
Definition:
G4HadronPhysicsFTF_BIC.cc:83
G4HadronPhysicsFTF_BIC::Proton
void Proton() override
Definition:
G4HadronPhysicsFTF_BIC.cc:117
G4HadronPhysicsFTF_BIC::Pion
void Pion() override
Definition:
G4HadronPhysicsFTF_BIC.cc:141
G4HadronPhysicsFTF_BIC::Kaon
void Kaon() override
Definition:
G4HadronPhysicsFTF_BIC.cc:177
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
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
G4HadronPhysicsFTF_BIC.cc
Generated by
1.9.6