CMS 3D CMS Logo

RegionalMuonCand.cc
Go to the documentation of this file.
2 
3 namespace l1t {
4 
5  void RegionalMuonCand::setTFIdentifiers(int processor, tftype trackFinder) {
6  m_trackFinder = trackFinder;
8 
9  switch (m_trackFinder) {
10  case tftype::emtf_pos:
11  m_link = m_processor + 36; // range 36...41
12  break;
13  case tftype::omtf_pos:
14  m_link = m_processor + 42; // range 42...47
15  break;
16  case tftype::bmtf:
17  m_link = m_processor + 48; // range 48...59
18  break;
19  case tftype::omtf_neg:
20  m_link = m_processor + 60; // range 60...65
21  break;
22  case tftype::emtf_neg:
23  m_link = m_processor + 66; // range 66...71
24  }
25  }
26 
28  return m_hwPt == rhs.hwPt() && m_hwPtUnconstrained == rhs.hwPtUnconstrained() && m_hwDXY == rhs.hwDXY() &&
29  m_hwPhi == rhs.hwPhi() && m_hwEta == rhs.hwEta() && m_hwHF == (bool)rhs.hwHF() && m_hwSign == rhs.hwSign() &&
30  m_hwSignValid == rhs.hwSignValid() && m_hwQuality == rhs.hwQual() && m_link == rhs.link() &&
31  m_processor == rhs.processor() && m_trackFinder == rhs.trackFinderType() &&
33  }
34 
35 } // namespace l1t
l1t::RegionalMuonCand::m_hwSignValid
int m_hwSignValid
Definition: RegionalMuonCand.h:210
l1t::bmtf
Definition: RegionalMuonCandFwd.h:8
l1t::emtf_neg
Definition: RegionalMuonCandFwd.h:8
l1t::RegionalMuonCand::processor
const int processor() const
Get processor ID on which the candidate was found (0..5 for OMTF/EMTF; 0..11 for BMTF)
Definition: RegionalMuonCand.h:179
l1t::RegionalMuonCand::link
const int link() const
Get link on which the MicroGMT receives the candidate.
Definition: RegionalMuonCand.h:177
electrons_cff.bool
bool
Definition: electrons_cff.py:366
l1t::RegionalMuonCand::hwPhi
const int hwPhi() const
Get compressed local phi (returned int * 2*pi/576 = local phi in rad)
Definition: RegionalMuonCand.h:167
l1t::RegionalMuonCand::m_hwEta
int m_hwEta
Definition: RegionalMuonCand.h:207
l1t::RegionalMuonCand::operator==
bool operator==(const RegionalMuonCand &rhs) const
Definition: RegionalMuonCand.cc:27
l1t::omtf_pos
Definition: RegionalMuonCandFwd.h:8
l1t::tftype
tftype
Definition: RegionalMuonCandFwd.h:8
l1t::RegionalMuonCand::hwHF
const int hwHF() const
Get HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1)
Definition: RegionalMuonCand.h:183
l1t::RegionalMuonCand::m_link
int m_link
Definition: RegionalMuonCand.h:212
l1t::RegionalMuonCand::hwQual
const int hwQual() const
Get quality code.
Definition: RegionalMuonCand.h:175
l1t::RegionalMuonCand::hwEta
const int hwEta() const
Get compressed eta (returned int * 0.010875 = eta)
Definition: RegionalMuonCand.h:169
l1t::RegionalMuonCand::m_trackAddress
std::map< int, int > m_trackAddress
Definition: RegionalMuonCand.h:215
l1t::RegionalMuonCand::hwPt
const int hwPt() const
Get compressed pT (returned int * 0.5 = pT (GeV))
Definition: RegionalMuonCand.h:161
l1t::RegionalMuonCand::setTFIdentifiers
void setTFIdentifiers(int processor, tftype trackFinder)
Set the processor ID, track-finder type. From these two, the link is set.
Definition: RegionalMuonCand.cc:5
l1t::RegionalMuonCand::m_processor
int m_processor
Definition: RegionalMuonCand.h:213
l1t::RegionalMuonCand::trackFinderType
const tftype trackFinderType() const
Get track-finder which found the muon (bmtf, emtf_pos/emtf_neg or omtf_pos/omtf_neg)
Definition: RegionalMuonCand.h:181
l1t::RegionalMuonCand::m_hwQuality
int m_hwQuality
Definition: RegionalMuonCand.h:211
l1t::RegionalMuonCand::m_hwDXY
int m_hwDXY
Definition: RegionalMuonCand.h:205
l1t::RegionalMuonCand::m_hwPtUnconstrained
int m_hwPtUnconstrained
Definition: RegionalMuonCand.h:204
l1t::RegionalMuonCand::hwDXY
const int hwDXY() const
Get compressed impact parameter (4 bits)
Definition: RegionalMuonCand.h:165
l1t
delete x;
Definition: CaloConfig.h:22
l1t::RegionalMuonCand::m_trackFinder
tftype m_trackFinder
Definition: RegionalMuonCand.h:214
l1t::RegionalMuonCand::hwPtUnconstrained
const int hwPtUnconstrained() const
Get second compressed pT (returned int * 1.0 = pT (GeV))
Definition: RegionalMuonCand.h:163
l1t::RegionalMuonCand::m_hwSign
int m_hwSign
Definition: RegionalMuonCand.h:209
l1t::RegionalMuonCand::trackAddress
const std::map< int, int > & trackAddress() const
Get the track address (identifies track primitives used for reconstruction)
Definition: RegionalMuonCand.h:191
l1t::RegionalMuonCand::hwSign
const int hwSign() const
Get charge sign bit (charge = (-1)^(sign))
Definition: RegionalMuonCand.h:171
l1t::emtf_pos
Definition: RegionalMuonCandFwd.h:8
l1t::RegionalMuonCand::m_hwPt
int m_hwPt
Definition: RegionalMuonCand.h:200
RegionalMuonCand.h
l1t::RegionalMuonCand::hwSignValid
const int hwSignValid() const
Get charge sign valid bit (0 - not valid (high pT muon); 1 - valid)
Definition: RegionalMuonCand.h:173
l1t::omtf_neg
Definition: RegionalMuonCandFwd.h:8
l1t::RegionalMuonCand::m_hwHF
bool m_hwHF
Definition: RegionalMuonCand.h:208
l1t::RegionalMuonCand
Definition: RegionalMuonCand.h:8
l1t::RegionalMuonCand::m_hwPhi
int m_hwPhi
Definition: RegionalMuonCand.h:206