2 #ifndef L1Trigger_DemonstratorTools_BoardDataWriter_h 3 #define L1Trigger_DemonstratorTools_BoardDataWriter_h 23 typedef std::map<LinkId, std::pair<ChannelSpec, std::vector<size_t>>>
ChannelMap_t;
27 const size_t framesPerBX,
29 const size_t maxFramesPerFile,
34 const size_t framesPerBX,
36 const size_t maxFramesPerFile,
38 const std::map<std::string, ChannelSpec>&);
47 const std::map<std::string, ChannelSpec>&);
Logical ID for link within any given time slice (e.g. ["tracks", 0] -> ["tracks", 17] for links from ...
BoardDataWriter(FileFormat, const std::string &filePath, const size_t framesPerBX, const size_t tmux, const size_t maxFramesPerFile, const ChannelMap_t &)
void addEvent(const EventData &data)
std::function< std::string(const size_t)> filePathGen_
static ChannelMap_t mergeMaps(const std::map< LinkId, std::vector< size_t >> &, const std::map< std::string, ChannelSpec > &)
filePath
CUSTOMIZE FOR ML.
std::map< LinkId, std::pair< ChannelSpec, std::vector< size_t > > > ChannelMap_t
char data[epos_bytes_allocation]
std::vector< std::string > fileNames_
Class representing information that's stored in the input or output buffers on a phase-2 board...
Class representing information phase-2 ATCA I/O data corresponding to a single event, with logical channel IDs (essentially string-uint pairs, e.g. tracks-0 to tracks-17).