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;
28 const size_t framesPerBX,
30 const size_t maxFramesPerFile,
36 const size_t framesPerBX,
38 const size_t maxFramesPerFile,
40 const std::map<std::string, ChannelSpec>&);
52 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 std::string &fileExt, 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
std::string boardDataFileID_
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...
void setBoardDataFileID(const std::string &)
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).