CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
PFBlockElementSCEqual Class Reference

#include <PFBlockElementSCEqual.h>

Public Member Functions

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 reco::PFBlockElement el)
inline

Definition at line 12 of file PFBlockElementSCEqual.h.

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

12  {
13  return (el->type()==reco::PFBlockElement::SC && (dynamic_cast<const reco::PFBlockElementSuperCluster*>(el))->superClusterRef()==ref_);
14  }
Type type() const
reco::SuperClusterRef ref_

Member Data Documentation

reco::SuperClusterRef PFBlockElementSCEqual::ref_
private

Definition at line 16 of file PFBlockElementSCEqual.h.

Referenced by operator()().