CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
bool operator()(const reco::Photon &photon)
Definition: PhotonEqual.h:13
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
Definition: Photon.cc:59
reco::SuperClusterRef ref_
Definition: PhotonEqual.h:17
PhotonEqual(const reco::SuperClusterRef &scRef)
Definition: PhotonEqual.h:11