CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RegionalMuonRawDigiTranslator.h
Go to the documentation of this file.
1 #ifndef RegionalMuonRawDigiTranslator_h
2 #define RegionalMuonRawDigiTranslator_h
3 
5 
6 namespace l1t {
8  public:
9  static void fillRegionalMuonCand(RegionalMuonCand&, uint32_t, uint32_t, int, tftype);
11  static void generatePackedDataWords(const RegionalMuonCand&, uint32_t&, uint32_t&);
13 
14  static const unsigned ptMask_ = 0x1FF;
15  static const unsigned ptShift_ = 0;
16  static const unsigned qualMask_ = 0xF;
17  static const unsigned qualShift_ = 9;
18  static const unsigned absEtaMask_ = 0xFF;
19  static const unsigned absEtaShift_ = 13;
20  static const unsigned etaSignShift_ = 21;
21  static const unsigned hfMask_ = 0x1;
22  static const unsigned hfShift_ = 22;
23  static const unsigned absPhiMask_ = 0x7F;
24  static const unsigned absPhiShift_ = 23;
25  static const unsigned phiSignShift_ = 30;
26  static const unsigned signShift_ = 0;
27  static const unsigned signValidShift_ = 1;
28  static const unsigned trackAddressMask_ = 0x1FFFFFFF;
29  static const unsigned trackAddressShift_ = 2;
30  // relative shifts within track address
31  static const unsigned bmtfTrAddrSegSelMask_ = 0xF;
32  static const unsigned bmtfTrAddrSegSelShift_ = 21;
33  static const unsigned bmtfTrAddrDetSideShift_ = 20;
34  static const unsigned bmtfTrAddrWheelMask_ = 0x3;
35  static const unsigned bmtfTrAddrWheelShift_ = 18;
36  static const unsigned bmtfTrAddrStat1Mask_ = 0x3;
37  static const unsigned bmtfTrAddrStat1Shift_ = 14;
38  static const unsigned bmtfTrAddrStat2Mask_ = 0xF;
39  static const unsigned bmtfTrAddrStat2Shift_ = 10;
40  static const unsigned bmtfTrAddrStat3Mask_ = 0xF;
41  static const unsigned bmtfTrAddrStat3Shift_ = 6;
42  static const unsigned bmtfTrAddrStat4Mask_ = 0xF;
43  static const unsigned bmtfTrAddrStat4Shift_ = 2;
44 
45  static const unsigned emtfTrAddrSectIdMask_ = 0xF;
46  static const unsigned emtfTrAddrSectIdShift_ = 0;
47  static const unsigned emtfTrAddrMe1Mask_ = 0x1F;
48  static const unsigned emtfTrAddrMe1Shift_ = 4;
49  static const unsigned emtfTrAddrMe1SubSecIdShift_ = 9;
50  static const unsigned emtfTrAddrMe1OrderShift_ = 10;
51  static const unsigned emtfTrAddrMe2Mask_ = 0xF;
52  static const unsigned emtfTrAddrMe2Shift_ = 11;
53  static const unsigned emtfTrAddrMe2SubSecIdShift_ = 15;
54  static const unsigned emtfTrAddrMe2OrderShift_ = 16;
55  static const unsigned emtfTrAddrMe3Mask_ = 0x3;
56  static const unsigned emtfTrAddrMe3Shift_ = 17;
57  static const unsigned emtfTrAddrMe3SubSecIdShift_ = 19;
58  static const unsigned emtfTrAddrMe3OrderShift_ = 20;
59  static const unsigned emtfTrAddrMe4Mask_ = 0x3;
60  static const unsigned emtfTrAddrMe4Shift_ = 21;
61  static const unsigned emtfTrAddrMe4SubSecIdShift_ = 23;
62  static const unsigned emtfTrAddrMe4OrderShift_ = 24;
63  };
64 }
65 
66 #endif
static void generatePackedDataWords(const RegionalMuonCand &, uint32_t &, uint32_t &)
unsigned long long uint64_t
Definition: Time.h:15
static void fillRegionalMuonCand(RegionalMuonCand &, uint32_t, uint32_t, int, tftype)
static uint64_t generate64bitDataWord(const RegionalMuonCand &)