#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 std::string &fileExt, const size_t framesPerBX, const size_t tmux, const size_t maxFramesPerFile, const ChannelMap_t &) | |
BoardDataWriter (FileFormat, const std::string &filePath, const std::string &fileExt, 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 () |
void | setBoardDataFileID (const std::string &) |
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_ |
std::string | boardDataFileID_ |
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 std::string & | fileExt, | ||
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 to_string().
l1t::demo::BoardDataWriter::BoardDataWriter | ( | FileFormat | format, |
const std::string & | filePath, | ||
const std::string & | fileExt, | ||
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 55 of file BoardDataWriter.cc.
void l1t::demo::BoardDataWriter::addEvent | ( | const EventData & | data | ) |
Definition at line 68 of file BoardDataWriter.cc.
References l1t::demo::BoardData::at(), boardData_, boardTMUX_, channelMap_, eventIndex_, flush(), framesPerBX_, l1t::demo::EventData::has(), dqmdumpme::indices, info(), l1ctLayer2EG_cff::interface, maxEventsPerFile_, pendingEvents_, and to_string().
Referenced by L1CTJetFileWriter::analyze(), and GTTFileWriter::analyze().
void l1t::demo::BoardDataWriter::flush | ( | ) |
Definition at line 117 of file BoardDataWriter.cc.
References boardData_, boardDataFileID_, fileFormat_, fileNames_, dt4ml_dqm_sourceclient-live_cfg::filePath, filePathGen_, maxFramesPerFile_, l1t::demo::BoardData::name(), pendingEvents_, resetBoardData(), AlCaHLTBitMon_QueryRunRegistry::string, l1t::demo::write(), and x.
Referenced by addEvent(), L1CTJetFileWriter::endJob(), and GTTFileWriter::endJob().
|
staticprivate |
Definition at line 147 of file BoardDataWriter.cc.
References x.
|
private |
Definition at line 155 of file BoardDataWriter.cc.
References l1t::demo::BoardData::at(), boardData_, boardTMUX_, channelMap_, framesPerBX_, dqmdumpme::indices, pendingEvents_, relativeConstraints::value, and x.
Referenced by flush().
void l1t::demo::BoardDataWriter::setBoardDataFileID | ( | const std::string & | aId | ) |
Definition at line 66 of file BoardDataWriter.cc.
References boardDataFileID_.
|
private |
Definition at line 78 of file BoardDataWriter.h.
Referenced by addEvent(), flush(), and resetBoardData().
|
private |
Definition at line 59 of file BoardDataWriter.h.
Referenced by flush(), and setBoardDataFileID().
|
private |
Definition at line 67 of file BoardDataWriter.h.
Referenced by addEvent(), and resetBoardData().
|
private |
Definition at line 81 of file BoardDataWriter.h.
Referenced by addEvent(), and resetBoardData().
|
private |
Definition at line 73 of file BoardDataWriter.h.
Referenced by addEvent().
|
private |
Definition at line 56 of file BoardDataWriter.h.
Referenced by flush().
|
private |
Definition at line 63 of file BoardDataWriter.h.
Referenced by flush().
|
private |
Definition at line 61 of file BoardDataWriter.h.
Referenced by flush().
|
private |
Definition at line 65 of file BoardDataWriter.h.
Referenced by addEvent(), and resetBoardData().
|
private |
Definition at line 71 of file BoardDataWriter.h.
Referenced by addEvent().
|
private |
Definition at line 69 of file BoardDataWriter.h.
Referenced by flush().
|
private |
Definition at line 76 of file BoardDataWriter.h.
Referenced by addEvent(), flush(), and resetBoardData().