![]() |
Project
|
Main element of the MCH Bare Raw Data Format decoder. More...
#include <BareElinkDecoder.h>
Public Member Functions | |
BareElinkDecoder (DsElecId dsId, DecodedDataHandlers decodedDataHandlers) | |
Friends | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const o2::mch::raw::BareElinkDecoder< T > &e) |
Main interface | |
void | append (bool bit0, bool bit1) |
Append two bits (from the same dual sampa, one per sampa) to the Elink. | |
Methods for testing | |
int | len () const |
Current number of bits we're holding. | |
void | reset () |
Main element of the MCH Bare Raw Data Format decoder.
A BareElinkDecoder manages the bit stream for one Elink.
Bits coming from parts of the GBT words are added to the Elink using the append() method and each time a SampaCluster is decoded, it is passed to the DecodedDataHandlers for further processing (or none).
Definition at line 42 of file BareElinkDecoder.h.
o2::mch::raw::BareElinkDecoder< CHARGESUM >::BareElinkDecoder | ( | DsElecId | dsId, |
DecodedDataHandlers | decodedDataHandlers | ||
) |
Constructor.
dsId | the (electronic) id of the dual sampa this elink is connected to |
decodedDataHandlers | a structure with various callable that handle the Sampa packets and decoding errors |
Definition at line 141 of file BareElinkDecoder.h.
void o2::mch::raw::BareElinkDecoder< CHARGESUM >::append | ( | bool | bit0, |
bool | bit1 | ||
) |
Append two bits (from the same dual sampa, one per sampa) to the Elink.
Definition at line 178 of file BareElinkDecoder.h.
int o2::mch::raw::BareElinkDecoder< CHARGESUM >::len | ( | ) | const |
Current number of bits we're holding.
Definition at line 317 of file BareElinkDecoder.h.
void o2::mch::raw::BareElinkDecoder< CHARGESUM >::reset | ( | ) |
Reset our internal bit stream, and the sync status i.e. assume the sync has to be found again
Definition at line 388 of file BareElinkDecoder.h.
|
friend |