Geant4-11
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes
G4HadronPhysicsFTFP_BERT_HP Class Reference

#include <G4HadronPhysicsFTFP_BERT_HP.hh>

Inheritance diagram for G4HadronPhysicsFTFP_BERT_HP:
G4HadronPhysicsFTFP_BERT G4VPhysicsConstructor

Public Member Functions

void ConstructParticle () override
 
void ConstructProcess () override
 
 G4HadronPhysicsFTFP_BERT_HP (const G4String &name, G4bool quasiElastic=false)
 
 G4HadronPhysicsFTFP_BERT_HP (G4int verbose=1)
 
G4int GetInstanceID () const
 
const G4StringGetPhysicsName () const
 
G4int GetPhysicsType () const
 
G4int GetVerboseLevel () const
 
void SetPhysicsName (const G4String &="")
 
void SetPhysicsType (G4int)
 
void SetVerboseLevel (G4int value)
 
virtual void TerminateWorker ()
 
virtual ~G4HadronPhysicsFTFP_BERT_HP ()
 

Static Public Member Functions

static const G4VPCManagerGetSubInstanceManager ()
 

Protected Types

using PhysicsBuilder_V = G4VPCData::PhysicsBuilders_V
 

Protected Member Functions

void AddBuilder (G4PhysicsBuilderInterface *bld)
 
void CreateModels ()
 
virtual void DumpBanner ()
 
PhysicsBuilder_V GetBuilders () const
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
virtual void Kaon ()
 
void Neutron () override
 
virtual void Others ()
 
virtual void Pion ()
 
virtual void Proton ()
 
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 

Protected Attributes

G4int g4vpcInstanceID = 0
 
G4double maxBERT_kaon
 
G4double maxBERT_neutron
 
G4double maxBERT_pion
 
G4double maxBERT_proton
 
G4double minBERT_neutron
 
G4double minBERT_proton
 
G4double minFTFP_kaon
 
G4double minFTFP_neutron
 
G4double minFTFP_pion
 
G4double minFTFP_proton
 
G4String namePhysics = ""
 
G4bool QuasiElastic
 
G4ParticleTabletheParticleTable = nullptr
 
G4int typePhysics = 0
 
G4int verboseLevel = 0
 

Static Protected Attributes

static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 45 of file G4HadronPhysicsFTFP_BERT_HP.hh.

Member Typedef Documentation

◆ PhysicsBuilder_V

Definition at line 149 of file G4VPhysicsConstructor.hh.

Constructor & Destructor Documentation

◆ G4HadronPhysicsFTFP_BERT_HP() [1/2]

G4HadronPhysicsFTFP_BERT_HP::G4HadronPhysicsFTFP_BERT_HP ( G4int  verbose = 1)

Definition at line 61 of file G4HadronPhysicsFTFP_BERT_HP.cc.

62 : G4HadronPhysicsFTFP_BERT_HP("hInelastic FTFP_BERT_HP",false)
63{
65}
static G4HadronicParameters * Instance()
void SetVerboseLevel(const G4int val)

References G4HadronicParameters::Instance(), and G4HadronicParameters::SetVerboseLevel().

◆ G4HadronPhysicsFTFP_BERT_HP() [2/2]

G4HadronPhysicsFTFP_BERT_HP::G4HadronPhysicsFTFP_BERT_HP ( const G4String name,
G4bool  quasiElastic = false 
)

Definition at line 67 of file G4HadronPhysicsFTFP_BERT_HP.cc.

68 : G4HadronPhysicsFTFP_BERT(name,quasiElastic)
69{
71}
static constexpr double MeV
const char * name(G4int ptype)

References CLHEP::MeV, and G4HadronPhysicsFTFP_BERT::minBERT_neutron.

◆ ~G4HadronPhysicsFTFP_BERT_HP()

G4HadronPhysicsFTFP_BERT_HP::~G4HadronPhysicsFTFP_BERT_HP ( )
virtual

Definition at line 73 of file G4HadronPhysicsFTFP_BERT_HP.cc.

74{}

Member Function Documentation

◆ AddBuilder()

void G4VPhysicsConstructor::AddBuilder ( G4PhysicsBuilderInterface bld)
protectedinherited

Definition at line 99 of file G4VPhysicsConstructor.cc.

100{
101 (subInstanceManager.offset[g4vpcInstanceID])._builders->push_back(bld);
102}
static G4RUN_DLL G4VPCManager subInstanceManager
G4RUN_DLL G4ThreadLocalStatic T * offset

References G4VPhysicsConstructor::g4vpcInstanceID, G4VUPLSplitter< T >::offset, and G4VPhysicsConstructor::subInstanceManager.

Referenced by G4HadronPhysicsFTFP_BERT::Kaon(), G4HadronPhysicsFTF_BIC::Kaon(), G4HadronPhysicsINCLXX::Kaon(), G4HadronPhysicsFTFP_BERT::Neutron(), G4HadronPhysicsQGSP_BERT::Neutron(), G4HadronPhysicsQGSP_BIC::Neutron(), G4HadronPhysicsFTF_BIC::Neutron(), Neutron(), G4HadronPhysicsINCLXX::Neutron(), G4HadronPhysicsQGS_BIC::Neutron(), G4HadronPhysicsQGSP_BERT_HP::Neutron(), G4HadronPhysicsQGSP_BIC_HP::Neutron(), G4HadronPhysicsShielding::Neutron(), G4HadronPhysicsFTFP_BERT::Pion(), G4HadronPhysicsQGSP_BERT::Pion(), G4HadronPhysicsQGSP_BIC::Pion(), G4HadronPhysicsFTF_BIC::Pion(), G4HadronPhysicsINCLXX::Pion(), G4HadronPhysicsQGS_BIC::Pion(), G4HadronPhysicsFTFP_BERT::Proton(), G4HadronPhysicsQGSP_BERT::Proton(), G4HadronPhysicsQGSP_BIC::Proton(), G4HadronPhysicsFTF_BIC::Proton(), G4HadronPhysicsINCLXX::Proton(), G4HadronPhysicsNuBeam::Proton(), G4HadronPhysicsQGS_BIC::Proton(), and G4HadronPhysicsQGSP_BIC_AllHP::Proton().

◆ ConstructParticle()

void G4HadronPhysicsFTFP_BERT::ConstructParticle ( )
overridevirtualinherited

Implements G4VPhysicsConstructor.

Definition at line 115 of file G4HadronPhysicsFTFP_BERT.cc.

116{
117 G4MesonConstructor pMesonConstructor;
118 pMesonConstructor.ConstructParticle();
119
120 G4BaryonConstructor pBaryonConstructor;
121 pBaryonConstructor.ConstructParticle();
122
123 G4ShortLivedConstructor pShortLivedConstructor;
124 pShortLivedConstructor.ConstructParticle();
125
126 G4IonConstructor pIonConstructor;
127 pIonConstructor.ConstructParticle();
128}
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

References G4BaryonConstructor::ConstructParticle(), G4IonConstructor::ConstructParticle(), G4MesonConstructor::ConstructParticle(), and G4ShortLivedConstructor::ConstructParticle().

◆ ConstructProcess()

void G4HadronPhysicsFTFP_BERT::ConstructProcess ( )
overridevirtualinherited

Implements G4VPhysicsConstructor.

Reimplemented in G4HadronPhysicsFTFP_BERT_ATL, G4HadronPhysicsFTFQGSP_BERT, G4HadronPhysicsINCLXX, G4HadronPhysicsNuBeam, and G4HadronPhysicsShielding.

Definition at line 292 of file G4HadronPhysicsFTFP_BERT.cc.

293{
303
306 DumpBanner();
307 }
308 CreateModels();
309}
G4double GetMinEnergyTransitionFTF_Cascade() const
G4double GetMaxEnergyTransitionFTF_Cascade() const
G4bool IsMasterThread()
Definition: G4Threading.cc:124

References G4HadronPhysicsFTFP_BERT::CreateModels(), G4HadronPhysicsFTFP_BERT::DumpBanner(), G4HadronicParameters::GetMaxEnergyTransitionFTF_Cascade(), G4HadronicParameters::GetMinEnergyTransitionFTF_Cascade(), G4VPhysicsConstructor::GetVerboseLevel(), G4HadronicParameters::Instance(), G4Threading::IsMasterThread(), G4HadronPhysicsFTFP_BERT::maxBERT_kaon, G4HadronPhysicsFTFP_BERT::maxBERT_neutron, G4HadronPhysicsFTFP_BERT::maxBERT_pion, G4HadronPhysicsFTFP_BERT::maxBERT_proton, G4HadronPhysicsFTFP_BERT::minFTFP_kaon, G4HadronPhysicsFTFP_BERT::minFTFP_neutron, G4HadronPhysicsFTFP_BERT::minFTFP_pion, and G4HadronPhysicsFTFP_BERT::minFTFP_proton.

◆ CreateModels()

void G4HadronPhysicsFTFP_BERT::CreateModels ( )
protectedinherited

◆ DumpBanner()

void G4HadronPhysicsFTFP_BERT::DumpBanner ( )
protectedvirtualinherited

Reimplemented in G4HadronPhysicsFTFQGSP_BERT.

Definition at line 130 of file G4HadronPhysicsFTFP_BERT.cc.

131{
132 G4cout << G4endl
133 << " " << GetPhysicsName() << " : threshold between BERT and FTFP is over the interval " << G4endl
134 << " for pions : " << minFTFP_pion/GeV << " to " << maxBERT_pion/GeV << " GeV" << G4endl
135 << " for kaons : " << minFTFP_kaon/GeV << " to " << maxBERT_kaon/GeV << " GeV" << G4endl
136 << " for proton : " << minFTFP_proton/GeV << " to " << maxBERT_proton/GeV << " GeV" << G4endl
137 << " for neutron : " << minFTFP_neutron/GeV << " to " << maxBERT_neutron/GeV << " GeV" << G4endl
138 << G4endl;
139}
static constexpr double GeV
Definition: G4SIunits.hh:203
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
const G4String & GetPhysicsName() const

References G4cout, G4endl, G4VPhysicsConstructor::GetPhysicsName(), GeV, G4HadronPhysicsFTFP_BERT::maxBERT_kaon, G4HadronPhysicsFTFP_BERT::maxBERT_neutron, G4HadronPhysicsFTFP_BERT::maxBERT_pion, G4HadronPhysicsFTFP_BERT::maxBERT_proton, G4HadronPhysicsFTFP_BERT::minFTFP_kaon, G4HadronPhysicsFTFP_BERT::minFTFP_neutron, G4HadronPhysicsFTFP_BERT::minFTFP_pion, and G4HadronPhysicsFTFP_BERT::minFTFP_proton.

Referenced by G4HadronPhysicsFTFP_BERT::ConstructProcess(), G4HadronPhysicsFTFP_BERT_ATL::ConstructProcess(), G4HadronPhysicsINCLXX::ConstructProcess(), G4HadronPhysicsNuBeam::ConstructProcess(), G4HadronPhysicsShielding::ConstructProcess(), and G4HadronPhysicsFTFQGSP_BERT::DumpBanner().

◆ GetBuilders()

G4VPhysicsConstructor::PhysicsBuilder_V G4VPhysicsConstructor::GetBuilders ( ) const
protectedinherited

Definition at line 86 of file G4VPhysicsConstructor.cc.

87{
88 const auto& tls = *((subInstanceManager.offset[g4vpcInstanceID])._builders);
89 PhysicsBuilder_V copy(tls.size());
90 G4int i = 0;
91 for(const auto& el : tls)
92 {
93 copy[i++] = el;
94 }
95 return copy;
96}
int G4int
Definition: G4Types.hh:85
G4VPCData::PhysicsBuilders_V PhysicsBuilder_V
void copy(G4double dst[], const G4double src[], size_t size=G4FieldTrack::ncompSVEC)
Definition: G4FieldUtils.cc:98

References field_utils::copy(), G4VPhysicsConstructor::g4vpcInstanceID, G4VUPLSplitter< T >::offset, and G4VPhysicsConstructor::subInstanceManager.

◆ GetInstanceID()

G4int G4VPhysicsConstructor::GetInstanceID ( ) const
inlineinherited

◆ GetParticleIterator()

G4ParticleTable::G4PTblDicIterator * G4VPhysicsConstructor::GetParticleIterator ( ) const
protectedinherited

◆ GetPhysicsName()

const G4String & G4VPhysicsConstructor::GetPhysicsName ( ) const
inlineinherited

Definition at line 191 of file G4VPhysicsConstructor.hh.

192{
193 return namePhysics;
194}

References G4VPhysicsConstructor::namePhysics.

Referenced by G4EmDNAPhysics_option1::ConstructProcess(), G4EmDNAPhysics_option2::ConstructProcess(), G4EmDNAPhysics_option3::ConstructProcess(), G4EmDNAPhysics_option4::ConstructProcess(), G4EmDNAPhysics_option5::ConstructProcess(), G4EmDNAPhysics_option6::ConstructProcess(), G4EmDNAPhysics_option7::ConstructProcess(), G4EmDNAPhysics_option8::ConstructProcess(), G4EmDNAPhysics_stationary_option2::ConstructProcess(), G4EmDNAPhysics_stationary_option4::ConstructProcess(), G4EmDNAPhysics_stationary_option6::ConstructProcess(), G4EmDNAPhysics::ConstructProcess(), G4EmDNAPhysics_stationary::ConstructProcess(), G4EmLivermorePhysics::ConstructProcess(), G4EmLowEPPhysics::ConstructProcess(), G4EmPenelopePhysics::ConstructProcess(), G4EmStandardPhysics::ConstructProcess(), G4EmStandardPhysics_option1::ConstructProcess(), G4EmStandardPhysics_option2::ConstructProcess(), G4EmStandardPhysics_option3::ConstructProcess(), G4EmStandardPhysics_option4::ConstructProcess(), G4EmStandardPhysicsGS::ConstructProcess(), G4EmStandardPhysicsSS::ConstructProcess(), G4EmStandardPhysicsWVI::ConstructProcess(), G4ThermalNeutrons::ConstructProcess(), G4HadronPhysicsFTFP_BERT::DumpBanner(), G4HadronPhysicsQGSP_BERT::DumpBanner(), export_G4VPhysicsConstructor(), G4HadronDElasticPhysics::G4HadronDElasticPhysics(), G4HadronElasticPhysics::G4HadronElasticPhysics(), G4HadronElasticPhysicsHP::G4HadronElasticPhysicsHP(), G4HadronElasticPhysicsLEND::G4HadronElasticPhysicsLEND(), G4HadronElasticPhysicsPHP::G4HadronElasticPhysicsPHP(), G4HadronElasticPhysicsXS::G4HadronElasticPhysicsXS(), G4HadronHElasticPhysics::G4HadronHElasticPhysics(), G4IonElasticPhysics::G4IonElasticPhysics(), G4VModularPhysicsList::RegisterPhysics(), and G4VModularPhysicsList::ReplacePhysics().

◆ GetPhysicsType()

G4int G4VPhysicsConstructor::GetPhysicsType ( ) const
inlineinherited

◆ GetSubInstanceManager()

const G4VPCManager & G4VPhysicsConstructor::GetSubInstanceManager ( )
inlinestaticinherited

◆ GetVerboseLevel()

G4int G4VPhysicsConstructor::GetVerboseLevel ( ) const
inlineinherited

◆ Kaon()

void G4HadronPhysicsFTFP_BERT::Kaon ( )
protectedvirtualinherited

Reimplemented in G4HadronPhysicsFTF_BIC, and G4HadronPhysicsINCLXX.

Definition at line 241 of file G4HadronPhysicsFTFP_BERT.cc.

242{
244 G4bool useFactorXS = param->ApplyFactorXS();
245
246 auto k = new G4KaonBuilder;
247 AddBuilder(k);
248 auto ftfpk = new G4FTFPKaonBuilder(QuasiElastic);
249 AddBuilder(ftfpk);
250 k->RegisterMe(ftfpk);
251 ftfpk->SetMinEnergy(minFTFP_kaon);
252 auto bertk = new G4BertiniKaonBuilder;
253 AddBuilder(bertk);
254 k->RegisterMe(bertk);
255 bertk->SetMaxEnergy(maxBERT_kaon);
256 k->Build();
257
258 // add cross section factor
259 if( useFactorXS ) {
261 for( auto & pdg : G4HadParticles::GetKaons() ) {
262 auto part = table->FindParticle( pdg );
263 if ( part == nullptr ) { continue; }
265 if(nullptr != inel) {
267 }
268 }
269 }
270}
bool G4bool
Definition: G4Types.hh:86
static const std::vector< G4int > & GetKaons()
G4double XSFactorHadronInelastic() const
void MultiplyCrossSectionBy(G4double factor)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void AddBuilder(G4PhysicsBuilderInterface *bld)

References G4VPhysicsConstructor::AddBuilder(), G4HadronicParameters::ApplyFactorXS(), G4PhysListUtil::FindInelasticProcess(), G4ParticleTable::FindParticle(), G4HadParticles::GetKaons(), G4ParticleTable::GetParticleTable(), G4HadronicParameters::Instance(), G4HadronPhysicsFTFP_BERT::maxBERT_kaon, G4HadronPhysicsFTFP_BERT::minFTFP_kaon, G4HadronicProcess::MultiplyCrossSectionBy(), G4HadronPhysicsFTFP_BERT::QuasiElastic, and G4HadronicParameters::XSFactorHadronInelastic().

Referenced by G4HadronPhysicsFTFP_BERT::CreateModels().

◆ Neutron()

void G4HadronPhysicsFTFP_BERT_HP::Neutron ( )
overrideprotectedvirtual

Reimplemented from G4HadronPhysicsFTFP_BERT.

Definition at line 76 of file G4HadronPhysicsFTFP_BERT_HP.cc.

77{
79 G4bool useFactorXS = param->ApplyFactorXS();
80
81 auto neu = new G4NeutronBuilder( true ); // Fission on
83 auto ftfpneu = new G4FTFPNeutronBuilder(QuasiElastic);
84 AddBuilder(ftfpneu);
85 ftfpneu->SetMinEnergy(minFTFP_neutron);
86 neu->RegisterMe(ftfpneu);
87 auto bertneu = new G4BertiniNeutronBuilder;
88 AddBuilder(bertneu);
89 bertneu->SetMaxEnergy(maxBERT_neutron);
90 bertneu->SetMinEnergy(minBERT_neutron);
91 neu->RegisterMe(bertneu);
92 auto hpneu = new G4NeutronPHPBuilder;
93 AddBuilder(hpneu);
94 neu->RegisterMe(hpneu);
95 neu->Build();
96
99 if(nullptr != inel) {
100 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
101 }
102
104 if (nullptr != capture) {
105 G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
106 theNeutronRadCapture->SetMinEnergy( minBERT_neutron );
107 capture->RegisterMe( theNeutronRadCapture );
108 }
110 if (nullptr != fission) {
111 G4LFission* theNeutronLEPFission = new G4LFission();
112 theNeutronLEPFission->SetMinEnergy( minBERT_neutron );
113 theNeutronLEPFission->SetMaxEnergy( G4HadronicParameters::Instance()->GetMaxEnergy() );
114 fission->RegisterMe( theNeutronLEPFission );
115 }
116}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
G4double XSFactorNucleonInelastic() const
void RegisterMe(G4HadronicInteraction *a)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:103
static G4HadronicProcess * FindCaptureProcess(const G4ParticleDefinition *)
static G4HadronicProcess * FindFissionProcess(const G4ParticleDefinition *)

References G4VPhysicsConstructor::AddBuilder(), G4HadronicParameters::ApplyFactorXS(), G4PhysListUtil::FindCaptureProcess(), G4PhysListUtil::FindFissionProcess(), G4PhysListUtil::FindInelasticProcess(), G4HadronicParameters::Instance(), G4HadronPhysicsFTFP_BERT::maxBERT_neutron, G4HadronPhysicsFTFP_BERT::minBERT_neutron, G4HadronPhysicsFTFP_BERT::minFTFP_neutron, G4HadronicProcess::MultiplyCrossSectionBy(), G4InuclParticleNames::neu, G4Neutron::Neutron(), G4InuclParticleNames::neutron, G4HadronPhysicsFTFP_BERT::QuasiElastic, G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), G4HadronicInteraction::SetMinEnergy(), and G4HadronicParameters::XSFactorNucleonInelastic().

◆ Others()

void G4HadronPhysicsFTFP_BERT::Others ( )
protectedvirtualinherited

Reimplemented in G4HadronPhysicsINCLXX.

Definition at line 272 of file G4HadronPhysicsFTFP_BERT.cc.

273{
275
276 // high energy particles
277 if( param->GetMaxEnergy() > param->EnergyThresholdForHeavyHadrons() ) {
278
279 // anti light ions
281
282 // hyperons
284
285 // b-, c- baryons and mesons
286 if( param->EnableBCParticles() ) {
288 }
289 }
290}
static void BuildBCHadronsFTFP_BERT()
static void BuildHyperonsFTFP_BERT()
static void BuildAntiLightIonsFTFP()
G4bool EnableBCParticles() const
G4double EnergyThresholdForHeavyHadrons() const
G4double GetMaxEnergy() const

References G4HadronicBuilder::BuildAntiLightIonsFTFP(), G4HadronicBuilder::BuildBCHadronsFTFP_BERT(), G4HadronicBuilder::BuildHyperonsFTFP_BERT(), G4HadronicParameters::EnableBCParticles(), G4HadronicParameters::EnergyThresholdForHeavyHadrons(), G4HadronicParameters::GetMaxEnergy(), and G4HadronicParameters::Instance().

Referenced by G4HadronPhysicsFTFP_BERT::CreateModels().

◆ Pion()

void G4HadronPhysicsFTFP_BERT::Pion ( )
protectedvirtualinherited

Reimplemented in G4HadronPhysicsFTF_BIC, and G4HadronPhysicsINCLXX.

Definition at line 209 of file G4HadronPhysicsFTFP_BERT.cc.

210{
212 G4bool useFactorXS = param->ApplyFactorXS();
213
214 auto pi = new G4PionBuilder;
215 AddBuilder(pi);
216 auto ftfppi = new G4FTFPPionBuilder(QuasiElastic);
217 AddBuilder(ftfppi);
218 pi->RegisterMe(ftfppi);
219 ftfppi->SetMinEnergy(minFTFP_pion);
220 auto bertpi = new G4BertiniPionBuilder;
221 AddBuilder(bertpi);
222 pi->RegisterMe(bertpi);
223 bertpi->SetMaxEnergy(maxBERT_pion);
224 pi->Build();
225
226 // add cross section factor
227 if( useFactorXS ) {
230 if(nullptr != inel) {
232 }
235 if(nullptr != inel) {
237 }
238 }
239}
static constexpr double pi
Definition: G4SIunits.hh:55
G4double XSFactorPionInelastic() const
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:97
static G4PionPlus * PionPlus()
Definition: G4PionPlus.cc:97
G4bool pion(G4int ityp)

References G4VPhysicsConstructor::AddBuilder(), G4HadronicParameters::ApplyFactorXS(), G4PhysListUtil::FindInelasticProcess(), G4HadronicParameters::Instance(), G4HadronPhysicsFTFP_BERT::maxBERT_pion, G4HadronPhysicsFTFP_BERT::minFTFP_pion, G4HadronicProcess::MultiplyCrossSectionBy(), pi, G4InuclParticleNames::pion(), G4PionMinus::PionMinus(), G4PionPlus::PionPlus(), G4HadronPhysicsFTFP_BERT::QuasiElastic, and G4HadronicParameters::XSFactorPionInelastic().

Referenced by G4HadronPhysicsFTFP_BERT::CreateModels().

◆ Proton()

void G4HadronPhysicsFTFP_BERT::Proton ( )
protectedvirtualinherited

Reimplemented in G4HadronPhysicsFTF_BIC, G4HadronPhysicsINCLXX, and G4HadronPhysicsNuBeam.

Definition at line 184 of file G4HadronPhysicsFTFP_BERT.cc.

185{
187 G4bool useFactorXS = param->ApplyFactorXS();
188
189 auto pro = new G4ProtonBuilder;
191 auto ftfpp = new G4FTFPProtonBuilder(QuasiElastic);
192 AddBuilder(ftfpp);
193 pro->RegisterMe(ftfpp);
194 ftfpp->SetMinEnergy(minFTFP_proton);
195 auto bertp = new G4BertiniProtonBuilder;
196 AddBuilder(bertp);
197 pro->RegisterMe(bertp);
198 bertp->SetMinEnergy(minBERT_proton);
199 bertp->SetMaxEnergy(maxBERT_proton);
200 pro->Build();
201
204 if(nullptr != inel) {
205 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
206 }
207}
static G4Proton * Proton()
Definition: G4Proton.cc:92

References G4VPhysicsConstructor::AddBuilder(), G4HadronicParameters::ApplyFactorXS(), G4PhysListUtil::FindInelasticProcess(), G4HadronicParameters::Instance(), G4HadronPhysicsFTFP_BERT::maxBERT_proton, G4HadronPhysicsFTFP_BERT::minBERT_proton, G4HadronPhysicsFTFP_BERT::minFTFP_proton, G4HadronicProcess::MultiplyCrossSectionBy(), G4InuclParticleNames::pro, G4Proton::Proton(), G4InuclParticleNames::proton, G4HadronPhysicsFTFP_BERT::QuasiElastic, and G4HadronicParameters::XSFactorNucleonInelastic().

Referenced by G4HadronPhysicsFTFP_BERT::CreateModels().

◆ RegisterProcess()

G4bool G4VPhysicsConstructor::RegisterProcess ( G4VProcess process,
G4ParticleDefinition particle 
)
inlineprotectedinherited

◆ SetPhysicsName()

void G4VPhysicsConstructor::SetPhysicsName ( const G4String name = "")
inlineinherited

◆ SetPhysicsType()

void G4VPhysicsConstructor::SetPhysicsType ( G4int  val)
inlineinherited

Definition at line 196 of file G4VPhysicsConstructor.hh.

197{
198 if(val > 0) { typePhysics = val; }
199}

References G4VPhysicsConstructor::typePhysics.

Referenced by G4DecayPhysics::G4DecayPhysics(), G4EmDNAPhysics::G4EmDNAPhysics(), G4EmDNAPhysics_option1::G4EmDNAPhysics_option1(), G4EmDNAPhysics_option2::G4EmDNAPhysics_option2(), G4EmDNAPhysics_option3::G4EmDNAPhysics_option3(), G4EmDNAPhysics_option4::G4EmDNAPhysics_option4(), G4EmDNAPhysics_option5::G4EmDNAPhysics_option5(), G4EmDNAPhysics_option6::G4EmDNAPhysics_option6(), G4EmDNAPhysics_option7::G4EmDNAPhysics_option7(), G4EmDNAPhysics_option8::G4EmDNAPhysics_option8(), G4EmDNAPhysics_stationary_option2::G4EmDNAPhysics_stationary_option2(), G4EmDNAPhysics_stationary_option4::G4EmDNAPhysics_stationary_option4(), G4EmDNAPhysics_stationary_option6::G4EmDNAPhysics_stationary_option6(), G4EmExtraPhysics::G4EmExtraPhysics(), G4EmLivermorePhysics::G4EmLivermorePhysics(), G4EmLowEPPhysics::G4EmLowEPPhysics(), G4EmPenelopePhysics::G4EmPenelopePhysics(), G4EmStandardPhysics::G4EmStandardPhysics(), G4EmStandardPhysics_option1::G4EmStandardPhysics_option1(), G4EmStandardPhysics_option2::G4EmStandardPhysics_option2(), G4EmStandardPhysics_option3::G4EmStandardPhysics_option3(), G4EmStandardPhysics_option4::G4EmStandardPhysics_option4(), G4EmStandardPhysicsGS::G4EmStandardPhysicsGS(), G4EmStandardPhysicsSS::G4EmStandardPhysicsSS(), G4EmStandardPhysicsWVI::G4EmStandardPhysicsWVI(), G4HadronElasticPhysics::G4HadronElasticPhysics(), G4HadronInelasticQBBC::G4HadronInelasticQBBC(), G4HadronPhysicsFTFP_BERT::G4HadronPhysicsFTFP_BERT(), G4HadronPhysicsQGSP_BERT::G4HadronPhysicsQGSP_BERT(), G4HadronPhysicsQGSP_BIC::G4HadronPhysicsQGSP_BIC(), G4IonINCLXXPhysics::G4IonINCLXXPhysics(), G4IonPhysics::G4IonPhysics(), G4IonPhysicsPHP::G4IonPhysicsPHP(), G4IonQMDPhysics::G4IonQMDPhysics(), G4NeutronTrackingCut::G4NeutronTrackingCut(), G4StepLimiterPhysics::G4StepLimiterPhysics(), G4StoppingPhysics::G4StoppingPhysics(), and G4StoppingPhysicsFritiofWithBinaryCascade::G4StoppingPhysicsFritiofWithBinaryCascade().

◆ SetVerboseLevel()

void G4VPhysicsConstructor::SetVerboseLevel ( G4int  value)
inlineinherited

◆ TerminateWorker()

void G4VPhysicsConstructor::TerminateWorker ( )
virtualinherited

Definition at line 105 of file G4VPhysicsConstructor.cc.

106{
107 if(subInstanceManager.offset[g4vpcInstanceID]._builders != nullptr)
108 {
109 std::for_each(subInstanceManager.offset[g4vpcInstanceID]._builders->begin(),
110 subInstanceManager.offset[g4vpcInstanceID]._builders->end(),
111 [](PhysicsBuilder_V::value_type bld) { delete bld; });
112 subInstanceManager.offset[g4vpcInstanceID]._builders->clear();
113 }
114}

References G4VPhysicsConstructor::g4vpcInstanceID, G4VUPLSplitter< T >::offset, and G4VPhysicsConstructor::subInstanceManager.

Referenced by G4VPhysicsConstructor::~G4VPhysicsConstructor().

Field Documentation

◆ g4vpcInstanceID

G4int G4VPhysicsConstructor::g4vpcInstanceID = 0
protectedinherited

◆ maxBERT_kaon

G4double G4HadronPhysicsFTFP_BERT::maxBERT_kaon
protectedinherited

◆ maxBERT_neutron

G4double G4HadronPhysicsFTFP_BERT::maxBERT_neutron
protectedinherited

◆ maxBERT_pion

G4double G4HadronPhysicsFTFP_BERT::maxBERT_pion
protectedinherited

◆ maxBERT_proton

G4double G4HadronPhysicsFTFP_BERT::maxBERT_proton
protectedinherited

◆ minBERT_neutron

G4double G4HadronPhysicsFTFP_BERT::minBERT_neutron
protectedinherited

◆ minBERT_proton

G4double G4HadronPhysicsFTFP_BERT::minBERT_proton
protectedinherited

◆ minFTFP_kaon

G4double G4HadronPhysicsFTFP_BERT::minFTFP_kaon
protectedinherited

◆ minFTFP_neutron

G4double G4HadronPhysicsFTFP_BERT::minFTFP_neutron
protectedinherited

◆ minFTFP_pion

G4double G4HadronPhysicsFTFP_BERT::minFTFP_pion
protectedinherited

◆ minFTFP_proton

G4double G4HadronPhysicsFTFP_BERT::minFTFP_proton
protectedinherited

◆ namePhysics

G4String G4VPhysicsConstructor::namePhysics = ""
protectedinherited

◆ QuasiElastic

G4bool G4HadronPhysicsFTFP_BERT::QuasiElastic
protectedinherited

◆ subInstanceManager

G4VPCManager G4VPhysicsConstructor::subInstanceManager
staticprotectedinherited

◆ theParticleTable

G4ParticleTable* G4VPhysicsConstructor::theParticleTable = nullptr
protectedinherited

◆ typePhysics

G4int G4VPhysicsConstructor::typePhysics = 0
protectedinherited

◆ verboseLevel

G4int G4VPhysicsConstructor::verboseLevel = 0
protectedinherited

The documentation for this class was generated from the following files: