CMS 3D CMS Logo

PFBlockElementSCEqual.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_PFProducer_PFBlockElementSCEqual
2 #define RecoParticleFlow_PFProducer_PFBlockElementSCEqual
3 
6 
8  public:
10  inline bool operator() (const std::unique_ptr<reco::PFBlockElement>& el) {
11  return (el->type()==reco::PFBlockElement::SC && (static_cast<const reco::PFBlockElementSuperCluster*>(el.get()))->superClusterRef()==ref_);
12  }
13  inline bool operator() (const reco::PFBlockElement* el) {
14  return (el->type()==reco::PFBlockElement::SC && (static_cast<const reco::PFBlockElementSuperCluster*>(el))->superClusterRef()==ref_);
15  }
16  private:
18 };
19 
20 #endif
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)