CMS 3D CMS Logo

CaloRecHitCandidate.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6 
8 
10  const CaloRecHitCandidate *o = dynamic_cast<const CaloRecHitCandidate *>(&c);
11  if (o == nullptr)
12  return false;
13  if (caloRecHit().isNull())
14  return false;
15  if (o->caloRecHit().isNull())
16  return false;
17  return (caloRecHit() != o->caloRecHit());
18 }
bool overlap(const Candidate &) const override
check overlap with another candidate
CaloRecHitCandidate * clone() const override
returns a clone of the candidate
bool isNull() const
Checks for null.
Definition: Ptr.h:144
CaloRecHitCandidate()
default constructor
fixed size matrix
~CaloRecHitCandidate() override
destructor
CaloRecHitRef caloRecHit() const
reference to a CaloRecHit