Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:17

0001 #ifndef HiEgammaAlgos_TrackIsoCalculator_h
0002 #define HiEgammaAlgos_TrackIsoCalculator_h
0003 
0004 #include "DataFormats/EgammaCandidates/interface/Photon.h"
0005 #include "DataFormats/TrackReco/interface/Track.h"
0006 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0007 
0008 class TrackIsoCalculator {
0009 public:
0010   TrackIsoCalculator(reco::TrackCollection const& trackCollection, std::string const& trackQuality);
0011 
0012   /// Return the tracker energy in a cone around the photon
0013   double getTrackIso(reco::Photon const& clus, const double i, const double threshold, const double innerDR = 0);
0014   /// Return the background-subtracted tracker energy in a cone around the photon
0015   double getBkgSubTrackIso(reco::Photon const& clus, const double i, const double threshold, const double innerDR = 0);
0016 
0017 private:
0018   reco::TrackCollection const& recCollection_;
0019   std::string const& trackQuality_;
0020 };
0021 
0022 #endif