In Gaia DR2 all photometric measurements of SSOs were taken from the output of the data processing pipeline carried out by Gaia DPAC
CU5. The interested reader should refer to the chapter of this document devoted to Gaia Photometry to obtain all necessary explanations.