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
41#include "G4PionBuilder.hh"
46
47#include "G4KaonBuilder.hh"
51
52#include "G4ProtonBuilder.hh"
56
57#include "G4NeutronBuilder.hh"
61
62#include "globals.hh"
63#include "G4ios.hh"
64#include "G4SystemOfUnits.hh"
66#include "G4ParticleTable.hh"
67
70#include "G4NeutronCaptureXS.hh"
71
72#include "G4PhysListUtil.hh"
73#include "G4HadParticles.hh"
75
77//
79
81 : G4HadronPhysicsQGS_BIC("hInelastic QGS_BIC",true)
82{
84}
85
87 : G4HadronPhysicsQGSP_BERT(name, qe)
88{
89 minBERT_pion = 1.0*GeV;
90 maxBIC_pion = 1.5*GeV;
91}
92
94{}
95
97{
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);
108 AddBuilder(qgs);
109 qgs->SetMinEnergy(minQGSP_neutron);
110 neu->RegisterMe(qgs);
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();
124 if(inel) {
125 inel->AddDataSet(new G4NeutronInelasticXS());
126 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
127 }
129 if (capture) {
130 capture->RegisterMe(new G4NeutronRadCapture());
131 }
132}
133
135{
137 G4bool useFactorXS = param->ApplyFactorXS();
138
139 auto pro = new G4ProtonBuilder;
140 AddBuilder(pro);
142 AddBuilder(qgs);
143 qgs->SetMinEnergy(minQGSP_proton);
144 pro->RegisterMe(qgs);
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();
158 if(inel) {
159 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
160 }
161}
162
164{
166 G4bool useFactorXS = param->ApplyFactorXS();
167
168 auto pi = new G4PionBuilder;
169 AddBuilder(pi);
171 AddBuilder(qgs);
172 qgs->SetMinEnergy(minQGSP_pik);
173 pi->RegisterMe(qgs);
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);
193 AddBuilder(qgsk);
194 qgsk->SetMinEnergy(minQGSP_pik);
195 k->RegisterMe(qgsk);
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 ) {
210 if(inel) {
212 }
213 pion = G4PionMinus::PionMinus();
215 if(inel) {
217 }
219 for( auto & pdg : G4HadParticles::GetKaons() ) {
220 auto part = table->FindParticle( pdg );
221 if ( part == nullptr ) { continue; }
223 if(inel) {
225 }
226 }
227 }
228}
#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()
G4HadronPhysicsQGS_BIC(G4int verbose=1)
static G4HadronicParameters * Instance()
void SetVerboseLevel(const G4int val)
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)