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);
G4NeutronHPSimpleEvapSpectrum()
~G4NeutronHPSimpleEvapSpectrum()
G4double Sample(G4double anEnergy)
void Init(std::ifstream &aDataFile)
G4double GetFractionalProbability(G4double anEnergy)
void Init(std::ifstream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
G4double GetY(G4double x)