/search.css" rel="stylesheet" type="text/css"/> /search.js">
#include <TFolder.h>
#include <TH1.h>
#include <vector>
Go to the source code of this file.
Classes | |
class | HistMan |
manage histograms. More... | |
Functions | |
TFolder & | mkdir_p (TFolder &folder, const char *path) |
TFolder& mkdir_p | ( | TFolder & | folder, |
const char * | path | ||
) |
Definition at line 45 of file HistMan.cc.
{ if (!path || path[0] == '\0') return top; vector<string> vp = parse_path(path); TFolder* folder = ⊤ for (unsigned int ind=0; ind < vp.size(); ++ind) { const char* name = vp[ind].c_str(); TFolder* tmp = dynamic_cast<TFolder*>(folder->FindObject(name)); if (tmp) folder = tmp; else folder = folder->AddFolder(name,name); } return *folder; }