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

#include <G4IonPhysicsPHP.hh>

Inheritance diagram for G4IonPhysicsPHP:
G4VPhysicsConstructor

Public Member Functions

void ConstructParticle () override
 
void ConstructProcess () override
 
 G4IonPhysicsPHP (const G4String &nname, G4int ver=0)
 
 G4IonPhysicsPHP (G4int ver=0)
 
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 ()
 
 ~G4IonPhysicsPHP () override
 

Static Public Member Functions

static const G4VPCManagerGetSubInstanceManager ()
 

Protected Types

using PhysicsBuilder_V = G4VPCData::PhysicsBuilders_V
 

Protected Member Functions

void AddBuilder (G4PhysicsBuilderInterface *bld)
 
PhysicsBuilder_V GetBuilders () const
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 

Protected Attributes

G4int g4vpcInstanceID = 0
 
G4String namePhysics = ""
 
G4ParticleTabletheParticleTable = nullptr
 
G4int typePhysics = 0
 
G4int verboseLevel = 0
 

Static Protected Attributes

static G4RUN_DLL G4VPCManager subInstanceManager
 

Private Member Functions

void AddProcess (const G4String &, G4ParticleDefinition *, G4ParticleHPInelasticData *, G4HadronicInteraction *, G4HadronicInteraction *, G4HadronicInteraction *, G4VCrossSectionDataSet *)
 

Private Attributes

G4int verbose
 

Detailed Description

Definition at line 53 of file G4IonPhysicsPHP.hh.

Member Typedef Documentation

◆ PhysicsBuilder_V

Definition at line 149 of file G4VPhysicsConstructor.hh.

Constructor & Destructor Documentation

◆ G4IonPhysicsPHP() [1/2]

G4IonPhysicsPHP::G4IonPhysicsPHP ( G4int  ver = 0)

Definition at line 75 of file G4IonPhysicsPHP.cc.

76 : G4IonPhysicsPHP( "ionInelasticFTFP_BIC_PHP", ver)
77{}
G4IonPhysicsPHP(G4int ver=0)

◆ G4IonPhysicsPHP() [2/2]

G4IonPhysicsPHP::G4IonPhysicsPHP ( const G4String nname,
G4int  ver = 0 
)

Definition at line 79 of file G4IonPhysicsPHP.cc.

80 : G4VPhysicsConstructor( nname ), verbose( ver )
81{
85 if ( verbose > 1 ) G4cout << "### G4IonPhysics: " << nname << G4endl;
86}
@ bIons
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
void SetDeexChannelsType(G4DeexChannelType)
G4DeexPrecoParameters * GetParameters()
static G4NuclearLevelData * GetInstance()
G4VPhysicsConstructor(const G4String &="")

References bIons, fCombined, G4cout, G4endl, G4NuclearLevelData::GetInstance(), G4NuclearLevelData::GetParameters(), G4DeexPrecoParameters::SetDeexChannelsType(), G4VPhysicsConstructor::SetPhysicsType(), and verbose.

◆ ~G4IonPhysicsPHP()

G4IonPhysicsPHP::~G4IonPhysicsPHP ( )
override

Definition at line 88 of file G4IonPhysicsPHP.cc.

88 {
89}

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().

◆ AddProcess()

void G4IonPhysicsPHP::AddProcess ( const G4String name,
G4ParticleDefinition part,
G4ParticleHPInelasticData xsecPHP,
G4HadronicInteraction aPHP,
G4HadronicInteraction aBIC,
G4HadronicInteraction aFTFP,
G4VCrossSectionDataSet theNuclNuclData 
)
private

Definition at line 185 of file G4IonPhysicsPHP.cc.

190{
192 G4ProcessManager* pManager = part->GetProcessManager();
193 pManager->AddDiscreteProcess( hadi );
194 hadi->AddDataSet( theNuclNuclData );
195 if ( aPHP ) {
196 hadi->RegisterMe( aPHP );
197 if ( xsecPHP ) {
198 hadi->AddDataSet( xsecPHP );
199 }
200 }
201 hadi->RegisterMe( aBIC );
202 if(aFTFP) { hadi->RegisterMe( aFTFP ); }
203}
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
const char * name(G4int ptype)

References G4HadronicProcess::AddDataSet(), G4ProcessManager::AddDiscreteProcess(), G4ParticleDefinition::GetProcessManager(), G4InuclParticleNames::name(), and G4HadronicProcess::RegisterMe().

Referenced by ConstructProcess().

◆ ConstructParticle()

void G4IonPhysicsPHP::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 91 of file G4IonPhysicsPHP.cc.

91 {
92 // Construct ions
93 G4IonConstructor pConstructor;
94 pConstructor.ConstructParticle();
95}
static void ConstructParticle()

References G4IonConstructor::ConstructParticle().

◆ ConstructProcess()

void G4IonPhysicsPHP::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 97 of file G4IonPhysicsPHP.cc.

97 {
98
99 const G4double maxPHP = 200.0*MeV;
100 const G4double overlapPHP_BIC = 10.0*MeV;
104
107 G4PreCompoundModel* thePreCompound = static_cast< G4PreCompoundModel* >(p);
108 if ( ! thePreCompound ) thePreCompound = new G4PreCompoundModel;
109
110 // Binary Cascade
111 G4HadronicInteraction* theIonBC1 = new G4BinaryLightIonReaction( thePreCompound );
112 theIonBC1->SetMinEnergy( 0.0 ); // Used for generic ions
113 theIonBC1->SetMaxEnergy( maxBIC );
114
115 G4HadronicInteraction* theIonBC2 = new G4BinaryLightIonReaction( thePreCompound );
116 theIonBC2->SetMinEnergy( maxPHP - overlapPHP_BIC ); // Used for d, t, He3, alpha
117 theIonBC2->SetMaxEnergy( maxBIC );
118
119 // FTFP
120 G4HadronicInteraction* theFTFP = nullptr;
121 if(maxFTF > maxBIC) {
122 G4FTFBuilder theBuilder( "FTFP", thePreCompound );
123 theFTFP = theBuilder.GetModel();
124 theFTFP->SetMinEnergy( minFTF );
125 theFTFP->SetMaxEnergy( maxFTF );
126 }
127
128 G4CrossSectionInelastic* theNuclNuclData =
130
131 // ParticleHP : deuteron
132 G4HadronicInteraction* modelDeuteronPHP =
133 new G4ParticleHPInelastic( G4Deuteron::Deuteron(), "ParticleHPInelastic" );
134 modelDeuteronPHP->SetMinEnergy( 0.0 );
135 modelDeuteronPHP->SetMaxEnergy( maxPHP );
136 G4ParticleHPInelasticData* theDeuteronHPInelasticData =
138 theDeuteronHPInelasticData->SetMinKinEnergy( 0.0 );
139 theDeuteronHPInelasticData->SetMaxKinEnergy( maxPHP );
140
141 // ParticleHP : triton
142 G4HadronicInteraction* modelTritonPHP =
143 new G4ParticleHPInelastic( G4Triton::Triton(), "ParticleHPInelastic" );
144 modelTritonPHP->SetMinEnergy( 0.0 );
145 modelTritonPHP->SetMaxEnergy( maxPHP );
146 G4ParticleHPInelasticData* theTritonHPInelasticData =
148 theTritonHPInelasticData->SetMinKinEnergy( 0.0 );
149 theTritonHPInelasticData->SetMaxKinEnergy( maxPHP );
150
151 // ParticleHP : 3He
152 G4HadronicInteraction* modelHe3PHP =
153 new G4ParticleHPInelastic( G4He3::He3(), "ParticleHPInelastic" );
154 modelHe3PHP->SetMinEnergy( 0.0 );
155 modelHe3PHP->SetMaxEnergy( maxPHP );
156 G4ParticleHPInelasticData* theHe3HPInelasticData =
158 theHe3HPInelasticData->SetMinKinEnergy( 0.0 );
159 theHe3HPInelasticData->SetMaxKinEnergy( maxPHP );
160
161 // ParticleHP : alpha
162 G4HadronicInteraction* modelAlphaPHP =
163 new G4ParticleHPInelastic( G4Alpha::Alpha(), "ParticleHPInelastic" );
164 modelAlphaPHP->SetMinEnergy( 0.0 );
165 modelAlphaPHP->SetMaxEnergy( maxPHP );
166 G4ParticleHPInelasticData* theAlphaHPInelasticData =
168 theAlphaHPInelasticData->SetMinKinEnergy( 0.0 );
169 theAlphaHPInelasticData->SetMaxKinEnergy( maxPHP );
170
171 AddProcess( "dInelastic", G4Deuteron::Deuteron(), theDeuteronHPInelasticData,
172 modelDeuteronPHP, theIonBC2, theFTFP, theNuclNuclData);
173 AddProcess( "tInelastic", G4Triton::Triton(), theTritonHPInelasticData,
174 modelTritonPHP, theIonBC2, theFTFP, theNuclNuclData);
175 AddProcess( "He3Inelastic", G4He3::He3(), theHe3HPInelasticData,
176 modelHe3PHP, theIonBC2, theFTFP, theNuclNuclData);
177 AddProcess( "alphaInelastic", G4Alpha::Alpha(), theAlphaHPInelasticData,
178 modelAlphaPHP, theIonBC2, theFTFP, theNuclNuclData);
179 AddProcess( "ionInelastic", G4GenericIon::GenericIon(), nullptr,
180 nullptr, theIonBC1, theFTFP, theNuclNuclData);
181
182 if ( verbose > 1 ) G4cout << "G4IonPhysicsPHP::ConstructProcess done! " << G4endl;
183}
static constexpr double MeV
Definition: G4SIunits.hh:200
double G4double
Definition: G4Types.hh:83
static G4Alpha * Alpha()
Definition: G4Alpha.cc:88
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:93
static G4GenericIon * GenericIon()
Definition: G4GenericIon.cc:92
G4HadronicInteraction * FindModel(const G4String &name)
static G4HadronicInteractionRegistry * Instance()
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static G4HadronicParameters * Instance()
G4double GetMinEnergyTransitionFTF_Cascade() const
G4double GetMaxEnergyTransitionFTF_Cascade() const
G4double GetMaxEnergy() const
static G4He3 * He3()
Definition: G4He3.cc:93
void AddProcess(const G4String &, G4ParticleDefinition *, G4ParticleHPInelasticData *, G4HadronicInteraction *, G4HadronicInteraction *, G4HadronicInteraction *, G4VCrossSectionDataSet *)
static G4Triton * Triton()
Definition: G4Triton.cc:93
void SetMaxKinEnergy(G4double value)
void SetMinKinEnergy(G4double value)

References AddProcess(), G4Alpha::Alpha(), G4Deuteron::Deuteron(), G4HadronicInteractionRegistry::FindModel(), G4cout, G4endl, G4GenericIon::GenericIon(), G4HadronicParameters::GetMaxEnergy(), G4HadronicParameters::GetMaxEnergyTransitionFTF_Cascade(), G4HadronicParameters::GetMinEnergyTransitionFTF_Cascade(), G4VHadronModelBuilder::GetModel(), G4He3::He3(), G4HadronicInteractionRegistry::Instance(), G4HadronicParameters::Instance(), MeV, G4HadronicInteraction::SetMaxEnergy(), G4VCrossSectionDataSet::SetMaxKinEnergy(), G4HadronicInteraction::SetMinEnergy(), G4VCrossSectionDataSet::SetMinKinEnergy(), G4Triton::Triton(), and verbose.

◆ 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

◆ 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(), 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

◆ namePhysics

G4String G4VPhysicsConstructor::namePhysics = ""
protectedinherited

◆ subInstanceManager

G4VPCManager G4VPhysicsConstructor::subInstanceManager
staticprotectedinherited

◆ theParticleTable

G4ParticleTable* G4VPhysicsConstructor::theParticleTable = nullptr
protectedinherited

◆ typePhysics

G4int G4VPhysicsConstructor::typePhysics = 0
protectedinherited

◆ verbose

G4int G4IonPhysicsPHP::verbose
private

Definition at line 73 of file G4IonPhysicsPHP.hh.

Referenced by ConstructProcess(), and G4IonPhysicsPHP().

◆ verboseLevel

G4int G4VPhysicsConstructor::verboseLevel = 0
protectedinherited

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