CMS 3D CMS Logo

PFElectronExtraEqual.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_PFProducer_PFElectronExtraEqual
2 #define RecoParticleFlow_PFProducer_PFElectronExtraEqual
3 
7 
9  public:
10  PFElectronExtraEqual(const reco::GsfTrackRef & gsfTrackRef):ref_(gsfTrackRef) {;}
12  inline bool operator() (const reco::PFCandidateElectronExtra & extra) {
13  return (ref_==extra.gsfTrackRef());
14  }
15  private:
17 };
18 
20  public:
21  PFElectronExtraKfEqual(const reco::TrackRef & trackRef):ref_(trackRef) {;}
23  inline bool operator() (const reco::PFCandidateElectronExtra & extra) {
24  return (ref_==extra.kfTrackRef());
25  }
26  private:
28 };
29 
30 
31 #endif
reco::GsfTrackRef gsfTrackRef() const
return a reference to the corresponding GSF track
reco::TrackRef kfTrackRef() const
return a reference to the corresponding KF track
PFElectronExtraKfEqual(const reco::TrackRef &trackRef)
PFElectronExtraEqual(const reco::GsfTrackRef &gsfTrackRef)
bool operator()(const reco::PFCandidateElectronExtra &extra)
reco::GsfTrackRef ref_