40 #include "TFileCollection.h"
42 #include "THashList.h"
44 #include "reportingUtils.hpp"
54 const string& treeName =
"pwa")
59 printInfo <<
"constructing chain for '" << fileNamePattern <<
"' ..." << endl;
60 TFileCollection fileList(
"fitresults",
"fitresults");
61 fileList.Add(fileNamePattern.c_str());
62 cout <<
" file list contains " << fileList.GetNFiles() <<
" files." << endl;
64 chain =
new TChain(treeName.c_str(), treeName.c_str());
65 if (!chain->AddFileInfoList(fileList.GetList()))
66 printWarn <<
"chain has problems reading file list." << endl;
67 cout <<
" chain '" << chain->GetName() <<
"' contains " << chain->GetEntries()
68 <<
" entries." << endl;