Geant4-11
G4HadronPhysicsINCLXX.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: G4HadronPhysicsINCLXX
30//
31// Author: 2011 P. Kaitaniemi
32//
33// Modified:
34// 07.05.2020 A.Ribon: Use eventually QGSP for hyperons (and anti-hyperons)
35// at high energies
36// 05.05.2020 A.Ribon: Use eventually QGSP for antibaryons at high energies
37// 22.05.2014 D. Mancusi: Extend INCL++ to 20 GeV
38// 19.03.2013 A.Ribon: Replace LEP with FTFP and BERT
39// 08.03.2013 D. Mancusi: Fix a problem with overlapping model ranges
40// 01.03.2013 D. Mancusi: Rename to G4HadronPhysicsINCLXX and introduce
41// parameters for FTFP and NeutronHP
42// 31.10.2012 A.Ribon: Use G4MiscBuilder
43// 23.03.2012 D. Mancusi: Extended INCL++ to incident heavy ions up to 16O
44// 27.11.2011 P.Kaitaniemi: Created physics list for INCL++ using QGSP_INCL_ABLA as a template
45//
46//----------------------------------------------------------------------------
47//
48#include <iomanip>
49
51
52#include "globals.hh"
53#include "G4ios.hh"
54#include "G4SystemOfUnits.hh"
56#include "G4ParticleTable.hh"
57
58#include "G4PionBuilder.hh"
59#include "G4KaonBuilder.hh"
60#include "G4QGSPPionBuilder.hh"
61#include "G4FTFPPionBuilder.hh"
62#include "G4QGSPKaonBuilder.hh"
63#include "G4FTFPKaonBuilder.hh"
66
67#include "G4ProtonBuilder.hh"
71
72#include "G4NeutronBuilder.hh"
77
79#include "G4NeutronCaptureXS.hh"
82#include "G4LFission.hh"
83
84#include "G4PhysListUtil.hh"
85#include "G4HadParticles.hh"
87#include "G4HadronicBuilder.hh"
88
89// factory
91//
93
95 : G4HadronPhysicsINCLXX("hInelastic INCLXX")
96{
98}
99
100G4HadronPhysicsINCLXX::G4HadronPhysicsINCLXX(const G4String& name, const G4bool quasiElastic, const G4bool neutronHP, const G4bool ftfp)
101 : G4HadronPhysicsFTFP_BERT(name, quasiElastic),
102 withNeutronHP(neutronHP),
103 withFTFP(ftfp)
104{
105 QuasiElastic = withFTFP ? false : true;
106 minBERT_neutron = withNeutronHP ? 19.9*MeV : 0.0;
107}
108
110{
112 G4bool useFactorXS = param->ApplyFactorXS();
113 //General schema:
114 // 1) Create a builder
115 // 2) Call AddBuilder
116 // 3) Configure the builder, possibly with sub-builders
117 // 4) Call builder->Build()
118 auto neu = new G4NeutronBuilder( withNeutronHP );
120 G4PhysicsBuilderInterface* string = nullptr;
121 if(withFTFP) {
123 } else {
125 }
126 string->SetMinEnergy(15.*GeV);
127 AddBuilder(string);
128 neu->RegisterMe(string);
129
130 auto inclxxn = new G4INCLXXNeutronBuilder;
131 inclxxn->SetMaxEnergy(20.*GeV);
132 AddBuilder(inclxxn);
133 neu->RegisterMe(inclxxn);
134
135 if(withNeutronHP) {
136 inclxxn->UsePreCompound(false);
137 inclxxn->SetMinEnergy(minBERT_neutron);
138 auto hpn = new G4NeutronPHPBuilder;
139 AddBuilder(hpn);
140 neu->RegisterMe(hpn);
141 } else {
142 inclxxn->UsePreCompound(true);
143 inclxxn->SetMinPreCompoundEnergy(0.0*MeV);
144 inclxxn->SetMaxPreCompoundEnergy(2.0*MeV);
145 inclxxn->SetMinEnergy(1.0*MeV);
146 }
147
148 neu->Build();
149
152 if(nullptr != inel) {
153 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
154 }
156 if (nullptr != capture) {
157 G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
158 theNeutronRadCapture->SetMinEnergy( minBERT_neutron );
159 capture->RegisterMe( theNeutronRadCapture );
160 }
162 if (nullptr != fission) {
163 G4LFission* theNeutronLEPFission = new G4LFission();
164 theNeutronLEPFission->SetMinEnergy( minBERT_neutron );
165 theNeutronLEPFission->SetMaxEnergy( G4HadronicParameters::Instance()->GetMaxEnergy() );
166 fission->RegisterMe( theNeutronLEPFission );
167 }
168}
169
171{
173 G4bool useFactorXS = param->ApplyFactorXS();
174
175 auto pro =new G4ProtonBuilder;
177 G4PhysicsBuilderInterface* string = nullptr;
178 if(withFTFP) {
179 string = new G4FTFPProtonBuilder(QuasiElastic);
180 } else {
181 string = new G4QGSPProtonBuilder(QuasiElastic);
182 }
183 string->SetMinEnergy(15.*GeV);
184 AddBuilder(string);
185 pro->RegisterMe(string);
186
187 auto inclxxp = new G4INCLXXProtonBuilder;
188 AddBuilder(inclxxp);
189 inclxxp->SetMinEnergy(1.0*MeV);
190 inclxxp->SetMaxEnergy(20.0*GeV);
191 pro->RegisterMe(inclxxp);
192 pro->Build();
193
196 if(nullptr != inel) {
197 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
198 }
199}
200
202{
204 G4bool useFactorXS = param->ApplyFactorXS();
205
206 auto pi = new G4PionBuilder;
207 AddBuilder(pi);
208 G4PhysicsBuilderInterface* string = nullptr;
209 if(withFTFP) {
210 string = new G4FTFPPionBuilder(QuasiElastic);
211 } else {
212 string = new G4QGSPPionBuilder(QuasiElastic);
213 }
214 string->SetMinEnergy(15.*GeV);
215 AddBuilder(string);
216 pi->RegisterMe(string);
217
218 auto inclxx = new G4INCLXXPionBuilder;
219 inclxx->SetMinEnergy(0.0*GeV);
220 inclxx->SetMaxEnergy(20.*GeV);
221 AddBuilder(inclxx);
222 pi->RegisterMe(inclxx);
223
224 pi->Build();
225
226 if( useFactorXS ) {
229 if(nullptr != inel) {
231 }
234 if(nullptr != inel) {
236 }
237 }
238}
239
241{
243 G4bool useFactorXS = param->ApplyFactorXS();
244
245 auto k = new G4KaonBuilder;
246 AddBuilder(k);
247 G4PhysicsBuilderInterface* string = nullptr;
248 if(withFTFP) {
249 string = new G4FTFPKaonBuilder(QuasiElastic);
250 } else {
251 string = new G4QGSPKaonBuilder(QuasiElastic);
252 }
253 string->SetMinEnergy(14.*GeV);
254 AddBuilder(string);
255 k->RegisterMe(string);
256
257 auto bert = new G4BertiniKaonBuilder;
258 bert->SetMinEnergy(0.0*GeV);
259 bert->SetMaxEnergy(15.0*GeV);
260 AddBuilder(bert);
261 k->RegisterMe(bert);
262
263 k->Build();
264
265 if( useFactorXS ) {
267 for( auto & pdg : G4HadParticles::GetKaons() ) {
268 auto part = table->FindParticle( pdg );
269 if ( part == nullptr ) { continue; }
271 if(nullptr != inel) {
273 }
274 }
275 }
276}
277
279{
281
282 // high energy particles
283 if( param->GetMaxEnergy() > param->EnergyThresholdForHeavyHadrons() ) {
284
285 // anti light ions
287
288 if(withFTFP) {
289 // hyperons
291
292 // b-, c- baryons and mesons
293 if( param->EnableBCParticles() ) {
295 }
296 } else {
297 // hyperons
299
300 // b-, c- baryons and mesons
301 if( param->EnableBCParticles() ) {
303 }
304 }
305 }
306}
307
309{}
310
312{
315 DumpBanner();
316 }
317 CreateModels();
318}
319
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsINCLXX)
static constexpr double GeV
Definition: G4SIunits.hh:203
static constexpr double MeV
Definition: G4SIunits.hh:200
static constexpr double pi
Definition: G4SIunits.hh:55
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
virtual void SetMinEnergy(G4double aM) final override
static const std::vector< G4int > & GetKaons()
G4HadronPhysicsINCLXX(G4int verbose=1)
static void BuildBCHadronsFTFP_BERT()
static void BuildHyperonsFTFP_BERT()
static void BuildHyperonsQGSP_FTFP_BERT(G4bool quasiElastic)
static void BuildAntiLightIonsFTFP()
static void BuildBCHadronsQGSP_FTFP_BERT(G4bool quasiElastic)
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static G4HadronicParameters * Instance()
void SetVerboseLevel(const G4int val)
G4bool EnableBCParticles() const
G4double EnergyThresholdForHeavyHadrons() const
G4double XSFactorHadronInelastic() const
G4double XSFactorPionInelastic() const
G4double GetMaxEnergy() const
G4double XSFactorNucleonInelastic() const
void MultiplyCrossSectionBy(G4double factor)
void RegisterMe(G4HadronicInteraction *a)
virtual void SetMaxEnergy(G4double aM) final override
virtual void SetMinEnergy(G4double aM) final override
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 G4HadronicProcess * FindFissionProcess(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)
const char * name(G4int ptype)
G4bool pion(G4int ityp)
G4bool IsMasterThread()
Definition: G4Threading.cc:124