Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QNeutronBuilder Class Reference

#include <G4QNeutronBuilder.hh>

Public Member Functions

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

Detailed Description

Definition at line 55 of file G4QNeutronBuilder.hh.

Constructor & Destructor Documentation

◆ G4QNeutronBuilder()

G4QNeutronBuilder::G4QNeutronBuilder ( )

Definition at line 43 of file G4QNeutronBuilder.cc.

43 : wasActivated(false)
44{
45 theNeutronInelastic = new G4NeutronInelasticProcess;
46 theCHIPSInelastic = new G4QInelastic;
47 const G4String& processName = "MixedNeutronInelasticProcess";
49 theProcessMixer= new G4QDiscProcessMixer(processName, proj);
50}
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104

◆ ~G4QNeutronBuilder()

G4QNeutronBuilder::~G4QNeutronBuilder ( )
virtual

Definition at line 52 of file G4QNeutronBuilder.cc.

53{
54 delete theProcessMixer;
55 delete theCHIPSInelastic;
56 delete theNeutronInelastic;
57}

Member Function Documentation

◆ Build()

void G4QNeutronBuilder::Build ( )

Definition at line 59 of file G4QNeutronBuilder.cc.

60{
61 wasActivated = true;
62 std::vector<G4VNeutronBuilder *>::iterator i;
63 for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
64 {
65 (*i)->Build(theNeutronInelastic);
66 }
68 theProcessMixer->AddDiscreteProcess(theNeutronInelastic, 1.E8);// the second part is fake
69 theProcessMixer->AddDiscreteProcess(theCHIPSInelastic, 290*megaelectronvolt);
70 theProcMan->AddDiscreteProcess(theNeutronInelastic);
71}
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void AddDiscreteProcess(G4VDiscreteProcess *DP, G4double MaxE)

Referenced by HadronPhysicsQGSC_CHIPS::ConstructProcess().

◆ RegisterMe()

void G4QNeutronBuilder::RegisterMe ( G4VNeutronBuilder aB)
inline

Definition at line 63 of file G4QNeutronBuilder.hh.

63{theModelCollections.push_back(aB);}

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