Methods for calibrating the gain and offset of the DSSC detector for the European XFEL using X-ray line sources. (5th January 2016)