Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4NeutronHPBuilder Class Reference

#include <G4NeutronHPBuilder.hh>

Inheritance diagram for G4NeutronHPBuilder:
G4VNeutronBuilder

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 ()
 

Detailed Description

Definition at line 46 of file G4NeutronHPBuilder.hh.

Constructor & Destructor Documentation

G4NeutronHPBuilder::G4NeutronHPBuilder ( )

Definition at line 33 of file G4NeutronHPBuilder.cc.

References python.hepunit::MeV.

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 ( )
virtual

Definition at line 55 of file G4NeutronHPBuilder.cc.

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

Member Function Documentation

void G4NeutronHPBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 64 of file G4NeutronHPBuilder.cc.

References G4HadronicProcess::AddDataSet(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

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 }
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void SetMaxEnergy(const G4double anEnergy)
void G4NeutronHPBuilder::Build ( G4HadronFissionProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 75 of file G4NeutronHPBuilder.cc.

References G4HadronicProcess::AddDataSet(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

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 }
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void SetMaxEnergy(const G4double anEnergy)
void G4NeutronHPBuilder::Build ( G4HadronCaptureProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 86 of file G4NeutronHPBuilder.cc.

References G4HadronicProcess::AddDataSet(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

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 RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void SetMaxEnergy(const G4double anEnergy)
void G4NeutronHPBuilder::Build ( G4NeutronInelasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 97 of file G4NeutronHPBuilder.cc.

References G4HadronicProcess::AddDataSet(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

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 }
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void SetMaxEnergy(const G4double anEnergy)
void G4NeutronHPBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 67 of file G4NeutronHPBuilder.hh.

68  {
69  theIMax = aM;
70  theMax=aM;
71  }
void G4NeutronHPBuilder::SetMaxInelasticEnergy ( G4double  aM)
inline

Definition at line 72 of file G4NeutronHPBuilder.hh.

73  {
74  theIMax = aM;
75  }
void G4NeutronHPBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 58 of file G4NeutronHPBuilder.hh.

59  {
60  theMin=aM;
61  theIMin = theMin;
62  }
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: