60 G4double integral = Integrate(minIntExtreme, maxIntExtreme, nBins, dataSet);
72 G4double lenghtOfBins = (maxIntExtreme - minIntExtreme)/nBins;
74 for (
G4int i = 0; i<nBins; i++)
76 G4double midPoint = minIntExtreme + i*lenghtOfBins+lenghtOfBins/2;
80 partialHeight += heightOfRectangle;
84 G4double integral = lenghtOfBins * partialHeight;