Project
Loading...
Searching...
No Matches
o2::mch::raw::BareElinkDecoder< CHARGESUM > Class Template Reference

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 ()
 

Detailed Description

template<typename CHARGESUM>
class o2::mch::raw::BareElinkDecoder< CHARGESUM >

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.

Constructor & Destructor Documentation

◆ BareElinkDecoder()

template<typename CHARGESUM >
o2::mch::raw::BareElinkDecoder< CHARGESUM >::BareElinkDecoder ( DsElecId  dsId,
DecodedDataHandlers  decodedDataHandlers 
)

Constructor.

Parameters
dsIdthe (electronic) id of the dual sampa this elink is connected to
decodedDataHandlersa structure with various callable that handle the Sampa packets and decoding errors

Definition at line 141 of file BareElinkDecoder.h.

Member Function Documentation

◆ append()

template<typename CHARGESUM >
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.

◆ len()

template<typename CHARGESUM >
int o2::mch::raw::BareElinkDecoder< CHARGESUM >::len ( ) const

Current number of bits we're holding.

Definition at line 317 of file BareElinkDecoder.h.

◆ reset()

template<typename CHARGESUM >
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.

Friends And Related Symbol Documentation

◆ operator<<

template<typename CHARGESUM >
template<typename T >
std::ostream & operator<< ( std::ostream &  os,
const o2::mch::raw::BareElinkDecoder< T > &  e 
)
friend

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