Geant4
11.2.2
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 "
G4NeutronRadCapture.hh
"
60
#include "
G4NeutronInelasticXS.hh
"
61
#include "
G4NeutronCaptureXS.hh
"
62
#include "
G4PhysListUtil.hh
"
63
#include "
G4HadParticles.hh
"
64
#include "
G4HadronicParameters.hh
"
65
#include "
G4PhysicsConstructorFactory.hh
"
66
67
G4_DECLARE_PHYSCONSTR_FACTORY
(
G4HadronPhysicsFTF_BIC
);
68
69
G4HadronPhysicsFTF_BIC::G4HadronPhysicsFTF_BIC
(
G4int
verb)
70
:
G4HadronPhysicsFTF_BIC
(
"hInelastic FTF_BIC"
,false)
71
{
72
G4HadronicParameters::Instance
()->
SetVerboseLevel
(verb);
73
}
74
75
G4HadronPhysicsFTF_BIC::G4HadronPhysicsFTF_BIC
(
const
G4String
& name,
G4bool
qe)
76
:
G4HadronPhysicsFTFP_BERT
(name, qe)
77
{
78
maxBIC_pion = 1.5*CLHEP::GeV;
79
minBERT_pion = 1.0*CLHEP::GeV;
80
}
81
82
G4HadronPhysicsFTF_BIC::~G4HadronPhysicsFTF_BIC
()
83
{}
84
85
void
G4HadronPhysicsFTF_BIC::Neutron
()
86
{
87
G4HadronicParameters
* param =
G4HadronicParameters::Instance
();
88
G4bool
useFactorXS = param->
ApplyFactorXS
();
89
//General schema:
90
// 1) Create a builder
91
// 2) Call AddBuilder
92
// 3) Configure the builder, possibly with sub-builders
93
// 4) Call builder->Build()
94
auto
neu =
new
G4NeutronBuilder
;
95
AddBuilder
(neu);
96
auto
ftfn =
new
G4FTFBinaryNeutronBuilder
(
QuasiElastic
);
97
AddBuilder
( ftfn );
98
neu->RegisterMe(ftfn);
99
auto
bicn =
new
G4BinaryNeutronBuilder
;
100
AddBuilder
(bicn);
101
neu->RegisterMe(bicn);
102
bicn->SetMinEnergy(0.0);
103
bicn->SetMaxEnergy(
maxBERT_neutron
);
104
neu->Build();
105
106
// add cross section factor
107
const
G4ParticleDefinition
* neutron =
G4Neutron::Neutron
();
108
G4HadronicProcess
* inel =
G4PhysListUtil::FindInelasticProcess
(neutron);
109
if
(
nullptr
!= inel) {
110
inel->
AddDataSet
(
new
G4NeutronInelasticXS
());
111
if
( useFactorXS ) inel->
MultiplyCrossSectionBy
( param->
XSFactorNucleonInelastic
() );
112
}
113
G4HadronicProcess
* capture =
G4PhysListUtil::FindCaptureProcess
(neutron);
114
if
(
nullptr
!= capture) {
115
capture->
RegisterMe
(
new
G4NeutronRadCapture
());
116
}
117
}
118
119
void
G4HadronPhysicsFTF_BIC::Proton
()
120
{
121
G4HadronicParameters
* param =
G4HadronicParameters::Instance
();
122
G4bool
useFactorXS = param->
ApplyFactorXS
();
123
124
auto
pro =
new
G4ProtonBuilder
;
125
AddBuilder
(pro);
126
auto
ftfp =
new
G4FTFBinaryProtonBuilder
(
QuasiElastic
);
127
AddBuilder
(ftfp);
128
pro->RegisterMe(ftfp);
129
auto
bicp =
new
G4BinaryProtonBuilder
;
130
AddBuilder
(bicp);
131
pro->RegisterMe(bicp);
132
bicp->SetMaxEnergy(
maxBERT_proton
);
133
pro->Build();
134
135
// add cross section factor
136
const
G4ParticleDefinition
* proton =
G4Proton::Proton
();
137
G4HadronicProcess
* inel =
G4PhysListUtil::FindInelasticProcess
(proton);
138
if
(
nullptr
!= inel) {
139
if
( useFactorXS ) inel->
MultiplyCrossSectionBy
( param->
XSFactorNucleonInelastic
() );
140
}
141
}
142
143
void
G4HadronPhysicsFTF_BIC::Pion
()
144
{
145
G4HadronicParameters
* param =
G4HadronicParameters::Instance
();
146
G4bool
useFactorXS = param->
ApplyFactorXS
();
147
148
auto
pi =
new
G4PionBuilder
;
149
AddBuilder
(pi);
150
auto
ftfpi =
new
G4FTFBinaryPionBuilder
(
QuasiElastic
);
151
AddBuilder
(ftfpi);
152
pi->RegisterMe(ftfpi);
153
auto
bertpi =
new
G4BertiniPionBuilder
;
154
AddBuilder
(bertpi);
155
bertpi->SetMinEnergy(minBERT_pion);
156
bertpi->SetMaxEnergy(
maxBERT_pion
);
157
pi->RegisterMe(bertpi);
158
auto
bicpi =
new
G4BinaryPionBuilder
;
159
AddBuilder
(bicpi);
160
pi->RegisterMe(bicpi);
161
bicpi->SetMaxEnergy(maxBIC_pion);
162
pi->Build();
163
164
// add cross section factor
165
if
( useFactorXS ) {
166
const
G4ParticleDefinition
* pion =
G4PionPlus::PionPlus
();
167
G4HadronicProcess
* inel =
G4PhysListUtil::FindInelasticProcess
(pion);
168
if
(
nullptr
!= inel) {
169
inel->
MultiplyCrossSectionBy
( param->
XSFactorPionInelastic
() );
170
}
171
pion =
G4PionMinus::PionMinus
();
172
inel =
G4PhysListUtil::FindInelasticProcess
(pion);
173
if
(
nullptr
!= inel) {
174
inel->
MultiplyCrossSectionBy
( param->
XSFactorPionInelastic
() );
175
}
176
}
177
}
178
179
void
G4HadronPhysicsFTF_BIC::Kaon
()
180
{
181
G4HadronicParameters
* param =
G4HadronicParameters::Instance
();
182
G4bool
useFactorXS = param->
ApplyFactorXS
();
183
184
auto
k =
new
G4KaonBuilder
;
185
AddBuilder
(k);
186
auto
ftfk =
new
G4FTFBinaryKaonBuilder
(
QuasiElastic
);
187
AddBuilder
(ftfk);
188
k->RegisterMe(ftfk);
189
auto
bertk =
new
G4BertiniKaonBuilder
;
190
AddBuilder
(bertk);
191
k->RegisterMe(bertk);
192
bertk->SetMaxEnergy(
maxBERT_kaon
);
193
k->Build();
194
// add cross section factor
195
if
( useFactorXS ) {
196
G4ParticleTable
* table =
G4ParticleTable::GetParticleTable
();
197
for
(
auto
& pdg :
G4HadParticles::GetKaons
() ) {
198
auto
part = table->
FindParticle
( pdg );
199
if
( part ==
nullptr
) {
continue
; }
200
G4HadronicProcess
* inel =
G4PhysListUtil::FindInelasticProcess
(part);
201
if
(
nullptr
!= inel) {
202
inel->
MultiplyCrossSectionBy
( param->
XSFactorHadronInelastic
() );
203
}
204
}
205
}
206
}
207
G4BertiniKaonBuilder.hh
G4BertiniPionBuilder.hh
G4BinaryNeutronBuilder.hh
G4BinaryPionBuilder.hh
G4BinaryProtonBuilder.hh
G4FTFBinaryKaonBuilder.hh
G4FTFBinaryNeutronBuilder.hh
G4FTFBinaryPionBuilder.hh
G4FTFBinaryProtonBuilder.hh
G4HadParticles.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: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
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:69
G4HadronPhysicsFTF_BIC::Neutron
void Neutron() override
Definition
G4HadronPhysicsFTF_BIC.cc:85
G4HadronPhysicsFTF_BIC::~G4HadronPhysicsFTF_BIC
virtual ~G4HadronPhysicsFTF_BIC()
Definition
G4HadronPhysicsFTF_BIC.cc:82
G4HadronPhysicsFTF_BIC::Proton
void Proton() override
Definition
G4HadronPhysicsFTF_BIC.cc:119
G4HadronPhysicsFTF_BIC::Pion
void Pion() override
Definition
G4HadronPhysicsFTF_BIC.cc:143
G4HadronPhysicsFTF_BIC::Kaon
void Kaon() override
Definition
G4HadronPhysicsFTF_BIC.cc:179
G4HadronicParameters
Definition
G4HadronicParameters.hh:47
G4HadronicParameters::ApplyFactorXS
G4bool ApplyFactorXS() const
Definition
G4HadronicParameters.hh:294
G4HadronicParameters::Instance
static G4HadronicParameters * Instance()
Definition
G4HadronicParameters.cc:54
G4HadronicParameters::SetVerboseLevel
void SetVerboseLevel(const G4int val)
Definition
G4HadronicParameters.cc:172
G4HadronicParameters::XSFactorHadronInelastic
G4double XSFactorHadronInelastic() const
Definition
G4HadronicParameters.hh:270
G4HadronicParameters::XSFactorPionInelastic
G4double XSFactorPionInelastic() const
Definition
G4HadronicParameters.hh:262
G4HadronicParameters::XSFactorNucleonInelastic
G4double XSFactorNucleonInelastic() const
Definition
G4HadronicParameters.hh:254
G4HadronicProcess
Definition
G4HadronicProcess.hh:74
G4HadronicProcess::AddDataSet
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
Definition
G4HadronicProcess.cc:874
G4HadronicProcess::MultiplyCrossSectionBy
void MultiplyCrossSectionBy(G4double factor)
Definition
G4HadronicProcess.cc:591
G4HadronicProcess::RegisterMe
void RegisterMe(G4HadronicInteraction *a)
Definition
G4HadronicProcess.cc:136
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:101
G4ParticleDefinition
Definition
G4ParticleDefinition.hh:62
G4ParticleTable
Definition
G4ParticleTable.hh:60
G4ParticleTable::FindParticle
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
Definition
G4ParticleTable.cc:498
G4ParticleTable::GetParticleTable
static G4ParticleTable * GetParticleTable()
Definition
G4ParticleTable.cc:82
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:93
G4PionPlus::PionPlus
static G4PionPlus * PionPlus()
Definition
G4PionPlus.cc:93
G4ProtonBuilder
Definition
G4ProtonBuilder.hh:52
G4Proton::Proton
static G4Proton * Proton()
Definition
G4Proton.cc:90
G4String
Definition
G4String.hh:62
G4VPhysicsConstructor::AddBuilder
void AddBuilder(G4PhysicsBuilderInterface *bld)
Definition
G4VPhysicsConstructor.cc:90
globals.hh
geant4-v11.2.2
source
physics_lists
constructors
hadron_inelastic
src
G4HadronPhysicsFTF_BIC.cc
Generated by
1.12.0