Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoParticleFlow
PFProducer
interface
GsfElectronEqual.h
Go to the documentation of this file.
1
#ifndef RecoParticleFlow_PFProducer_GsfElectronEqual
2
#define RecoParticleFlow_PFProducer_GsfElectronEqual
3
4
#include "
DataFormats/EgammaCandidates/interface/GsfElectron.h
"
5
#include "
DataFormats/GsfTrackReco/interface/GsfTrack.h
"
6
#include "
DataFormats/GsfTrackReco/interface/GsfTrackFwd.h
"
7
8
9
class
GsfElectronEqual
{
10
public
:
11
GsfElectronEqual
(
const
reco::GsfTrackRef
& gsfRef):
ref_
(gsfRef) {;}
12
~GsfElectronEqual
(){;}
13
inline
bool
operator()
(
const
reco::GsfElectron
& gsfelectron) {
14
return
(gsfelectron.
gsfTrack
()==
ref_
);
15
}
16
private
:
17
reco::GsfTrackRef
ref_
;
18
};
19
20
#endif
21
22
GsfElectronEqual::GsfElectronEqual
GsfElectronEqual(const reco::GsfTrackRef &gsfRef)
Definition:
GsfElectronEqual.h:11
reco::GsfElectron
Definition:
GsfElectron.h:37
edm::Ref< GsfTrackCollection >
GsfElectronEqual::operator()
bool operator()(const reco::GsfElectron &gsfelectron)
Definition:
GsfElectronEqual.h:13
GsfElectronEqual::~GsfElectronEqual
~GsfElectronEqual()
Definition:
GsfElectronEqual.h:12
GsfElectronEqual
Definition:
GsfElectronEqual.h:9
GsfElectron.h
GsfTrack.h
GsfElectronEqual::ref_
reco::GsfTrackRef ref_
Definition:
GsfElectronEqual.h:17
GsfTrackFwd.h
reco::GsfElectron::gsfTrack
virtual GsfTrackRef gsfTrack() const
reference to a GsfTrack
Definition:
GsfElectron.h:183
Generated for CMSSW Reference Manual by
1.8.5