Updating PatTools stuff the EGamma Usercode migration