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 
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 }
type
Definition: HCALResponse.h:21
double eta() const final
momentum pseudorapidity
double pt() const final
transverse momentum
void setType(EtSumType type)
Definition: EtSum.cc:11
virtual bool operator==(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.cc:14
~EtSum() override
Definition: EtSum.cc:9
double p4[4]
Definition: TauolaWrapper.h:92
EtSum()
Definition: EtSum.h:52
const LorentzVector & p4() const final
four-momentum Lorentz vector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
EtSumType type_
Definition: EtSum.h:64
virtual bool operator==(const l1t::EtSum &rhs) const
Definition: EtSum.cc:15
EtSumType getType() const
Definition: EtSum.cc:13
double phi() const final
momentum azimuthal angle
EtSumType
Definition: EtSum.h:22
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39