CMS 3D CMS Logo

RegionalMuonCand.cc
Go to the documentation of this file.
2 
3 namespace l1t {
4 
5 void
6 RegionalMuonCand::setTFIdentifiers(int processor, tftype trackFinder) {
7  m_trackFinder = trackFinder;
9 
10  switch (m_trackFinder) {
11  case tftype::emtf_pos:
12  m_link = m_processor + 36; // range 36...41
13  break;
14  case tftype::omtf_pos:
15  m_link = m_processor + 42; // range 42...47
16  break;
17  case tftype::bmtf:
18  m_link = m_processor + 48; // range 48...59
19  break;
20  case tftype::omtf_neg:
21  m_link = m_processor + 60; // range 60...65
22  break;
23  case tftype::emtf_neg:
24  m_link = m_processor + 66; // range 66...71
25  }
26 }
27 
29 {
30  return m_hwPt == rhs.hwPt()
31  && m_hwPhi == rhs.hwPhi()
32  && m_hwEta == rhs.hwEta()
33  && m_hwHF == (bool)rhs.hwHF()
34  && m_hwSign == rhs.hwSign()
35  && m_hwSignValid == rhs.hwSignValid()
36  && m_hwQuality == rhs.hwQual()
37  && m_link == rhs.link()
38  && m_processor == rhs.processor()
39  && m_trackFinder == rhs.trackFinderType()
40  && m_trackAddress == rhs.trackAddress();
41 }
42 
43 } // namespace l1t
const int hwSignValid() const
Get charge sign valid bit (0 - not valid (high pT muon); 1 - valid)
std::map< int, int > m_trackAddress
delete x;
Definition: CaloConfig.h:22
bool operator==(const RegionalMuonCand &rhs) const
const int hwQual() const
Get quality code.
void setTFIdentifiers(int processor, tftype trackFinder)
Set the processor ID, track-finder type. From these two, the link is set.
const int hwHF() const
Get HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1)
const int hwEta() const
Get compressed eta (returned int * 0.010875 = eta)
const std::map< int, int > & trackAddress() const
Get the track address (identifies track primitives used for reconstruction)
const int hwPhi() const
Get compressed local phi (returned int * 2*pi/576 = local phi in rad)
const int link() const
Get link on which the MicroGMT receives the candidate.
const tftype trackFinderType() const
Get track-finder which found the muon (bmtf, emtf_pos/emtf_neg or omtf_pos/omtf_neg) ...
const int processor() const
Get processor ID on which the candidate was found (0..5 for OMTF/EMTF; 0..11 for BMTF) ...
const int hwPt() const
Get compressed pT (returned int * 0.5 = pT (GeV))
const int hwSign() const
Get charge sign bit (charge = (-1)^(sign))