#include <BoardDataWriter.h>
Public Types | |
typedef std::map< LinkId, std::pair< ChannelSpec, std::vector< size_t > > > | ChannelMap_t |
Public Member Functions | |
void | addEvent (const EventData &data) |
BoardDataWriter (FileFormat, const std::string &filePath, const size_t framesPerBX, const size_t tmux, const size_t maxFramesPerFile, const ChannelMap_t &) | |
BoardDataWriter (FileFormat, const std::string &filePath, const size_t framesPerBX, const size_t tmux, const size_t maxFramesPerFile, const std::map< LinkId, std::vector< size_t >> &, const std::map< std::string, ChannelSpec > &) | |
void | flush () |
Private Member Functions | |
void | resetBoardData () |
Static Private Member Functions | |
static ChannelMap_t | mergeMaps (const std::map< LinkId, std::vector< size_t >> &, const std::map< std::string, ChannelSpec > &) |
Private Attributes | |
BoardData | boardData_ |
size_t | boardTMUX_ |
ChannelMap_t | channelMap_ |
size_t | eventIndex_ |
FileFormat | fileFormat_ |
std::vector< std::string > | fileNames_ |
std::function< std::string(const size_t)> | filePathGen_ |
size_t | framesPerBX_ |
size_t | maxEventsPerFile_ |
size_t | maxFramesPerFile_ |
size_t | pendingEvents_ |
Definition at line 20 of file BoardDataWriter.h.
typedef std::map<LinkId, std::pair<ChannelSpec, std::vector<size_t> > > l1t::demo::BoardDataWriter::ChannelMap_t |
Definition at line 23 of file BoardDataWriter.h.
l1t::demo::BoardDataWriter::BoardDataWriter | ( | FileFormat | format, |
const std::string & | filePath, | ||
const size_t | framesPerBX, | ||
const size_t | tmux, | ||
const size_t | maxFramesPerFile, | ||
const ChannelMap_t & | channelSpecs | ||
) |
Definition at line 10 of file BoardDataWriter.cc.
References mps_fire::i, castor_dqm_sourceclient_file_cfg::path, and cond::impl::to_string().
l1t::demo::BoardDataWriter::BoardDataWriter | ( | FileFormat | format, |
const std::string & | filePath, | ||
const size_t | framesPerBX, | ||
const size_t | tmux, | ||
const size_t | maxFramesPerFile, | ||
const std::map< LinkId, std::vector< size_t >> & | channelMap, | ||
const std::map< std::string, ChannelSpec > & | channelSpecs | ||
) |
Definition at line 51 of file BoardDataWriter.cc.
void l1t::demo::BoardDataWriter::addEvent | ( | const EventData & | data | ) |
Definition at line 60 of file BoardDataWriter.cc.
References l1t::demo::BoardData::at(), boardData_, boardTMUX_, channelMap_, eventIndex_, flush(), framesPerBX_, l1t::demo::EventData::has(), dqmdumpme::indices, info(), maxEventsPerFile_, pendingEvents_, and cond::impl::to_string().
Referenced by GTTFileWriter::analyze().
void l1t::demo::BoardDataWriter::flush | ( | ) |
Definition at line 109 of file BoardDataWriter.cc.
References boardData_, fileFormat_, fileNames_, dt4ml_dqm_sourceclient-live_cfg::filePath, filePathGen_, maxFramesPerFile_, pendingEvents_, resetBoardData(), AlCaHLTBitMon_QueryRunRegistry::string, l1t::demo::write(), and x.
Referenced by addEvent(), and GTTFileWriter::endJob().
|
staticprivate |
Definition at line 126 of file BoardDataWriter.cc.
References x.
|
private |
Definition at line 134 of file BoardDataWriter.cc.
References l1t::demo::BoardData::at(), boardData_, boardTMUX_, channelMap_, framesPerBX_, dqmdumpme::indices, pendingEvents_, relativeConstraints::value, and x.
Referenced by flush().
|
private |
Definition at line 70 of file BoardDataWriter.h.
Referenced by addEvent(), flush(), and resetBoardData().
|
private |
Definition at line 59 of file BoardDataWriter.h.
Referenced by addEvent(), and resetBoardData().
|
private |
Definition at line 73 of file BoardDataWriter.h.
Referenced by addEvent(), and resetBoardData().
|
private |
Definition at line 65 of file BoardDataWriter.h.
Referenced by addEvent().
|
private |
Definition at line 51 of file BoardDataWriter.h.
Referenced by flush().
|
private |
Definition at line 55 of file BoardDataWriter.h.
Referenced by flush().
|
private |
Definition at line 53 of file BoardDataWriter.h.
Referenced by flush().
|
private |
Definition at line 57 of file BoardDataWriter.h.
Referenced by addEvent(), and resetBoardData().
|
private |
Definition at line 63 of file BoardDataWriter.h.
Referenced by addEvent().
|
private |
Definition at line 61 of file BoardDataWriter.h.
Referenced by flush().
|
private |
Definition at line 68 of file BoardDataWriter.h.
Referenced by addEvent(), flush(), and resetBoardData().