some minor changes to improve the robustness for various msr-file dialects

This commit is contained in:
nemu
2008-02-04 13:46:45 +00:00
parent bdbfe3b4df
commit 07f702167e
3 changed files with 13 additions and 11 deletions

View File

@ -443,7 +443,7 @@ bool PRunDataHandler::ReadNemuFile()
// read header
bool headerInfo = true;
char instr[128];
char instr[512];
TString line;
double dval;
int ival;
@ -551,9 +551,11 @@ cout << endl << ">> time resolution : " << runData.fTimeResolution;
histoData.push_back(val[i]);
}
// save the last histo
runData.fDataBin.push_back(histoData);
histoData.clear();
// save the last histo if not empty
if (histoData.size() > 0) {
runData.fDataBin.push_back(histoData);
histoData.clear();
}
// close file
f.close();