Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronPhysicsQGSP_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: G4HadronPhysicsQGSP_BIC
30//
31// Author: 2002 J.P. Wellisch
32//
33// Modified:
34// 23.11.2005 G.Folger: migration to non static particles
35// 08.06.2006 V.Ivanchenko: remove stopping
36// 25.04.2007 G.Folger: Add code for quasielastic
37// 31.10.2012 A.Ribon: Use G4MiscBuilder
38// 19.03.2013 A.Ribon: Replace LEP with FTFP and BERT
39// 05.05.2020 A.Ribon: Use QGSP for antibaryons at high energies
40// 07.05.2020 A.Ribon: Use QGSP for hyperons (and anti-hyperons) at high energies
41//
42//----------------------------------------------------------------------------
43//
44#include <iomanip>
45
47
48#include "G4PiKBuilder.hh"
49#include "G4FTFPPiKBuilder.hh"
50#include "G4QGSPPiKBuilder.hh"
52
53#include "G4ProtonBuilder.hh"
57
58#include "G4NeutronBuilder.hh"
62#include "globals.hh"
63#include "G4ios.hh"
64#include "G4SystemOfUnits.hh"
66#include "G4ParticleTable.hh"
67
68#include "G4MesonConstructor.hh"
71#include "G4IonConstructor.hh"
72
76#include "G4NeutronCaptureXS.hh"
77
78#include "G4PhysListUtil.hh"
79#include "G4HadParticles.hh"
81#include "G4HadronicBuilder.hh"
82
84
86
88 : G4HadronPhysicsQGSP_BIC("hInelastic QGSP_BIC",true)
89{}
90
93{
94 QuasiElasticFTF= false; // Use built-in quasi-elastic (not add-on)
95 QuasiElasticQGS= true; // For QGS, it must use it.
106}
107
109{
110 Neutron();
111 Proton();
112 Pion();
113 Others();
114}
115
117{
119 G4bool useFactorXS = param->ApplyFactorXS();
120
121 auto neu = new G4NeutronBuilder;
122 AddBuilder(neu);
124 AddBuilder(qgs);
125 qgs->SetMinEnergy(minQGSP_neutron);
126 neu->RegisterMe(qgs);
128 AddBuilder(ftf);
129 ftf->SetMinEnergy(minFTFP_neutron);
130 ftf->SetMaxEnergy(maxFTFP_neutron);
131 neu->RegisterMe(ftf);
132 auto bic = new G4BinaryNeutronBuilder;
133 AddBuilder(bic);
134 bic->SetMinEnergy(minBIC_neutron);
135 bic->SetMaxEnergy(maxBIC_neutron);
136 neu->RegisterMe(bic);
137 neu->Build();
138
139 const G4ParticleDefinition* neutron = G4Neutron::Neutron();
141 if(inel) {
142 inel->AddDataSet(new G4NeutronInelasticXS());
143 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
144 }
146 if (capture) {
147 capture->RegisterMe(new G4NeutronRadCapture());
148 }
149}
150
152{
154 G4bool useFactorXS = param->ApplyFactorXS();
155
156 auto pro = new G4ProtonBuilder;
157 AddBuilder(pro);
158 auto qgs = new G4QGSPProtonBuilder(QuasiElasticQGS);
159 AddBuilder(qgs);
160 qgs->SetMinEnergy(minQGSP_proton);
161 pro->RegisterMe(qgs);
162 auto ftf = new G4FTFPProtonBuilder(QuasiElasticFTF);
163 AddBuilder(ftf);
164 ftf->SetMinEnergy(minFTFP_proton);
165 ftf->SetMaxEnergy(maxFTFP_proton);
166 pro->RegisterMe(ftf);
167 auto bic = new G4BinaryProtonBuilder;
168 AddBuilder(bic);
169 bic->SetMinEnergy(minBIC_proton);
170 bic->SetMaxEnergy(maxBIC_proton);
171 pro->RegisterMe(bic);
172 pro->Build();
173
174 const G4ParticleDefinition* proton = G4Proton::Proton();
176 if(inel) {
177 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
178 }
179}
180
182{
184 G4bool useFactorXS = param->ApplyFactorXS();
185
186 auto pik = new G4PiKBuilder();
187 AddBuilder(pik);
188 auto qgs = new G4QGSPPiKBuilder(QuasiElasticQGS);
189 AddBuilder(qgs);
190 qgs->SetMinEnergy(minQGSP_pik);
191 pik->RegisterMe(qgs);
192 auto ftf = new G4FTFPPiKBuilder(QuasiElasticFTF);
193 AddBuilder(ftf);
194 ftf->SetMaxEnergy(maxFTFP_pik);
195 ftf->SetMinEnergy(minFTFP_pik);
196 pik->RegisterMe(ftf);
197 auto bert = new G4BertiniPiKBuilder();
198 AddBuilder(bert);
199 bert->SetMaxEnergy(maxBERT_pik);
200 pik->RegisterMe(bert);
201 pik->Build();
202
203 // add cross section factor
204 if( useFactorXS ) {
207 if(inel) {
209 }
210 pion = G4PionMinus::PionMinus();
212 if(inel) {
214 }
216 for( auto & pdg : G4HadParticles::GetKaons() ) {
217 auto part = table->FindParticle( pdg );
218 if ( part == nullptr ) { continue; }
220 if(inel) {
222 }
223 }
224 }
225}
226
228{
230
231 // high energy particles
232 if( param->GetMaxEnergy() > param->EnergyThresholdForHeavyHadrons() ) {
233
234 // anti light ions
236
237 // hyperons
239
240 // b-, c- baryons and mesons
241 if( param->EnableBCParticles() ) {
243 }
244 }
245}
246
248{}
249
251{
252 G4MesonConstructor pMesonConstructor;
253 pMesonConstructor.ConstructParticle();
254
255 G4BaryonConstructor pBaryonConstructor;
256 pBaryonConstructor.ConstructParticle();
257
258 G4ShortLivedConstructor pShortLivedConstructor;
259 pShortLivedConstructor.ConstructParticle();
260
261 G4IonConstructor pIonConstructor;
262 pIonConstructor.ConstructParticle();
263}
264
266{
267 // allow changing of parameters at PreInit
277
279 DumpBanner();
280 }
281 CreateModels();
282}
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
static void ConstructParticle()
static const std::vector< G4int > & GetKaons()
G4HadronPhysicsQGSP_BIC(G4int verbose=1)
static void BuildHyperonsQGSP_FTFP_BERT(G4bool quasiElastic)
static void BuildAntiLightIonsFTFP()
static void BuildBCHadronsQGSP_FTFP_BERT(G4bool quasiElastic)
static G4HadronicParameters * Instance()
G4double GetMinEnergyTransitionFTF_Cascade() const
G4double GetMinEnergyTransitionQGS_FTF() const
G4double GetMaxEnergyTransitionFTF_Cascade() const
G4bool EnableBCParticles() const
G4double EnergyThresholdForHeavyHadrons() const
G4double XSFactorHadronInelastic() const
G4double GetMaxEnergyTransitionQGS_FTF() const
G4double XSFactorPionInelastic() const
G4double GetMaxEnergy() const
G4double XSFactorNucleonInelastic() const
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void MultiplyCrossSectionBy(G4double factor)
void RegisterMe(G4HadronicInteraction *a)
static void ConstructParticle()
static void ConstructParticle()
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)
G4bool IsMasterThread()
Definition: G4Threading.cc:124