Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronPhysicsQGSP_BERT.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_BERT
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// 20.06.2006 G.Folger: Bertini applies to Kaons, i.e. use SetMinEnergy instead of SetMinPionEnergy
37// 25.04.2007 G.Folger: Add code for quasielastic
38// 10.12.2007 G.Folger: Add projectilediffrative option for proton/neutron, off by default
39// 31.10.2012 A.Ribon: Use G4MiscBuilder
40// 19.03.2013 A.Ribon: Replace LEP with FTFP
41// 05.05.2020 A.Ribon: Use QGSP for antibaryons at high energies
42// 07.05.2020 A.Ribon: Use QGSP for hyperons (and anti-hyperons) at high energies
43//
44//----------------------------------------------------------------------------
45//
46#include <iomanip>
47
49
50#include "G4ios.hh"
51#include "G4SystemOfUnits.hh"
53#include "G4ParticleTable.hh"
54#include "G4ProcessManager.hh"
55
56#include "G4PiKBuilder.hh"
57#include "G4FTFPPiKBuilder.hh"
58#include "G4QGSPPiKBuilder.hh"
60
65
70
71#include "G4MesonConstructor.hh"
74#include "G4IonConstructor.hh"
75
78#include "G4NeutronCaptureXS.hh"
81
82#include "G4PhysListUtil.hh"
83#include "G4HadParticles.hh"
85#include "G4HadronicBuilder.hh"
86#include "G4BuilderType.hh"
87
89//
91
97
113
115{
116 Neutron();
117 Proton();
118 PiK();
119 Others();
120}
121
123{
125 G4bool useFactorXS = param->ApplyFactorXS();
126
127 const G4ParticleDefinition* neutron = G4Neutron::Neutron();
128 auto inel = new G4HadronInelasticProcess( "neutronInelastic", neutron );
129 neutron->GetProcessManager()->AddDiscreteProcess( inel );
130
133 qgs.Build( inel );
134
138 ftf.Build( inel );
139
144 bert.Build( inel );
145 }
146
147 if ( maxBIC_neutron > 0.0 ) {
151 bic.Build( inel );
152 }
153
154 inel->AddDataSet( new G4NeutronInelasticXS() );
155 if ( useFactorXS ) {
156 inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
157 }
158
159 auto capture = new G4NeutronCaptureProcess( "nCaptureXS" );
160 neutron->GetProcessManager()->AddDiscreteProcess(capture);
161 capture->RegisterMe( new G4NeutronRadCapture() );
162}
163
165{
167 G4bool useFactorXS = param->ApplyFactorXS();
168
169 const G4ParticleDefinition* proton = G4Proton::Proton();
170 auto inel = new G4HadronInelasticProcess( "protonInelastic", proton );
171 proton->GetProcessManager()->AddDiscreteProcess( inel );
172
175 qgs.Build( inel );
176
180 ftf.Build( inel );
181
186 bert.Build( inel );
187 }
188
189 if ( maxBIC_proton > 0.0 ) {
192 bic.Build( inel );
193 }
194
195 auto xsinel = new G4BGGNucleonInelasticXS( proton );
196 inel->AddDataSet( xsinel );
197
198 if ( useFactorXS ) {
199 inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
200 }
201}
202
204{
206 G4bool useFactorXS = param->ApplyFactorXS();
207
208 G4PiKBuilder pik;
209
212 pik.RegisterMe( &qgs );
213
217 pik.RegisterMe( &ftf );
218
221 pik.RegisterMe( &bert );
222
223 // build all models
224 pik.Build();
225
226 // add cross section factor
227 if ( useFactorXS ) {
230 if ( nullptr != inel ) {
232 }
233 pion = G4PionMinus::PionMinus();
235 if ( nullptr != inel ) {
237 }
239 for ( auto const & pdg : G4HadParticles::GetKaons() ) {
240 auto part = table->FindParticle( pdg );
241 if ( part == nullptr ) { continue; }
243 if ( nullptr != inel ) {
245 }
246 }
247 }
248}
249
251{
253
254 // high energy particles
255 if( param->GetMaxEnergy() > param->EnergyThresholdForHeavyHadrons() ) {
256
257 // anti light ions
259
260 // hyperons
262
263 // b-, c- baryons and mesons
264 if( param->EnableBCParticles() ) {
266 }
267 }
268}
269
271{
272 G4MesonConstructor pMesonConstructor;
273 pMesonConstructor.ConstructParticle();
274
275 G4BaryonConstructor pBaryonConstructor;
276 pBaryonConstructor.ConstructParticle();
277
278 G4ShortLivedConstructor pShortLivedConstructor;
279 pShortLivedConstructor.ConstructParticle();
280
281 G4IonConstructor pIonConstructor;
282 pIonConstructor.ConstructParticle();
283}
284
304
306{
307 G4cout << G4endl;
308 G4cout << " " << GetPhysicsName() << " Thresholds: " << G4endl;
309 if ( maxBIC_proton > 0.0 || maxBIC_neutron > 0.0) {
310 G4cout << " 0) between BIC and BERT for p, n over the interval "
311 << minBERT_proton/CLHEP::GeV << " to "
312 << maxBIC_proton/CLHEP::GeV << " GeV. " << G4endl;
313 }
314 G4cout << " 1) between BERT and FTF/P over the interval "
315 << minFTFP_proton/CLHEP::GeV << " to "
316 << maxBERT_proton/CLHEP::GeV << " GeV. " << G4endl;
317 G4cout << " 2) between FTF/P and QGS/P over the interval "
318 << minQGSP_proton/CLHEP::GeV << " to "
319 << maxFTFP_proton/CLHEP::GeV << " GeV. " << G4endl;
320 G4cout << " -- quasiElastic: " << QuasiElasticQGS << " for QGS "
321 << " and " << QuasiElasticFTF << " for FTF" << G4endl;
322}
323
324
@ bHadronInelastic
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
static void ConstructParticle()
virtual void SetMaxEnergy(G4double aM) final override
virtual void SetMinEnergy(G4double aM) final override
virtual void Build(G4HadronElasticProcess *) final override
virtual void SetMaxEnergy(G4double aM) final override
virtual void SetMinEnergy(G4double aM) final override
virtual void SetMaxEnergy(G4double aM) final override
virtual void Build(G4HadronElasticProcess *) final override
virtual void Build(G4HadronElasticProcess *) final override
virtual void SetMaxEnergy(G4double aM) final override
virtual void SetMinEnergy(G4double aM) final override
virtual void SetMaxEnergy(G4double aM) final override
virtual void Build(G4HadronElasticProcess *) final override
virtual void SetMaxEnergy(G4double aM) final override
virtual void SetMinEnergy(G4double aM) final override
virtual void Build(G4HadronElasticProcess *) final override
virtual void SetMaxEnergy(G4double aM) final override
virtual void SetMinEnergy(G4double aM) final override
void SetMinEnergy(G4double aM) override
void SetMaxEnergy(G4double aM) override
void Build(G4HadronElasticProcess *) override
static const std::vector< G4int > & GetKaons()
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
void SetVerboseLevel(const G4int val)
G4double EnergyThresholdForHeavyHadrons() const
G4double XSFactorHadronInelastic() const
void SetEnableBCParticles(G4bool val)
G4double GetMaxEnergyTransitionQGS_FTF() const
G4double XSFactorPionInelastic() const
G4double XSFactorNucleonInelastic() const
void MultiplyCrossSectionBy(G4double factor)
static void ConstructParticle()
static void ConstructParticle()
static G4Neutron * Neutron()
Definition G4Neutron.cc:101
static G4ParticleTable * GetParticleTable()
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
virtual void Build() final override
virtual void RegisterMe(G4PhysicsBuilderInterface *aB) final override
static G4PionMinus * PionMinus()
static G4PionPlus * PionPlus()
Definition G4PionPlus.cc:93
static G4Proton * Proton()
Definition G4Proton.cc:90
virtual void SetMinEnergy(G4double aM) final override
virtual void Build(G4HadronElasticProcess *) final override
virtual void SetMinEnergy(G4double aM) final override
virtual void Build(G4HadronElasticProcess *) override
virtual void SetMinEnergy(G4double aM) final override
G4VPhysicsConstructor(const G4String &="")
const G4String & GetPhysicsName() const
G4bool IsMasterThread()