A detector is disclosed, including at least one scintillator and at least one photodiode, connected to one another by a connecting medium. The scintillator has a defined depression for holding the connecting medium on its side facing the photodiode in such a way that the visible light produced by the scintillator is focused in the direction of the photodiode. The detector is provided for an imaging X-ray unit, for example a computed tomography unit.