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);
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.
unsigned short int uint16_t
Raw data encoder for MID GBT user logic.
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to process
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 setSuperPageSize(int nbytes)
constexpr o2::header::DataOrigin gDataOriginMID
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)