CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/RecoParticleFlow/PFProducer/interface/PFBlockElementSCEqual.h

Go to the documentation of this file.
00001 #ifndef RecoParticleFlow_PFProducer_PFBlockElementSCEqual
00002 #define RecoParticleFlow_PFProducer_PFBlockElementSCEqual
00003 
00004 #include "DataFormats/ParticleFlowReco/interface/PFBlockElementSuperCluster.h"
00005 #include "DataFormats/ParticleFlowReco/interface/PFBlockElement.h"
00006 //#include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
00007 
00008 class PFBlockElementSCEqual {
00009  public:
00010   PFBlockElementSCEqual(reco::SuperClusterRef scRef):ref_(scRef) {;}
00011     ~PFBlockElementSCEqual(){;}
00012     inline bool operator() (const reco::PFBlockElement* el) {
00013       return (el->type()==reco::PFBlockElement::SC && (dynamic_cast<const reco::PFBlockElementSuperCluster*>(el))->superClusterRef()==ref_);
00014     }
00015  private:
00016     reco::SuperClusterRef ref_;
00017 };
00018 
00019 #endif
00020 
00021