A method and apparatus for improving the energy resolution, sensitivity and other
aspects of a x-ray or gamma ray detector by using modified acquisition electronics
in conjunction with low leakage current photodiodes. Specifically, increasing the
integration time of the sample circuits without degrading energy resolution due
to parallel noise in order to improve energy resolution and sensitivity, and to
allow new electronics designs.