2 #include <TObjString.h> 13 std::map<std::string, std::string>::const_iterator
i =
m_mapData.find(
key);
16 return i->second.c_str();
20 const char*
k =
get(
key);
27 const char*
k =
get(
key);
35 for (std::map<std::string, std::string>::const_iterator
i =
m_mapData.begin();
i !=
m_mapData.end() &&
j < nbufs;
43 std::map<std::string, std::string>::const_iterator
i =
m_mapData.find(
key);
56 TIterator*
i = pMap->MakeIterator();
59 while ((
o =
i->Next()) !=
nullptr) {
62 m_mapData.insert(std::pair<std::string, std::string>(
a,
b));
69 TMap* myMap =
new TMap();
71 myMap->Add(
new TObjString(
i->first.c_str()),
new TObjString(
i->second.c_str()));
78 for (std::map<std::string, std::string>::const_iterator
i =
m_mapData.begin();
i !=
m_mapData.end();
i++)
79 printf(
" '%s' => '%s' \n",
i->first.c_str(),
i->second.c_str());
void print() const
print all information to the terminal
std::map< std::string, std::string > m_mapData
double getDouble(const char *key) const
Get a run info item by name and convert it to a double.
void setInfo(const char *key, const char *value)
add some information to the run info
void store(TFile *toFile)
static const char * RootVariableName
int getKeys(const char **buffer, int nbufs)
fill the given array with key name pointers
int getInt(const char *key) const
Get a run info item by name and convert it to an integer.
bool load(TFile *fromFile)
bool hasKey(const char *key) const
test for thr presence of given key
const char * get(const char *key) const
Get some run info by name.