Geant4 10.7.0
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
71#include "G4NeutronCaptureXS.hh"
72
73#include "G4PhysListUtil.hh"
74#include "G4HadParticles.hh"
76
78//
80
82 : G4HadronPhysicsQGS_BIC("hInelastic QGS_BIC",true) {}
83
85 : G4HadronPhysicsQGSP_BERT(name, qe)
86{
87 minBERT_pion = 1.0*GeV;
88 maxBIC_pion = 1.5*GeV;
89}
90
92{}
93
95{
97 G4bool useFactorXS = param->ApplyFactorXS();
98 //General schema:
99 // 1) Create a builder
100 // 2) Call AddBuilder
101 // 3) Configure the builder, possibly with sub-builders
102 // 4) Call builder->Build()
103 auto neu = new G4NeutronBuilder;
104 AddBuilder(neu);
106 AddBuilder(qgs);
107 qgs->SetMinEnergy(minQGSP_neutron);
108 neu->RegisterMe(qgs);
110 AddBuilder(ftf);
111 ftf->SetMinEnergy(minFTFP_neutron);
112 ftf->SetMaxEnergy(maxFTFP_neutron);
113 neu->RegisterMe(ftf);
114 auto bicn = new G4BinaryNeutronBuilder;
115 AddBuilder(bicn);
116 bicn->SetMaxEnergy(maxBERT_neutron);
117 neu->RegisterMe(bicn);
118 neu->Build();
119
120 const G4ParticleDefinition* neutron = G4Neutron::Neutron();
122 if(inel) {
123 inel->AddDataSet(new G4NeutronInelasticXS());
124 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
125 }
127 if (capture) {
128 capture->RegisterMe(new G4NeutronRadCapture());
129 }
130}
131
133{
135 G4bool useFactorXS = param->ApplyFactorXS();
136
137 auto pro = new G4ProtonBuilder;
138 AddBuilder(pro);
140 AddBuilder(qgs);
141 qgs->SetMinEnergy(minQGSP_proton);
142 pro->RegisterMe(qgs);
144 AddBuilder(ftf);
145 ftf->SetMinEnergy(minFTFP_proton);
146 ftf->SetMaxEnergy(maxFTFP_proton);
147 pro->RegisterMe(ftf);
148 auto bic = new G4BinaryProtonBuilder;
149 AddBuilder(bic);
150 bic->SetMaxEnergy(maxBERT_proton);
151 pro->RegisterMe(bic);
152 pro->Build();
153
154 const G4ParticleDefinition* proton = G4Proton::Proton();
156 if(inel) {
157 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
158 }
159}
160
162{
164 G4bool useFactorXS = param->ApplyFactorXS();
165
166 auto pi = new G4PionBuilder;
167 AddBuilder(pi);
169 AddBuilder(qgs);
170 qgs->SetMinEnergy(minQGSP_pik);
171 pi->RegisterMe(qgs);
173 AddBuilder(ftf);
174 ftf->SetMinEnergy(minFTFP_pik);
175 ftf->SetMaxEnergy(maxFTFP_pik);
176 pi->RegisterMe(ftf);
177 auto bert = new G4BertiniPionBuilder;
178 AddBuilder(bert);
179 bert->SetMinEnergy(minBERT_pion);
180 bert->SetMaxEnergy(maxBERT_pik);
181 pi->RegisterMe(bert);
182 auto bic = new G4BinaryPionBuilder;
183 AddBuilder(bic);
184 bic->SetMaxEnergy(maxBIC_pion);
185 pi->RegisterMe(bic);
186 pi->Build();
187
188 auto k = new G4KaonBuilder;
189 AddBuilder(k);
191 AddBuilder(qgsk);
192 qgsk->SetMinEnergy(minQGSP_pik);
193 k->RegisterMe(qgsk);
195 AddBuilder(ftfk);
196 ftfk->SetMaxEnergy(maxFTFP_pik);
197 k->RegisterMe(ftfk);
198 auto bertk = new G4BertiniKaonBuilder;
199 AddBuilder(bertk);
200 bertk->SetMaxEnergy(maxBERT_pik);
201 k->RegisterMe(bertk);
202 k->Build();
203
204 // add cross section factor
205 if( useFactorXS ) {
208 if(inel) {
210 }
211 pion = G4PionMinus::PionMinus();
213 if(inel) {
215 }
217 for( auto & pdg : G4HadParticles::GetKaons() ) {
218 auto part = table->FindParticle( pdg );
219 if ( part == nullptr ) { continue; }
221 if(inel) {
223 }
224 }
225 }
226}
#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()
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)