28 #ifndef G4NeutronHPNeutronYield_h
29 #define G4NeutronHPNeutronYield_h 1
45 hasPromptData =
false;
46 hasDelayedData =
false;
55 aDataFile >> targetMass >>iflag;
56 if(iflag == 1) simpleMean=
false;
59 theSimpleMean.
Init(aDataFile, CLHEP::eV);
63 theMean.
Init(aDataFile);
71 aDataFile >> targetMass >>iflag;
72 if(iflag == 2) spontPrompt =
false;
75 aDataFile >> theSpontPrompt;
79 thePrompt.
Init(aDataFile, CLHEP::eV);
85 hasDelayedData =
true;
87 aDataFile >> targetMass >>iflag;
88 thePrecursorDecayConstants.
Init(aDataFile, 1./CLHEP::s);
89 if(iflag == 2) spontDelayed =
false;
92 aDataFile >> theSpontDelayed;
96 theDelayed.
Init(aDataFile, CLHEP::eV);
104 return theSimpleMean.
GetY(anEnergy);
111 if(!hasPromptData)
return 0;
114 return theSpontPrompt;
116 return thePrompt.
GetY(anEnergy);
121 if(!hasDelayedData)
return 0;
124 return theSpontDelayed;
126 return theDelayed.
GetY(anEnergy);
131 return thePrecursorDecayConstants.
GetValue(i);
G4double GetY(G4double x)
void Init(std::istream &theData)
G4double GetValue(G4double anEnergy)
void InitDelayed(std::istream &aDataFile)
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
G4NeutronHPNeutronYield()
G4double GetMean(G4double anEnergy)
G4double GetDecayConstant(G4int i)
~G4NeutronHPNeutronYield()
void Init(std::istream &aDataFile, G4int nPar, G4double unit=1.)
G4double GetDelayed(G4double anEnergy)
G4double GetValue(G4int i)
void InitPrompt(std::istream &aDataFile)
G4double GetPrompt(G4double anEnergy)
void InitMean(std::istream &aDataFile)