Main Page
Namespaces
Classes
Package Documentation
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
edm::Ref< SuperClusterCollection >
Photon.h
reco::Photon
Definition:
Photon.h:22
reco::Photon::superCluster
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
SuperClusterFwd.h
PhotonEqual
Definition:
PhotonEqual.h:9
PhotonEqual::~PhotonEqual
~PhotonEqual()
Definition:
PhotonEqual.h:12
PhotonEqual::ref_
reco::SuperClusterRef ref_
Definition:
PhotonEqual.h:17
muons2muons_cfi.photon
photon
Definition:
muons2muons_cfi.py:28
PhotonEqual::PhotonEqual
PhotonEqual(const reco::SuperClusterRef &scRef)
Definition:
PhotonEqual.h:11
SuperCluster.h
Generated for CMSSW Reference Manual by
1.8.11