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

#include <G4QNeutronHPBuilder.hh>

Public Member Functions

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

Detailed Description

Definition at line 62 of file G4QNeutronHPBuilder.hh.

Constructor & Destructor Documentation

◆ G4QNeutronHPBuilder()

G4QNeutronHPBuilder::G4QNeutronHPBuilder ( )

Definition at line 43 of file G4QNeutronHPBuilder.cc.

43 :
44 theNeutrons(0)
45 , theNeutronFission(0)
46 , theNeutronCapture(0)
47 , theCHIPSNGamma(0)
48 , theHPNeutron(0)
49 , wasActivated(false)
50{
51 theNeutronInelastic = new G4NeutronInelasticProcess;
52 theCHIPSInelastic = new G4QInelastic;
54 const G4String& INprocessName = "MixedHPQNeutronInelasticProcess";
55 theInProcessMixer= new G4QDiscProcessMixer(INprocessName, proj);
56 const G4String& NGprocessName = "MixedHPQNeutronGammaProcess";
57 theNgProcessMixer= new G4QDiscProcessMixer(NGprocessName, proj);
58 const G4String& FIprocessName = "MixedHPQNeutronFissionProcess";
59 theFiProcessMixer= new G4QDiscProcessMixer(FIprocessName, proj);
60}
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104

◆ ~G4QNeutronHPBuilder()

G4QNeutronHPBuilder::~G4QNeutronHPBuilder ( )
virtual

Definition at line 62 of file G4QNeutronHPBuilder.cc.

63{
64 delete theCHIPSInelastic;
65 delete theCHIPSNGamma;
66 delete theNeutronInelastic;
67 delete theHPNeutron;
68 delete theInProcessMixer;
69 delete theNgProcessMixer;
70 delete theFiProcessMixer;
71}

Member Function Documentation

◆ Build()

void G4QNeutronHPBuilder::Build ( )

Definition at line 73 of file G4QNeutronHPBuilder.cc.

74{
75 wasActivated = true;
76 // The model definition for neutrons (needed for HP implementation)
77 theNeutrons = new G4NeutronBuilder;
78 theNeutrons->RegisterMe( theHPNeutron = new G4NeutronHPBuilder );
79 // End of the model definition
80 std::vector<G4VNeutronBuilder *>::iterator i;
81 for(i = theModelCollections.begin(); i != theModelCollections.end(); i++)
82 {
83 (*i)->Build(theNeutronInelastic);
84 (*i)->Build(theNeutronCapture);
85 (*i)->Build(theNeutronFission);
86 }
88
89 theInProcessMixer->AddDiscreteProcess(theCHIPSInelastic, 1.E8*megaelectronvolt);
90 theInProcessMixer->AddDiscreteProcess(theNeutronInelastic, 19.9*megaelectronvolt);
91
92 theNgProcessMixer->AddDiscreteProcess(theCHIPSNGamma, 1.E8*megaelectronvolt);
93 theNgProcessMixer->AddDiscreteProcess(theNeutronCapture, 19.9*megaelectronvolt);
94
95 //theFiProcessMixer->AddDiscreteProcess(theCHIPSFission, 1.E8*megaelectronvolt);
96 //theFiProcessMixer->AddDiscreteProcess(theNeutronFission, 19.9*megaelectronvolt);
97
98 theProcMan->AddDiscreteProcess(theInProcessMixer); // Mix CHIPS+HP for inelastic
99 theProcMan->AddDiscreteProcess(theNgProcessMixer); // Mix CHIPS+HP for (n,gamma)
100 theProcMan->AddDiscreteProcess(theNeutronFission); // Only HP for fission
101 //theProcMan->AddDiscreteProcess(theFiProcessMixer); // Mix CHIPS+HP for fission
102}
void RegisterMe(G4VNeutronBuilder *aB)
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void AddDiscreteProcess(G4VDiscreteProcess *DP, G4double MaxE)

◆ RegisterMe()

void G4QNeutronHPBuilder::RegisterMe ( G4VNeutronBuilder aB)
inline

Definition at line 70 of file G4QNeutronHPBuilder.hh.

70{theModelCollections.push_back(aB);}

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