ATLAS Offline Software
EfexTobPacker.h
Go to the documentation of this file.
1 
2 #ifndef EFEX_TOB_PACKER_H
3 #define EFEX_TOB_PACKER_H
4 
5 #include <vector>
6 #include <cstdint>
8 #include "defsL1Calo/EfexDefs.h"
9 
17 public:
19  virtual ~EfexTobPacker() {}
20 
21  virtual std::vector<myDataWord> getPackedData(const std::vector<myDataWord>& inFrame,myDataWord bcNumber, InputDataFrameType frameType) const override;
22  virtual std::vector<myDataWord> getPackedControl(const std::vector<myDataWord>& inFrame,myDataWord bcNumber, InputDataFrameType frameType) const override;
23 
24  virtual bool checkCRC(const std::vector<myDataWord>& encodedData, InputDataFrameType frameType) const override;
25  virtual myDataWord getBcNumber(const std::vector<myDataWord>& encodedData, InputDataFrameType frameType) const override;
26  virtual myDataWord getBcMask(InputDataFrameType /*frameType*/) const override { return 0; }
27 
28  virtual std::vector<myDataWord> getUnpackedData(const std::vector<myDataWord>& encodedData, InputDataFrameType frameType) const override;
29 
30 private:
31 
32 };
33 
34 #endif
EfexTobPacker::EfexTobPacker
EfexTobPacker()
Class implementing packing and unpacking data into eFex TOB format.
Definition: EfexTobPacker.h:18
EfexTobPacker::~EfexTobPacker
virtual ~EfexTobPacker()
Definition: EfexTobPacker.h:19
EfexTobPacker::checkCRC
virtual bool checkCRC(const std::vector< myDataWord > &encodedData, InputDataFrameType frameType) const override
Definition: EfexTobPacker.cxx:33
EfexTobPacker::getBcMask
virtual myDataWord getBcMask(InputDataFrameType) const override
Definition: EfexTobPacker.h:26
EfexTobPacker::getUnpackedData
virtual std::vector< myDataWord > getUnpackedData(const std::vector< myDataWord > &encodedData, InputDataFrameType frameType) const override
Definition: EfexTobPacker.cxx:48
EfexTobPacker::getPackedControl
virtual std::vector< myDataWord > getPackedControl(const std::vector< myDataWord > &inFrame, myDataWord bcNumber, InputDataFrameType frameType) const override
Function returning control words.
Definition: EfexTobPacker.cxx:26
FibrePackerBase.h
FibrePackerBase::InputDataFrameType
InputDataFrameType
type of input data frame
Definition: FibrePackerBase.h:37
FibrePackerBase::myDataWord
uint32_t myDataWord
Definition: FibrePackerBase.h:25
FibrePackerBase
Definition: FibrePackerBase.h:9
EfexDefs.h
EfexTobPacker::getPackedData
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.
Definition: EfexTobPacker.cxx:10
EfexTobPacker::getBcNumber
virtual myDataWord getBcNumber(const std::vector< myDataWord > &encodedData, InputDataFrameType frameType) const override
Definition: EfexTobPacker.cxx:42
EfexTobPacker
Definition: EfexTobPacker.h:10