CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GsfElectronEqual Class Reference

#include <GsfElectronEqual.h>

Public Member Functions

 GsfElectronEqual (const reco::GsfTrackRef &gsfRef)
 
bool operator() (const reco::GsfElectron &gsfelectron)
 
 ~GsfElectronEqual ()
 

Private Attributes

reco::GsfTrackRef ref_
 

Detailed Description

Definition at line 9 of file GsfElectronEqual.h.

Constructor & Destructor Documentation

GsfElectronEqual::GsfElectronEqual ( const reco::GsfTrackRef gsfRef)
inline

Definition at line 11 of file GsfElectronEqual.h.

11 :ref_(gsfRef) {;}
reco::GsfTrackRef ref_
GsfElectronEqual::~GsfElectronEqual ( )
inline

Definition at line 12 of file GsfElectronEqual.h.

12 {;}

Member Function Documentation

bool GsfElectronEqual::operator() ( const reco::GsfElectron gsfelectron)
inline

Definition at line 13 of file GsfElectronEqual.h.

References reco::GsfElectron::gsfTrack(), and ref_.

13  {
14  return (gsfelectron.gsfTrack()==ref_);
15  }
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
Definition: GsfElectron.h:185
reco::GsfTrackRef ref_

Member Data Documentation

reco::GsfTrackRef GsfElectronEqual::ref_
private

Definition at line 17 of file GsfElectronEqual.h.

Referenced by operator()().