9 tmp1 = (tmp1 << (8 - MvtxDefs::kBitShiftStaveIdWidth));
10 tmp1 = (tmp1 >> (8 - MvtxDefs::kBitShiftStaveIdWidth));
26 tmp1 = (tmp1 << (8 - MvtxDefs::kBitShiftChipIdWidth));
27 tmp1 = (tmp1 >> (8 - MvtxDefs::kBitShiftChipIdWidth));
43 tmp1 = (tmp1 << (8 - MvtxDefs::kBitShiftStrobeIdWidth));
44 tmp1 = (tmp1 >> (8 - MvtxDefs::kBitShiftStrobeIdWidth));
46 int tmp2 = (int) tmp1 - strobeOffset;
87 int strobe = strobe_in + strobeOffset;
88 if(strobe < 0) strobe = 0;
89 if(strobe > 31) strobe = 31;
90 unsigned int ustrobe = (
unsigned int) strobe;
93 key |= (tmp << MvtxDefs::kBitShiftStaveIdOffset);
95 key |= (tmp << MvtxDefs::kBitShiftChipIdOffset);
97 key |= (tmp << MvtxDefs::kBitShiftStrobeIdOffset);
102 MvtxDefs::genClusKey(
const uint8_t lyr,
const uint8_t stave,
const uint8_t chip,
const int strobe,
const uint32_t clusid)
115 tmp = (tmp >> MvtxDefs::kBitShiftStrobeIdWidth);
116 tmp = (tmp << MvtxDefs::kBitShiftStrobeIdWidth);
117 unsigned int zero_strobe = strobeOffset;
118 tmp |= (zero_strobe << MvtxDefs::kBitShiftStrobeIdOffset);