The gain is derived from a set of paired flat fields with identical exposure time, using the Photon Transfer Curve method. More information can be found on the plot tutorial page