![]() |
Project
|
Decoder of the ALTRO data in the raw page. More...
#include <AltroDecoder.h>
Public Member Functions | |
AltroDecoder ()=default | |
Constructor. | |
~AltroDecoder ()=default | |
Destructor. | |
AltroDecoderError::ErrorType_t | decode (RawReaderMemory &rawreader, CaloRawFitter *rawFitter, std::vector< o2::phos::Cell > &cellContainer, std::vector< o2::phos::Cell > &truContainer) |
Decode the ALTRO stream. | |
const std::vector< o2::phos::RawReaderError > & | hwerrors () |
Get list of hw errors found in decoding. | |
const std::vector< short > & | chi2list () |
const RCUTrailer & | getRCUTrailer () const |
Get reference to the RCU trailer object. | |
void | readChannels (const std::vector< uint32_t > &payloadwords, CaloRawFitter *rawFitter, std::vector< o2::phos::Cell > &cellContainer, std::vector< o2::phos::Cell > &truContainer) |
Read channels for the current event in the raw buffer. | |
void | setPedestalRun () |
void | setCombineHGLG (bool a) |
void | setKeepTruNoise (bool a) |
void | setPresamples (int ps) |
Decoder of the ALTRO data in the raw page.
This is a base class for reading raw data digits in Altro format. The class is able to read the RCU v3 and above formats. The main difference between the format V3 and older ones is in the coding of the 10-bit Altro payload words. In V3 3 10-bit words are coded in one 32-bit word. The bits 30 and 31 are used to identify the payload, altro header and RCU trailer contents.
Based on AliAltroRawStreamV3 and AliCaloRawStreamV3 by C. Cheshkov
Definition at line 85 of file AltroDecoder.h.
|
default |
Constructor.
|
default |
Destructor.
|
inline |
Definition at line 110 of file AltroDecoder.h.
AltroDecoderError::ErrorType_t AltroDecoder::decode | ( | RawReaderMemory & | rawreader, |
CaloRawFitter * | rawFitter, | ||
std::vector< o2::phos::Cell > & | cellContainer, | ||
std::vector< o2::phos::Cell > & | truContainer | ||
) |
Decode the ALTRO stream.
AltroDecoderError | if the RCUTrailer or ALTRO payload cannot be decoded |
Decoding and checking the RCUTtrailer and all channels and bunches in the ALTRO stream. After successfull decoding the Decoder can provide a reference to the RCU trailer and a vector with the decoded chanenels, each containing its bunches.
Definition at line 25 of file AltroDecoder.cxx.
|
inline |
Get reference to the RCU trailer object.
Definition at line 114 of file AltroDecoder.h.
|
inline |
Get list of hw errors found in decoding.
Definition at line 108 of file AltroDecoder.h.
void AltroDecoder::readChannels | ( | const std::vector< uint32_t > & | payloadwords, |
CaloRawFitter * | rawFitter, | ||
std::vector< o2::phos::Cell > & | cellContainer, | ||
std::vector< o2::phos::Cell > & | truContainer | ||
) |
Read channels for the current event in the raw buffer.
decode all words for channel
Definition at line 60 of file AltroDecoder.cxx.
|
inline |
Definition at line 125 of file AltroDecoder.h.
|
inline |
Definition at line 127 of file AltroDecoder.h.
|
inline |
Definition at line 120 of file AltroDecoder.h.
Definition at line 129 of file AltroDecoder.h.