#include <L1GtPatternLine.h>
Public Member Functions | |
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, uint32_t value) |
void | set (const std::string &name, uint32_t value) |
Private Types | |
typedef std::map< std::string, 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>
Description: see header file.
Implementation: <TODO: enter implementation details>
Definition at line 28 of file L1GtPatternLine.h.
|
private |
Definition at line 62 of file L1GtPatternLine.h.
uint32_t L1GtPatternLine::get | ( | const std::string & | name | ) | const |
Definition at line 71 of file L1GtPatternLine.cc.
References m_columns, and name().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and submitPVValidationJobs.BetterConfigParser::getResultingSection().
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 53 of file L1GtPatternLine.cc.
References m_columns.
Referenced by nextName().
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 65 of file L1GtPatternLine.cc.
References mps_fire::i, hcallasereventfilter2012_cfi::prefix, and contentValuesCheck::ss.
Referenced by config.CFG::__str__(), validation.Sample::digest(), get(), VIDSelectorBase.VIDSelectorBase::initialize(), nextName(), and set().
std::string L1GtPatternLine::nextName | ( | const std::string & | prefix | ) |
Returns the next free column name for a given prefix.
Definition at line 55 of file L1GtPatternLine.cc.
References has(), mps_fire::i, name(), hcallasereventfilter2012_cfi::prefix, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by push().
void L1GtPatternLine::print | ( | std::ostream & | out | ) | const |
Debug dump of contents
Definition at line 45 of file L1GtPatternLine.cc.
References m_columns, and MillePedeFileConverter_cfg::out.
void L1GtPatternLine::push | ( | const std::string & | prefix, |
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 25 of file L1GtPatternLine.cc.
References m_columns, nextName(), hcallasereventfilter2012_cfi::prefix, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.
void L1GtPatternLine::set | ( | const std::string & | name, |
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 34 of file L1GtPatternLine.cc.
References Exception, m_columns, name(), and relativeConstraints::value.