![]() |
ATLAS Offline Software
|
#include <EfexTobPacker.h>
Public Types | |
| enum class | InputDataFrameType { Normal , Alignement } |
| type of input data frame More... | |
| using | myDataWord = uint32_t |
Public Member Functions | |
| EfexTobPacker () | |
| Class implementing packing and unpacking data into eFex TOB format. | |
| virtual | ~EfexTobPacker () |
| virtual std::vector< myDataWord > | getPackedData (const std::vector< myDataWord > &inFrame, myDataWord bcNumber, InputDataFrameType frameType) const override |
| Function taking SC energies and other stuff and packing them into a data packet. | |
| virtual std::vector< myDataWord > | getPackedControl (const std::vector< myDataWord > &inFrame, myDataWord bcNumber, InputDataFrameType frameType) const override |
| Function returning control words. | |
| virtual bool | checkCRC (const std::vector< myDataWord > &encodedData, InputDataFrameType frameType) const override |
| virtual myDataWord | getBcNumber (const std::vector< myDataWord > &encodedData, InputDataFrameType frameType) const override |
| virtual myDataWord | getBcMask (InputDataFrameType) const override |
| virtual std::vector< myDataWord > | getUnpackedData (const std::vector< myDataWord > &encodedData, InputDataFrameType frameType) const override |
| 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 myDataWord | crc9d23 (myDataWord inword, myDataWord in_crc, bool bit_reverse) const |
Public Attributes | |
| myDataWord | K_28_5 = 0xbc |
| myDataWord | K_28_1 = 0x3c |
| myDataWord | K_28_0 = 0x1c |
Definition at line 10 of file EfexTobPacker.h.
|
inherited |
Definition at line 25 of file FibrePackerBase.h.
|
stronginherited |
type of input data frame
| Enumerator | |
|---|---|
| Normal | Standard data frame. |
| Alignement | Special mapping/alignement frame. |
Definition at line 37 of file FibrePackerBase.h.
|
inline |
Class implementing packing and unpacking data into eFex TOB format.
This is a relatively simple packing class
Definition at line 18 of file EfexTobPacker.h.
|
inlinevirtual |
Definition at line 19 of file EfexTobPacker.h.
|
overridevirtual |
Implements FibrePackerBase.
Definition at line 36 of file EfexTobPacker.cxx.
|
virtualinherited |
CRC9D23 as specified in LAr VHDL
Function does CRC9D23 calculation. Thanslated from LATOME VHDL to python by Ed Flaherty, then to c++ by jb
Definition at line 111 of file FibrePackerBase.cxx.
|
virtualinherited |
CRC9D32 as specified in LAr VHDL
Function does CRC9D32 calculation. Thanslated from LATOME VHDL to python by Ed Flaherty, then to c++ by jb
Definition at line 40 of file FibrePackerBase.cxx.
|
virtualinherited |
Functions calculating CRC over input data.
CRC9 with polynomial 1011111011 over num_bits bits
Uses a more succinct CRC calculation and flexible in terms of digits, checked versus old code but only supports bit reversal = true
Definition at line 11 of file FibrePackerBase.cxx.
|
inlineoverridevirtual |
|
overridevirtual |
Implements FibrePackerBase.
Definition at line 45 of file EfexTobPacker.cxx.
|
overridevirtual |
Function returning control words.
The control words are used to distinguish between standard data and K characters. Each K character is 8 bit long and can be at one of four positions in 32 bit word. Control words encode location of K characters in 32 bit words, for example 0x1 means K character in the lowest byte, 0x3 means two K-characters in two lowest bytes
Implements FibrePackerBase.
Definition at line 29 of file EfexTobPacker.cxx.
|
overridevirtual |
Function taking SC energies and other stuff and packing them into a data packet.
Implements FibrePackerBase.
Definition at line 13 of file EfexTobPacker.cxx.
|
overridevirtual |
Implements FibrePackerBase.
Definition at line 51 of file EfexTobPacker.cxx.
|
inherited |
Definition at line 32 of file FibrePackerBase.h.
|
inherited |
Definition at line 31 of file FibrePackerBase.h.
|
inherited |
Definition at line 30 of file FibrePackerBase.h.