Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4NeutronCrossSectionXS Class Reference

#include <G4NeutronCrossSectionXS.hh>

Inheritance diagram for G4NeutronCrossSectionXS:
G4VPhysicsConstructor

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)
 
- 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.

References neutronxs, and no.

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.

References G4Neutron::Neutron().

71 {
73 }
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
void G4NeutronCrossSectionXS::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 75 of file G4NeutronCrossSectionXS.cc.

References G4HadronicProcess::AddDataSet(), fCapture, fHadronInelastic, G4cout, G4endl, G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), n, neutron, G4Neutron::Neutron(), and G4ProcessVector::size().

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 }
G4ProcessManager * GetProcessManager() const
int G4int
Definition: G4Types.hh:78
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4GLOB_DLL std::ostream G4cout
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
const G4int n
G4int size() const
#define G4endl
Definition: G4ios.hh:61
G4ProcessVector * GetProcessList() const

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