test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFBlockElementSCEqual.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_PFProducer_PFBlockElementSCEqual
2 #define RecoParticleFlow_PFProducer_PFBlockElementSCEqual
3 
6 //#include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
7 
9  public:
12  inline bool operator() (const std::unique_ptr<reco::PFBlockElement>& el) {
13  return (el->type()==reco::PFBlockElement::SC && (static_cast<const reco::PFBlockElementSuperCluster*>(el.get()))->superClusterRef()==ref_);
14  }
15  inline bool operator() (const reco::PFBlockElement* el) {
16  return (el->type()==reco::PFBlockElement::SC && (static_cast<const reco::PFBlockElementSuperCluster*>(el))->superClusterRef()==ref_);
17  }
18  private:
20 };
21 
22 #endif
23 
24 
Abstract base class for a PFBlock element (track, cluster...)
Type type() const
reco::SuperClusterRef ref_
PFBlockElementSCEqual(reco::SuperClusterRef scRef)
bool operator()(const std::unique_ptr< reco::PFBlockElement > &el)