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)
 
 ~PFBlockElementSCEqual ()
 

Private Attributes

reco::SuperClusterRef ref_
 

Detailed Description

Definition at line 8 of file PFBlockElementSCEqual.h.

Constructor & Destructor Documentation

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

Definition at line 10 of file PFBlockElementSCEqual.h.

10 :ref_(scRef) {;}
reco::SuperClusterRef ref_
PFBlockElementSCEqual::~PFBlockElementSCEqual ( )
inline

Definition at line 11 of file PFBlockElementSCEqual.h.

11 {;}

Member Function Documentation

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

Definition at line 12 of file PFBlockElementSCEqual.h.

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

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

Definition at line 15 of file PFBlockElementSCEqual.h.

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

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

Member Data Documentation

reco::SuperClusterRef PFBlockElementSCEqual::ref_
private

Definition at line 19 of file PFBlockElementSCEqual.h.

Referenced by operator()().