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
PFBlockElementSCEqual::PFBlockElementSCEqual
PFBlockElementSCEqual(reco::SuperClusterRef scRef)
Definition: PFBlockElementSCEqual.h:9
reco::PFBlockElement::SC
Definition: PFBlockElement.h:41
edm::Ref< SuperClusterCollection >
PFBlockElementSCEqual
Definition: PFBlockElementSCEqual.h:7
PFBlockElement.h
PFBlockElementSCEqual::ref_
reco::SuperClusterRef ref_
Definition: PFBlockElementSCEqual.h:20
PFBlockElementSuperCluster.h
reco::PFBlockElement
Abstract base class for a PFBlock element (track, cluster...)
Definition: PFBlockElement.h:26
PFBlockElementSCEqual::operator()
bool operator()(const reco::PFBlockElement *el)
Definition: PFBlockElementSCEqual.h:14
reco::PFBlockElement::type
Type type() const
Definition: PFBlockElement.h:69
PFBlockElementSCEqual::operator()
bool operator()(const std::unique_ptr< reco::PFBlockElement > &el)
Definition: PFBlockElementSCEqual.h:10