#ifndef CCHAINGETTER_HH #define CCHAINBETTER_HH class CChainGetter { public: CChainGetter(string TreeName="cbmsim"):m_strTreeName(TreeName) {} ~CChainGetter() {} void SetFileListFile(string filename) { m_strFileListFile=filename; } void SetFileExtension(string ext) { m_strFileExtension=ext; } //Get the Root-Tree. If a Root-Tree-File is specified, it will be used. //Otherwise the strFileListFile is evaluated TChain * GetChain(TString SingleFilename=""); TTree * GetTree(TString SingleFilename); //Reads the Filenames listet in filename and stores them in a vector int ReadFileNames(); //check if file exists bool CheckFile(string filename); //check if tree is sane bool CheckTree(string filename); private: string m_strTreeName; string m_strFileListFile; //a name of the file, where every line is the name of a root tree file string m_strFileExtension; //a string to be added at the end of every name in vFileNames vector m_vFileNames; //a list of files out of which the tree consists }; #endif