CMS 3D CMS Logo

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

Go to the documentation of this file.
00001 // $Id: CaloRecHitCandidate.cc,v 1.1 2006/11/14 10:38:07 llista Exp $
00002 #include "DataFormats/RecoCandidate/interface/CaloRecHitCandidate.h"
00003 
00004 using namespace reco;
00005 
00006 CaloRecHitCandidate::~CaloRecHitCandidate() { }
00007 
00008 CaloRecHitCandidate * CaloRecHitCandidate::clone() const { 
00009   return new CaloRecHitCandidate( * this ); 
00010 }
00011 
00012 bool CaloRecHitCandidate::overlap( const Candidate & c ) const {
00013   const CaloRecHitCandidate * o = dynamic_cast<const CaloRecHitCandidate *>( & c );
00014   if ( o == 0 ) return false;
00015   if ( caloRecHit().isNull() ) return false;
00016   if ( o->caloRecHit().isNull() ) return false;
00017   return ( caloRecHit() != o->caloRecHit() );
00018 }