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 std::unique_ptr< reco::PFBlockElement > &el)
 
bool operator() (const 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) { ; }
reco::SuperClusterRef ref_

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 10 of file PFBlockElementSCEqual.h.

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

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

◆ operator()() [2/2]

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

Definition at line 14 of file PFBlockElementSCEqual.h.

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

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

Member Data Documentation

◆ ref_

reco::SuperClusterRef PFBlockElementSCEqual::ref_
private

Definition at line 20 of file PFBlockElementSCEqual.h.

Referenced by operator()().