16#ifndef O2_MID_ENCODER_H
17#define O2_MID_ENCODER_H
49 void finalize(
bool closeFile =
true);
56 void completeWord(std::vector<char>&
buffer);
58 void onOrbitChange(uint32_t
orbit);
66 std::map<uint16_t, ROBoard> mROData;
67 ColumnDataToLocalBoard mConverter;
68 std::unordered_map<uint16_t, std::vector<ROBoard>> mGBTMap;
69 FEEIdConfig mFEEIdConfig;
70 InteractionRecord mLastIR;
71 ElectronicsDelay mElectronicsDelay;
73 std::array<GBTUserLogicEncoder, crateparams::sNGBTs> mGBTEncoders{};
74 std::array<std::vector<char>, 4> mOrbitResponse{};
75 std::array<std::vector<char>, 4> mOrbitResponseWord{};
Converter from ColumnData to raw local boards.
Strip pattern (aka digits)
Delay parameters for MID electronics.
Hardware Id to FeeId mapper.
Raw data encoder for MID GBT user logic.
Structure to store the readout board information.
Utility class to write detectors data to (multiple) raw data file(s) respecting CRU format.
void finalize(bool closeFile=true)
void init(std::string_view outDir=".", std::string_view fileFor="all", int verbosity=0, std::vector< ROBoardConfig > configurations=makeDefaultROBoardConfig())
void emptyHBFMethod(const o2::header::RDHAny *rdh, std::vector< char > &toAdd) const
void setSuperpageSize(int maxSize)
Sets the maximum size of the superpage.
void process(gsl::span< const ColumnData > data, InteractionRecord ir, EventType eventType=EventType::Standard)
void setSuperPageSize(int nbytes)
constexpr o2::header::DataOrigin gDataOriginMID
constexpr int LHCMaxBunches
std::vector< ROBoardConfig > makeDefaultROBoardConfig(uint16_t gbtUniqueId=0xFFFF)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
o2::InteractionRecord ir(0, 0)