CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/RecoParticleFlow/PFProducer/interface/PhotonEqual.h

Go to the documentation of this file.
00001 #ifndef RecoParticleFlow_PFProducer_PhotonEqual
00002 #define RecoParticleFlow_PFProducer_PhotonEqual
00003 
00004 #include "DataFormats/EgammaCandidates/interface/Photon.h"
00005 #include "DataFormats/EgammaReco/interface/SuperCluster.h"
00006 #include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
00007 
00008 
00009 class PhotonEqual {
00010  public:
00011   PhotonEqual(const reco::SuperClusterRef& scRef):ref_(scRef) {;}
00012     ~PhotonEqual(){;}
00013     inline bool operator() (const reco::Photon & photon) {
00014       return (photon.superCluster()==ref_);
00015     }
00016  private:
00017     reco::SuperClusterRef ref_;
00018 };
00019 
00020 #endif
00021 
00022