#include <L1GtPatternLine.h>
Public Member Functions | |
boost::uint32_t | get (const std::string &name) const |
bool | has (const std::string &colname) const |
std::string | name (const std::string &prefix, unsigned int i) const |
std::string | nextName (const std::string &prefix) |
void | print (std::ostream &out) const |
void | push (const std::string &prefix, boost::uint32_t value) |
void | set (const std::string &name, boost::uint32_t value) |
Private Types | |
typedef std::map< std::string, boost::uint32_t > | ColumnMap |
Private Attributes | |
ColumnMap | m_columns |
A class representing the contents of one line in a pattern file. The contents are represented as (name, value) pairs. Column ids are also enumerated so that multiple columns with identical names end up with consecutive names ("muon" becomes "muon1", "muon2" etc).
Description: A representation of a of pattern file line for L1 GT hardware testing.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Description: see header file.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 30 of file L1GtPatternLine.h.
|
private |
Definition at line 65 of file L1GtPatternLine.h.
uint32_t L1GtPatternLine::get | ( | const std::string & | name | ) | const |
Accessor.
Definition at line 79 of file L1GtPatternLine.cc.
References m_columns.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and L1GtPatternWriter::writePatternLine().
bool L1GtPatternLine::has | ( | const std::string & | colname | ) | const |
Returns true iff a column of the given name exists.
colname | Column name to look for. Beware: This has to include the number appended by push! |
Definition at line 58 of file L1GtPatternLine.cc.
References m_columns.
Referenced by nextName(), and L1GtPatternWriter::writePatternLine().
std::string L1GtPatternLine::name | ( | const std::string & | prefix, |
unsigned int | i | ||
) | const |
Forms a column name from a prefix and a number.
Definition at line 73 of file L1GtPatternLine.cc.
References i.
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), BeautifulSoup.Tag::_invert(), and nextName().
std::string L1GtPatternLine::nextName | ( | const std::string & | prefix | ) |
Returns the next free column name for a given prefix.
Definition at line 62 of file L1GtPatternLine.cc.
References has(), i, name(), query::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by push().
void L1GtPatternLine::print | ( | std::ostream & | out | ) | const |
void L1GtPatternLine::push | ( | const std::string & | prefix, |
boost::uint32_t | value | ||
) |
Add a new column with the specified name prefix and value.
prefix | The name prefix of the new column. The final column name consists of prefix + the lowest free number (starting at 1) |
value | The actual data content of the column. |
Definition at line 27 of file L1GtPatternLine.cc.
References m_columns, nextName(), AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.
Referenced by L1GtPatternGenerator::extractGlobalTriggerData(), extractGlobalTriggerWord(), and extractRecordData().
void L1GtPatternLine::set | ( | const std::string & | name, |
boost::uint32_t | value | ||
) |
Manipulate an existing value.
name | the name (prefix + no) of the column to set. Do not use _h or _l values here! |
value | the new value for the column. |
Definition at line 36 of file L1GtPatternLine.cc.
References edm::hlt::Exception, m_columns, and relativeConstraints::value.
Referenced by betterConfigParser.BetterConfigParser::getGeneral().