Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PhysListUtil Class Reference

#include <G4PhysListUtil.hh>

Static Public Member Functions

static void InitialiseParameters ()
 
static G4VProcessFindProcess (const G4ParticleDefinition *, G4int subtype)
 
static G4HadronicProcessFindInelasticProcess (const G4ParticleDefinition *)
 
static G4HadronicProcessFindElasticProcess (const G4ParticleDefinition *)
 
static G4HadronicProcessFindCaptureProcess (const G4ParticleDefinition *)
 
static G4HadronicProcessFindFissionProcess (const G4ParticleDefinition *)
 
static G4NeutronGeneralProcessFindNeutronGeneralProcess ()
 

Detailed Description

Definition at line 48 of file G4PhysListUtil.hh.

Member Function Documentation

◆ FindCaptureProcess()

◆ FindElasticProcess()

◆ FindFissionProcess()

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

◆ FindInelasticProcess()

◆ FindNeutronGeneralProcess()

G4NeutronGeneralProcess * G4PhysListUtil::FindNeutronGeneralProcess ( )
static

Definition at line 106 of file G4PhysListUtil.cc.

107{
109 auto proc = dynamic_cast<G4NeutronGeneralProcess*>(FindProcess(neutron, fNeutronGeneral));
110 if(nullptr == proc) {
111 proc = new G4NeutronGeneralProcess();
112 neutron->GetProcessManager()->AddDiscreteProcess(proc);
113 }
114 return proc;
115}
@ fNeutronGeneral
static G4Neutron * Neutron()
Definition G4Neutron.cc:101

Referenced by G4HadProcesses::BuildNeutronElastic(), and G4HadProcesses::BuildNeutronInelasticAndCapture().

◆ FindProcess()

G4VProcess * G4PhysListUtil::FindProcess ( const G4ParticleDefinition * part,
G4int subtype )
static

Definition at line 60 of file G4PhysListUtil.cc.

62{
63 G4VProcess* proc = nullptr;
64 if(nullptr == part) { return proc; }
66 if(nullptr == pvec) { return proc; }
67 G4int n = (G4int)pvec->size();
68 for(G4int i=0; i<n; ++i) {
69 auto ptr = (*pvec)[i];
70 if(ptr != nullptr && subtype == ptr->GetProcessSubType()) {
71 proc = ptr;
72 break;
73 }
74 }
75 return proc;
76}
int G4int
Definition G4Types.hh:85
G4ProcessManager * GetProcessManager() const
G4ProcessVector * GetProcessList() const
std::size_t size() const

Referenced by G4NeutronTrackingCut::ConstructProcess(), FindCaptureProcess(), FindElasticProcess(), FindFissionProcess(), FindInelasticProcess(), FindNeutronGeneralProcess(), G4EmDNABuilder::FindOrBuildAttachment(), G4EmDNABuilder::FindOrBuildCapture(), G4EmDNABuilder::FindOrBuildChargeDecrease(), G4EmDNABuilder::FindOrBuildChargeIncrease(), G4EmDNABuilder::FindOrBuildElastic(), G4EmDNABuilder::FindOrBuildElectronSolvation(), G4EmDNABuilder::FindOrBuildExcitation(), G4EmDNABuilder::FindOrBuildIonisation(), and G4EmDNABuilder::FindOrBuildVibExcitation().

◆ InitialiseParameters()


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