34 #define INCLXX_IN_GEANT4_MODE 1
83 nIntervals =
G4int(interval/step);
86 G4int remainder = nIntervals % 9;
88 nIntervals += 9 - remainder;
90 nIntervals =
std::max(nIntervals, 9);
95 for(
G4int j = 1; j<nIntervals; ++j) {
97 const unsigned index = j%9;
101 return result*dx*
sign;
114 return theFunction->integrate(
xMin,x);
129 normalisation(1./theFunction->integrate(
xMin,
xMax)),
135 return fWrap(
std::min(1., normalisation * theFunction->integrate(
xMin,x)));
137 return std::min(1., normalisation * theFunction->integrate(
xMin,x));
143 } *theInverseCDF =
new InverseCDF(
this, fWrap);
146 delete theInverseCDF;