#include "DataFormats/RecoCandidate/interface/RecoCaloTowerCandidate.h"

using namespace reco;

RecoCaloTowerCandidate::~RecoCaloTowerCandidate() {}

RecoCaloTowerCandidate *RecoCaloTowerCandidate::clone() const { return new RecoCaloTowerCandidate(*this); }

CaloTowerRef RecoCaloTowerCandidate::caloTower() const { return caloTower_; }

bool RecoCaloTowerCandidate::overlap(const Candidate &c) const {
  const RecoCandidate *o = dynamic_cast<const RecoCandidate *>(&c);
  return (o != nullptr && checkOverlap(caloTower(), o->caloTower()));
}
