diff --git a/src/classes/PRunDataHandler.cpp b/src/classes/PRunDataHandler.cpp index 9d5c40d2..4347a67d 100644 --- a/src/classes/PRunDataHandler.cpp +++ b/src/classes/PRunDataHandler.cpp @@ -5437,7 +5437,7 @@ Bool_t PRunDataHandler::WriteMudFile(TString fln) noOfEvents = 0; k = 0; for (UInt_t j=0; jGetData()->size(); j++) { - if ((j != 0) && (j % fAny2ManyInfo->rebin == 0)) { + if ((j > 0) && (j % fAny2ManyInfo->rebin == 0)) { data[k] = ival; noOfEvents += ival; k++; @@ -5622,7 +5622,7 @@ Bool_t PRunDataHandler::WriteAsciiFile(TString fln) } for (UInt_t i=0; irebin) == 0) { + if ((i > 0) && ((i % fAny2ManyInfo->rebin) == 0)) { cout << endl; for (UInt_t j=0; j