CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/DataFormats/RecoCandidate/src/RecoEcalCandidate.cc

Go to the documentation of this file.
00001 // $Id: RecoEcalCandidate.cc,v 1.1 2006/07/26 07:42:08 llista Exp $
00002 #include "DataFormats/RecoCandidate/interface/RecoEcalCandidate.h"
00003 
00004 using namespace reco;
00005 
00006 RecoEcalCandidate::~RecoEcalCandidate() { }
00007 
00008 RecoEcalCandidate * RecoEcalCandidate::clone() const { 
00009   return new RecoEcalCandidate( * this ); 
00010 }
00011 
00012 SuperClusterRef RecoEcalCandidate::superCluster() const {
00013   return superCluster_;
00014 }
00015 
00016 bool RecoEcalCandidate::overlap( const Candidate & c ) const {
00017   const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
00018   return ( o != 0 && 
00019            checkOverlap( superCluster(), o->superCluster() ) 
00020            );
00021 }