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;
37 buffer[
j] =
i->first.c_str();
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());
std::map< std::string, std::string > m_mapData
bool hasKey(const char *key) const
test for thr presence of given key
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.
printf("params %d %f %f %f\n", minT, eps, errmax, chi2max)
const char * get(const char *key) const
Get some run info by name.
tuple key
prepare the HTCondor submission files and eventually submit them
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)