CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/RecoParticleFlow/PFProducer/interface/GsfElectronEqual.h

Go to the documentation of this file.
00001 #ifndef RecoParticleFlow_PFProducer_GsfElectronEqual
00002 #define RecoParticleFlow_PFProducer_GsfElectronEqual
00003 
00004 #include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
00005 #include "DataFormats/GsfTrackReco/interface/GsfTrack.h"
00006 #include "DataFormats/GsfTrackReco/interface/GsfTrackFwd.h"
00007 
00008 
00009 class GsfElectronEqual {
00010  public:
00011   GsfElectronEqual(const reco::GsfTrackRef& gsfRef):ref_(gsfRef) {;}
00012     ~GsfElectronEqual(){;}
00013     inline bool operator() (const reco::GsfElectron & gsfelectron) {
00014       return (gsfelectron.gsfTrack()==ref_);
00015     }
00016  private:
00017     reco::GsfTrackRef ref_;
00018 };
00019 
00020 #endif
00021 
00022