Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoParticleFlow
PFProducer
interface
PhotonEqual.h
Go to the documentation of this file.
1
#ifndef RecoParticleFlow_PFProducer_PhotonEqual
2
#define RecoParticleFlow_PFProducer_PhotonEqual
3
4
#include "
DataFormats/EgammaCandidates/interface/Photon.h
"
5
#include "
DataFormats/EgammaReco/interface/SuperCluster.h
"
6
#include "
DataFormats/EgammaReco/interface/SuperClusterFwd.h
"
7
8
9
class
PhotonEqual
{
10
public
:
11
PhotonEqual
(
const
reco::SuperClusterRef
& scRef):
ref_
(scRef) {;}
12
~PhotonEqual
(){;}
13
inline
bool
operator()
(
const
reco::Photon
& photon) {
14
return
(photon.
superCluster
()==
ref_
);
15
}
16
private
:
17
reco::SuperClusterRef
ref_
;
18
};
19
20
#endif
21
22
PhotonEqual::operator()
bool operator()(const reco::Photon &photon)
Definition:
PhotonEqual.h:13
Photon.h
reco::Photon::superCluster
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
Definition:
Photon.cc:58
reco::Photon
Definition:
Photon.h:22
SuperClusterFwd.h
PhotonEqual
Definition:
PhotonEqual.h:9
PhotonEqual::~PhotonEqual
~PhotonEqual()
Definition:
PhotonEqual.h:12
PhotonEqual::ref_
reco::SuperClusterRef ref_
Definition:
PhotonEqual.h:17
PhotonEqual::PhotonEqual
PhotonEqual(const reco::SuperClusterRef &scRef)
Definition:
PhotonEqual.h:11
edm::Ref< SuperClusterCollection >
SuperCluster.h
Generated for CMSSW Reference Manual by
1.8.5