15 tmp1 = (tmp1 << (8 - InttDefs::kBitShiftLadderZIdWidth));
16 tmp1 = (tmp1 >> (8 - InttDefs::kBitShiftLadderZIdWidth));
33 tmp1 = (tmp1 << (8 - InttDefs::kBitShiftLadderPhiIdWidth));
34 tmp1 = (tmp1 >> (8 - InttDefs::kBitShiftLadderPhiIdWidth));
51 tmp1 = (tmp1 << (16 - InttDefs::kBitShiftTimeBucketIdWidth));
52 tmp1 = (tmp1 >> (16 - InttDefs::kBitShiftTimeBucketIdWidth));
54 int tmp2 = (int) tmp1 - crossingOffset;
90 InttDefs::genHitSetKey(
const uint8_t lyr,
const uint8_t ladder_z_index, uint8_t ladder_phi_index,
const int crossing_in)
95 int crossing = crossing_in + crossingOffset;
96 if(crossing < 0) crossing = 0;
97 if(crossing > 1023) crossing = 1023;
98 unsigned int ucrossing = (
unsigned int) crossing;
101 key |= (tmp << InttDefs::kBitShiftLadderZIdOffset);
102 tmp = ladder_phi_index;
103 key |= (tmp << InttDefs::kBitShiftLadderPhiIdOffset);
105 key |= (tmp << InttDefs::kBitShiftTimeBucketIdOffset);
111 InttDefs::genClusKey(
const uint8_t lyr,
const uint8_t ladder_z_index,
const uint8_t ladder_phi_index,
const int crossing,
const uint32_t clusid)
123 tmp = (tmp >> InttDefs::kBitShiftTimeBucketIdWidth);
124 tmp = (tmp << InttDefs::kBitShiftTimeBucketIdWidth);
125 unsigned int zero_crossing = crossingOffset;
126 tmp |= (zero_crossing << InttDefs::kBitShiftTimeBucketIdOffset);