CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/DataFormats/RecoCandidate/src/RecoCaloTowerCandidate.cc

Go to the documentation of this file.
00001 // $Id: RecoCaloTowerCandidate.cc,v 1.5 2006/05/31 12:45:46 llista Exp $
00002 #include "DataFormats/RecoCandidate/interface/RecoCaloTowerCandidate.h"
00003 
00004 using namespace reco;
00005 
00006 RecoCaloTowerCandidate::~RecoCaloTowerCandidate() { }
00007 
00008 RecoCaloTowerCandidate * RecoCaloTowerCandidate::clone() const { 
00009   return new RecoCaloTowerCandidate( * this ); 
00010 }
00011 
00012 CaloTowerRef RecoCaloTowerCandidate::caloTower() const {
00013   return caloTower_;
00014 }
00015 
00016 bool RecoCaloTowerCandidate::overlap( const Candidate & c ) const {
00017   const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
00018   return ( o != 0 &&  
00019            checkOverlap( caloTower(), o->caloTower() ) 
00020            );
00021 }