CMS 3D CMS Logo

masks.h
Go to the documentation of this file.
1 #ifndef L1ScoutingRawToDigi_masks_h
2 #define L1ScoutingRawToDigi_masks_h
3 
4 #include <cstdint>
5 #include "shifts.h"
6 
7 namespace l1ScoutingRun3 {
8 
9  namespace ugmt {
10  struct masksMuon {
11  // bx word: 16 bits used for actual bx, MS 4 bits are muon type
12  // 0xf intermediate,
13  // 0x0 final
14  // following 4 bits for link id
15  static constexpr uint32_t bx = 0x1fff;
16  static constexpr uint32_t interm = 0x0001;
17  //masks for muon 64 bits
18  static constexpr uint32_t phiext = 0x03ff;
19  static constexpr uint32_t pt = 0x01ff;
20  static constexpr uint32_t ptuncon = 0x00ff; // 8 bits
21  static constexpr uint32_t qual = 0x000f;
22  static constexpr uint32_t etaext = 0x01ff;
23  static constexpr uint32_t etaextv = 0x00ff;
24  static constexpr uint32_t etaexts = 0x0100;
25  static constexpr uint32_t iso = 0x0003;
26  static constexpr uint32_t chrg = 0x0001;
27  static constexpr uint32_t chrgv = 0x0001;
28  static constexpr uint32_t index = 0x007f;
29  static constexpr uint32_t phi = 0x03ff;
30  static constexpr uint32_t eta = 0x01ff;
31  static constexpr uint32_t etav = 0x00ff;
32  static constexpr uint32_t etas = 0x0100;
33  static constexpr uint32_t dxy = 0x0003;
34  };
35  } // namespace ugmt
36 
37  namespace demux {
38 
39  struct masksJet {
40  static constexpr uint32_t ET = 0x07ff;
41  static constexpr uint32_t eta = 0x00ff;
42  static constexpr uint32_t phi = 0x00ff;
43  static constexpr uint32_t disp = 0x0001;
44  static constexpr uint32_t qual = 0x0003;
45  };
46 
47  struct masksEGamma {
48  static constexpr uint32_t ET = 0x01ff;
49  static constexpr uint32_t eta = 0x00ff;
50  static constexpr uint32_t phi = 0x00ff;
51  static constexpr uint32_t iso = 0x0003;
52  };
53 
54  struct masksTau {
55  static constexpr uint32_t ET = 0x01ff;
56  static constexpr uint32_t eta = 0x00ff;
57  static constexpr uint32_t phi = 0x00ff;
58  static constexpr uint32_t iso = 0x0003;
59  };
60 
61  struct masksESums {
62  static constexpr uint32_t ETEt = 0x0fff; // Et of ET object
63  static constexpr uint32_t ETEttem = 0x0fff;
64  static constexpr uint32_t ETMinBiasHF = 0x000f;
65 
66  static constexpr uint32_t HTEt = 0x0fff; // Et of HT object
67  static constexpr uint32_t HTtowerCount = 0x1fff;
68  static constexpr uint32_t HTMinBiasHF = 0x000f;
69 
70  static constexpr uint32_t ETmissEt = 0x0fff;
71  static constexpr uint32_t ETmissPhi = 0x00ff;
72  static constexpr uint32_t ETmissASYMET = 0x00ff;
73  static constexpr uint32_t ETmissMinBiasHF = 0x000f;
74 
75  static constexpr uint32_t HTmissEt = 0x0fff;
76  static constexpr uint32_t HTmissPhi = 0x00ff;
77  static constexpr uint32_t HTmissASYMHT = 0x00ff;
78  static constexpr uint32_t HTmissMinBiasHF = 0x000f;
79 
80  static constexpr uint32_t ETHFmissEt = 0x0fff;
81  static constexpr uint32_t ETHFmissPhi = 0x00ff;
82  static constexpr uint32_t ETHFmissASYMETHF = 0x00ff;
83  static constexpr uint32_t ETHFmissCENT = 0x0003;
84 
85  static constexpr uint32_t HTHFmissEt = 0x0fff;
86  static constexpr uint32_t HTHFmissPhi = 0x00ff;
87  static constexpr uint32_t HTHFmissASYMHTHF = 0x00ff;
88  static constexpr uint32_t HTHFmissCENT = 0x0003;
89  };
90  } // namespace demux
91 
92  struct header_masks {
93  static constexpr uint32_t bxmatch = 0x00ff << header_shifts::bxmatch;
94  static constexpr uint32_t mAcount = 0x000f << header_shifts::mAcount;
95  static constexpr uint32_t orbitmatch = 0x00ff << header_shifts::orbitmatch;
96  static constexpr uint32_t warningTestEnabled = 0x0001 << header_shifts::warningTestEnabled;
97  static constexpr uint32_t mBcount = 0x000f << header_shifts::mBcount;
98  static constexpr uint32_t sBmtfCount = 0x000f << header_shifts::sBmtfCount;
99  };
100 
101 } // namespace l1ScoutingRun3
102 #endif // L1ScoutingRawToDigi_masks_h
static constexpr uint32_t phiext
Definition: masks.h:18
static constexpr uint32_t chrgv
Definition: masks.h:27
static constexpr uint32_t interm
Definition: masks.h:16
static constexpr uint32_t ET
Definition: masks.h:48
static constexpr uint32_t iso
Definition: masks.h:58
static constexpr uint32_t phi
Definition: masks.h:50
static constexpr uint32_t HTMinBiasHF
Definition: masks.h:68
static constexpr uint32_t HTHFmissPhi
Definition: masks.h:86
static constexpr uint32_t ETmissASYMET
Definition: masks.h:72
static constexpr uint32_t ETHFmissEt
Definition: masks.h:80
static constexpr uint32_t etav
Definition: masks.h:31
static constexpr uint32_t ETHFmissPhi
Definition: masks.h:81
static constexpr uint32_t ETmissMinBiasHF
Definition: masks.h:73
static constexpr uint32_t eta
Definition: masks.h:41
static constexpr uint32_t eta
Definition: masks.h:49
static constexpr uint32_t HTHFmissEt
Definition: masks.h:85
static constexpr uint32_t HTmissASYMHT
Definition: masks.h:77
static constexpr uint32_t HTEt
Definition: masks.h:66
static constexpr uint32_t warningTestEnabled
Definition: masks.h:96
static constexpr uint32_t dxy
Definition: masks.h:33
static constexpr uint32_t mAcount
Definition: masks.h:94
static constexpr uint32_t orbitmatch
Definition: shifts.h:95
static constexpr uint32_t bx
Definition: masks.h:15
static constexpr uint32_t ETHFmissASYMETHF
Definition: masks.h:82
static constexpr uint32_t ETHFmissCENT
Definition: masks.h:83
static constexpr uint32_t HTtowerCount
Definition: masks.h:67
static constexpr uint32_t qual
Definition: masks.h:44
static constexpr uint32_t iso
Definition: masks.h:51
static constexpr uint32_t phi
Definition: masks.h:57
static constexpr uint32_t ET
Definition: masks.h:55
static constexpr uint32_t orbitmatch
Definition: masks.h:95
static constexpr uint32_t HTmissMinBiasHF
Definition: masks.h:78
static constexpr uint32_t etaexts
Definition: masks.h:24
static constexpr uint32_t sBmtfCount
Definition: shifts.h:98
static constexpr uint32_t disp
Definition: masks.h:43
static constexpr uint32_t ptuncon
Definition: masks.h:20
static constexpr uint32_t phi
Definition: masks.h:42
static constexpr uint32_t ETmissEt
Definition: masks.h:70
static constexpr uint32_t iso
Definition: masks.h:25
static constexpr uint32_t pt
Definition: masks.h:19
static constexpr uint32_t mBcount
Definition: masks.h:97
static constexpr uint32_t ETmissPhi
Definition: masks.h:71
static constexpr uint32_t phi
Definition: masks.h:29
static constexpr uint32_t etaext
Definition: masks.h:22
static constexpr uint32_t qual
Definition: masks.h:21
static constexpr uint32_t ETEttem
Definition: masks.h:63
static constexpr uint32_t mBcount
Definition: shifts.h:97
static constexpr uint32_t mAcount
Definition: shifts.h:94
static constexpr uint32_t ETMinBiasHF
Definition: masks.h:64
static constexpr uint32_t etaextv
Definition: masks.h:23
static constexpr uint32_t HTHFmissASYMHTHF
Definition: masks.h:87
static constexpr uint32_t sBmtfCount
Definition: masks.h:98
static constexpr uint32_t index
Definition: masks.h:28
static constexpr uint32_t bxmatch
Definition: masks.h:93
static constexpr uint32_t bxmatch
Definition: shifts.h:93
static constexpr uint32_t eta
Definition: masks.h:56
static constexpr uint32_t warningTestEnabled
Definition: shifts.h:96
static constexpr uint32_t chrg
Definition: masks.h:26
static constexpr uint32_t ET
Definition: masks.h:40
static constexpr uint32_t eta
Definition: masks.h:30
static constexpr uint32_t etas
Definition: masks.h:32
static constexpr uint32_t HTmissEt
Definition: masks.h:75
static constexpr uint32_t HTmissPhi
Definition: masks.h:76
static constexpr uint32_t ETEt
Definition: masks.h:62
static constexpr uint32_t HTHFmissCENT
Definition: masks.h:88