Geant4-11
Static Public Member Functions | Private Member Functions
G4PhysListUtil Class Reference

#include <G4PhysListUtil.hh>

Static Public Member Functions

static G4HadronicProcessFindCaptureProcess (const G4ParticleDefinition *)
 
static G4HadronicProcessFindElasticProcess (const G4ParticleDefinition *)
 
static G4HadronicProcessFindFissionProcess (const G4ParticleDefinition *)
 
static G4HadronicProcessFindInelasticProcess (const G4ParticleDefinition *)
 
static void InitialiseParameters ()
 

Private Member Functions

 G4PhysListUtil ()
 
 ~G4PhysListUtil ()
 

Detailed Description

Definition at line 46 of file G4PhysListUtil.hh.

Constructor & Destructor Documentation

◆ G4PhysListUtil()

G4PhysListUtil::G4PhysListUtil ( )
private

◆ ~G4PhysListUtil()

G4PhysListUtil::~G4PhysListUtil ( )
private

Member Function Documentation

◆ FindCaptureProcess()

G4HadronicProcess * G4PhysListUtil::FindCaptureProcess ( const G4ParticleDefinition p)
static

◆ FindElasticProcess()

G4HadronicProcess * G4PhysListUtil::FindElasticProcess ( const G4ParticleDefinition p)
static

Definition at line 76 of file G4PhysListUtil.cc.

77{
78 G4HadronicProcess* had = nullptr;
79 if(p) {
81 size_t n = pvec->size();
82 for(size_t i=0; i<n; ++i) {
83 auto proc = (*pvec)[i];
84 if(proc != nullptr && fHadronElastic == proc->GetProcessSubType()) {
85 had = static_cast<G4HadronicProcess*>(proc);
86 break;
87 }
88 }
89 }
90 return had;
91}
@ fHadronElastic

References fHadronElastic, G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), CLHEP::detail::n, and G4ProcessVector::size().

Referenced by G4ThermalNeutrons::ConstructProcess(), G4HadProcesses::FindElasticProcess(), and G4HadronElasticPhysics::GetElasticProcess().

◆ FindFissionProcess()

G4HadronicProcess * G4PhysListUtil::FindFissionProcess ( const G4ParticleDefinition p)
static

Definition at line 112 of file G4PhysListUtil.cc.

113{
114 G4HadronicProcess* had = nullptr;
115 if(p) {
117 size_t n = pvec->size();
118 for(size_t i=0; i<n; ++i) {
119 auto proc = (*pvec)[i];
120 if(proc != nullptr && fFission == proc->GetProcessSubType()) {
121 had = static_cast<G4HadronicProcess*>(proc);
122 break;
123 }
124 }
125 }
126 return had;
127}

References fFission, G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), CLHEP::detail::n, and G4ProcessVector::size().

Referenced by G4HadProcesses::FindFissionProcess(), G4HadronPhysicsFTFP_BERT_HP::Neutron(), G4HadronPhysicsINCLXX::Neutron(), G4HadronPhysicsQGSP_BERT_HP::Neutron(), G4HadronPhysicsQGSP_BIC_HP::Neutron(), and G4HadronPhysicsShielding::Neutron().

◆ FindInelasticProcess()

G4HadronicProcess * G4PhysListUtil::FindInelasticProcess ( const G4ParticleDefinition p)
static

Definition at line 58 of file G4PhysListUtil.cc.

59{
60 G4HadronicProcess* had = nullptr;
61 if(p) {
63 size_t n = pvec->size();
64 for(size_t i=0; i<n; ++i) {
65 auto proc = (*pvec)[i];
66 if(proc != nullptr && fHadronInelastic == proc->GetProcessSubType()) {
67 had = static_cast<G4HadronicProcess*>(proc);
68 break;
69 }
70 }
71 }
72 return had;
73}
@ fHadronInelastic

References fHadronInelastic, G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), CLHEP::detail::n, and G4ProcessVector::size().

Referenced by G4HadProcesses::FindInelasticProcess(), 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().

◆ InitialiseParameters()

void G4PhysListUtil::InitialiseParameters ( )
static

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