26 const std::string& outputDirName,
27 const Long64_t maxEvent,
28 const std::string& logFileName) {
32 TTree::SetMaxTreeSize(10LL * 1024LL * 1024LL * 1024LL);
36 TString outName = gSystem->BaseName(inputFileName.c_str());
39 if ( outName.EndsWith(
".gz", TString::kIgnoreCase) ||
40 outName.EndsWith(
".zip", TString::kIgnoreCase) )
41 outName.Replace(outName.Last(
'.'), outName.Length(),
"");
44 if (outName.Last(
'.') > -1) {
45 outName.Replace(outName.Last(
'.'), outName.Length(),
"");
53 outName.Append(
"event");
56 outName.Append(
".root");
58 TString outDir(outputDirName);
59 if (!outDir.EndsWith(
"/")) outDir.Append(
'/');
60 outName.Prepend(outDir);
73 Long64_t result = forester.
Plant();
75 std::cerr <<
"Tree building failed" << std::endl;
82 std::string logFile(logFileName);
83 if (logFile.empty()) {
92 TFile rootFile(outName,
"UPDATE");
96 bool wasRead = (reader ? reader->
Extract(logFile) :
false);