EUDAQ
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
eudaq::UCharAltroUSBVec Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

eudaq::UCharAltroUSBVec::UCharAltroUSBVec ( std::vector< unsigned char > const &  datavec)

The constructor. It reqires a reference of the actual data vector.

Member Function Documentation

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.


The documentation for this class was generated from the following file: