28 #ifndef G4NeutronHPSimpleEvapSpectrum_h
29 #define G4NeutronHPSimpleEvapSpectrum_h 1
47 expm1 = std::exp(-1.);
53 inline void Init(std::istream & aDataFile)
55 theFractionalProb.
Init(aDataFile, CLHEP::eV);
56 theThetaDist.
Init(aDataFile, CLHEP::eV);
61 return theFractionalProb.
GetY(anEnergy);
72 result = -theta*std::log(random);
75 while(cut>result/max);
83 G4double result = (anEnergy*CLHEP::eV)*std::exp(-anEnergy*CLHEP::eV/theta);
void Init(std::istream &aDataFile)
G4double GetY(G4double x)
~G4NeutronHPSimpleEvapSpectrum()
G4double G4NeutronHPJENDLHEData::G4double result
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4NeutronHPSimpleEvapSpectrum()
G4double Sample(G4double anEnergy)
G4double GetFractionalProbability(G4double anEnergy)