header_shifts

shiftsEGamma

shiftsESums

shiftsJet

shiftsMuon

shiftsStubs

shiftsTau

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
#ifndef L1ScoutingRawToDigi_shifts_h
#define L1ScoutingRawToDigi_shifts_h

#include <cstdint>

namespace l1ScoutingRun3 {

  namespace ugmt {
    // struct shifts{
    struct shiftsMuon {
      // bx word: 16 bits used for actual bx, MS 4 bits are muon type
      // 0xf intermediate,
      // 0x0 final
      // following 4 bits for link id
      static constexpr uint32_t bx = 0;
      static constexpr uint32_t interm = 31;  // updated for new run3 format (tj)
      // shifts for muon 64 bits
      static constexpr uint32_t phiext = 0;
      static constexpr uint32_t pt = 10;
      static constexpr uint32_t qual = 19;
      static constexpr uint32_t etaext = 23;
      static constexpr uint32_t iso = 0;
      static constexpr uint32_t chrg = 2;
      static constexpr uint32_t chrgv = 3;
      static constexpr uint32_t index = 4;
      static constexpr uint32_t phi = 11;
      static constexpr uint32_t eta1 = 13;
      static constexpr uint32_t eta2 = 22;
      static constexpr uint32_t ptuncon = 21;
      static constexpr uint32_t dxy = 30;
    };
  }  // namespace ugmt

  namespace demux {
    // struct shiftsCaloJet{
    struct shiftsJet {
      static constexpr uint32_t ET = 0;
      static constexpr uint32_t eta = 11;
      static constexpr uint32_t phi = 19;
      static constexpr uint32_t disp = 27;
      static constexpr uint32_t qual = 28;
    };

    // struct shiftsCaloEGamma{
    struct shiftsEGamma {
      static constexpr uint32_t ET = 0;
      static constexpr uint32_t eta = 9;
      static constexpr uint32_t phi = 17;
      static constexpr uint32_t iso = 25;
    };

    // struct shiftsCaloTau{
    struct shiftsTau {
      static constexpr uint32_t ET = 0;
      static constexpr uint32_t eta = 9;
      static constexpr uint32_t phi = 17;
      static constexpr uint32_t iso = 25;
    };

    // struct shiftsCaloESums{
    struct shiftsESums {
      static constexpr uint32_t ETEt = 0;  // Et of ET object
      static constexpr uint32_t ETEttem = 12;
      static constexpr uint32_t ETMinBiasHF = 28;

      static constexpr uint32_t HTEt = 0;  // Et of HT object
      static constexpr uint32_t HTtowerCount = 12;
      static constexpr uint32_t HTMinBiasHF = 28;

      static constexpr uint32_t ETmissEt = 0;
      static constexpr uint32_t ETmissPhi = 12;
      static constexpr uint32_t ETmissASYMET = 20;
      static constexpr uint32_t ETmissMinBiasHF = 28;

      static constexpr uint32_t HTmissEt = 0;
      static constexpr uint32_t HTmissPhi = 12;
      static constexpr uint32_t HTmissASYMHT = 20;
      static constexpr uint32_t HTmissMinBiasHF = 28;

      static constexpr uint32_t ETHFmissEt = 0;
      static constexpr uint32_t ETHFmissPhi = 12;
      static constexpr uint32_t ETHFmissASYMETHF = 20;
      static constexpr uint32_t ETHFmissCENT = 28;

      static constexpr uint32_t HTHFmissEt = 0;
      static constexpr uint32_t HTHFmissPhi = 12;
      static constexpr uint32_t HTHFmissASYMHTHF = 20;
      static constexpr uint32_t HTHFmissCENT = 28;
    };
  }  // namespace demux

  namespace bmtf {
    struct shiftsStubs {
      static constexpr uint32_t valid = 0;
      static constexpr uint32_t phi = 1;
      static constexpr uint32_t phiB = 13;
      static constexpr uint32_t qual = 23;
      static constexpr uint32_t eta = 26;
      static constexpr uint32_t qeta = 33;
      static constexpr uint32_t station = 40;
      static constexpr uint32_t wheel = 42;
      static constexpr uint32_t reserved = 45;
      static constexpr uint32_t bx = 48;
    };
  }  // namespace bmtf

  struct header_shifts {
    static constexpr uint32_t bxmatch = 24;
    static constexpr uint32_t mAcount = 16;
    static constexpr uint32_t orbitmatch = 8;
    static constexpr uint32_t warningTestEnabled = 8;
    static constexpr uint32_t mBcount = 0;
    static constexpr uint32_t sBmtfCount = 0;
  };

}  // namespace l1ScoutingRun3
#endif  // L1ScoutingRawToDigi_shifts_h