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 reco::PFBlockElement* el) {
13  return (el->type()==reco::PFBlockElement::SC && (dynamic_cast<const reco::PFBlockElementSuperCluster*>(el))->superClusterRef()==ref_);
14  }
15  private:
17 };
18 
19 #endif
20 
21 
Abstract base class for a PFBlock element (track, cluster...)
Type type() const
reco::SuperClusterRef ref_
PFBlockElementSCEqual(reco::SuperClusterRef scRef)
bool operator()(const reco::PFBlockElement *el)