45 #include "TClonesArray.h"
46 #include "TObjString.h"
49 #include "reportingUtils.hpp"
59 const string& outFileName =
"testAmpTree.root",
60 const long int maxNmbEvents = -1,
61 const string& ampLeafName =
"amplitude",
62 const bool debug =
false)
65 printInfo <<
"creating output file '" << outFileName <<
"'" << endl;
66 TFile* outFile = TFile::Open(outFileName.c_str(),
"RECREATE");
68 printErr <<
"cannot open output file '" << outFileName <<
"'" << endl;
71 outFile->SetCompressionLevel(9);
74 TTree* outTree =
new TTree();
76 printErr <<
"problems creating tree in file '" << outFileName <<
"'" << endl;
86 printInfo <<
"wrote events to file '" << outFileName <<
"'" << endl;
88 printWarn <<
"problems processing events" << endl;