ROOT macro for gain fitting phroc2ps.C