|
ATLAS Offline Software
|
Go to the documentation of this file.
2 #ifndef FIBRE_PACKER_BASE_H
3 #define FIBRE_PACKER_BASE_H
45 virtual myDataWord crc9full(
const std::vector<myDataWord>& inwords,
size_t num_bits )
const;
46 virtual myDataWord crc9d32(
const std::vector<myDataWord>& inwords,
size_t num_words,
bool bit_reverse)
const;
virtual std::vector< myDataWord > getPackedControl(const std::vector< myDataWord > &inFrame, myDataWord bcNumber, InputDataFrameType frameType) const =0
Function returning control words.
virtual myDataWord getBcNumber(const std::vector< myDataWord > &encodedData, InputDataFrameType frameType) const =0
FibrePackerBase()
Basic class for FEX input data packers.
virtual myDataWord crc9full(const std::vector< myDataWord > &inwords, size_t num_bits) const
Functions calculating CRC over input data.
virtual myDataWord crc9d32(const std::vector< myDataWord > &inwords, size_t num_words, bool bit_reverse) const
virtual std::vector< myDataWord > getPackedData(const std::vector< myDataWord > &inFrame, myDataWord bcNumber, InputDataFrameType frameType) const =0
Function taking SC energies and other stuff and packing them into a data packet.
virtual ~FibrePackerBase()
virtual std::vector< myDataWord > getUnpackedData(const std::vector< myDataWord > &encodedData, InputDataFrameType frameType) const =0
virtual bool checkCRC(const std::vector< myDataWord > &encodedData, InputDataFrameType frameType) const =0
@ Alignement
Special mapping/alignement frame.
InputDataFrameType
type of input data frame
virtual myDataWord getBcMask(InputDataFrameType frameType) const =0
virtual myDataWord crc9d23(myDataWord inword, myDataWord in_crc, bool bit_reverse) const
@ Normal
Standard data frame.