29 #ifndef G4NeutronHPSimpleEvapSpectrum_h
30 #define G4NeutronHPSimpleEvapSpectrum_h 1
48 expm1 = std::exp(-1.);
54 inline void Init(std::ifstream & aDataFile)
56 theFractionalProb.
Init(aDataFile, CLHEP::eV);
57 theThetaDist.
Init(aDataFile, CLHEP::eV);
62 return theFractionalProb.
GetY(anEnergy);
73 result = -theta*std::log(random);
76 while(cut>result/max);
84 G4double result = (anEnergy*CLHEP::eV)*std::exp(-anEnergy*CLHEP::eV/theta);