The present invention relates to determining baseline shift of an electrical signal generated by a photon detector (102) of an X-ray examination device (101). For this purpose, the photon detector comprises a processing unit (103) that is configured to determine a first crossing frequency of a first pulse height threshold by the electrical signal generated by the photon detector. The first pulse height threshold is located at a first edge of a noise peak in the pulse height spectrum of the electrical signal.