CMS 3D CMS Logo

shifts.h
Go to the documentation of this file.
1 #ifndef L1ScoutingRawToDigi_shifts_h
2 #define L1ScoutingRawToDigi_shifts_h
3 
4 #include <cstdint>
5 
6 namespace l1ScoutingRun3 {
7 
8  namespace ugmt {
9  // struct shifts{
10  struct shiftsMuon {
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 = 0;
16  static constexpr uint32_t interm = 31; // updated for new run3 format (tj)
17  // shifts for muon 64 bits
18  static constexpr uint32_t phiext = 0;
19  static constexpr uint32_t pt = 10;
20  static constexpr uint32_t qual = 19;
21  static constexpr uint32_t etaext = 23;
22  static constexpr uint32_t iso = 0;
23  static constexpr uint32_t chrg = 2;
24  static constexpr uint32_t chrgv = 3;
25  static constexpr uint32_t index = 4;
26  static constexpr uint32_t phi = 11;
27  static constexpr uint32_t eta1 = 13;
28  static constexpr uint32_t eta2 = 22;
29  static constexpr uint32_t ptuncon = 21;
30  static constexpr uint32_t dxy = 30;
31  };
32  } // namespace ugmt
33 
34  namespace demux {
35  // struct shiftsCaloJet{
36  struct shiftsJet {
37  static constexpr uint32_t ET = 0;
38  static constexpr uint32_t eta = 11;
39  static constexpr uint32_t phi = 19;
40  static constexpr uint32_t disp = 27;
41  static constexpr uint32_t qual = 28;
42  };
43 
44  // struct shiftsCaloEGamma{
45  struct shiftsEGamma {
46  static constexpr uint32_t ET = 0;
47  static constexpr uint32_t eta = 9;
48  static constexpr uint32_t phi = 17;
49  static constexpr uint32_t iso = 25;
50  };
51 
52  // struct shiftsCaloTau{
53  struct shiftsTau {
54  static constexpr uint32_t ET = 0;
55  static constexpr uint32_t eta = 9;
56  static constexpr uint32_t phi = 17;
57  static constexpr uint32_t iso = 25;
58  };
59 
60  // struct shiftsCaloESums{
61  struct shiftsESums {
62  static constexpr uint32_t ETEt = 0; // Et of ET object
63  static constexpr uint32_t ETEttem = 12;
64  static constexpr uint32_t ETMinBiasHF = 28;
65 
66  static constexpr uint32_t HTEt = 0; // Et of HT object
67  static constexpr uint32_t HTtowerCount = 12;
68  static constexpr uint32_t HTMinBiasHF = 28;
69 
70  static constexpr uint32_t ETmissEt = 0;
71  static constexpr uint32_t ETmissPhi = 12;
72  static constexpr uint32_t ETmissASYMET = 20;
73  static constexpr uint32_t ETmissMinBiasHF = 28;
74 
75  static constexpr uint32_t HTmissEt = 0;
76  static constexpr uint32_t HTmissPhi = 12;
77  static constexpr uint32_t HTmissASYMHT = 20;
78  static constexpr uint32_t HTmissMinBiasHF = 28;
79 
80  static constexpr uint32_t ETHFmissEt = 0;
81  static constexpr uint32_t ETHFmissPhi = 12;
82  static constexpr uint32_t ETHFmissASYMETHF = 20;
83  static constexpr uint32_t ETHFmissCENT = 28;
84 
85  static constexpr uint32_t HTHFmissEt = 0;
86  static constexpr uint32_t HTHFmissPhi = 12;
87  static constexpr uint32_t HTHFmissASYMHTHF = 20;
88  static constexpr uint32_t HTHFmissCENT = 28;
89  };
90  } // namespace demux
91 
92  struct header_shifts {
93  static constexpr uint32_t bxmatch = 24;
94  static constexpr uint32_t mAcount = 16;
95  static constexpr uint32_t orbitmatch = 8;
96  static constexpr uint32_t warningTestEnabled = 8;
97  static constexpr uint32_t mBcount = 0;
98  static constexpr uint32_t sBmtfCount = 0;
99  };
100 
101 } // namespace l1ScoutingRun3
102 #endif // L1ScoutingRawToDigi_shifts_h
static constexpr uint32_t ET
Definition: shifts.h:46
static constexpr uint32_t qual
Definition: shifts.h:20
static constexpr uint32_t HTHFmissPhi
Definition: shifts.h:86
static constexpr uint32_t qual
Definition: shifts.h:41
static constexpr uint32_t iso
Definition: shifts.h:57
static constexpr uint32_t ptuncon
Definition: shifts.h:29
static constexpr uint32_t iso
Definition: shifts.h:49
static constexpr uint32_t ETHFmissCENT
Definition: shifts.h:83
static constexpr uint32_t disp
Definition: shifts.h:40
static constexpr uint32_t HTtowerCount
Definition: shifts.h:67
static constexpr uint32_t ETHFmissEt
Definition: shifts.h:80
static constexpr uint32_t ETmissMinBiasHF
Definition: shifts.h:73
static constexpr uint32_t chrgv
Definition: shifts.h:24
static constexpr uint32_t ETMinBiasHF
Definition: shifts.h:64
static constexpr uint32_t phi
Definition: shifts.h:48
static constexpr uint32_t HTHFmissCENT
Definition: shifts.h:88
static constexpr uint32_t ET
Definition: shifts.h:54
static constexpr uint32_t ETHFmissASYMETHF
Definition: shifts.h:82
static constexpr uint32_t ETEt
Definition: shifts.h:62
static constexpr uint32_t orbitmatch
Definition: shifts.h:95
static constexpr uint32_t HTMinBiasHF
Definition: shifts.h:68
static constexpr uint32_t phiext
Definition: shifts.h:18
static constexpr uint32_t HTEt
Definition: shifts.h:66
static constexpr uint32_t pt
Definition: shifts.h:19
static constexpr uint32_t eta
Definition: shifts.h:47
static constexpr uint32_t ETmissPhi
Definition: shifts.h:71
static constexpr uint32_t chrg
Definition: shifts.h:23
static constexpr uint32_t sBmtfCount
Definition: shifts.h:98
static constexpr uint32_t HTHFmissASYMHTHF
Definition: shifts.h:87
static constexpr uint32_t HTHFmissEt
Definition: shifts.h:85
static constexpr uint32_t eta
Definition: shifts.h:55
static constexpr uint32_t ETHFmissPhi
Definition: shifts.h:81
static constexpr uint32_t HTmissMinBiasHF
Definition: shifts.h:78
static constexpr uint32_t bx
Definition: shifts.h:15
static constexpr uint32_t ETmissEt
Definition: shifts.h:70
static constexpr uint32_t interm
Definition: shifts.h:16
static constexpr uint32_t iso
Definition: shifts.h:22
static constexpr uint32_t phi
Definition: shifts.h:56
static constexpr uint32_t HTmissEt
Definition: shifts.h:75
static constexpr uint32_t phi
Definition: shifts.h:26
static constexpr uint32_t eta
Definition: shifts.h:38
static constexpr uint32_t mBcount
Definition: shifts.h:97
static constexpr uint32_t mAcount
Definition: shifts.h:94
static constexpr uint32_t ET
Definition: shifts.h:37
static constexpr uint32_t HTmissASYMHT
Definition: shifts.h:77
static constexpr uint32_t HTmissPhi
Definition: shifts.h:76
static constexpr uint32_t ETmissASYMET
Definition: shifts.h:72
static constexpr uint32_t ETEttem
Definition: shifts.h:63
static constexpr uint32_t dxy
Definition: shifts.h:30
static constexpr uint32_t phi
Definition: shifts.h:39
static constexpr uint32_t index
Definition: shifts.h:25
static constexpr uint32_t bxmatch
Definition: shifts.h:93
static constexpr uint32_t eta1
Definition: shifts.h:27
static constexpr uint32_t warningTestEnabled
Definition: shifts.h:96
static constexpr uint32_t eta2
Definition: shifts.h:28
static constexpr uint32_t etaext
Definition: shifts.h:21