This should be moved to PhotonAnalysis.