#include #include #include #include #include #include int main(int argc, char** argv) { TString iFileName, iTreeName; if (argc < 5){ std::cerr << "./get_dca -i filelist --tree-name TreeName" << std::endl; return 1; } for (int i=1; iAdd(line.c_str()); iFiles++; } std::cout << iFiles << " files were processed." << std::endl; std::cout << "Total number of events:" << std::endl; Long64_t nEntries = chain->GetEntries(); std::cout << nEntries << std::endl; std::cout << std::endl; return 0; }