CMS 3D CMS Logo

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 emtfTrAddrMe1SegShift_ = 0;
46  static const unsigned emtfTrAddrMe1ChShift_ = 1;
47  static const unsigned emtfTrAddrMe1ChMask_ = 0x7;
48  static const unsigned emtfTrAddrMe2SegShift_ = 4;
49  static const unsigned emtfTrAddrMe2ChShift_ = 5;
50  static const unsigned emtfTrAddrMe2ChMask_ = 0x7;
51  static const unsigned emtfTrAddrMe3SegShift_ = 8;
52  static const unsigned emtfTrAddrMe3ChShift_ = 9;
53  static const unsigned emtfTrAddrMe3ChMask_ = 0x7;
54  static const unsigned emtfTrAddrMe4SegShift_ = 12;
55  static const unsigned emtfTrAddrMe4ChShift_ = 13;
56  static const unsigned emtfTrAddrMe4ChMask_ = 0x7;
57  static const unsigned emtfTrAddrTrkNumShift_ = 16;
58  static const unsigned emtfTrAddrTrkNumMask_ = 0x3;
59  static const unsigned emtfTrAddrBxShift_ = 18;
60  static const unsigned emtfTrAddrBxMask_ = 0x7FF;
61 
62  static const unsigned omtfTrAddrLayersShift_ = 0;
63  static const unsigned omtfTrAddrLayersMask_ = 0x3FFFF;
64  static const unsigned omtfTrAddrWeightShift_ = 18;
65  static const unsigned omtfTrAddrWeightMask_ = 0x1F;
66  };
67 } // namespace l1t
68 
69 #endif
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe3ChShift_
static const unsigned emtfTrAddrMe3ChShift_
Definition: RegionalMuonRawDigiTranslator.h:52
l1t::RegionalMuonRawDigiTranslator::phiSignShift_
static const unsigned phiSignShift_
Definition: RegionalMuonRawDigiTranslator.h:25
l1t::RegionalMuonRawDigiTranslator::signValidShift_
static const unsigned signValidShift_
Definition: RegionalMuonRawDigiTranslator.h:27
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe1SegShift_
static const unsigned emtfTrAddrMe1SegShift_
Definition: RegionalMuonRawDigiTranslator.h:45
l1t::RegionalMuonRawDigiTranslator::omtfTrAddrLayersShift_
static const unsigned omtfTrAddrLayersShift_
Definition: RegionalMuonRawDigiTranslator.h:62
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrBxShift_
static const unsigned emtfTrAddrBxShift_
Definition: RegionalMuonRawDigiTranslator.h:59
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat4Shift_
static const unsigned bmtfTrAddrStat4Shift_
Definition: RegionalMuonRawDigiTranslator.h:43
l1t::tftype
tftype
Definition: RegionalMuonCandFwd.h:8
l1t::RegionalMuonRawDigiTranslator::absEtaMask_
static const unsigned absEtaMask_
Definition: RegionalMuonRawDigiTranslator.h:18
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat2Mask_
static const unsigned bmtfTrAddrStat2Mask_
Definition: RegionalMuonRawDigiTranslator.h:38
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrTrkNumShift_
static const unsigned emtfTrAddrTrkNumShift_
Definition: RegionalMuonRawDigiTranslator.h:57
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrTrkNumMask_
static const unsigned emtfTrAddrTrkNumMask_
Definition: RegionalMuonRawDigiTranslator.h:58
l1t::RegionalMuonRawDigiTranslator::absPhiShift_
static const unsigned absPhiShift_
Definition: RegionalMuonRawDigiTranslator.h:24
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe4ChShift_
static const unsigned emtfTrAddrMe4ChShift_
Definition: RegionalMuonRawDigiTranslator.h:55
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrDetSideShift_
static const unsigned bmtfTrAddrDetSideShift_
Definition: RegionalMuonRawDigiTranslator.h:33
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrWheelMask_
static const unsigned bmtfTrAddrWheelMask_
Definition: RegionalMuonRawDigiTranslator.h:34
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrSegSelMask_
static const unsigned bmtfTrAddrSegSelMask_
Definition: RegionalMuonRawDigiTranslator.h:31
l1t::RegionalMuonRawDigiTranslator::absEtaShift_
static const unsigned absEtaShift_
Definition: RegionalMuonRawDigiTranslator.h:19
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrWheelShift_
static const unsigned bmtfTrAddrWheelShift_
Definition: RegionalMuonRawDigiTranslator.h:35
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe1ChMask_
static const unsigned emtfTrAddrMe1ChMask_
Definition: RegionalMuonRawDigiTranslator.h:47
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat3Shift_
static const unsigned bmtfTrAddrStat3Shift_
Definition: RegionalMuonRawDigiTranslator.h:41
l1t::RegionalMuonRawDigiTranslator::ptMask_
static const unsigned ptMask_
Definition: RegionalMuonRawDigiTranslator.h:14
l1t::RegionalMuonRawDigiTranslator::omtfTrAddrWeightMask_
static const unsigned omtfTrAddrWeightMask_
Definition: RegionalMuonRawDigiTranslator.h:65
l1t::RegionalMuonRawDigiTranslator::qualShift_
static const unsigned qualShift_
Definition: RegionalMuonRawDigiTranslator.h:17
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat1Shift_
static const unsigned bmtfTrAddrStat1Shift_
Definition: RegionalMuonRawDigiTranslator.h:37
l1t
delete x;
Definition: CaloConfig.h:22
l1t::RegionalMuonRawDigiTranslator::fillRegionalMuonCand
static void fillRegionalMuonCand(RegionalMuonCand &, uint32_t, uint32_t, int, tftype)
Definition: RegionalMuonRawDigiTranslator.cc:4
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat1Mask_
static const unsigned bmtfTrAddrStat1Mask_
Definition: RegionalMuonRawDigiTranslator.h:36
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe3ChMask_
static const unsigned emtfTrAddrMe3ChMask_
Definition: RegionalMuonRawDigiTranslator.h:53
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe2SegShift_
static const unsigned emtfTrAddrMe2SegShift_
Definition: RegionalMuonRawDigiTranslator.h:48
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe2ChMask_
static const unsigned emtfTrAddrMe2ChMask_
Definition: RegionalMuonRawDigiTranslator.h:50
l1t::RegionalMuonRawDigiTranslator::qualMask_
static const unsigned qualMask_
Definition: RegionalMuonRawDigiTranslator.h:16
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat2Shift_
static const unsigned bmtfTrAddrStat2Shift_
Definition: RegionalMuonRawDigiTranslator.h:39
l1t::RegionalMuonRawDigiTranslator::ptShift_
static const unsigned ptShift_
Definition: RegionalMuonRawDigiTranslator.h:15
l1t::RegionalMuonRawDigiTranslator::hfMask_
static const unsigned hfMask_
Definition: RegionalMuonRawDigiTranslator.h:21
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrBxMask_
static const unsigned emtfTrAddrBxMask_
Definition: RegionalMuonRawDigiTranslator.h:60
l1t::RegionalMuonRawDigiTranslator::hfShift_
static const unsigned hfShift_
Definition: RegionalMuonRawDigiTranslator.h:22
l1t::RegionalMuonRawDigiTranslator::generatePackedDataWords
static void generatePackedDataWords(const RegionalMuonCand &, uint32_t &, uint32_t &)
Definition: RegionalMuonRawDigiTranslator.cc:88
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat3Mask_
static const unsigned bmtfTrAddrStat3Mask_
Definition: RegionalMuonRawDigiTranslator.h:40
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe4SegShift_
static const unsigned emtfTrAddrMe4SegShift_
Definition: RegionalMuonRawDigiTranslator.h:54
l1t::RegionalMuonRawDigiTranslator
Definition: RegionalMuonRawDigiTranslator.h:7
l1t::RegionalMuonRawDigiTranslator::trackAddressShift_
static const unsigned trackAddressShift_
Definition: RegionalMuonRawDigiTranslator.h:29
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe2ChShift_
static const unsigned emtfTrAddrMe2ChShift_
Definition: RegionalMuonRawDigiTranslator.h:49
RegionalMuonCand.h
l1t::RegionalMuonRawDigiTranslator::omtfTrAddrLayersMask_
static const unsigned omtfTrAddrLayersMask_
Definition: RegionalMuonRawDigiTranslator.h:63
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe4ChMask_
static const unsigned emtfTrAddrMe4ChMask_
Definition: RegionalMuonRawDigiTranslator.h:56
l1t::RegionalMuonRawDigiTranslator::signShift_
static const unsigned signShift_
Definition: RegionalMuonRawDigiTranslator.h:26
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe1ChShift_
static const unsigned emtfTrAddrMe1ChShift_
Definition: RegionalMuonRawDigiTranslator.h:46
l1t::RegionalMuonRawDigiTranslator::omtfTrAddrWeightShift_
static const unsigned omtfTrAddrWeightShift_
Definition: RegionalMuonRawDigiTranslator.h:64
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
l1t::RegionalMuonRawDigiTranslator::absPhiMask_
static const unsigned absPhiMask_
Definition: RegionalMuonRawDigiTranslator.h:23
l1t::RegionalMuonRawDigiTranslator::generate64bitDataWord
static uint64_t generate64bitDataWord(const RegionalMuonCand &)
Definition: RegionalMuonRawDigiTranslator.cc:175
l1t::RegionalMuonRawDigiTranslator::trackAddressMask_
static const unsigned trackAddressMask_
Definition: RegionalMuonRawDigiTranslator.h:28
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat4Mask_
static const unsigned bmtfTrAddrStat4Mask_
Definition: RegionalMuonRawDigiTranslator.h:42
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrSegSelShift_
static const unsigned bmtfTrAddrSegSelShift_
Definition: RegionalMuonRawDigiTranslator.h:32
l1t::RegionalMuonCand
Definition: RegionalMuonCand.h:8
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe3SegShift_
static const unsigned emtfTrAddrMe3SegShift_
Definition: RegionalMuonRawDigiTranslator.h:51
l1t::RegionalMuonRawDigiTranslator::etaSignShift_
static const unsigned etaSignShift_
Definition: RegionalMuonRawDigiTranslator.h:20