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

#include <G4HadronPhysicsFTFQGSP_BERT.hh>

Inheritance diagram for G4HadronPhysicsFTFQGSP_BERT:
G4HadronPhysicsFTFP_BERT G4VPhysicsConstructor

Public Member Functions

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

Static Public Member Functions

static const G4VPCManagerGetSubInstanceManager ()
 

Protected Types

using PhysicsBuilder_V = G4VPCData::PhysicsBuilders_V
 

Protected Member Functions

void AddBuilder (G4PhysicsBuilderInterface *bld)
 
void CreateModels ()
 
void DumpBanner () override
 
PhysicsBuilder_V GetBuilders () const
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
virtual void Kaon ()
 
virtual void Neutron ()
 
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 49 of file G4HadronPhysicsFTFQGSP_BERT.hh.

Member Typedef Documentation

◆ PhysicsBuilder_V

Definition at line 149 of file G4VPhysicsConstructor.hh.

Constructor & Destructor Documentation

◆ G4HadronPhysicsFTFQGSP_BERT() [1/3]

G4HadronPhysicsFTFQGSP_BERT::G4HadronPhysicsFTFQGSP_BERT ( G4int  verbose = 1)

Definition at line 81 of file G4HadronPhysicsFTFQGSP_BERT.cc.

82 : G4HadronPhysicsFTFQGSP_BERT("hInelastic FTFQGSP_BERT", false)
83{
85}
static G4HadronicParameters * Instance()
void SetVerboseLevel(const G4int val)

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

◆ G4HadronPhysicsFTFQGSP_BERT() [2/3]

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

Definition at line 87 of file G4HadronPhysicsFTFQGSP_BERT.cc.

89{}
const char * name(G4int ptype)

◆ ~G4HadronPhysicsFTFQGSP_BERT()

G4HadronPhysicsFTFQGSP_BERT::~G4HadronPhysicsFTFQGSP_BERT ( )
virtual

Definition at line 91 of file G4HadronPhysicsFTFQGSP_BERT.cc.

92{}

◆ G4HadronPhysicsFTFQGSP_BERT() [3/3]

G4HadronPhysicsFTFQGSP_BERT::G4HadronPhysicsFTFQGSP_BERT ( G4HadronPhysicsFTFQGSP_BERT )
delete

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(), G4HadronPhysicsFTFP_BERT_HP::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 G4HadronPhysicsFTFQGSP_BERT::ConstructProcess ( )
overridevirtual

Reimplemented from G4HadronPhysicsFTFP_BERT.

Definition at line 101 of file G4HadronPhysicsFTFQGSP_BERT.cc.

102{
104 DumpBanner();
105 }
107 G4bool useFactorXS = param->ApplyFactorXS();
108 G4double emax = param->GetMaxEnergy();
110
111 auto theModel = new G4TheoFSGenerator("FTFQGSP");
112 auto theStringModel = new G4FTFModel();
113 theStringModel->SetFragmentationModel(new G4ExcitedStringDecay( new G4QGSMFragmentation() ) );
114 theModel->SetHighEnergyGenerator( theStringModel );
115 theModel->SetTransport( new G4GeneratorPrecompoundInterface() );
116 theModel->SetMinEnergy( param->GetMinEnergyTransitionFTF_Cascade() );
117 theModel->SetMaxEnergy( emax );
118
119 auto theCascade = new G4CascadeInterface();
120 theCascade->SetMaxEnergy( param->GetMaxEnergyTransitionFTF_Cascade() );
121
122 // p
124 G4HadronicProcess* proc =
125 new G4HadronInelasticProcess( particle->GetParticleName()+"Inelastic", particle );
126 proc->AddDataSet(new G4ParticleInelasticXS(particle));
127 proc->RegisterMe(theModel);
128 proc->RegisterMe(theCascade);
129 ph->RegisterProcess(proc, particle);
130 if( useFactorXS ) proc->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
131
132 // n
133 particle = G4Neutron::Neutron();
134 proc = new G4HadronInelasticProcess( particle->GetParticleName()+"Inelastic", particle );
135 proc->AddDataSet(new G4NeutronInelasticXS());
136 proc->RegisterMe(theModel);
137 proc->RegisterMe(theCascade);
138 ph->RegisterProcess(proc, particle);
139 if( useFactorXS ) proc->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
140
141 proc = new G4NeutronCaptureProcess("nCapture");
142 proc->RegisterMe(new G4NeutronRadCapture());
143 ph->RegisterProcess(proc, particle);
144
145 // pi+
146 particle = G4PionPlus::PionPlus();
147 proc = new G4HadronInelasticProcess( particle->GetParticleName()+"Inelastic", particle );
148 proc->AddDataSet(new G4BGGPionInelasticXS(particle));
149 proc->RegisterMe(theModel);
150 proc->RegisterMe(theCascade);
151 ph->RegisterProcess(proc, particle);
152 if( useFactorXS ) proc->MultiplyCrossSectionBy( param->XSFactorPionInelastic() );
153
154 // pi-
155 particle = G4PionMinus::PionMinus();
156 proc = new G4HadronInelasticProcess( particle->GetParticleName()+"Inelastic", particle );
157 proc->AddDataSet(new G4BGGPionInelasticXS(particle));
158 proc->RegisterMe(theModel);
159 proc->RegisterMe(theCascade);
160 ph->RegisterProcess(proc, particle);
161 if( useFactorXS ) proc->MultiplyCrossSectionBy( param->XSFactorPionInelastic() );
162
163 // kaons
165
166 // high energy particles
167 if( emax > param->EnergyThresholdForHeavyHadrons() ) {
168
169 // pbar, nbar, anti light ions
171
172 // hyperons
174
175 // b-, c- baryons and mesons
176 if( param->EnableBCParticles() ) {
178 }
179 }
180}
static const G4double emax
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
static void BuildKaonsFTFQGSP_BERT()
static void BuildBCHadronsFTFQGSP_BERT()
static void BuildHyperonsFTFQGSP_BERT()
static void BuildAntiLightIonsFTFP()
G4double GetMinEnergyTransitionFTF_Cascade() const
G4double GetMaxEnergyTransitionFTF_Cascade() const
G4bool EnableBCParticles() const
G4double EnergyThresholdForHeavyHadrons() const
G4double XSFactorPionInelastic() const
G4double GetMaxEnergy() const
G4double XSFactorNucleonInelastic() const
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void MultiplyCrossSectionBy(G4double factor)
void RegisterMe(G4HadronicInteraction *a)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:103
const G4String & GetParticleName() const
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:97
static G4PionPlus * PionPlus()
Definition: G4PionPlus.cc:97
static G4Proton * Proton()
Definition: G4Proton.cc:92
G4bool IsMasterThread()
Definition: G4Threading.cc:124

References G4HadronicProcess::AddDataSet(), G4HadronicParameters::ApplyFactorXS(), G4HadronicBuilder::BuildAntiLightIonsFTFP(), G4HadronicBuilder::BuildBCHadronsFTFQGSP_BERT(), G4HadronicBuilder::BuildHyperonsFTFQGSP_BERT(), G4HadronicBuilder::BuildKaonsFTFQGSP_BERT(), DumpBanner(), emax, G4HadronicParameters::EnableBCParticles(), G4HadronicParameters::EnergyThresholdForHeavyHadrons(), G4HadronicParameters::GetMaxEnergy(), G4HadronicParameters::GetMaxEnergyTransitionFTF_Cascade(), G4HadronicParameters::GetMinEnergyTransitionFTF_Cascade(), G4ParticleDefinition::GetParticleName(), G4PhysicsListHelper::GetPhysicsListHelper(), G4HadronicParameters::Instance(), G4Threading::IsMasterThread(), G4HadronicProcess::MultiplyCrossSectionBy(), G4Neutron::Neutron(), G4PionMinus::PionMinus(), G4PionPlus::PionPlus(), G4Proton::Proton(), G4HadronicProcess::RegisterMe(), G4PhysicsListHelper::RegisterProcess(), G4HadronicParameters::XSFactorNucleonInelastic(), and G4HadronicParameters::XSFactorPionInelastic().

◆ CreateModels()

void G4HadronPhysicsFTFP_BERT::CreateModels ( )
protectedinherited

◆ DumpBanner()

void G4HadronPhysicsFTFQGSP_BERT::DumpBanner ( )
overrideprotectedvirtual

Reimplemented from G4HadronPhysicsFTFP_BERT.

Definition at line 94 of file G4HadronPhysicsFTFQGSP_BERT.cc.

95{
97 G4cout << " QGS string fragmentation instead of Lund string fragmentation."
98 << G4endl;
99}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

References G4HadronPhysicsFTFP_BERT::DumpBanner(), G4cout, and G4endl.

Referenced by ConstructProcess().

◆ 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}
static const std::vector< G4int > & GetKaons()
G4double XSFactorHadronInelastic() const
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::Neutron ( )
protectedvirtualinherited

Reimplemented in G4HadronPhysicsFTF_BIC, G4HadronPhysicsFTFP_BERT_HP, G4HadronPhysicsINCLXX, and G4HadronPhysicsShielding.

Definition at line 150 of file G4HadronPhysicsFTFP_BERT.cc.

151{
153 G4bool useFactorXS = param->ApplyFactorXS();
154 //General schema:
155 // 1) Create a builder
156 // 2) Call AddBuilder
157 // 3) Configure the builder, possibly with sub-builders
158 // 4) Call builder->Build()
159 auto neu = new G4NeutronBuilder;
161 auto ftfpn = new G4FTFPNeutronBuilder(QuasiElastic);
162 AddBuilder( ftfpn );
163 neu->RegisterMe(ftfpn);
164 ftfpn->SetMinEnergy(minFTFP_neutron);
165 auto bertn = new G4BertiniNeutronBuilder;
166 AddBuilder(bertn);
167 neu->RegisterMe(bertn);
168 bertn->SetMinEnergy(minBERT_neutron);
169 bertn->SetMaxEnergy(maxBERT_neutron);
170 neu->Build();
171
174 if(nullptr != inel) {
175 inel->AddDataSet(new G4NeutronInelasticXS());
176 if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
177 }
179 if (nullptr != capture) {
180 capture->RegisterMe(new G4NeutronRadCapture());
181 }
182}
static G4HadronicProcess * FindCaptureProcess(const G4ParticleDefinition *)

References G4VPhysicsConstructor::AddBuilder(), G4HadronicProcess::AddDataSet(), G4HadronicParameters::ApplyFactorXS(), G4PhysListUtil::FindCaptureProcess(), 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(), and G4HadronicParameters::XSFactorNucleonInelastic().

Referenced by G4HadronPhysicsFTFP_BERT::CreateModels().

◆ operator=()

G4HadronPhysicsFTFQGSP_BERT & G4HadronPhysicsFTFQGSP_BERT::operator= ( const G4HadronPhysicsFTFQGSP_BERT right)
delete

◆ Others()

void G4HadronPhysicsFTFP_BERT::Others ( )
protectedvirtualinherited

◆ 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
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}

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: