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

#include <G4NeutronLENDBuilder.hh>

+ Inheritance diagram for G4NeutronLENDBuilder:

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 ()
 
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 G4NeutronLENDBuilder.hh.

Constructor & Destructor Documentation

◆ G4NeutronLENDBuilder()

G4NeutronLENDBuilder::G4NeutronLENDBuilder ( G4String  eva = "")

Definition at line 32 of file G4NeutronLENDBuilder.cc.

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::~G4NeutronLENDBuilder ( )
virtual

Definition at line 55 of file G4NeutronLENDBuilder.cc.

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

Member Function Documentation

◆ Build() [1/4]

void G4NeutronLENDBuilder::Build ( G4HadronCaptureProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 99 of file G4NeutronLENDBuilder.cc.

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 SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
void ChangeDefaultEvaluation(G4String name_tmp)
void AllowAnyCandidateTarget()
Definition: G4LENDModel.hh:62
void ChangeDefaultEvaluation(G4String name)
Definition: G4LENDModel.hh:60
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104

◆ Build() [2/4]

void G4NeutronLENDBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 64 of file G4NeutronLENDBuilder.cc.

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}

◆ Build() [3/4]

void G4NeutronLENDBuilder::Build ( G4HadronFissionProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 82 of file G4NeutronLENDBuilder.cc.

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}

◆ Build() [4/4]

void G4NeutronLENDBuilder::Build ( G4NeutronInelasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 116 of file G4NeutronLENDBuilder.cc.

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}

◆ SetMaxEnergy()

void G4NeutronLENDBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 67 of file G4NeutronLENDBuilder.hh.

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

◆ SetMaxInelasticEnergy()

void G4NeutronLENDBuilder::SetMaxInelasticEnergy ( G4double  aM)
inline

Definition at line 72 of file G4NeutronLENDBuilder.hh.

73 {
74 theIMax = aM;
75 }

◆ SetMinEnergy()

void G4NeutronLENDBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 58 of file G4NeutronLENDBuilder.hh.

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

◆ SetMinInelasticEnergy()

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: