added functionality for photon studies and added n virtex to tree