Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoParticleFlow
PFProducer
interface
PFElectronExtraEqual.h
Go to the documentation of this file.
1
#ifndef RecoParticleFlow_PFProducer_PFElectronExtraEqual
2
#define RecoParticleFlow_PFProducer_PFElectronExtraEqual
3
4
#include "
DataFormats/GsfTrackReco/interface/GsfTrackFwd.h
"
5
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
6
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidateElectronExtra.h
"
7
8
class
PFElectronExtraEqual
{
9
public
:
10
PFElectronExtraEqual
(
const
reco::GsfTrackRef
& gsfTrackRef):
ref_
(gsfTrackRef) {;}
11
~PFElectronExtraEqual
(){;}
12
inline
bool
operator()
(
const
reco::PFCandidateElectronExtra
& extra) {
13
return
(
ref_
==extra.
gsfTrackRef
());
14
}
15
private
:
16
reco::GsfTrackRef
ref_
;
17
};
18
19
class
PFElectronExtraKfEqual
{
20
public
:
21
PFElectronExtraKfEqual
(
const
reco::TrackRef
& trackRef):
ref_
(trackRef) {;}
22
~PFElectronExtraKfEqual
(){;}
23
inline
bool
operator()
(
const
reco::PFCandidateElectronExtra
& extra) {
24
return
(
ref_
==extra.
kfTrackRef
());
25
}
26
private
:
27
reco::TrackRef
ref_
;
28
};
29
30
31
#endif
PFElectronExtraKfEqual
Definition:
PFElectronExtraEqual.h:19
reco::PFCandidateElectronExtra::gsfTrackRef
reco::GsfTrackRef gsfTrackRef() const
return a reference to the corresponding GSF track
Definition:
PFCandidateElectronExtra.h:64
PFCandidateElectronExtra.h
reco::PFCandidateElectronExtra
Definition:
PFCandidateElectronExtra.h:16
TrackFwd.h
PFElectronExtraEqual::~PFElectronExtraEqual
~PFElectronExtraEqual()
Definition:
PFElectronExtraEqual.h:11
PFElectronExtraEqual
Definition:
PFElectronExtraEqual.h:8
reco::PFCandidateElectronExtra::kfTrackRef
reco::TrackRef kfTrackRef() const
return a reference to the corresponding KF track
Definition:
PFCandidateElectronExtra.h:67
PFElectronExtraKfEqual::PFElectronExtraKfEqual
PFElectronExtraKfEqual(const reco::TrackRef &trackRef)
Definition:
PFElectronExtraEqual.h:21
PFElectronExtraKfEqual::ref_
reco::TrackRef ref_
Definition:
PFElectronExtraEqual.h:27
PFElectronExtraKfEqual::operator()
bool operator()(const reco::PFCandidateElectronExtra &extra)
Definition:
PFElectronExtraEqual.h:23
PFElectronExtraKfEqual::~PFElectronExtraKfEqual
~PFElectronExtraKfEqual()
Definition:
PFElectronExtraEqual.h:22
PFElectronExtraEqual::PFElectronExtraEqual
PFElectronExtraEqual(const reco::GsfTrackRef &gsfTrackRef)
Definition:
PFElectronExtraEqual.h:10
PFElectronExtraEqual::operator()
bool operator()(const reco::PFCandidateElectronExtra &extra)
Definition:
PFElectronExtraEqual.h:12
GsfTrackFwd.h
PFElectronExtraEqual::ref_
reco::GsfTrackRef ref_
Definition:
PFElectronExtraEqual.h:16
edm::Ref< GsfTrackCollection >
Generated for CMSSW Reference Manual by
1.8.5