RecoCaloTowerCandidate

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
#ifndef RecoCandidate_RecoCaloTowerCandidate_h
#define RecoCandidate_RecoCaloTowerCandidate_h
/** \class reco::RecoCaloTowerCandidate
 *
 * Reco Candidates with a CaloTower component
 *
 * \author Luca Lista, INFN
 *
 *
 */
#include "DataFormats/RecoCandidate/interface/RecoCandidate.h"

namespace reco {

  class RecoCaloTowerCandidate : public RecoCandidate {
  public:
    /// default constructor
    RecoCaloTowerCandidate() : RecoCandidate() {}
    /// constructor from values
    RecoCaloTowerCandidate(Charge q, const LorentzVector& p4, const Point& vtx = Point(0, 0, 0))
        : RecoCandidate(q, p4, vtx) {}
    /// constructor from values
    RecoCaloTowerCandidate(Charge q, const PolarLorentzVector& p4, const Point& vtx = Point(0, 0, 0))
        : RecoCandidate(q, p4, vtx) {}
    /// destructor
    ~RecoCaloTowerCandidate() override;
    /// returns a clone of the candidate
    RecoCaloTowerCandidate* clone() const override;
    /// set CaloTower reference
    void setCaloTower(const CaloTowerRef& r) { caloTower_ = r; }
    /// reference to a CaloTower
    CaloTowerRef caloTower() const override;

  private:
    /// check overlap with another candidate
    bool overlap(const Candidate&) const override;
    /// reference to a CaloTower
    CaloTowerRef caloTower_;
  };

}  // namespace reco

#endif