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

#include <G4NeutronLENDBuilder.hh>

Inheritance diagram for G4NeutronLENDBuilder:
G4VNeutronBuilder

Public Member Functions

 G4NeutronLENDBuilder (G4String eva="")
 
virtual ~G4NeutronLENDBuilder ()
 
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 G4NeutronLENDBuilder.hh.

Constructor & Destructor Documentation

G4NeutronLENDBuilder::G4NeutronLENDBuilder ( G4String  eva = "")

Definition at line 33 of file G4NeutronLENDBuilder.cc.

References python.hepunit::MeV.

34 {
35  theLENDElastic = 0;
36  theLENDElasticCrossSection = 0;
37 
38  theLENDFission = 0;
39  theLENDFissionCrossSection = 0;
40 
41  theLENDCapture = 0;
42  theLENDCaptureCrossSection = 0;
43 
44  theLENDInelastic = 0;
45  theLENDInelasticCrossSection = 0;
46 
47  theMin = 0;
48  theIMin = theMin;
49  theMax = 20*MeV;
50  theIMax = theMax;
51  evaluation = eva;
52 
53 }
G4NeutronLENDBuilder::~G4NeutronLENDBuilder ( )
virtual

Definition at line 56 of file G4NeutronLENDBuilder.cc.

57 {
58  delete theLENDElasticCrossSection;
59  delete theLENDFissionCrossSection;
60  delete theLENDCaptureCrossSection;
61  delete theLENDInelasticCrossSection;
62 }

Member Function Documentation

void G4NeutronLENDBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 65 of file G4NeutronLENDBuilder.cc.

References G4HadronicProcess::AddDataSet(), G4LENDModel::AllowAnyCandidateTarget(), G4LENDCrossSection::AllowAnyCandidateTarget(), G4LENDModel::ChangeDefaultEvaluation(), G4LENDCrossSection::ChangeDefaultEvaluation(), G4Neutron::Neutron(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

66 {
67  if(theLENDElastic==0) theLENDElastic = new G4LENDElastic( G4Neutron::Neutron() );
68  theLENDElastic->SetMinEnergy(theMin);
69  theLENDElastic->SetMaxEnergy(theMax);
70 
71  if ( evaluation != "" ) theLENDElastic->ChangeDefaultEvaluation( evaluation );
72  //theLENDElastic->AllowNaturalAbundanceTarget();
73  theLENDElastic->AllowAnyCandidateTarget();
74  if(theLENDElasticCrossSection == 0) theLENDElasticCrossSection = new G4LENDElasticCrossSection( G4Neutron::Neutron() );
75  if ( evaluation != "" ) theLENDElasticCrossSection->ChangeDefaultEvaluation( evaluation );
76  //theLENDElasticCrossSection->AllowNaturalAbundanceTarget();
77  theLENDElasticCrossSection->AllowAnyCandidateTarget();
78  aP->AddDataSet(theLENDElasticCrossSection);
79  aP->RegisterMe(theLENDElastic);
80 }
void AllowAnyCandidateTarget()
Definition: G4LENDModel.hh:62
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void ChangeDefaultEvaluation(G4String name)
Definition: G4LENDModel.hh:60
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
void SetMaxEnergy(const G4double anEnergy)
void ChangeDefaultEvaluation(G4String name_tmp)
void G4NeutronLENDBuilder::Build ( G4HadronFissionProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 83 of file G4NeutronLENDBuilder.cc.

References G4HadronicProcess::AddDataSet(), G4LENDModel::AllowAnyCandidateTarget(), G4LENDCrossSection::AllowAnyCandidateTarget(), G4LENDModel::ChangeDefaultEvaluation(), G4LENDCrossSection::ChangeDefaultEvaluation(), G4Neutron::Neutron(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

84 {
85  if(theLENDFission == 0) theLENDFission = new G4LENDFission( G4Neutron::Neutron() );
86  theLENDFission->SetMinEnergy(theMin);
87  theLENDFission->SetMaxEnergy(theMax);
88  if ( evaluation != "" ) theLENDFission->ChangeDefaultEvaluation( evaluation );
89  //theLENDFission->AllowNaturalAbundanceTarget();
90  theLENDFission->AllowAnyCandidateTarget();
91  if(theLENDFissionCrossSection==0) theLENDFissionCrossSection=new G4LENDFissionCrossSection( G4Neutron::Neutron() );
92  if ( evaluation != "" ) theLENDFissionCrossSection->ChangeDefaultEvaluation( evaluation );
93  //theLENDFissionCrossSection->AllowNaturalAbundanceTarget();
94  theLENDFissionCrossSection->AllowAnyCandidateTarget();
95  aP->AddDataSet(theLENDFissionCrossSection);
96  aP->RegisterMe(theLENDFission);
97 }
void AllowAnyCandidateTarget()
Definition: G4LENDModel.hh:62
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void ChangeDefaultEvaluation(G4String name)
Definition: G4LENDModel.hh:60
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
void SetMaxEnergy(const G4double anEnergy)
void ChangeDefaultEvaluation(G4String name_tmp)
void G4NeutronLENDBuilder::Build ( G4HadronCaptureProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 100 of file G4NeutronLENDBuilder.cc.

References G4HadronicProcess::AddDataSet(), G4LENDModel::AllowAnyCandidateTarget(), G4LENDCrossSection::AllowAnyCandidateTarget(), G4LENDModel::ChangeDefaultEvaluation(), G4LENDCrossSection::ChangeDefaultEvaluation(), G4Neutron::Neutron(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

101 {
102  if(theLENDCapture==0) theLENDCapture = new G4LENDCapture( G4Neutron::Neutron() );
103  theLENDCapture->SetMinEnergy(theMin);
104  theLENDCapture->SetMaxEnergy(theMax);
105  if ( evaluation != "" ) theLENDCapture->ChangeDefaultEvaluation( evaluation );
106  //theLENDCapture->AllowNaturalAbundanceTarget();
107  theLENDCapture->AllowAnyCandidateTarget();
108  if(theLENDCaptureCrossSection==0) theLENDCaptureCrossSection = new G4LENDCaptureCrossSection( G4Neutron::Neutron() );
109  if ( evaluation != "" ) theLENDCaptureCrossSection->ChangeDefaultEvaluation( evaluation );
110  //theLENDCaptureCrossSection->AllowNaturalAbundanceTarget();
111  theLENDCaptureCrossSection->AllowAnyCandidateTarget();
112  aP->AddDataSet(theLENDCaptureCrossSection);
113  aP->RegisterMe(theLENDCapture);
114 }
void AllowAnyCandidateTarget()
Definition: G4LENDModel.hh:62
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void ChangeDefaultEvaluation(G4String name)
Definition: G4LENDModel.hh:60
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
void SetMaxEnergy(const G4double anEnergy)
void ChangeDefaultEvaluation(G4String name_tmp)
void G4NeutronLENDBuilder::Build ( G4NeutronInelasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 117 of file G4NeutronLENDBuilder.cc.

References G4HadronicProcess::AddDataSet(), G4LENDModel::AllowAnyCandidateTarget(), G4LENDCrossSection::AllowAnyCandidateTarget(), G4LENDModel::ChangeDefaultEvaluation(), G4LENDCrossSection::ChangeDefaultEvaluation(), G4Neutron::Neutron(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

118 {
119  if(theLENDInelastic==0) theLENDInelastic = new G4LENDInelastic( G4Neutron::Neutron() );
120  theLENDInelastic->SetMinEnergy(theIMin);
121  theLENDInelastic->SetMaxEnergy(theIMax);
122  if ( evaluation != "" ) theLENDInelastic->ChangeDefaultEvaluation( evaluation );
123  //theLENDInelastic->AllowNaturalAbundanceTarget();
124  theLENDInelastic->AllowAnyCandidateTarget();
125  if(theLENDInelasticCrossSection==0) theLENDInelasticCrossSection = new G4LENDInelasticCrossSection( G4Neutron::Neutron() );
126  if ( evaluation != "" ) theLENDInelasticCrossSection->ChangeDefaultEvaluation( evaluation );
127  //theLENDInelasticCrossSection->AllowNaturalAbundanceTarget();
128  theLENDInelasticCrossSection->AllowAnyCandidateTarget();
129  aP->AddDataSet(theLENDInelasticCrossSection);
130  aP->RegisterMe(theLENDInelastic);
131 }
void AllowAnyCandidateTarget()
Definition: G4LENDModel.hh:62
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void ChangeDefaultEvaluation(G4String name)
Definition: G4LENDModel.hh:60
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
void SetMaxEnergy(const G4double anEnergy)
void ChangeDefaultEvaluation(G4String name_tmp)
void G4NeutronLENDBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 67 of file G4NeutronLENDBuilder.hh.

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

Definition at line 72 of file G4NeutronLENDBuilder.hh.

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

Definition at line 58 of file G4NeutronLENDBuilder.hh.

59  {
60  theMin=aM;
61  theIMin = theMin;
62  }
void G4NeutronLENDBuilder::SetMinInelasticEnergy ( G4double  aM)
inline

Definition at line 63 of file G4NeutronLENDBuilder.hh.

64  {
65  theIMin=aM;
66  }

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