#include <MP7FileReader.h>
Public Types | |
typedef std::vector< FileData >::const_iterator | const_iterator |
expose vector's const iterator More... | |
Public Member Functions | |
const_iterator | begin () |
vector's begin iterator More... | |
const_iterator | end () |
vector's end iterator More... | |
const FileData & | get (size_t k) const |
data getter via index More... | |
MP7FileReader (const std::string &path) | |
std::vector< std::string > | names () const |
raw data name collector More... | |
const std::string & | path () const |
source file path More... | |
size_t | size () const |
number of rawdata objects stored More... | |
bool | valid () const |
reader status. valid() == 1 indicates that data was successfully read from file More... | |
virtual | ~MP7FileReader () |
Public Attributes | |
std::vector< FileData > | buffers_ |
Private Member Functions | |
void | load () |
std::vector< std::vector< uint64_t > > | readRows () |
std::string | searchBoard () |
std::vector< uint32_t > | searchLinks () |
Static Private Member Functions | |
static uint64_t | validStrToUint64 (const std::string &token) |
Private Attributes | |
std::ifstream | file_ |
std::string | path_ |
bool | valid_ |
Static Private Attributes | |
static boost::regex | reBoard_ |
static boost::regex | reFrame_ |
static boost::regex | reLink_ |
static boost::regex | reQuadChan_ |
static boost::regex | reValid_ |
Definition at line 43 of file MP7FileReader.h.
typedef std::vector<FileData>::const_iterator MP7FileReader::const_iterator |
expose vector's const iterator
Definition at line 46 of file MP7FileReader.h.
MP7FileReader::MP7FileReader | ( | const std::string & | path | ) |
|
virtual |
Definition at line 56 of file MP7FileReader.cc.
|
inline |
vector's begin iterator
Definition at line 65 of file MP7FileReader.h.
References buffers_.
Referenced by MP7PacketReader::load().
|
inline |
vector's end iterator
Definition at line 68 of file MP7FileReader.h.
References buffers_.
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), and MP7PacketReader::load().
const FileData & MP7FileReader::get | ( | size_t | k | ) | const |
data getter via index
Definition at line 59 of file MP7FileReader.cc.
References buffers_, and dqmdumpme::k.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), util.rrapi.RRApi::columns(), rrapi.RRApi::count(), util.rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), l1t::MP7BufferDumpToRaw::getBlocks(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), util.rrapi.RRApi::templates(), rrapi.RRApi::templates(), rrapi.RRApi::workspaces(), and util.rrapi.RRApi::workspaces().
|
private |
Definition at line 70 of file MP7FileReader.cc.
References buffers_, data, file_, mps_fire::i, triggerObjects_cff::id, dqmiolumiharvest::j, electronStore::links, readRows(), alignCSCRings::s, searchBoard(), searchLinks(), AlCaHLTBitMon_QueryRunRegistry::string, and valid_.
Referenced by MP7FileReader().
std::vector< std::string > MP7FileReader::names | ( | void | ) | const |
|
inline |
source file path
Definition at line 56 of file MP7FileReader.h.
References path_.
Referenced by MP7FileReader().
|
private |
Definition at line 190 of file MP7FileReader.cc.
References data, file_, mps_splice::line, dqmiodumpmetadata::n, reBoard_, reFrame_, cms::dd::split(), contentValuesCheck::ss, str, AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, HcalDetIdTransform::transform(), trim(), and validStrToUint64().
Referenced by load().
|
private |
Definition at line 116 of file MP7FileReader.cc.
References file_, triggerObjects_cff::id, mps_splice::line, reBoard_, AlCaHLTBitMon_QueryRunRegistry::string, and trim().
Referenced by load().
|
private |
Definition at line 143 of file MP7FileReader.cc.
References file_, mps_splice::line, electronStore::links, reLink_, reQuadChan_, cms::dd::split(), AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, HcalDetIdTransform::transform(), and trim().
Referenced by load().
|
inline |
number of rawdata objects stored
Definition at line 71 of file MP7FileReader.h.
References buffers_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), MP7PacketReader::load(), and l1t::MP7BufferDumpToRaw::MP7BufferDumpToRaw().
|
inline |
reader status. valid() == 1 indicates that data was successfully read from file
Definition at line 53 of file MP7FileReader.h.
References valid_.
Referenced by MP7PacketReader::MP7PacketReader(), and MP7PacketReader::valid().
|
staticprivate |
Definition at line 178 of file MP7FileReader.cc.
References reValid_, str, unpackBuffers-CaloStage2::token, and relativeConstraints::value.
Referenced by readRows().
std::vector<FileData> MP7FileReader::buffers_ |
Definition at line 89 of file MP7FileReader.h.
Referenced by begin(), end(), get(), load(), MP7FileReader(), names(), and size().
|
private |
Definition at line 86 of file MP7FileReader.h.
Referenced by load(), MP7FileReader(), readRows(), searchBoard(), and searchLinks().
|
private |
Definition at line 85 of file MP7FileReader.h.
Referenced by valtools.comparison::comparisonOnWebSite(), valtools.comparison::comparisonUrl(), path(), and valtools.comparison::submit().
|
staticprivate |
Definition at line 92 of file MP7FileReader.h.
Referenced by readRows(), and searchBoard().
|
staticprivate |
Definition at line 95 of file MP7FileReader.h.
Referenced by readRows().
|
staticprivate |
Definition at line 93 of file MP7FileReader.h.
Referenced by searchLinks().
|
staticprivate |
Definition at line 94 of file MP7FileReader.h.
Referenced by searchLinks().
|
staticprivate |
Definition at line 96 of file MP7FileReader.h.
Referenced by validStrToUint64().
|
private |
Definition at line 84 of file MP7FileReader.h.
Referenced by load(), MP7FileReader(), and valid().