Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include "DataFormats/L1Trigger/interface/EtSum.h"

l1t::EtSum::EtSum(const LorentzVector& p4, EtSumType type, int pt, int eta, int phi, int qual)
    : L1Candidate(p4, pt, eta, phi, qual, 0), type_(type) {}

l1t::EtSum::EtSum(const PolarLorentzVector& p4, EtSumType type, int pt, int eta, int phi, int qual)
    : L1Candidate(p4, pt, eta, phi, qual, 0), type_(type) {}

l1t::EtSum::~EtSum() {}

void l1t::EtSum::setType(EtSumType type) { type_ = type; }

l1t::EtSum::EtSumType l1t::EtSum::getType() const { return type_; }

bool l1t::EtSum::operator==(const l1t::EtSum& rhs) const {
  return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate&>(rhs)) && type_ == rhs.getType();
}