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>
39#include "globals.hh"
40#include "G4ios.hh"
41#include "G4SystemOfUnits.hh"
43#include "G4ParticleTable.hh"
44#include "G4PionBuilder.hh"
45#include "G4KaonBuilder.hh"
51#include "G4ProtonBuilder.hh"
54#include "G4NeutronBuilder.hh"
57#include "G4ProcessManager.hh"
58#include "G4ProcessVector.hh"
62#include "G4NeutronCaptureXS.hh"
63#include "G4PhysListUtil.hh"
64#include "G4HadParticles.hh"
67
69
71 : G4HadronPhysicsFTF_BIC("hInelastic FTF_BIC",false) {}
72
74 : G4HadronPhysicsFTFP_BERT(name, qe)
75{
76 maxBIC_pion = 1.5*GeV;
77 minBERT_pion = 1.0*GeV;
78}
79
81{}
82
84{
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);
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();
107 if(inel) {
108 inel->AddDataSet(new G4NeutronInelasticXS());
109 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
110 }
112 if (capture) {
113 capture->RegisterMe(new G4NeutronRadCapture());
114 }
115}
116
118{
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();
136 if(inel) {
137 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
138 }
139}
140
142{
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 ) {
166 if(inel) {
168 }
169 pion = G4PionMinus::PionMinus();
171 if(inel) {
173 }
174 }
175}
176
178{
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 ) {
195 for( auto & pdg : G4HadParticles::GetKaons() ) {
196 auto part = table->FindParticle( pdg );
197 if ( part == nullptr ) { continue; }
199 if(inel) {
201 }
202 }
203 }
204}
205
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
static const std::vector< G4int > & GetKaons()
G4HadronPhysicsFTF_BIC(G4int verbose=1)
static G4HadronicParameters * Instance()
G4double XSFactorHadronInelastic() const
G4double XSFactorPionInelastic() const
G4double XSFactorNucleonInelastic() const
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void MultiplyCrossSectionBy(G4double factor)
void RegisterMe(G4HadronicInteraction *a)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:103
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
static G4HadronicProcess * FindCaptureProcess(const G4ParticleDefinition *)
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:97
static G4PionPlus * PionPlus()
Definition: G4PionPlus.cc:97
static G4Proton * Proton()
Definition: G4Proton.cc:92
void AddBuilder(G4PhysicsBuilderInterface *bld)