2 #include <TObjString.h>
16 std::map<std::string,std::string>::const_iterator
i=
m_mapData.find(key);
18 return i->second.c_str();
22 const char*
k=
get(
key);
23 if (k==
NULL)
return 0;
28 const char*
k=
get(
key);
29 if (k==
NULL)
return 0;
35 for (std::map<std::string,std::string>::const_iterator
i=
m_mapData.begin();
i!=
m_mapData.end() && j<nbufs;
i++, j++) {
36 buffer[
j]=
i->first.c_str();
42 std::map<std::string,std::string>::const_iterator
i=
m_mapData.find(key);
52 if (f==
NULL)
return false;
54 if (pMap==
NULL)
return false;
55 TIterator*
i=pMap->MakeIterator();
58 while ((o=i->Next())!=
NULL) {
61 m_mapData.insert(std::pair<std::string,std::string>(
a,
b));
68 TMap* myMap=
new TMap();
70 myMap->Add(
new TObjString(
i->first.c_str()),
new TObjString(
i->second.c_str()));
78 printf(
" '%s' => '%s' \n",
i->first.c_str(),
i->second.c_str());
bool hasKey(const char *key) const
test for thr presence of given key
std::map< std::string, std::string > m_mapData
void setInfo(const char *key, const char *value)
add some information to the run info
void store(TFile *toFile)
void print() const
print all information to the terminal
double getDouble(const char *key) const
Get a run info item by name and convert it to a double.
const char * get(const char *key) const
Get some run info by name.
static const char * RootVariableName
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
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)