#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 45 of file MP7FileReader.h.
typedef std::vector<FileData>::const_iterator MP7FileReader::const_iterator |
expose vector's const iterator
Definition at line 49 of file MP7FileReader.h.
MP7FileReader::MP7FileReader | ( | const std::string & | path | ) |
Definition at line 36 of file MP7FileReader.cc.
References buffers_, file_, load(), LogDebug, path(), and valid_.
|
virtual |
Definition at line 60 of file MP7FileReader.cc.
|
inline |
vector's begin iterator
Definition at line 68 of file MP7FileReader.h.
Referenced by MP7PacketReader::load().
|
inline |
vector's end iterator
Definition at line 71 of file MP7FileReader.h.
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 66 of file MP7FileReader.cc.
References buffers_.
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 81 of file MP7FileReader.cc.
References buffers_, data, file_, mps_fire::i, triggerObjects_cff::id, FileData::links_, FileData::name_, readRows(), alignCSCRings::s, searchBoard(), searchLinks(), AlCaHLTBitMon_QueryRunRegistry::string, and valid_.
Referenced by MP7FileReader().
std::vector< std::string > MP7FileReader::names | ( | void | ) | const |
raw data name collector
Definition at line 71 of file MP7FileReader.cc.
References buffers_, and alignCSCRings::r.
|
inline |
source file path
Definition at line 59 of file MP7FileReader.h.
References gen::k, names, and path_.
Referenced by MP7FileReader().
|
private |
Definition at line 205 of file MP7FileReader.cc.
References data, file_, mps_splice::line, gen::n, reBoard_, reFrame_, split, AlCaHLTBitMon_QueryRunRegistry::string, tmp, create_public_lumi_plots::transform, trim(), and validStrToUint64().
Referenced by load().
|
private |
Definition at line 130 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 157 of file MP7FileReader.cc.
References file_, mps_splice::line, reLink_, reQuadChan_, split, AlCaHLTBitMon_QueryRunRegistry::string, tmp, create_public_lumi_plots::transform, and trim().
Referenced by load().
|
inline |
number of rawdata objects stored
Definition at line 74 of file MP7FileReader.h.
References svgfig::load(), and AlCaHLTBitMon_QueryRunRegistry::string.
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 56 of file MP7FileReader.h.
References sistrip::valid_.
Referenced by MP7PacketReader::MP7PacketReader().
|
staticprivate |
Definition at line 191 of file MP7FileReader.cc.
References reValid_, str, and relativeConstraints::value.
Referenced by readRows().
std::vector<FileData> MP7FileReader::buffers_ |
Definition at line 94 of file MP7FileReader.h.
Referenced by get(), load(), MP7FileReader(), and names().
|
private |
Definition at line 90 of file MP7FileReader.h.
Referenced by load(), MP7FileReader(), readRows(), searchBoard(), and searchLinks().
|
private |
Definition at line 89 of file MP7FileReader.h.
Referenced by valtools.comparison::comparisonOnWebSite(), valtools.comparison::comparisonUrl(), and valtools.comparison::submit().
|
staticprivate |
Definition at line 97 of file MP7FileReader.h.
Referenced by readRows(), and searchBoard().
|
staticprivate |
Definition at line 100 of file MP7FileReader.h.
Referenced by readRows().
|
staticprivate |
Definition at line 98 of file MP7FileReader.h.
Referenced by searchLinks().
|
staticprivate |
Definition at line 99 of file MP7FileReader.h.
Referenced by searchLinks().
|
staticprivate |
Definition at line 101 of file MP7FileReader.h.
Referenced by validStrToUint64().
|
private |
Definition at line 88 of file MP7FileReader.h.
Referenced by load(), and MP7FileReader().