#ifndef LumiChain_h #define LumiChain_h #include #include // Class creating a derivation of tree and allowing to attach root lumi files // - AddFiles("date", start_hour, stop_hour) adds one or more files from a // directory // - AddDir("date") adds the content of a complete directory // - AddAll() adds all the available directories class LumiChain : public TChain { public: TString RootDirName; static const char * FullDatePatt; // = "^[01][0-9][01][0-9][0-3][0-9]$";; UInt_t fDebug; public: LumiChain(const char *name="", const char * DirName = "LumiRuns/Root/") : TChain(name, "LumiChain"), RootDirName(DirName), fDebug(1) {}; void AddAll(); void AddDirRange(UInt_t start, UInt_t End, bool quiet=false); void AddDirs(const char * Patt, UInt_t Start = 0, UInt_t End = 999999, bool quiet=false); void AddDir(const char * Date, bool quiet=false); void AddFiles(const char * Date, UInt_t hmin = 0, UInt_t hmax = 23, bool quiet=false); void RecoverFiles(); void SetDebug(UInt_t level){ fDebug=level; }; int GetDebug(){ return fDebug; }; ClassDef(LumiChain,1) //Stat Object }; #endif // LumiChain_h