3 #ifndef FUN4ALL_TDIRECTORYHELPER_H
4 #define FUN4ALL_TDIRECTORYHELPER_H
16 static void duplicateDir(TDirectory* dest, TDirectory* source);
18 static TH1*
getHisto(TDirectory*
dir,
const std::string& histoname,
19 const std::string& where);
21 static TDirectory*
mkdir(TDirectory* topDir,
22 const std::string& path,
23 std::vector<std::string>* titles = 0);
25 static bool mkpath(TDirectory* dir,
const std::string& path);
27 static void copyToFile(TDirectory* src, TFile* dest);
29 static bool pathIsInDir(
const std::string& path, TDirectory* dir);
31 static void splitPath(
const std::string& path,
32 std::vector<std::string>& paths);