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

A BareGBTDecoder groups 40 ElinkDecoder objects. More...

#include <BareGBTDecoder.h>

Inherits o2::mch::raw::PayloadDecoder< BareGBTDecoder< CHARGESUM > >.

Public Member Functions

 BareGBTDecoder (uint16_t solarId, DecodedDataHandlers decodedDataHandlers)
 
Main interface
size_t append (Payload bytes)
 Append the equivalent n GBT words (n x 128 bits, split in 16 bytes). bytes size (=n) must be a multiple of 16 Given that the MCH data only uses 80 out of the 128 bits only the 10 first bytes of each group of 16 are used.
 
Methods for testing
void reset ()
 Clear our internal Elinks.
 
- Public Member Functions inherited from o2::mch::raw::PayloadDecoder< BareGBTDecoder< CHARGESUM > >
 PayloadDecoder (DecodedDataHandlers decodedDataHandlers)
 
size_t process (uint32_t orbit, Payload payload)
 

Detailed Description

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

A BareGBTDecoder groups 40 ElinkDecoder objects.

It's one GBT = one Solar.

Definition at line 39 of file BareGBTDecoder.h.

Constructor & Destructor Documentation

◆ BareGBTDecoder()

template<typename CHARGESUM >
o2::mch::raw::BareGBTDecoder< CHARGESUM >::BareGBTDecoder ( uint16_t  solarId,
DecodedDataHandlers  decodedDataHandlers 
)

Constructor.

Parameters
solarId
decodedDataHandlersa structure with various callable that handle the Sampa packets and decoding errors

Definition at line 85 of file BareGBTDecoder.h.

Member Function Documentation

◆ append()

template<typename CHARGESUM >
size_t o2::mch::raw::BareGBTDecoder< CHARGESUM >::append ( Payload  bytes)

Append the equivalent n GBT words (n x 128 bits, split in 16 bytes). bytes size (=n) must be a multiple of 16 Given that the MCH data only uses 80 out of the 128 bits only the 10 first bytes of each group of 16 are used.

Returns
the number of bytes that have been used from bytes span

Definition at line 95 of file BareGBTDecoder.h.

◆ reset()

template<typename CHARGESUM >
void o2::mch::raw::BareGBTDecoder< CHARGESUM >::reset ( )

Clear our internal Elinks.

Definition at line 117 of file BareGBTDecoder.h.


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