CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoCaloTowerCandidate.cc
Go to the documentation of this file.
1 // $Id: RecoCaloTowerCandidate.cc,v 1.4 2006/05/02 10:28:01 llista Exp $
3 
4 using namespace reco;
5 
7 
9  return new RecoCaloTowerCandidate( * this );
10 }
11 
13  return caloTower_;
14 }
15 
17  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
18  return ( o != 0 &&
19  checkOverlap( caloTower(), o->caloTower() )
20  );
21 }
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
virtual CaloTowerRef caloTower() const
reference to a CaloTower
virtual RecoCaloTowerCandidate * clone() const
returns a clone of the candidate
virtual ~RecoCaloTowerCandidate()
destructor
RecoCaloTowerCandidate()
default constructor
virtual bool overlap(const Candidate &) const
check overlap with another candidate
virtual CaloTowerRef caloTower() const
reference to a CaloTower
CaloTowerRef caloTower_
reference to a CaloTower