File indexing completed on 2024-04-06 12:04:34
0001 #include "DataFormats/L1TMuon/interface/RegionalMuonCand.h"
0002
0003 namespace l1t {
0004
0005 void RegionalMuonCand::setTFIdentifiers(int processor, tftype trackFinder) {
0006 m_trackFinder = trackFinder;
0007 m_processor = processor;
0008
0009 switch (m_trackFinder) {
0010 case tftype::emtf_pos:
0011 m_link = m_processor + 36;
0012 break;
0013 case tftype::omtf_pos:
0014 m_link = m_processor + 42;
0015 break;
0016 case tftype::bmtf:
0017 m_link = m_processor + 48;
0018 break;
0019 case tftype::omtf_neg:
0020 m_link = m_processor + 60;
0021 break;
0022 case tftype::emtf_neg:
0023 m_link = m_processor + 66;
0024 }
0025 }
0026
0027 bool RegionalMuonCand::operator==(const RegionalMuonCand& rhs) const {
0028 return m_hwPt == rhs.hwPt() && m_hwPtUnconstrained == rhs.hwPtUnconstrained() && m_hwDXY == rhs.hwDXY() &&
0029 m_hwPhi == rhs.hwPhi() && m_hwEta == rhs.hwEta() && m_hwHF == (bool)rhs.hwHF() && m_hwSign == rhs.hwSign() &&
0030 m_hwSignValid == rhs.hwSignValid() && m_hwQuality == rhs.hwQual() && m_link == rhs.link() &&
0031 m_muIdx == rhs.muIdx() && m_processor == rhs.processor() && m_trackFinder == rhs.trackFinderType() &&
0032 m_trackAddress == rhs.trackAddress();
0033 }
0034
0035 }