C++ code to make and analyze Ntuples for Displaced Photon Analysis using CMSSW