CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloRecHitCandidate.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6 
8  return new CaloRecHitCandidate( * this );
9 }
10 
11 bool CaloRecHitCandidate::overlap( const Candidate & c ) const {
12  const CaloRecHitCandidate * o = dynamic_cast<const CaloRecHitCandidate *>( & c );
13  if ( o == 0 ) return false;
14  if ( caloRecHit().isNull() ) return false;
15  if ( o->caloRecHit().isNull() ) return false;
16  return ( caloRecHit() != o->caloRecHit() );
17 }
CaloRecHitRef caloRecHit() const
reference to a CaloRecHit
virtual CaloRecHitCandidate * clone() const
returns a clone of the candidate
virtual bool overlap(const Candidate &) const
check overlap with another candidate
virtual ~CaloRecHitCandidate()
destructor
bool isNull() const
Checks for null.
Definition: RefToBase.h:321
CaloRecHitCandidate()
default constructor