Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronPhysicsShielding.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:
30//
31// Author: 2010 Tatsumi Koi, Gunter Folger
32// created from G4HadronPhysicsFTFP_BERT
33//
34// Modified:
35//
36// 2020.05.07 A.Ribon used the newly introduced G4HyperonBuilder
37// 2019.08.01 A.Ribon replaced explicit numbers for the energy transition
38// region with values taken from G4HadronicParameters
39// 2014.08.05 K.L.Genser added provisions for modifing the Bertini to
40// FTF transition energy region
41//
42//----------------------------------------------------------------------------
43//
44#include <iomanip>
45
47
48#include "globals.hh"
49#include "G4ios.hh"
50#include "G4SystemOfUnits.hh"
52#include "G4ParticleTable.hh"
53
54#include "G4MesonConstructor.hh"
57#include "G4IonConstructor.hh"
58
59#include "G4PionBuilder.hh"
61#include "G4FTFPPionBuilder.hh"
62
63#include "G4KaonBuilder.hh"
65#include "G4FTFPKaonBuilder.hh"
66
67#include "G4ProtonBuilder.hh"
71
72#include "G4NeutronBuilder.hh"
76
77#include "G4HyperonBuilder.hh"
81
86
89#include "G4PhysListUtil.hh"
90
95#include "G4NeutronCaptureXS.hh"
97#include "G4LFission.hh"
98
100#include "G4PhysListUtil.hh"
102#include "G4ProcessManager.hh"
103
104// factory
106//
108
109
112{}
113
115 : G4HadronPhysicsShielding(name, false)
116{}
117
119 : G4HadronPhysicsFTFP_BERT(name, qe), useLEND_(false), evaluation_("")
120{
121 minBERT_neutron = 19.9*CLHEP::MeV;
122}
123
125 : G4HadronPhysicsShielding(name, false)
126{}
127
129 G4double minFTFPEnergy, G4double maxBertiniEnergy)
130 : G4HadronPhysicsShielding(name, false)
131{
132 minFTFP_pion = minFTFPEnergy;
133 maxBERT_pion = maxBertiniEnergy;
134}
135
137{}
138
140{
142 G4bool useFactorXS = param->ApplyFactorXS();
143
144 auto neu = new G4NeutronBuilder( true ); // Fission on
145 AddBuilder(neu);
146 auto ftfpneu = new G4FTFPNeutronBuilder(QuasiElastic);
147 AddBuilder(ftfpneu);
148 ftfpneu->SetMinEnergy(minFTFP_neutron);
149 neu->RegisterMe(ftfpneu);
150 auto bertneu = new G4BertiniNeutronBuilder;
151 AddBuilder(bertneu);
152 bertneu->SetMaxEnergy(maxBERT_neutron);
153 bertneu->SetMinEnergy(minBERT_neutron);
154 neu->RegisterMe(bertneu);
155 if(useLEND_) {
156 auto hpneu = new G4NeutronLENDBuilder(evaluation_);
157 AddBuilder(hpneu);
158 neu->RegisterMe(hpneu);
159 } else {
160 auto hpneu = new G4NeutronPHPBuilder;
161 AddBuilder(hpneu);
162 neu->RegisterMe(hpneu);
163 }
164 neu->Build();
165
166 const G4ParticleDefinition* neutron = G4Neutron::Neutron();
168 if(inel) {
169 // Register the G4ParticleHPJENDLHEInelasticData as the 2nd priority.
171 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
172 }
173
175 if (capture) {
176 G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
177 theNeutronRadCapture->SetMinEnergy( minBERT_neutron );
178 capture->RegisterMe( theNeutronRadCapture );
179 }
181 if (fission) {
182 G4LFission* theNeutronLEPFission = new G4LFission();
183 theNeutronLEPFission->SetMinEnergy( minBERT_neutron );
184 theNeutronLEPFission->SetMaxEnergy( G4HadronicParameters::Instance()->GetMaxEnergy() );
185 fission->RegisterMe( theNeutronLEPFission );
186 }
187}
188
190{
192 DumpBanner();
193 }
194 CreateModels();
195}
196
197
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
void AddDataSet(G4VCrossSectionDataSet *)
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static G4HadronicParameters * Instance()
G4double XSFactorNucleonInelastic() const
G4CrossSectionDataStore * GetCrossSectionDataStore()
void MultiplyCrossSectionBy(G4double factor)
void RegisterMe(G4HadronicInteraction *a)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:103
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
static G4HadronicProcess * FindCaptureProcess(const G4ParticleDefinition *)
static G4HadronicProcess * FindFissionProcess(const G4ParticleDefinition *)
void AddBuilder(G4PhysicsBuilderInterface *bld)
G4bool IsMasterThread()
Definition: G4Threading.cc:124