8 #ifndef CBM_HADD_BASE_H
9 #define CBM_HADD_BASE_H
32 static void AddFilesInDir(
const std::string& dir,
33 const std::string& fileTemplate,
34 const std::string& addString,
36 Int_t fileSizeLimit = 50000,
37 Int_t nofEvents = 1000);
40 static vector<string> GetFilesByPattern(
const string& pattern);
43 GetGoodFiles(
const string& pattern, Int_t fileSizeLimit, Int_t nofEvents);
46 static TFile* CreateAndMergeTempTargetFile(
const std::string& dir,
47 const std::string& addString,
54 static void CloseFilesFromList(TList* fileList);
59 static Bool_t CheckFileSize(TFile* file, Int_t fileSizeLimit = 50000);
65 CheckFile(TFile* file, Int_t fileSizeLimit = 50000, Int_t nofEvents = 1000);
70 static void MergeRootfile(TDirectory* target, TList* sourcelist);