80 return static_cast<int>(offset) * (
sign>0 ? -1 : 1);
84 uint32_t offset = std::abs(bcn);
85 uint32_t
sign = (bcn<0)?1:0;
86 return std::pair<uint32_t,uint32_t>(
sign,offset);
90 os <<
" Block header:"
91 <<
" version " <<
h.version()
93 <<
" active_fibres 0x" <<
h.active_fibres()
94 <<
" payload_crc 0x" <<
h.payload_crc()
96 <<
" fpga " <<
h.fpga()
97 <<
" relative bcn " <<
h.bcn()
98 <<
" last_block " <<
h.last_block();
Header file for AthHistogramAlgorithm.
std::pair< uint32_t, uint32_t > signAndOffsetBCN(const int bcn)
reverse helper function to return the sign and offset bits given a relative bunch crossing number
std::ostream & operator<<(std::ostream &, const Error)
Helper to print errors as text rather than numbers.
int signedBCN(const uint32_t sign, uint32_t offset)
helper function to return a relative bunch crossing as a signed integer, given the sign bit and offse...