Geant4 9.6.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 ()
 
virtual void ConstructParticle ()=0
 
virtual void ConstructProcess ()=0
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4ParticleTable::G4PTblDicIteratortheParticleIterator
 
G4PhysicsListHelperthePLHelper
 

Detailed Description

Definition at line 45 of file G4NeutronCrossSectionXS.hh.

Constructor & Destructor Documentation

◆ G4NeutronCrossSectionXS()

G4NeutronCrossSectionXS::G4NeutronCrossSectionXS ( G4int  ver = 0)

◆ ~G4NeutronCrossSectionXS()

G4NeutronCrossSectionXS::~G4NeutronCrossSectionXS ( )
virtual

Definition at line 67 of file G4NeutronCrossSectionXS.cc.

68{}

Member Function Documentation

◆ ConstructParticle()

void G4NeutronCrossSectionXS::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 70 of file G4NeutronCrossSectionXS.cc.

71{
73}
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104

◆ ConstructProcess()

void G4NeutronCrossSectionXS::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 75 of file G4NeutronCrossSectionXS.cc.

76{
77
80
82 if(verbose > 1) {
83 G4cout << "### G4NeutronCrossSectionXS: use alternative neutron X-sections"
84 << G4endl;
85 }
86
87 G4ProcessVector* pv = neutron->GetProcessManager()->GetProcessList();
88 G4int n = pv->size();
89 G4HadronicProcess* had = 0;
90 for(G4int i=0; i<n; i++) {
91 if(fHadronInelastic == ((*pv)[i])->GetProcessSubType()) {
92 had = static_cast<G4HadronicProcess*>((*pv)[i]);
93 had->AddDataSet(xinel);
94 } else if(fCapture == ((*pv)[i])->GetProcessSubType()) {
95 had = static_cast<G4HadronicProcess*>((*pv)[i]);
96 had->AddDataSet(xcap);
97 }
98 }
99}
@ neutron
@ fHadronInelastic
int G4int
Definition: G4Types.hh:66
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4int size() const

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