added macro for photon id studies