Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4NeutronCrossSectionXS Class Reference

#include <G4NeutronCrossSectionXS.hh>

Inheritance diagram for G4NeutronCrossSectionXS:
Collaboration 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
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 45 of file G4NeutronCrossSectionXS.hh.

Constructor & Destructor Documentation

G4NeutronCrossSectionXS::G4NeutronCrossSectionXS ( G4int  ver = 0)

Definition at line 61 of file G4NeutronCrossSectionXS.cc.

61  :
62  G4VPhysicsConstructor("NeutronXS"), verbose(ver)
63 {
65 }
G4VPhysicsConstructor(const G4String &="")
G4NeutronCrossSectionXS::~G4NeutronCrossSectionXS ( )
virtual

Definition at line 67 of file G4NeutronCrossSectionXS.cc.

68 {}

Member Function Documentation

void G4NeutronCrossSectionXS::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 70 of file G4NeutronCrossSectionXS.cc.

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

Here is the call graph for this function:

void G4NeutronCrossSectionXS::ConstructProcess ( void  )
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 
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 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
static const char * Default_Name()
int G4int
Definition: G4Types.hh:78
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4GLOB_DLL std::ostream G4cout
static G4CrossSectionDataSetRegistry * Instance()
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
const G4int n
G4int size() const
static const char * Default_Name()
G4ProcessManager * GetProcessManager() const
#define G4endl
Definition: G4ios.hh:61
G4ProcessVector * GetProcessList() const

Here is the call graph for this function:


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