Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:16:11

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef FUN4ALL_TDIRECTORYHELPER_H
0004 #define FUN4ALL_TDIRECTORYHELPER_H
0005 
0006 #include <string>
0007 #include <vector>
0008 
0009 class TH1;
0010 class TDirectory;
0011 class TFile;
0012 
0013 class TDirectoryHelper
0014 {
0015  public:
0016   static void duplicateDir(TDirectory* dest, TDirectory* source);
0017 
0018   static TH1* getHisto(TDirectory* dir, const std::string& histoname,
0019                        const std::string& where);
0020 
0021   static TDirectory* mkdir(TDirectory* topDir,
0022                            const std::string& path,
0023                            std::vector<std::string>* titles = 0);
0024 
0025   static bool mkpath(TDirectory* dir, const std::string& path);
0026 
0027   static void copyToFile(TDirectory* src, TFile* dest);
0028 
0029   static bool pathIsInDir(const std::string& path, TDirectory* dir);
0030 
0031   static void splitPath(const std::string& path,
0032                         std::vector<std::string>& paths);
0033 };
0034 
0035 #endif