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

#include <G4NeutronCrossSectionXS.hh>

Inheritance diagram for G4NeutronCrossSectionXS:

Public Member Functions

 G4NeutronCrossSectionXS (G4int ver=0)
virtual ~G4NeutronCrossSectionXS ()
virtual void ConstructParticle ()
virtual void ConstructProcess ()
Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
virtual ~G4VPhysicsConstructor ()
void SetPhysicsName (const G4String &="")
const G4StringGetPhysicsName () const
void SetPhysicsType (G4int)
G4int GetPhysicsType () const
G4int GetInstanceID () const
virtual void TerminateWorker ()
void SetVerboseLevel (G4int value)
G4int GetVerboseLevel () const

Additional Inherited Members

Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
Protected Types inherited from G4VPhysicsConstructor
using PhysicsBuilder_V = G4VPCData::PhysicsBuilders_V
Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
PhysicsBuilder_V GetBuilders () const
void AddBuilder (G4PhysicsBuilderInterface *bld)
Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel = 0
G4String namePhysics = ""
G4int typePhysics = 0
G4ParticleTabletheParticleTable = nullptr
G4int g4vpcInstanceID = 0
Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager

Detailed Description

Definition at line 44 of file G4NeutronCrossSectionXS.hh.

Constructor & Destructor Documentation

◆ G4NeutronCrossSectionXS()

G4NeutronCrossSectionXS::G4NeutronCrossSectionXS ( G4int ver = 0)

Definition at line 59 of file G4NeutronCrossSectionXS.cc.

59 :
60 G4VPhysicsConstructor("NeutronXS"), verbose(ver)
61{}
G4VPhysicsConstructor(const G4String &="")

◆ ~G4NeutronCrossSectionXS()

G4NeutronCrossSectionXS::~G4NeutronCrossSectionXS ( )
virtual

Definition at line 63 of file G4NeutronCrossSectionXS.cc.

64{}

Member Function Documentation

◆ ConstructParticle()

void G4NeutronCrossSectionXS::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 66 of file G4NeutronCrossSectionXS.cc.

67{
69}
static G4Neutron * Neutron()
Definition G4Neutron.cc:101

◆ ConstructProcess()

void G4NeutronCrossSectionXS::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 71 of file G4NeutronCrossSectionXS.cc.

72{
73
74 G4NeutronInelasticXS* xinel = (G4NeutronInelasticXS*)G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4NeutronInelasticXS::Default_Name());
76
77 const G4ParticleDefinition* neutron = G4Neutron::Neutron();
78 if(verbose > 1) {
79 G4cout << "### G4NeutronCrossSectionXS: use alternative neutron X-sections"
80 << G4endl;
81 }
82
83 G4ProcessVector* pv = neutron->GetProcessManager()->GetProcessList();
84 G4int n = (G4int)pv->size();
85 G4HadronicProcess* had = 0;
86 for(G4int i=0; i<n; i++) {
87 if(fHadronInelastic == ((*pv)[i])->GetProcessSubType()) {
88 had = static_cast<G4HadronicProcess*>((*pv)[i]);
89 had->AddDataSet(xinel);
90 } else if(fCapture == ((*pv)[i])->GetProcessSubType()) {
91 had = static_cast<G4HadronicProcess*>((*pv)[i]);
92 had->AddDataSet(xcap);
93 }
94 }
95}
@ fHadronInelastic
int G4int
Definition G4Types.hh:85
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=false)
static G4CrossSectionDataSetRegistry * Instance()
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static const char * Default_Name()
static const char * Default_Name()
std::size_t size() const

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