#include <TFolder.h>
#include <TH1.h>
#include <vector>
Include dependency graph for HistMan.h:
This graph shows which files directly or indirectly include this file:
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.
00046 { 00047 if (!path || path[0] == '\0') return top; 00048 00049 vector<string> vp = parse_path(path); 00050 TFolder* folder = ⊤ 00051 for (unsigned int ind=0; ind < vp.size(); ++ind) { 00052 const char* name = vp[ind].c_str(); 00053 TFolder* tmp = dynamic_cast<TFolder*>(folder->FindObject(name)); 00054 if (tmp) folder = tmp; 00055 else folder = folder->AddFolder(name,name); 00056 } 00057 return *folder; 00058 }