|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TILEBYTESTREAM_TILEDIGITS2BYTES_H
6 #define TILEBYTESTREAM_TILEDIGITS2BYTES_H
char data[hepevt_bytes_allocation_ATLAS]
void setVerbose(bool verbose)
int getBCID(const uint32_t *data, int chipCount, int wordsPerChip) const
Get BCID from Chip header, bit 0-11.
bool checkStartBit(const uint32_t *data, int length, uint32_t startbit) const
Check that the MSB of <length> words are equal to LSB of <startbit>
int getBytes(const TileDigits *digi, const TileHWID *tileHWID, std::vector< unsigned int > &v)
uint32_t calculateParity(const uint32_t *data) const
Calculate parity for one word.
bool checkWordParity(const uint32_t *data) const
Verify ODD parity for one word.
Helper class for TileCal online (hardware) identifiers.
int getGain(const uint32_t *data, int chan) const
Extract gain for <chip> in chip header.
uint32_t checkParity(const uint32_t *data, int length) const
Verify parity for <length> words.
int getDigiMode(const uint32_t *data, int chipCount, int wordsPerChip) const
Determine digitizer mode for a number of channels.
std::array< std::vector< float >, 3 > getDigits(const uint32_t *data, int dataWordsPerChip) const
Extract samples(digits) for 3 channels, stored in 9 words.
This class converts TileDigits to and from bytestream in ROD format.