|
SusyNtuple
|
#include <ChainHelper.h>
Public Types | |
| enum | Status { GOOD = 0, BAD = 1 } |
Static Public Member Functions | |
| static Status | addFile (TChain *chain, std::string file) |
| Add a file - not very useful (obsolete, use addInput() instead) | |
| static Status | addFileList (TChain *chain, std::string fileListName) |
| Add a fileList (obsolete, use addInput() instead) | |
| static Status | addFileDir (TChain *chain, std::string fileDir) |
| static Status | addInput (TChain *chain, const std::string &input, bool verbose=false) |
| add generic input | |
| static std::string | firstFile (const std::string &input, bool verbose=false) |
| static bool | inputIsFile (const std::string &input) |
| input files are expected to have the '.root' extension | |
| static bool | inputIsList (const std::string &input) |
| input filelists are expected to have the '.txt' extension | |
| static bool | inputIsDir (const std::string &input) |
| input directories are expected to end with '/' | |
Static helper methods to build a TChain from input root files
The recommended method is ChainHelper::addInput(). The input can be one of the following
| ChainHelper::Status ChainHelper::addInput | ( | TChain * | chain, |
| const std::string & | input, | ||
| bool | verbose = false |
||
| ) | [static] |
add generic input
Determine internally whether it's a file, filelist, or directory. Also accepts comma-separated list of inputs.
1.7.6.1