G4NeutronBuilder Class Reference

#include <G4NeutronBuilder.hh>


Public Member Functions

 G4NeutronBuilder ()
virtual ~G4NeutronBuilder ()
void Build ()
void RegisterMe (G4VNeutronBuilder *aB)


Detailed Description

Definition at line 52 of file G4NeutronBuilder.hh.


Constructor & Destructor Documentation

G4NeutronBuilder::G4NeutronBuilder (  ) 

Definition at line 46 of file G4NeutronBuilder.cc.

00046                   : wasActivated(false) 
00047 {
00048   theNeutronInelastic = new G4NeutronInelasticProcess;
00049   theNeutronCapture = new G4HadronCaptureProcess;
00050   theNeutronFission = new G4HadronFissionProcess;
00051   
00052 }

G4NeutronBuilder::~G4NeutronBuilder (  )  [virtual]

Definition at line 55 of file G4NeutronBuilder.cc.

00056 {
00057   delete theNeutronInelastic;
00058   delete theNeutronCapture;
00059   delete theNeutronFission;
00060 }


Member Function Documentation

void G4NeutronBuilder::Build (  ) 

Definition at line 63 of file G4NeutronBuilder.cc.

References G4ProcessManager::AddDiscreteProcess(), G4ParticleDefinition::GetProcessManager(), and G4Neutron::Neutron().

Referenced by HadronPhysicsShielding::ConstructProcess(), HadronPhysicsQGSP_INCLXX::ConstructProcess(), HadronPhysicsQGSP_FTFP_BERT_95::ConstructProcess(), HadronPhysicsQGSP_FTFP_BERT::ConstructProcess(), HadronPhysicsQGSP_BIC_HP::ConstructProcess(), HadronPhysicsQGSP_BIC::ConstructProcess(), HadronPhysicsQGSP_BERT_TRV::ConstructProcess(), HadronPhysicsQGSP_BERT_NOLEP::ConstructProcess(), HadronPhysicsQGSP_BERT_HP::ConstructProcess(), HadronPhysicsQGSP_BERT_CHIPS::ConstructProcess(), HadronPhysicsQGSP_BERT_95::ConstructProcess(), HadronPhysicsQGSP_BERT::ConstructProcess(), HadronPhysicsQGSP::ConstructProcess(), HadronPhysicsQGSC_BERT::ConstructProcess(), HadronPhysicsQGS_BIC::ConstructProcess(), HadronPhysicsLHEP_EMV::ConstructProcess(), HadronPhysicsLHEP::ConstructProcess(), HadronPhysicsFTFP_BERT_TRV::ConstructProcess(), HadronPhysicsFTFP_BERT_HP::ConstructProcess(), HadronPhysicsFTFP_BERT::ConstructProcess(), and HadronPhysicsFTF_BIC::ConstructProcess().

00064 {
00065   wasActivated = true;
00066   std::vector<G4VNeutronBuilder *>::iterator i;
00067   for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
00068   {
00069     (*i)->Build(theNeutronInelastic);
00070     (*i)->Build(theNeutronCapture);
00071     (*i)->Build(theNeutronFission);
00072   }
00073   G4ProcessManager * theProcMan = G4Neutron::Neutron()->GetProcessManager();
00074   theProcMan->AddDiscreteProcess(theNeutronInelastic);
00075   theProcMan->AddDiscreteProcess(theNeutronCapture);
00076   theProcMan->AddDiscreteProcess(theNeutronFission);
00077 }

void G4NeutronBuilder::RegisterMe ( G4VNeutronBuilder aB  )  [inline]

Definition at line 60 of file G4NeutronBuilder.hh.

Referenced by G4QNeutronHPBuilder::Build().

00060 {theModelCollections.push_back(aB);}


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:34 2013 for Geant4 by  doxygen 1.4.7