CMS 3D CMS Logo

PhotonEqual.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_PFProducer_PhotonEqual
2 #define RecoParticleFlow_PFProducer_PhotonEqual
3 
7 
8 
9 class PhotonEqual {
10  public:
11  PhotonEqual(const reco::SuperClusterRef& scRef):ref_(scRef) {;}
13  inline bool operator() (const reco::Photon & photon) {
14  return (photon.superCluster()==ref_);
15  }
16  private:
18 };
19 
20 #endif
21 
22 
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
bool operator()(const reco::Photon &photon)
Definition: PhotonEqual.h:13
reco::SuperClusterRef ref_
Definition: PhotonEqual.h:17
PhotonEqual(const reco::SuperClusterRef &scRef)
Definition: PhotonEqual.h:11