CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PFBlockElementSCEqual Class Reference

#include <PFBlockElementSCEqual.h>

Public Member Functions

bool operator() (const reco::PFBlockElement *el)
 
bool operator() (const std::unique_ptr< reco::PFBlockElement > &el)
 
 PFBlockElementSCEqual (reco::SuperClusterRef scRef)
 

Private Attributes

reco::SuperClusterRef ref_
 

Detailed Description

Definition at line 7 of file PFBlockElementSCEqual.h.

Constructor & Destructor Documentation

◆ PFBlockElementSCEqual()

PFBlockElementSCEqual::PFBlockElementSCEqual ( reco::SuperClusterRef  scRef)
inline

Definition at line 9 of file PFBlockElementSCEqual.h.

9 : ref_(scRef) { ; }

Member Function Documentation

◆ operator()() [1/2]

bool PFBlockElementSCEqual::operator() ( const reco::PFBlockElement el)
inline

Definition at line 14 of file PFBlockElementSCEqual.h.

14  {
15  return (el->type() == reco::PFBlockElement::SC &&
16  (static_cast<const reco::PFBlockElementSuperCluster*>(el))->superClusterRef() == ref_);
17  }

References ref_, reco::PFBlockElement::SC, and reco::PFBlockElement::type().

◆ operator()() [2/2]

bool PFBlockElementSCEqual::operator() ( const std::unique_ptr< reco::PFBlockElement > &  el)
inline

Definition at line 10 of file PFBlockElementSCEqual.h.

10  {
11  return (el->type() == reco::PFBlockElement::SC &&
12  (static_cast<const reco::PFBlockElementSuperCluster*>(el.get()))->superClusterRef() == ref_);
13  }

References ref_, and reco::PFBlockElement::SC.

Member Data Documentation

◆ ref_

reco::SuperClusterRef PFBlockElementSCEqual::ref_
private

Definition at line 20 of file PFBlockElementSCEqual.h.

Referenced by operator()().

reco::PFBlockElement::SC
Definition: PFBlockElement.h:41
PFBlockElementSCEqual::ref_
reco::SuperClusterRef ref_
Definition: PFBlockElementSCEqual.h:20
reco::PFBlockElement::type
Type type() const
Definition: PFBlockElement.h:69