A formalism for reference dosimetry in photon beams in the presence of a magnetic field. (11th June 2018)