#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 38 of file MP7FileReader.cc.
References buffers_, file_, load(), LogDebug, path(), and valid_.
|
virtual |
Definition at line 62 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 68 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 83 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 73 of file MP7FileReader.cc.
References buffers_, FileData::name(), and alignCSCRings::r.
|
inline |
source file path
Definition at line 59 of file MP7FileReader.h.
References gen::k, cscdqm::h::names, and path_.
Referenced by MP7FileReader().
|
private |
Definition at line 207 of file MP7FileReader.cc.
References data, file_, geometryCSVtoXML::line, gen::n, reBoard_, reFrame_, split, AlCaHLTBitMon_QueryRunRegistry::string, tmp, create_public_lumi_plots::transform, and validStrToUint64().
Referenced by load().
|
private |
Definition at line 132 of file MP7FileReader.cc.
References file_, triggerObjects_cff::id, geometryCSVtoXML::line, reBoard_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by load().
|
private |
Definition at line 159 of file MP7FileReader.cc.
References file_, geometryCSVtoXML::line, reLink_, reQuadChan_, split, AlCaHLTBitMon_QueryRunRegistry::string, tmp, and create_public_lumi_plots::transform.
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 193 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().