29#ifndef G4NeutronHPNeutronYield_h
30#define G4NeutronHPNeutronYield_h 1
46 hasPromptData =
false;
47 hasDelayedData =
false;
56 aDataFile >> targetMass >>iflag;
57 if(iflag == 1) simpleMean=
false;
60 theSimpleMean.
Init(aDataFile, CLHEP::eV);
64 theMean.
Init(aDataFile);
72 aDataFile >> targetMass >>iflag;
73 if(iflag == 2) spontPrompt =
false;
76 aDataFile >> theSpontPrompt;
80 thePrompt.
Init(aDataFile, CLHEP::eV);
86 hasDelayedData =
true;
88 aDataFile >> targetMass >>iflag;
89 thePrecursorDecayConstants.
Init(aDataFile, 1./CLHEP::s);
90 if(iflag == 2) spontDelayed =
false;
93 aDataFile >> theSpontDelayed;
97 theDelayed.
Init(aDataFile, CLHEP::eV);
105 return theSimpleMean.
GetY(anEnergy);
112 if(!hasPromptData)
return 0;
115 return theSpontPrompt;
117 return thePrompt.
GetY(anEnergy);
122 if(!hasDelayedData)
return 0;
125 return theSpontDelayed;
127 return theDelayed.
GetY(anEnergy);
132 return thePrecursorDecayConstants.
GetValue(i);
void Init(std::ifstream &aDataFile, G4int nPar, G4double unit=1.)
G4double GetValue(G4int i)
void InitMean(std::ifstream &aDataFile)
G4double GetMean(G4double anEnergy)
G4double GetDelayed(G4double anEnergy)
G4NeutronHPNeutronYield()
~G4NeutronHPNeutronYield()
void InitDelayed(std::ifstream &aDataFile)
void InitPrompt(std::ifstream &aDataFile)
G4double GetPrompt(G4double anEnergy)
G4double GetDecayConstant(G4int i)
G4double GetValue(G4double anEnergy)
void Init(std::ifstream &theData)
void Init(std::ifstream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
G4double GetY(G4double x)