CMS 3D CMS Logo

EtSum.cc
Go to the documentation of this file.
2 
3 l1t::EtSum::EtSum(const LorentzVector& p4, EtSumType type, int pt, int eta, int phi, int qual)
4  : L1Candidate(p4, pt, eta, phi, qual, 0), type_(type) {}
5 
6 l1t::EtSum::EtSum(const PolarLorentzVector& p4, EtSumType type, int pt, int eta, int phi, int qual)
7  : L1Candidate(p4, pt, eta, phi, qual, 0), type_(type) {}
8 
10 
12 
13 l1t::EtSum::EtSumType l1t::EtSum::getType() const { return type_; }
14 
15 bool l1t::EtSum::operator==(const l1t::EtSum& rhs) const {
16  return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate&>(rhs)) && type_ == rhs.getType();
17 }
void setType(EtSumType type)
Definition: EtSum.cc:11
~EtSum() override
Definition: EtSum.cc:9
EtSum()
Definition: EtSum.h:60
virtual bool operator==(const l1t::EtSum &rhs) const
Definition: EtSum.cc:15
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
EtSumType
Definition: EtSum.h:27
EtSumType getType() const
Definition: EtSum.cc:13
virtual bool operator==(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.cc:14
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:38