1. A gamma detector with thermal stability, said gamma detector comprising: at least one controller which: sets the detection sensitivity of the detector to a level disabling the detection of gamma photons; and controls a heat generator to maintain the temperature of the detector at a predetermined temperature, the predetermined temperature being the steady state temperature of the detector when the detection sensitivity of the detector is set to a level enabling the detection of gamma photons.