Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4NeutronBuilder Class Reference

#include <G4NeutronBuilder.hh>

Public Member Functions

 G4NeutronBuilder (G4bool fissionFlag=false)
 
virtual ~G4NeutronBuilder ()
 
void Build ()
 
void RegisterMe (G4VNeutronBuilder *aB)
 

Detailed Description

Definition at line 51 of file G4NeutronBuilder.hh.

Constructor & Destructor Documentation

G4NeutronBuilder::G4NeutronBuilder ( G4bool  fissionFlag = false)

Definition at line 45 of file G4NeutronBuilder.cc.

45  : wasActivated(false), isFissionActivated(fissionFlag)
46 {
47  theNeutronInelastic = new G4NeutronInelasticProcess;
48  theNeutronCapture = new G4HadronCaptureProcess;
49  if ( isFissionActivated ) {
50  theNeutronFission = new G4HadronFissionProcess;
51  } else {
52  theNeutronFission = 0;
53  }
54 }
G4NeutronBuilder::~G4NeutronBuilder ( )
virtual

Definition at line 57 of file G4NeutronBuilder.cc.

58 {}

Member Function Documentation

void G4NeutronBuilder::Build ( )

Definition at line 61 of file G4NeutronBuilder.cc.

62 {
63  wasActivated = true;
64  std::vector<G4VNeutronBuilder *>::iterator i;
65  for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
66  {
67  (*i)->Build(theNeutronInelastic);
68  (*i)->Build(theNeutronCapture);
69  if ( isFissionActivated ) (*i)->Build(theNeutronFission);
70  }
72  theProcMan->AddDiscreteProcess(theNeutronInelastic);
73  theProcMan->AddDiscreteProcess(theNeutronCapture);
74  if ( isFissionActivated ) theProcMan->AddDiscreteProcess(theNeutronFission);
75 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4ProcessManager * GetProcessManager() const

Here is the call graph for this function:

void G4NeutronBuilder::RegisterMe ( G4VNeutronBuilder aB)
inline

Definition at line 59 of file G4NeutronBuilder.hh.

59 {theModelCollections.push_back(aB);}

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