Geant4-11
Public Member Functions | Private Attributes
G4ParticleHPParticleYield Class Reference

#include <G4ParticleHPParticleYield.hh>

Public Member Functions

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

Private Attributes

G4bool hasDelayedData
 
G4bool hasPromptData
 
G4bool simpleMean
 
G4bool spontDelayed
 
G4bool spontPrompt
 
G4double targetMass
 
G4ParticleHPVector theDelayed
 
G4ParticleHPPolynomExpansion theMean
 
G4ParticleHPList thePrecursorDecayConstants
 
G4ParticleHPVector thePrompt
 
G4ParticleHPVector theSimpleMean
 
G4double theSpontDelayed
 
G4double theSpontPrompt
 

Detailed Description

Definition at line 39 of file G4ParticleHPParticleYield.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPParticleYield()

G4ParticleHPParticleYield::G4ParticleHPParticleYield ( )
inline

◆ ~G4ParticleHPParticleYield()

G4ParticleHPParticleYield::~G4ParticleHPParticleYield ( )
inline

Definition at line 54 of file G4ParticleHPParticleYield.hh.

54{}

Member Function Documentation

◆ GetDecayConstant()

G4double G4ParticleHPParticleYield::GetDecayConstant ( G4int  i)
inline

◆ GetDelayed()

G4double G4ParticleHPParticleYield::GetDelayed ( G4double  anEnergy)
inline

Definition at line 125 of file G4ParticleHPParticleYield.hh.

126 {
127 if(!hasDelayedData) return 0;
128 if(spontDelayed)
129 {
130 return theSpontDelayed;
131 }
132 return theDelayed.GetY(anEnergy);
133 }
G4double GetY(G4double x)

References G4ParticleHPVector::GetY(), hasDelayedData, spontDelayed, theDelayed, and theSpontDelayed.

Referenced by G4FissionLibrary::SampleMult(), and G4ParticleHPFSFissionFS::SampleNeutronMult().

◆ GetMean()

G4double G4ParticleHPParticleYield::GetMean ( G4double  anEnergy)
inline

Definition at line 106 of file G4ParticleHPParticleYield.hh.

107 {
108 if(simpleMean)
109 {
110 return theSimpleMean.GetY(anEnergy);
111 }
112 return theMean.GetValue(anEnergy);
113 }
G4ParticleHPPolynomExpansion theMean
G4double GetValue(G4double anEnergy)

References G4ParticleHPPolynomExpansion::GetValue(), G4ParticleHPVector::GetY(), simpleMean, theMean, and theSimpleMean.

Referenced by G4FissionLibrary::SampleMult(), and G4ParticleHPFSFissionFS::SampleNeutronMult().

◆ GetPrompt()

G4double G4ParticleHPParticleYield::GetPrompt ( G4double  anEnergy)
inline

Definition at line 115 of file G4ParticleHPParticleYield.hh.

116 {
117 if(!hasPromptData) return 0;
118 if(spontPrompt)
119 {
120 return theSpontPrompt;
121 }
122 return thePrompt.GetY(anEnergy);
123 }

References G4ParticleHPVector::GetY(), hasPromptData, spontPrompt, thePrompt, and theSpontPrompt.

Referenced by G4FissionLibrary::SampleMult(), and G4ParticleHPFSFissionFS::SampleNeutronMult().

◆ GetTargetMass()

G4double G4ParticleHPParticleYield::GetTargetMass ( )
inline

Definition at line 56 of file G4ParticleHPParticleYield.hh.

56{ return targetMass; }

References targetMass.

Referenced by G4ParticleHPFSFissionFS::GetMass(), and G4FissionLibrary::Init().

◆ InitDelayed()

void G4ParticleHPParticleYield::InitDelayed ( std::istream &  aDataFile)
inline

Definition at line 89 of file G4ParticleHPParticleYield.hh.

90 {
91 hasDelayedData = true;
92 G4int iflag;
93 aDataFile >> targetMass >>iflag;
94 thePrecursorDecayConstants.Init(aDataFile, 1./CLHEP::s); // s is the CLHEP unit second
95 if(iflag == 2) spontDelayed = false;
96 if(spontDelayed)
97 {
98 aDataFile >> theSpontDelayed;
99 }
100 else
101 {
102 theDelayed.Init(aDataFile, CLHEP::eV);
103 }
104 }
int G4int
Definition: G4Types.hh:85
void Init(std::istream &aDataFile, G4int nPar, G4double unit=1.)
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
static constexpr double eV
static constexpr double s

References CLHEP::eV, hasDelayedData, G4ParticleHPList::Init(), G4ParticleHPVector::Init(), CLHEP::s, spontDelayed, targetMass, theDelayed, thePrecursorDecayConstants, and theSpontDelayed.

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

◆ InitMean()

void G4ParticleHPParticleYield::InitMean ( std::istream &  aDataFile)
inline

Definition at line 58 of file G4ParticleHPParticleYield.hh.

59 {
60 G4int iflag;
61 aDataFile >> targetMass >>iflag;
62 if(iflag == 1) simpleMean=false;
63 if(simpleMean)
64 {
65 theSimpleMean.Init(aDataFile, CLHEP::eV);
66 }
67 else
68 {
69 theMean.Init(aDataFile);
70 }
71 }

References CLHEP::eV, G4ParticleHPVector::Init(), G4ParticleHPPolynomExpansion::Init(), simpleMean, targetMass, theMean, and theSimpleMean.

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

◆ InitPrompt()

void G4ParticleHPParticleYield::InitPrompt ( std::istream &  aDataFile)
inline

Definition at line 73 of file G4ParticleHPParticleYield.hh.

74 {
75 hasPromptData = true;
76 G4int iflag;
77 aDataFile >> targetMass >>iflag;
78 if(iflag == 2) spontPrompt = false;
79 if(spontPrompt)
80 {
81 aDataFile >> theSpontPrompt;
82 }
83 else
84 {
85 thePrompt.Init(aDataFile, CLHEP::eV);
86 }
87 }

References CLHEP::eV, hasPromptData, G4ParticleHPVector::Init(), spontPrompt, targetMass, thePrompt, and theSpontPrompt.

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

Field Documentation

◆ hasDelayedData

G4bool G4ParticleHPParticleYield::hasDelayedData
private

◆ hasPromptData

G4bool G4ParticleHPParticleYield::hasPromptData
private

Definition at line 149 of file G4ParticleHPParticleYield.hh.

Referenced by G4ParticleHPParticleYield(), GetPrompt(), and InitPrompt().

◆ simpleMean

G4bool G4ParticleHPParticleYield::simpleMean
private

Definition at line 144 of file G4ParticleHPParticleYield.hh.

Referenced by G4ParticleHPParticleYield(), GetMean(), and InitMean().

◆ spontDelayed

G4bool G4ParticleHPParticleYield::spontDelayed
private

◆ spontPrompt

G4bool G4ParticleHPParticleYield::spontPrompt
private

Definition at line 150 of file G4ParticleHPParticleYield.hh.

Referenced by G4ParticleHPParticleYield(), GetPrompt(), and InitPrompt().

◆ targetMass

G4double G4ParticleHPParticleYield::targetMass
private

◆ theDelayed

G4ParticleHPVector G4ParticleHPParticleYield::theDelayed
private

Definition at line 158 of file G4ParticleHPParticleYield.hh.

Referenced by GetDelayed(), and InitDelayed().

◆ theMean

G4ParticleHPPolynomExpansion G4ParticleHPParticleYield::theMean
private

Definition at line 145 of file G4ParticleHPParticleYield.hh.

Referenced by GetMean(), and InitMean().

◆ thePrecursorDecayConstants

G4ParticleHPList G4ParticleHPParticleYield::thePrecursorDecayConstants
private

Definition at line 157 of file G4ParticleHPParticleYield.hh.

Referenced by GetDecayConstant(), and InitDelayed().

◆ thePrompt

G4ParticleHPVector G4ParticleHPParticleYield::thePrompt
private

Definition at line 151 of file G4ParticleHPParticleYield.hh.

Referenced by GetPrompt(), and InitPrompt().

◆ theSimpleMean

G4ParticleHPVector G4ParticleHPParticleYield::theSimpleMean
private

Definition at line 146 of file G4ParticleHPParticleYield.hh.

Referenced by GetMean(), and InitMean().

◆ theSpontDelayed

G4double G4ParticleHPParticleYield::theSpontDelayed
private

◆ theSpontPrompt

G4double G4ParticleHPParticleYield::theSpontPrompt
private

Definition at line 152 of file G4ParticleHPParticleYield.hh.

Referenced by G4ParticleHPParticleYield(), GetPrompt(), and InitPrompt().


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