Public Member Functions | |
UCharAltroUSBVec (std::vector< unsigned char > const &datavec) | |
size_t | Size () const |
The number of 40 bit words (Altro words) | |
unsigned short | Get10bitWord (unsigned int index10bit) const |
uint64_t | Get40bitWord (unsigned int index40bit) const |
A helper class to read the byte sequence of big endian 32 bit data as 10 bit or 40 bit data. This class only contains a reference to the data, not a copy, to avoid copying of the data.
eudaq::UCharAltroUSBVec::UCharAltroUSBVec | ( | std::vector< unsigned char > const & | datavec | ) |
The constructor. It reqires a reference of the actual data vector.
unsigned short eudaq::UCharAltroUSBVec::Get10bitWord | ( | unsigned int | index10bit | ) | const |
Helper function to get a 40 bit word out of the byte vector.
uint64_t eudaq::UCharAltroUSBVec::Get40bitWord | ( | unsigned int | index40bit | ) | const |
Helper function to get a 40 bit word out of the byte vector.