46 #include "TClonesArray.h"
47 #include "TObjString.h"
50 #include "reportingUtils.hpp"
60 const string& inTreeName =
"1-1++1+rho770_21_pi-.amp",
61 const string& outFileName =
"1-1++1+rho770_21_pi-.test.amp",
62 const long int maxNmbEvents = -1,
63 const string& ampLeafName =
"amplitude",
64 const bool debug =
false)
67 printInfo <<
"opening input file(s) '" << inFileNamePattern <<
"'" << endl;
68 TChain chain(inTreeName.c_str());
69 if (chain.Add(inFileNamePattern.c_str()) < 1) {
70 printWarn <<
"no events in input file(s) '" << inFileNamePattern <<
"'" << endl;
73 chain.GetListOfFiles()->ls();
74 printInfo <<
"reading from tree '" << inTreeName <<
"'" << endl;
80 printInfo <<
"wrote events to file '" << outFileName <<
"'" << endl;
82 printWarn <<
"problems processing events" << endl;