12 const std::bitset<1152> fe_bits = fe_map.
get_bits();
13 const std::bitset<1152> adc_bits = adc_map.
get_bits();
14 const size_t chip_bits_len = 144;
15 for (
size_t iChip=0; iChip < 8; iChip++)
17 std::bitset<chip_bits_len*2> chip_bits;
18 for (
size_t iBit=0; iBit < chip_bits_len; iBit++)
20 chip_bits[iBit] = adc_bits[iChip*chip_bits_len+iBit];
21 chip_bits[iBit+chip_bits_len] = fe_bits[iChip*chip_bits_len+iBit];
23 for (
size_t iReg=0; iReg < 9; iReg++)
25 std::bitset<32> regBits;
26 for (
size_t iBit=0; iBit < 32; iBit++)
28 regBits[iBit] = chip_bits[iBit+iReg*32];
30 uint32_t regUInt = regBits.to_ulong();
31 REGS[iChip*9+iReg] = regUInt;