Per-run or per-file information. More...
#include <CDFRunInfo.h>
Public Member Functions | |
CDFRunInfo () | |
CDFRunInfo (TFile *fromFile) | |
const char * | get (const char *key) const |
Get some run info by name. More... | |
double | getDouble (const char *key) const |
Get a run info item by name and convert it to a double. More... | |
int | getInt (const char *key) const |
Get a run info item by name and convert it to an integer. More... | |
int | getKeys (const char **buffer, int nbufs) |
fill the given array with key name pointers More... | |
int | getSize () const |
get the number of items More... | |
bool | hasKey (const char *key) const |
test for thr presence of given key More... | |
void | print () const |
print all information to the terminal More... | |
void | setInfo (const char *key, const char *value) |
add some information to the run info More... | |
void | store (TFile *toFile) |
Private Member Functions | |
bool | load (TFile *fromFile) |
Private Attributes | |
std::map< std::string, std::string > | m_mapData |
Static Private Attributes | |
static const char * | RootVariableName = "CDFRunInfo" |
Per-run or per-file information.
This class allows access to per-run or per-file information as opposed to per-event information such as CDFEventInfo. The information is stored in the form of string -> string pairs. There are utility methods for decoding string values as integers and doubles.
Definition at line 15 of file CDFRunInfo.h.
CDFRunInfo::CDFRunInfo | ( | ) |
Definition at line 8 of file CDFRunInfo.cc.
CDFRunInfo::CDFRunInfo | ( | TFile * | fromFile | ) |
const char * CDFRunInfo::get | ( | const char * | key | ) | const |
Get some run info by name.
Definition at line 12 of file CDFRunInfo.cc.
References mps_fire::i, submitPVResolutionJobs::key, and m_mapData.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and submitPVValidationJobs.BetterConfigParser::getResultingSection().
double CDFRunInfo::getDouble | ( | const char * | key | ) | const |
Get a run info item by name and convert it to a double.
Definition at line 26 of file CDFRunInfo.cc.
References isotrackApplyRegressor::k, and submitPVResolutionJobs::key.
int CDFRunInfo::getInt | ( | const char * | key | ) | const |
Get a run info item by name and convert it to an integer.
Definition at line 19 of file CDFRunInfo.cc.
References isotrackApplyRegressor::k, and submitPVResolutionJobs::key.
int CDFRunInfo::getKeys | ( | const char ** | buffer, |
int | nbufs | ||
) |
fill the given array with key name pointers
Definition at line 33 of file CDFRunInfo.cc.
References edmScanValgrind::buffer, mps_fire::i, dqmiolumiharvest::j, and m_mapData.
|
inline |
bool CDFRunInfo::hasKey | ( | const char * | key | ) | const |
test for thr presence of given key
Definition at line 42 of file CDFRunInfo.cc.
References mps_fire::i, submitPVResolutionJobs::key, and m_mapData.
|
private |
Definition at line 49 of file CDFRunInfo.cc.
References a, b, f, mps_fire::i, m_mapData, EcalTangentSkim_cfg::o, RootVariableName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CDFRunInfo().
void CDFRunInfo::print | ( | void | ) | const |
print all information to the terminal
Definition at line 77 of file CDFRunInfo.cc.
References mps_fire::i, and m_mapData.
void CDFRunInfo::setInfo | ( | const char * | key, |
const char * | value | ||
) |
add some information to the run info
Definition at line 47 of file CDFRunInfo.cc.
References submitPVResolutionJobs::key, m_mapData, and relativeConstraints::value.
Referenced by HcalTBWriter::analyze(), and HcalTBWriter::endJob().
void CDFRunInfo::store | ( | TFile * | toFile | ) |
Definition at line 67 of file CDFRunInfo.cc.
References f, mps_fire::i, m_mapData, and RootVariableName.
Referenced by HcalTBWriter::endJob().
|
private |
|
staticprivate |
Definition at line 42 of file CDFRunInfo.h.