Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-06-22 02:23:37

0001 #ifndef L1ScoutingRawToDigi_shifts_h
0002 #define L1ScoutingRawToDigi_shifts_h
0003 
0004 #include <cstdint>
0005 
0006 namespace l1ScoutingRun3 {
0007 
0008   namespace ugmt {
0009     // struct shifts{
0010     struct shiftsMuon {
0011       // bx word: 16 bits used for actual bx, MS 4 bits are muon type
0012       // 0xf intermediate,
0013       // 0x0 final
0014       // following 4 bits for link id
0015       static constexpr uint32_t bx = 0;
0016       static constexpr uint32_t interm = 31;  // updated for new run3 format (tj)
0017       // shifts for muon 64 bits
0018       static constexpr uint32_t phiext = 0;
0019       static constexpr uint32_t pt = 10;
0020       static constexpr uint32_t qual = 19;
0021       static constexpr uint32_t etaext = 23;
0022       static constexpr uint32_t iso = 0;
0023       static constexpr uint32_t chrg = 2;
0024       static constexpr uint32_t chrgv = 3;
0025       static constexpr uint32_t index = 4;
0026       static constexpr uint32_t phi = 11;
0027       static constexpr uint32_t eta1 = 13;
0028       static constexpr uint32_t eta2 = 22;
0029       static constexpr uint32_t ptuncon = 21;
0030       static constexpr uint32_t dxy = 30;
0031     };
0032   }  // namespace ugmt
0033 
0034   namespace demux {
0035     // struct shiftsCaloJet{
0036     struct shiftsJet {
0037       static constexpr uint32_t ET = 0;
0038       static constexpr uint32_t eta = 11;
0039       static constexpr uint32_t phi = 19;
0040       static constexpr uint32_t disp = 27;
0041       static constexpr uint32_t qual = 28;
0042     };
0043 
0044     // struct shiftsCaloEGamma{
0045     struct shiftsEGamma {
0046       static constexpr uint32_t ET = 0;
0047       static constexpr uint32_t eta = 9;
0048       static constexpr uint32_t phi = 17;
0049       static constexpr uint32_t iso = 25;
0050     };
0051 
0052     // struct shiftsCaloTau{
0053     struct shiftsTau {
0054       static constexpr uint32_t ET = 0;
0055       static constexpr uint32_t eta = 9;
0056       static constexpr uint32_t phi = 17;
0057       static constexpr uint32_t iso = 25;
0058     };
0059 
0060     // struct shiftsCaloESums{
0061     struct shiftsESums {
0062       static constexpr uint32_t ETEt = 0;  // Et of ET object
0063       static constexpr uint32_t ETEttem = 12;
0064       static constexpr uint32_t ETMinBiasHF = 28;
0065 
0066       static constexpr uint32_t HTEt = 0;  // Et of HT object
0067       static constexpr uint32_t HTtowerCount = 12;
0068       static constexpr uint32_t HTMinBiasHF = 28;
0069 
0070       static constexpr uint32_t ETmissEt = 0;
0071       static constexpr uint32_t ETmissPhi = 12;
0072       static constexpr uint32_t ETmissASYMET = 20;
0073       static constexpr uint32_t ETmissMinBiasHF = 28;
0074 
0075       static constexpr uint32_t HTmissEt = 0;
0076       static constexpr uint32_t HTmissPhi = 12;
0077       static constexpr uint32_t HTmissASYMHT = 20;
0078       static constexpr uint32_t HTmissMinBiasHF = 28;
0079 
0080       static constexpr uint32_t ETHFmissEt = 0;
0081       static constexpr uint32_t ETHFmissPhi = 12;
0082       static constexpr uint32_t ETHFmissASYMETHF = 20;
0083       static constexpr uint32_t ETHFmissCENT = 28;
0084 
0085       static constexpr uint32_t HTHFmissEt = 0;
0086       static constexpr uint32_t HTHFmissPhi = 12;
0087       static constexpr uint32_t HTHFmissASYMHTHF = 20;
0088       static constexpr uint32_t HTHFmissCENT = 28;
0089     };
0090   }  // namespace demux
0091 
0092   namespace bmtf {
0093     struct shiftsStubs {
0094       static constexpr uint32_t valid = 0;
0095       static constexpr uint32_t phi = 1;
0096       static constexpr uint32_t phiB = 13;
0097       static constexpr uint32_t qual = 23;
0098       static constexpr uint32_t eta = 26;
0099       static constexpr uint32_t qeta = 33;
0100       static constexpr uint32_t station = 40;
0101       static constexpr uint32_t wheel = 42;
0102       static constexpr uint32_t reserved = 45;
0103       static constexpr uint32_t bx = 48;
0104     };
0105   }  // namespace bmtf
0106 
0107   struct header_shifts {
0108     static constexpr uint32_t bxmatch = 24;
0109     static constexpr uint32_t mAcount = 16;
0110     static constexpr uint32_t orbitmatch = 8;
0111     static constexpr uint32_t warningTestEnabled = 8;
0112     static constexpr uint32_t mBcount = 0;
0113     static constexpr uint32_t sBmtfCount = 0;
0114   };
0115 
0116 }  // namespace l1ScoutingRun3
0117 #endif  // L1ScoutingRawToDigi_shifts_h