File indexing completed on 2024-04-06 12:04:39
0001
0002 #include "DataFormats/L1Trigger/interface/EGamma.h"
0003 using namespace l1t;
0004
0005 void EGamma::clear_extended() {
0006 towerIEta_ = 0;
0007 towerIPhi_ = 0;
0008 rawEt_ = 0;
0009 isoEt_ = 0;
0010 footprintEt_ = 0;
0011 nTT_ = 0;
0012 shape_ = 0;
0013 towerHoE_ = 0;
0014 }
0015
0016 EGamma::EGamma(const LorentzVector& p4, int pt, int eta, int phi, int qual, int iso)
0017 : L1Candidate(p4, pt, eta, phi, qual, iso) {
0018 clear_extended();
0019 }
0020
0021 EGamma::EGamma(const PolarLorentzVector& p4, int pt, int eta, int phi, int qual, int iso)
0022 : L1Candidate(p4, pt, eta, phi, qual, iso) {
0023 clear_extended();
0024 }
0025
0026 EGamma::~EGamma() {}
0027
0028 void EGamma::setTowerIEta(short int ieta) { towerIEta_ = ieta; }
0029
0030 void EGamma::setTowerIPhi(short int iphi) { towerIPhi_ = iphi; }
0031
0032 void EGamma::setRawEt(short int et) { rawEt_ = et; }
0033
0034 void EGamma::setIsoEt(short int et) { isoEt_ = et; }
0035
0036 void EGamma::setFootprintEt(short int et) { footprintEt_ = et; }
0037
0038 void EGamma::setNTT(short int ntt) { nTT_ = ntt; }
0039
0040 void EGamma::setShape(short int s) { shape_ = s; }
0041
0042 void EGamma::setTowerHoE(short int HoE) { towerHoE_ = HoE; }
0043
0044 short int EGamma::towerIEta() const { return towerIEta_; }
0045
0046 short int EGamma::towerIPhi() const { return towerIPhi_; }
0047
0048 short int EGamma::rawEt() const { return rawEt_; }
0049
0050 short int EGamma::isoEt() const { return isoEt_; }
0051
0052 short int EGamma::footprintEt() const { return footprintEt_; }
0053
0054 short int EGamma::nTT() const { return nTT_; }
0055
0056 short int EGamma::shape() const { return shape_; }
0057
0058 short int EGamma::towerHoE() const { return towerHoE_; }
0059
0060 bool EGamma::operator==(const l1t::EGamma& rhs) const {
0061 return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate&>(rhs)) && towerIEta_ == rhs.towerIEta() &&
0062 towerIPhi_ == rhs.towerIPhi() && rawEt_ == rhs.rawEt() && isoEt_ == rhs.isoEt() &&
0063 footprintEt_ == rhs.footprintEt() && nTT_ == rhs.nTT() && shape_ == rhs.shape() && towerHoE_ == rhs.towerHoE();
0064 }