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

#include <G4NeutronHPNeutronYield.hh>

Public Member Functions

 G4NeutronHPNeutronYield ()
 
 ~G4NeutronHPNeutronYield ()
 
G4double GetTargetMass ()
 
void InitMean (std::ifstream &aDataFile)
 
void InitPrompt (std::ifstream &aDataFile)
 
void InitDelayed (std::ifstream &aDataFile)
 
G4double GetMean (G4double anEnergy)
 
G4double GetPrompt (G4double anEnergy)
 
G4double GetDelayed (G4double anEnergy)
 
G4double GetDecayConstant (G4int i)
 

Detailed Description

Definition at line 39 of file G4NeutronHPNeutronYield.hh.

Constructor & Destructor Documentation

◆ G4NeutronHPNeutronYield()

G4NeutronHPNeutronYield::G4NeutronHPNeutronYield ( )
inline

Definition at line 42 of file G4NeutronHPNeutronYield.hh.

43 {
44 simpleMean = true;
45 spontPrompt = true;
46 hasPromptData = false;
47 hasDelayedData = false;
48 }

◆ ~G4NeutronHPNeutronYield()

G4NeutronHPNeutronYield::~G4NeutronHPNeutronYield ( )
inline

Definition at line 49 of file G4NeutronHPNeutronYield.hh.

49{}

Member Function Documentation

◆ GetDecayConstant()

G4double G4NeutronHPNeutronYield::GetDecayConstant ( G4int  i)
inline

Definition at line 130 of file G4NeutronHPNeutronYield.hh.

131 {
132 return thePrecursorDecayConstants.GetValue(i);
133 }
G4double GetValue(G4int i)

Referenced by G4NeutronHPFSFissionFS::ApplyYourself().

◆ GetDelayed()

G4double G4NeutronHPNeutronYield::GetDelayed ( G4double  anEnergy)
inline

Definition at line 120 of file G4NeutronHPNeutronYield.hh.

121 {
122 if(!hasDelayedData) return 0;
123 if(spontDelayed)
124 {
125 return theSpontDelayed;
126 }
127 return theDelayed.GetY(anEnergy);
128 }
G4double GetY(G4double x)

Referenced by G4NeutronHPFSFissionFS::SampleNeutronMult().

◆ GetMean()

G4double G4NeutronHPNeutronYield::GetMean ( G4double  anEnergy)
inline

Definition at line 101 of file G4NeutronHPNeutronYield.hh.

102 {
103 if(simpleMean)
104 {
105 return theSimpleMean.GetY(anEnergy);
106 }
107 return theMean.GetValue(anEnergy);
108 }
G4double GetValue(G4double anEnergy)

Referenced by G4NeutronHPFSFissionFS::SampleNeutronMult().

◆ GetPrompt()

G4double G4NeutronHPNeutronYield::GetPrompt ( G4double  anEnergy)
inline

Definition at line 110 of file G4NeutronHPNeutronYield.hh.

111 {
112 if(!hasPromptData) return 0;
113 if(spontPrompt)
114 {
115 return theSpontPrompt;
116 }
117 return thePrompt.GetY(anEnergy);
118 }

Referenced by G4NeutronHPFSFissionFS::SampleNeutronMult().

◆ GetTargetMass()

G4double G4NeutronHPNeutronYield::GetTargetMass ( )
inline

Definition at line 51 of file G4NeutronHPNeutronYield.hh.

51{ return targetMass; }

Referenced by G4FissionLibrary::Init(), and G4NeutronHPFSFissionFS::Init().

◆ InitDelayed()

void G4NeutronHPNeutronYield::InitDelayed ( std::ifstream &  aDataFile)
inline

Definition at line 84 of file G4NeutronHPNeutronYield.hh.

85 {
86 hasDelayedData = true;
87 G4int iflag;
88 aDataFile >> targetMass >>iflag;
89 thePrecursorDecayConstants.Init(aDataFile, 1./CLHEP::s); // s is the CLHEP unit second
90 if(iflag == 2) spontDelayed = false;
91 if(spontDelayed)
92 {
93 aDataFile >> theSpontDelayed;
94 }
95 else
96 {
97 theDelayed.Init(aDataFile, CLHEP::eV);
98 }
99 }
int G4int
Definition: G4Types.hh:66
void Init(std::ifstream &aDataFile, G4int nPar, G4double unit=1.)
void Init(std::ifstream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)

Referenced by G4FissionLibrary::Init(), and G4NeutronHPFSFissionFS::Init().

◆ InitMean()

void G4NeutronHPNeutronYield::InitMean ( std::ifstream &  aDataFile)
inline

Definition at line 53 of file G4NeutronHPNeutronYield.hh.

54 {
55 G4int iflag;
56 aDataFile >> targetMass >>iflag;
57 if(iflag == 1) simpleMean=false;
58 if(simpleMean)
59 {
60 theSimpleMean.Init(aDataFile, CLHEP::eV);
61 }
62 else
63 {
64 theMean.Init(aDataFile);
65 }
66 }
void Init(std::ifstream &theData)

Referenced by G4FissionLibrary::Init(), and G4NeutronHPFSFissionFS::Init().

◆ InitPrompt()

void G4NeutronHPNeutronYield::InitPrompt ( std::ifstream &  aDataFile)
inline

Definition at line 68 of file G4NeutronHPNeutronYield.hh.

69 {
70 hasPromptData = true;
71 G4int iflag;
72 aDataFile >> targetMass >>iflag;
73 if(iflag == 2) spontPrompt = false;
74 if(spontPrompt)
75 {
76 aDataFile >> theSpontPrompt;
77 }
78 else
79 {
80 thePrompt.Init(aDataFile, CLHEP::eV);
81 }
82 }

Referenced by G4FissionLibrary::Init(), and G4NeutronHPFSFissionFS::Init().


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