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

#include <G4NeutronHPBuilder.hh>

+ Inheritance diagram for G4NeutronHPBuilder:

Public Member Functions

 G4NeutronHPBuilder ()
 
virtual ~G4NeutronHPBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)
 
virtual void Build (G4HadronFissionProcess *aP)
 
virtual void Build (G4HadronCaptureProcess *aP)
 
virtual void Build (G4NeutronInelasticProcess *aP)
 
void SetMinEnergy (G4double aM)
 
void SetMinInelasticEnergy (G4double aM)
 
void SetMaxEnergy (G4double aM)
 
void SetMaxInelasticEnergy (G4double aM)
 
- Public Member Functions inherited from G4VNeutronBuilder
 G4VNeutronBuilder ()
 
virtual ~G4VNeutronBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)=0
 
virtual void Build (G4HadronFissionProcess *aP)=0
 
virtual void Build (G4HadronCaptureProcess *aP)=0
 
virtual void Build (G4NeutronInelasticProcess *aP)=0
 

Detailed Description

Definition at line 46 of file G4NeutronHPBuilder.hh.

Constructor & Destructor Documentation

◆ G4NeutronHPBuilder()

G4NeutronHPBuilder::G4NeutronHPBuilder ( )

Definition at line 32 of file G4NeutronHPBuilder.cc.

34{
35 theHPElastic = 0;
36 theHPElasticData = 0;
37
38 theHPFission = 0;
39 theHPFissionData = 0;
40
41 theHPCapture = 0;
42 theHPCaptureData = 0;
43
44 theHPInelastic = 0;
45 theHPInelasticData = 0;
46
47 theMin = 0;
48 theIMin = theMin;
49 theMax = 20*MeV;
50 theIMax = theMax;
51
52}

◆ ~G4NeutronHPBuilder()

G4NeutronHPBuilder::~G4NeutronHPBuilder ( )
virtual

Definition at line 54 of file G4NeutronHPBuilder.cc.

56{
57 delete theHPElasticData;
58 delete theHPFissionData;
59 delete theHPCaptureData;
60 delete theHPInelasticData;
61}

Member Function Documentation

◆ Build() [1/4]

void G4NeutronHPBuilder::Build ( G4HadronCaptureProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 85 of file G4NeutronHPBuilder.cc.

87{
88 if(theHPCapture==0) theHPCapture = new G4NeutronHPCapture;
89 theHPCapture->SetMinEnergy(theMin);
90 theHPCapture->SetMaxEnergy(theMax);
91 if(theHPCaptureData==0) theHPCaptureData = new G4NeutronHPCaptureData;
92 aP->AddDataSet(theHPCaptureData);
93 aP->RegisterMe(theHPCapture);
94}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)

◆ Build() [2/4]

void G4NeutronHPBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 63 of file G4NeutronHPBuilder.cc.

65{
66 if(theHPElastic==0) theHPElastic = new G4NeutronHPElastic;
67 theHPElastic->SetMinEnergy(theMin);
68 theHPElastic->SetMaxEnergy(theMax);
69 if(theHPElasticData == 0) theHPElasticData = new G4NeutronHPElasticData;
70 aP->AddDataSet(theHPElasticData);
71 aP->RegisterMe(theHPElastic);
72}

Referenced by G4QInelasticCHIPS_HPBuilder::Build().

◆ Build() [3/4]

void G4NeutronHPBuilder::Build ( G4HadronFissionProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 74 of file G4NeutronHPBuilder.cc.

76{
77 if(theHPFission == 0) theHPFission = new G4NeutronHPFission;
78 theHPFission->SetMinEnergy(theMin);
79 theHPFission->SetMaxEnergy(theMax);
80 if(theHPFissionData==0) theHPFissionData=new G4NeutronHPFissionData;
81 aP->AddDataSet(theHPFissionData);
82 aP->RegisterMe(theHPFission);
83}

◆ Build() [4/4]

void G4NeutronHPBuilder::Build ( G4NeutronInelasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 96 of file G4NeutronHPBuilder.cc.

98{
99 if(theHPInelastic==0) theHPInelastic = new G4NeutronHPInelastic;
100 theHPInelastic->SetMinEnergy(theIMin);
101 theHPInelastic->SetMaxEnergy(theIMax);
102 if(theHPInelasticData==0) theHPInelasticData = new G4NeutronHPInelasticData;
103 aP->AddDataSet(theHPInelasticData);
104 aP->RegisterMe(theHPInelastic);
105}

◆ SetMaxEnergy()

void G4NeutronHPBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 67 of file G4NeutronHPBuilder.hh.

68 {
69 theIMax = aM;
70 theMax=aM;
71 }

◆ SetMaxInelasticEnergy()

void G4NeutronHPBuilder::SetMaxInelasticEnergy ( G4double  aM)
inline

Definition at line 72 of file G4NeutronHPBuilder.hh.

73 {
74 theIMax = aM;
75 }

◆ SetMinEnergy()

void G4NeutronHPBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 58 of file G4NeutronHPBuilder.hh.

59 {
60 theMin=aM;
61 theIMin = theMin;
62 }

◆ SetMinInelasticEnergy()

void G4NeutronHPBuilder::SetMinInelasticEnergy ( G4double  aM)
inline

Definition at line 63 of file G4NeutronHPBuilder.hh.

64 {
65 theIMin=aM;
66 }

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