Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:00

0001 
0002 #include "DataFormats/L1Trigger/interface/Tau.h"
0003 using namespace l1t;
0004 
0005 void Tau::clear_extended() {
0006   towerIEta_ = 0;
0007   towerIPhi_ = 0;
0008   rawEt_ = 0;
0009   isoEt_ = 0;
0010   nTT_ = 0;
0011   hasEM_ = false;
0012   isMerged_ = false;
0013 }
0014 
0015 Tau::Tau(const LorentzVector& p4, int pt, int eta, int phi, int qual, int iso)
0016     : L1Candidate(p4, pt, eta, phi, qual, iso) {
0017   clear_extended();
0018 }
0019 
0020 Tau::Tau(const PolarLorentzVector& p4, int pt, int eta, int phi, int qual, int iso)
0021     : L1Candidate(p4, pt, eta, phi, qual, iso) {
0022   clear_extended();
0023 }
0024 
0025 Tau::~Tau() {}
0026 
0027 void Tau::setTowerIEta(short int ieta) { towerIEta_ = ieta; }
0028 
0029 void Tau::setTowerIPhi(short int iphi) { towerIPhi_ = iphi; }
0030 
0031 void Tau::setRawEt(short int et) { rawEt_ = et; }
0032 
0033 void Tau::setIsoEt(short int et) { isoEt_ = et; }
0034 
0035 void Tau::setNTT(short int ntt) { nTT_ = ntt; }
0036 
0037 void Tau::setHasEM(bool hasEM) { hasEM_ = hasEM; }
0038 
0039 void Tau::setIsMerged(bool isMerged) { isMerged_ = isMerged; }
0040 
0041 short int Tau::towerIEta() const { return towerIEta_; }
0042 
0043 short int Tau::towerIPhi() const { return towerIPhi_; }
0044 
0045 short int Tau::rawEt() const { return rawEt_; }
0046 
0047 short int Tau::isoEt() const { return isoEt_; }
0048 
0049 short int Tau::nTT() const { return nTT_; }
0050 
0051 bool Tau::hasEM() const { return hasEM_; }
0052 
0053 bool Tau::isMerged() const { return isMerged_; }
0054 
0055 bool Tau::operator==(const l1t::Tau& rhs) const {
0056   return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate&>(rhs)) && towerIEta_ == rhs.towerIEta() &&
0057          towerIPhi_ == rhs.towerIPhi() && rawEt_ == rhs.rawEt() && isoEt_ == rhs.isoEt() && nTT_ == rhs.nTT() &&
0058          hasEM_ == rhs.hasEM() && isMerged_ == rhs.isMerged();
0059 }