Fixed reading ASCII data fiels (bug MUSR-146).

This commit is contained in:
salman 2010-09-02 19:08:53 +00:00
parent b381f086a6
commit 039aea08b0

View File

@ -1760,6 +1760,10 @@ Bool_t PRunDataHandler::ReadAsciiFile()
continue; continue;
TObjString *ostr; TObjString *ostr;
TObjArray *tokens; TObjArray *tokens;
// Remove trailing end of line
line.Remove(TString::kTrailing, '\r');
// check if data have x, y [, error y] structure, and that x, y, and error y are numbers // check if data have x, y [, error y] structure, and that x, y, and error y are numbers
tokens = line.Tokenize(" ,\t"); tokens = line.Tokenize(" ,\t");
// check if the number of data line entries is 2 or 3 // check if the number of data line entries is 2 or 3