3 #include <fevt/SLTData.h>
5 #include <utl/ErrorLogger.h>
6 #include <utl/AugerException.h>
14 fColSize(sltDataWord.size())
16 for (
unsigned int col = 0; col <
fColSize; ++col)
40 const bool pe,
const bool trigger,
const bool spare)
86 const int row_mask = 1 << (row - 1);
95 const int col = (pixelId-1)/22 + 1;
96 const int row = (pixelId-1)%22 + 1;
107 fRowMask[col] = sltDataWord & ((1 << 22) - 1);
108 fSLTPattern[col] = (sltDataWord >> 23) & ((1 << 7) - 1);
110 fTrigger[col] = sltDataWord & (1 << (31 - 1));
111 fSpare[col] = sltDataWord & (1 << (32 - 1));
182 err <<
" Column index col=" << col+1
183 <<
" out of bounds. Max col=" <<
fColSize;
Base class for exceptions trying to access non-existing components.
std::vector< int > fSLTPattern
void SetParityError(unsigned int col, const bool bit)
bool HasPixel(const unsigned int id) const
std::vector< bool > fSpare
std::vector< bool > fParityErrorBit
int GetSLTDataWord(unsigned int col) const
std::vector< bool > fTrigger
std::vector< int > fRowMask
void SetSpare(unsigned int col, const bool bit)
void SetSLTPattern(unsigned int col, const int pattern)
void SetSLTDataWord(unsigned int col, const unsigned int sltDataWord)
void SetColumn(unsigned int col, const int row, const int pattern, const bool pe, const bool trigger, const bool spare)
void SetTrigger(unsigned int col, const bool bit)
void SetRowMask(unsigned int col, const int mask)
#define ERROR(message)
Macro for logging error messages.
void CheckBounds(unsigned int col) const