CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CaloRecHitCandidate.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
5 CaloRecHitCandidate::~CaloRecHitCandidate() {}
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
CaloRecHitRef caloRecHit() const
reference to a CaloRecHit
const edm::EventSetup & c
CaloRecHitCandidate * clone() const override
returns a clone of the candidate
bool isNull() const
Checks for null.
Definition: RefToBase.h:295
CaloRecHitCandidate()
default constructor