A laser heating system for samples confined in diamond anvil cells paired with in situ X-ray diffraction measurements at the Extreme Conditions Beamline of PETRA III is presented. The system features two independent laser configurations (on-axis and off-axis of the X-ray path) allowing for a broad range of experiments using different designs of diamond anvil cells. The power of the continuous laser source can be modulated for use in various pulsed laser heating or flash heating applications. An example of such an application is illustrated here on the melting curve of iron at megabar pressures. The optical path of the spectroradiometry measurements is simulated with ray-tracing methods in order to assess the level of present aberrations in the system and the results are compared with other systems, that are using simpler lens optics. Based on the ray-tracing the choice of the first achromatic lens and other aspects for accurate temperature measurements are evaluated.