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