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(
10  RegionalMuonCand& mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63, int proc, tftype tf, bool isRun3);
11  static void fillRegionalMuonCand(RegionalMuonCand& mu, uint64_t dataword, int proc, tftype tf, bool isRun3);
12  static void generatePackedDataWords(const RegionalMuonCand& mu,
13  uint32_t& raw_data_00_31,
14  uint32_t& raw_data_32_63,
15  bool isRun3);
17  static int generateRawTrkAddress(const RegionalMuonCand&, bool isKalman);
18 
19  static constexpr unsigned ptMask_ = 0x1FF;
20  static constexpr unsigned ptShift_ = 0;
21  static constexpr unsigned qualMask_ = 0xF;
22  static constexpr unsigned qualShift_ = 9;
23  static constexpr unsigned absEtaMask_ = 0xFF;
24  static constexpr unsigned absEtaShift_ = 13;
25  static constexpr unsigned etaSignShift_ = 21;
26  static constexpr unsigned hfMask_ = 0x1;
27  static constexpr unsigned hfShift_ = 22;
28  static constexpr unsigned absPhiMask_ = 0x7F;
29  static constexpr unsigned absPhiShift_ = 23;
30  static constexpr unsigned phiSignShift_ = 30;
31  static constexpr unsigned signShift_ = 0;
32  static constexpr unsigned signValidShift_ = 1;
33  static constexpr unsigned dxyMask_ = 0x3;
34  static constexpr unsigned bmtfDxyShift_ = 2;
35  static constexpr unsigned emtfDxyShift_ = 29;
36  static constexpr unsigned ptUnconstrainedMask_ = 0xFF;
37  static constexpr unsigned bmtfPtUnconstrainedShift_ = 23;
38  static constexpr unsigned emtfPtUnconstrainedShift_ = 20;
39  static constexpr unsigned trackAddressMask_ = 0x1FFFFFFF;
40  static constexpr unsigned trackAddressShift_ = 2;
41  // relative shifts within track address
42  static constexpr unsigned bmtfTrAddrSegSelMask_ = 0xF;
43  static constexpr unsigned bmtfTrAddrSegSelShift_ = 21;
44  static constexpr unsigned bmtfTrAddrDetSideShift_ = 20;
45  static constexpr unsigned bmtfTrAddrWheelMask_ = 0x3;
46  static constexpr unsigned bmtfTrAddrWheelShift_ = 18;
47  static constexpr unsigned bmtfTrAddrStat1Mask_ = 0x3;
48  static constexpr unsigned bmtfTrAddrStat1Shift_ = 14;
49  static constexpr unsigned bmtfTrAddrStat2Mask_ = 0xF;
50  static constexpr unsigned bmtfTrAddrStat2Shift_ = 10;
51  static constexpr unsigned bmtfTrAddrStat3Mask_ = 0xF;
52  static constexpr unsigned bmtfTrAddrStat3Shift_ = 6;
53  static constexpr unsigned bmtfTrAddrStat4Mask_ = 0xF;
54  static constexpr unsigned bmtfTrAddrStat4Shift_ = 2;
55 
56  static constexpr unsigned emtfTrAddrMe1SegShift_ = 0;
57  static constexpr unsigned emtfTrAddrMe1ChShift_ = 1;
58  static constexpr unsigned emtfTrAddrMe1ChMask_ = 0x7;
59  static constexpr unsigned emtfTrAddrMe2SegShift_ = 4;
60  static constexpr unsigned emtfTrAddrMe2ChShift_ = 5;
61  static constexpr unsigned emtfTrAddrMe2ChMask_ = 0x7;
62  static constexpr unsigned emtfTrAddrMe3SegShift_ = 8;
63  static constexpr unsigned emtfTrAddrMe3ChShift_ = 9;
64  static constexpr unsigned emtfTrAddrMe3ChMask_ = 0x7;
65  static constexpr unsigned emtfTrAddrMe4SegShift_ = 12;
66  static constexpr unsigned emtfTrAddrMe4ChShift_ = 13;
67  static constexpr unsigned emtfTrAddrMe4ChMask_ = 0x7;
68  static constexpr unsigned emtfTrAddrTrkNumShift_ = 16;
69  static constexpr unsigned emtfTrAddrTrkNumMask_ = 0x3;
70  static constexpr unsigned emtfTrAddrBxShift_ = 18;
71  static constexpr unsigned emtfTrAddrBxMask_ = 0x7FF;
72 
73  static constexpr unsigned omtfTrAddrLayersShift_ = 0;
74  static constexpr unsigned omtfTrAddrLayersMask_ = 0x3FFFF;
75  static constexpr unsigned omtfTrAddrWeightShift_ = 18;
76  static constexpr unsigned omtfTrAddrWeightMask_ = 0x1F;
77  };
78 } // namespace l1t
79 
80 #endif
l1t::RegionalMuonRawDigiTranslator::generate64bitDataWord
static uint64_t generate64bitDataWord(const RegionalMuonCand &mu, bool isRun3)
Definition: RegionalMuonRawDigiTranslator.cc:138
l1t::RegionalMuonRawDigiTranslator::trackAddressShift_
static constexpr unsigned trackAddressShift_
Definition: RegionalMuonRawDigiTranslator.h:40
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat4Shift_
static constexpr unsigned bmtfTrAddrStat4Shift_
Definition: RegionalMuonRawDigiTranslator.h:54
l1t::RegionalMuonRawDigiTranslator::emtfDxyShift_
static constexpr unsigned emtfDxyShift_
Definition: RegionalMuonRawDigiTranslator.h:35
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe1SegShift_
static constexpr unsigned emtfTrAddrMe1SegShift_
Definition: RegionalMuonRawDigiTranslator.h:56
l1t::tftype
tftype
Definition: RegionalMuonCandFwd.h:8
amptDefaultParameters_cff.mu
mu
Definition: amptDefaultParameters_cff.py:16
l1t::RegionalMuonRawDigiTranslator::ptUnconstrainedMask_
static constexpr unsigned ptUnconstrainedMask_
Definition: RegionalMuonRawDigiTranslator.h:36
l1t::RegionalMuonRawDigiTranslator::emtfPtUnconstrainedShift_
static constexpr unsigned emtfPtUnconstrainedShift_
Definition: RegionalMuonRawDigiTranslator.h:38
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe3SegShift_
static constexpr unsigned emtfTrAddrMe3SegShift_
Definition: RegionalMuonRawDigiTranslator.h:62
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe4ChShift_
static constexpr unsigned emtfTrAddrMe4ChShift_
Definition: RegionalMuonRawDigiTranslator.h:66
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrSegSelShift_
static constexpr unsigned bmtfTrAddrSegSelShift_
Definition: RegionalMuonRawDigiTranslator.h:43
l1t::RegionalMuonRawDigiTranslator::fillRegionalMuonCand
static void fillRegionalMuonCand(RegionalMuonCand &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63, int proc, tftype tf, bool isRun3)
Definition: RegionalMuonRawDigiTranslator.cc:4
l1t::RegionalMuonRawDigiTranslator::qualShift_
static constexpr unsigned qualShift_
Definition: RegionalMuonRawDigiTranslator.h:22
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrSegSelMask_
static constexpr unsigned bmtfTrAddrSegSelMask_
Definition: RegionalMuonRawDigiTranslator.h:42
l1t::RegionalMuonRawDigiTranslator::etaSignShift_
static constexpr unsigned etaSignShift_
Definition: RegionalMuonRawDigiTranslator.h:25
l1t::RegionalMuonRawDigiTranslator::omtfTrAddrWeightShift_
static constexpr unsigned omtfTrAddrWeightShift_
Definition: RegionalMuonRawDigiTranslator.h:75
l1t::RegionalMuonRawDigiTranslator::qualMask_
static constexpr unsigned qualMask_
Definition: RegionalMuonRawDigiTranslator.h:21
l1t::RegionalMuonRawDigiTranslator::signValidShift_
static constexpr unsigned signValidShift_
Definition: RegionalMuonRawDigiTranslator.h:32
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe2ChMask_
static constexpr unsigned emtfTrAddrMe2ChMask_
Definition: RegionalMuonRawDigiTranslator.h:61
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrTrkNumShift_
static constexpr unsigned emtfTrAddrTrkNumShift_
Definition: RegionalMuonRawDigiTranslator.h:68
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat3Shift_
static constexpr unsigned bmtfTrAddrStat3Shift_
Definition: RegionalMuonRawDigiTranslator.h:52
l1t::RegionalMuonRawDigiTranslator::omtfTrAddrWeightMask_
static constexpr unsigned omtfTrAddrWeightMask_
Definition: RegionalMuonRawDigiTranslator.h:76
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe3ChMask_
static constexpr unsigned emtfTrAddrMe3ChMask_
Definition: RegionalMuonRawDigiTranslator.h:64
l1t::RegionalMuonRawDigiTranslator::generateRawTrkAddress
static int generateRawTrkAddress(const RegionalMuonCand &, bool isKalman)
Definition: RegionalMuonRawDigiTranslator.cc:146
l1t::RegionalMuonRawDigiTranslator::hfShift_
static constexpr unsigned hfShift_
Definition: RegionalMuonRawDigiTranslator.h:27
l1t::RegionalMuonRawDigiTranslator::absPhiMask_
static constexpr unsigned absPhiMask_
Definition: RegionalMuonRawDigiTranslator.h:28
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe1ChShift_
static constexpr unsigned emtfTrAddrMe1ChShift_
Definition: RegionalMuonRawDigiTranslator.h:57
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe2ChShift_
static constexpr unsigned emtfTrAddrMe2ChShift_
Definition: RegionalMuonRawDigiTranslator.h:60
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrWheelShift_
static constexpr unsigned bmtfTrAddrWheelShift_
Definition: RegionalMuonRawDigiTranslator.h:46
ValidateTausOnZEEFastSim_cff.proc
proc
Definition: ValidateTausOnZEEFastSim_cff.py:6
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrWheelMask_
static constexpr unsigned bmtfTrAddrWheelMask_
Definition: RegionalMuonRawDigiTranslator.h:45
l1t::RegionalMuonRawDigiTranslator::trackAddressMask_
static constexpr unsigned trackAddressMask_
Definition: RegionalMuonRawDigiTranslator.h:39
l1t
delete x;
Definition: CaloConfig.h:22
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrTrkNumMask_
static constexpr unsigned emtfTrAddrTrkNumMask_
Definition: RegionalMuonRawDigiTranslator.h:69
L1TdeCSCTPG_cfi.isRun3
isRun3
Definition: L1TdeCSCTPG_cfi.py:32
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe1ChMask_
static constexpr unsigned emtfTrAddrMe1ChMask_
Definition: RegionalMuonRawDigiTranslator.h:58
l1t::RegionalMuonRawDigiTranslator::signShift_
static constexpr unsigned signShift_
Definition: RegionalMuonRawDigiTranslator.h:31
l1t::RegionalMuonRawDigiTranslator::generatePackedDataWords
static void generatePackedDataWords(const RegionalMuonCand &mu, uint32_t &raw_data_00_31, uint32_t &raw_data_32_63, bool isRun3)
Definition: RegionalMuonRawDigiTranslator.cc:107
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrBxMask_
static constexpr unsigned emtfTrAddrBxMask_
Definition: RegionalMuonRawDigiTranslator.h:71
l1t::RegionalMuonRawDigiTranslator::omtfTrAddrLayersShift_
static constexpr unsigned omtfTrAddrLayersShift_
Definition: RegionalMuonRawDigiTranslator.h:73
l1t::RegionalMuonRawDigiTranslator::hfMask_
static constexpr unsigned hfMask_
Definition: RegionalMuonRawDigiTranslator.h:26
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrBxShift_
static constexpr unsigned emtfTrAddrBxShift_
Definition: RegionalMuonRawDigiTranslator.h:70
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat1Shift_
static constexpr unsigned bmtfTrAddrStat1Shift_
Definition: RegionalMuonRawDigiTranslator.h:48
l1t::RegionalMuonRawDigiTranslator::ptMask_
static constexpr unsigned ptMask_
Definition: RegionalMuonRawDigiTranslator.h:19
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat2Shift_
static constexpr unsigned bmtfTrAddrStat2Shift_
Definition: RegionalMuonRawDigiTranslator.h:50
l1t::RegionalMuonRawDigiTranslator::bmtfDxyShift_
static constexpr unsigned bmtfDxyShift_
Definition: RegionalMuonRawDigiTranslator.h:34
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat4Mask_
static constexpr unsigned bmtfTrAddrStat4Mask_
Definition: RegionalMuonRawDigiTranslator.h:53
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe3ChShift_
static constexpr unsigned emtfTrAddrMe3ChShift_
Definition: RegionalMuonRawDigiTranslator.h:63
l1t::RegionalMuonRawDigiTranslator
Definition: RegionalMuonRawDigiTranslator.h:7
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe4SegShift_
static constexpr unsigned emtfTrAddrMe4SegShift_
Definition: RegionalMuonRawDigiTranslator.h:65
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrDetSideShift_
static constexpr unsigned bmtfTrAddrDetSideShift_
Definition: RegionalMuonRawDigiTranslator.h:44
RegionalMuonCand.h
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe2SegShift_
static constexpr unsigned emtfTrAddrMe2SegShift_
Definition: RegionalMuonRawDigiTranslator.h:59
l1t::RegionalMuonRawDigiTranslator::bmtfPtUnconstrainedShift_
static constexpr unsigned bmtfPtUnconstrainedShift_
Definition: RegionalMuonRawDigiTranslator.h:37
l1t::RegionalMuonRawDigiTranslator::emtfTrAddrMe4ChMask_
static constexpr unsigned emtfTrAddrMe4ChMask_
Definition: RegionalMuonRawDigiTranslator.h:67
l1t::RegionalMuonRawDigiTranslator::phiSignShift_
static constexpr unsigned phiSignShift_
Definition: RegionalMuonRawDigiTranslator.h:30
l1t::RegionalMuonRawDigiTranslator::absEtaMask_
static constexpr unsigned absEtaMask_
Definition: RegionalMuonRawDigiTranslator.h:23
l1t::RegionalMuonRawDigiTranslator::absPhiShift_
static constexpr unsigned absPhiShift_
Definition: RegionalMuonRawDigiTranslator.h:29
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
l1t::RegionalMuonRawDigiTranslator::dxyMask_
static constexpr unsigned dxyMask_
Definition: RegionalMuonRawDigiTranslator.h:33
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat1Mask_
static constexpr unsigned bmtfTrAddrStat1Mask_
Definition: RegionalMuonRawDigiTranslator.h:47
l1t::RegionalMuonRawDigiTranslator::omtfTrAddrLayersMask_
static constexpr unsigned omtfTrAddrLayersMask_
Definition: RegionalMuonRawDigiTranslator.h:74
l1t::RegionalMuonCand
Definition: RegionalMuonCand.h:8
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat2Mask_
static constexpr unsigned bmtfTrAddrStat2Mask_
Definition: RegionalMuonRawDigiTranslator.h:49
l1t::RegionalMuonRawDigiTranslator::ptShift_
static constexpr unsigned ptShift_
Definition: RegionalMuonRawDigiTranslator.h:20
l1t::RegionalMuonRawDigiTranslator::bmtfTrAddrStat3Mask_
static constexpr unsigned bmtfTrAddrStat3Mask_
Definition: RegionalMuonRawDigiTranslator.h:51
l1t::RegionalMuonRawDigiTranslator::absEtaShift_
static constexpr unsigned absEtaShift_
Definition: RegionalMuonRawDigiTranslator.h:24