added UseFermiDiracApproximation
used histogram instead of real interpolation for calculation