Project
Loading...
Searching...
No Matches
o2::phos::AltroDecoder Class Reference

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

Detailed Description

Decoder of the ALTRO data in the raw page.

Author
Dmitri Peresunko aftesr Markus Fasel
Since
Sept, 2020

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.

Constructor & Destructor Documentation

◆ AltroDecoder()

o2::phos::AltroDecoder::AltroDecoder ( )
default

Constructor.

◆ ~AltroDecoder()

o2::phos::AltroDecoder::~AltroDecoder ( )
default

Destructor.

Member Function Documentation

◆ chi2list()

const std::vector< short > & o2::phos::AltroDecoder::chi2list ( )
inline

Definition at line 110 of file AltroDecoder.h.

◆ decode()

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.

Exceptions
AltroDecoderErrorif 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.

◆ getRCUTrailer()

const RCUTrailer & o2::phos::AltroDecoder::getRCUTrailer ( ) const
inline

Get reference to the RCU trailer object.

Returns
reference to the RCU trailers vector

Definition at line 114 of file AltroDecoder.h.

◆ hwerrors()

const std::vector< o2::phos::RawReaderError > & o2::phos::AltroDecoder::hwerrors ( )
inline

Get list of hw errors found in decoding.

Definition at line 108 of file AltroDecoder.h.

◆ readChannels()

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.

◆ setCombineHGLG()

void o2::phos::AltroDecoder::setCombineHGLG ( bool  a)
inline

Definition at line 125 of file AltroDecoder.h.

◆ setKeepTruNoise()

void o2::phos::AltroDecoder::setKeepTruNoise ( bool  a)
inline

Definition at line 127 of file AltroDecoder.h.

◆ setPedestalRun()

void o2::phos::AltroDecoder::setPedestalRun ( )
inline

Definition at line 120 of file AltroDecoder.h.

◆ setPresamples()

void o2::phos::AltroDecoder::setPresamples ( int  ps)
inline

Definition at line 129 of file AltroDecoder.h.


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