Geant4 11.4.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// 2024.11.19 D.M.Wright: Removed LEND inelastic neutron model,
42// is now done in G4HadronPhysicsLEND
43//----------------------------------------------------------------------------
44//
45
47
48#include "globals.hh"
49#include "G4ios.hh"
50#include "G4SystemOfUnits.hh"
52
53#include "G4NeutronBuilder.hh"
57
60#include "G4HadronPhysicsLEND.hh" // used to access const maxLEND_Energy
61
64#include "G4PhysListUtil.hh"
65
69#include "G4LFission.hh"
70
72#include "G4PhysListUtil.hh"
74#include "G4ProcessManager.hh"
75
76// factory
78//
80
86
90
96
102
104 G4double minFTFPEnergy, G4double maxBertiniEnergy)
105 : G4HadronPhysicsShielding(name, false)
106{
107 auto param = G4HadronicParameters::Instance();
108 param->SetVerboseLevel( verb );
109 param->SetMinEnergyTransitionFTF_Cascade( minFTFPEnergy );
110 param->SetMaxEnergyTransitionFTF_Cascade( maxBertiniEnergy );
111}
112
114{
116 G4bool useFactorXS = param->ApplyFactorXS();
117
118 G4NeutronBuilder neu( true ); // Fission on
119
121 ftfpneu.SetMinEnergy( minFTFP_neutron );
122 neu.RegisterMe( &ftfpneu );
123
125 bertneu.SetMaxEnergy( maxBERT_neutron );
126 bertneu.SetMinEnergy( minBERT_neutron );
127 neu.RegisterMe( &bertneu );
128
129 if ( !useLEND_) {
131 neu.RegisterMe( &hpneu );
132 }
133 neu.Build();
134
135 const G4ParticleDefinition* neutron = G4Neutron::Neutron();
137 if ( nullptr != inel ) {
138 // Register the G4ParticleHPJENDLHEInelasticData as the 2nd priority.
140 if ( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
141 }
142
144 if ( nullptr != capture ) {
145 G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
146 theNeutronRadCapture->SetMinEnergy( minBERT_neutron );
147 capture->RegisterMe( theNeutronRadCapture );
148 }
150 if ( nullptr != fission ) {
151 G4LFission* theNeutronLEPFission = new G4LFission();
152 theNeutronLEPFission->SetMinEnergy( minBERT_neutron );
153 theNeutronLEPFission->SetMaxEnergy( G4HadronicParameters::Instance()->GetMaxEnergy() );
154 fission->RegisterMe( theNeutronLEPFission );
155 }
156}
157
158
const G4double maxLEND_Energy
const G4double overlapLEND_Energy
#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
virtual void SetMaxEnergy(G4double aM) final override
virtual void SetMinEnergy(G4double aM) final override
void AddDataSet(G4VCrossSectionDataSet *)
virtual void SetMinEnergy(G4double aM) final override
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static G4HadronicParameters * Instance()
void SetVerboseLevel(const G4int val)
G4double XSFactorNucleonInelastic() const
G4CrossSectionDataStore * GetCrossSectionDataStore()
void MultiplyCrossSectionBy(G4double factor)
void RegisterMe(G4HadronicInteraction *a)
static G4Neutron * Neutron()
Definition G4Neutron.cc:101
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
static G4HadronicProcess * FindCaptureProcess(const G4ParticleDefinition *)
static G4HadronicProcess * FindFissionProcess(const G4ParticleDefinition *)