Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:39

0001 #include "DataFormats/L1Trigger/interface/EtSum.h"
0002 
0003 l1t::EtSum::EtSum(const LorentzVector& p4, EtSumType type, int pt, int eta, int phi, int qual)
0004     : L1Candidate(p4, pt, eta, phi, qual, 0), type_(type) {}
0005 
0006 l1t::EtSum::EtSum(const PolarLorentzVector& p4, EtSumType type, int pt, int eta, int phi, int qual)
0007     : L1Candidate(p4, pt, eta, phi, qual, 0), type_(type) {}
0008 
0009 l1t::EtSum::~EtSum() {}
0010 
0011 void l1t::EtSum::setType(EtSumType type) { type_ = type; }
0012 
0013 l1t::EtSum::EtSumType l1t::EtSum::getType() const { return type_; }
0014 
0015 bool l1t::EtSum::operator==(const l1t::EtSum& rhs) const {
0016   return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate&>(rhs)) && type_ == rhs.getType();
0017 }