test
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.
2 
3 using namespace reco;
4 
6 
8  return new RecoCaloTowerCandidate( * this );
9 }
10 
12  return caloTower_;
13 }
14 
16  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
17  return ( o != 0 &&
18  checkOverlap( caloTower(), o->caloTower() )
19  );
20 }
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:69
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