Bragg's law and energy sensitive detectors