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

#include <G4NeutronHPNeutronYield.hh>

Public Member Functions

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

Detailed Description

Definition at line 38 of file G4NeutronHPNeutronYield.hh.

Constructor & Destructor Documentation

G4NeutronHPNeutronYield::G4NeutronHPNeutronYield ( )
inline

Definition at line 41 of file G4NeutronHPNeutronYield.hh.

42  {
43  simpleMean = true;
44  spontPrompt = true;
45  hasPromptData = false;
46  hasDelayedData = false;
47  }
G4NeutronHPNeutronYield::~G4NeutronHPNeutronYield ( )
inline

Definition at line 48 of file G4NeutronHPNeutronYield.hh.

48 {}

Member Function Documentation

G4double G4NeutronHPNeutronYield::GetDecayConstant ( G4int  i)
inline

Definition at line 129 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPList::GetValue().

Referenced by G4NeutronHPFSFissionFS::ApplyYourself().

130  {
131  return thePrecursorDecayConstants.GetValue(i);
132  }
G4double GetValue(G4int i)
G4double G4NeutronHPNeutronYield::GetDelayed ( G4double  anEnergy)
inline

Definition at line 119 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPVector::GetY().

Referenced by G4NeutronHPFSFissionFS::SampleNeutronMult().

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

Definition at line 100 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPPolynomExpansion::GetValue(), and G4NeutronHPVector::GetY().

Referenced by G4NeutronHPFSFissionFS::SampleNeutronMult().

101  {
102  if(simpleMean)
103  {
104  return theSimpleMean.GetY(anEnergy);
105  }
106  return theMean.GetValue(anEnergy);
107  }
G4double GetY(G4double x)
G4double GetValue(G4double anEnergy)
G4double G4NeutronHPNeutronYield::GetPrompt ( G4double  anEnergy)
inline

Definition at line 109 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPVector::GetY().

Referenced by G4NeutronHPFSFissionFS::SampleNeutronMult().

110  {
111  if(!hasPromptData) return 0;
112  if(spontPrompt)
113  {
114  return theSpontPrompt;
115  }
116  return thePrompt.GetY(anEnergy);
117  }
G4double GetY(G4double x)
G4double G4NeutronHPNeutronYield::GetTargetMass ( )
inline

Definition at line 50 of file G4NeutronHPNeutronYield.hh.

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

50 { return targetMass; }
void G4NeutronHPNeutronYield::InitDelayed ( std::istream &  aDataFile)
inline

Definition at line 83 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPList::Init(), and G4NeutronHPVector::Init().

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

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

Definition at line 52 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPPolynomExpansion::Init(), and G4NeutronHPVector::Init().

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

53  {
54  G4int iflag;
55  aDataFile >> targetMass >>iflag;
56  if(iflag == 1) simpleMean=false;
57  if(simpleMean)
58  {
59  theSimpleMean.Init(aDataFile, CLHEP::eV);
60  }
61  else
62  {
63  theMean.Init(aDataFile);
64  }
65  }
void Init(std::istream &theData)
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
int G4int
Definition: G4Types.hh:78
void G4NeutronHPNeutronYield::InitPrompt ( std::istream &  aDataFile)
inline

Definition at line 67 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPVector::Init().

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

68  {
69  hasPromptData = true;
70  G4int iflag;
71  aDataFile >> targetMass >>iflag;
72  if(iflag == 2) spontPrompt = false;
73  if(spontPrompt)
74  {
75  aDataFile >> theSpontPrompt;
76  }
77  else
78  {
79  thePrompt.Init(aDataFile, CLHEP::eV);
80  }
81  }
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
int G4int
Definition: G4Types.hh:78

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