From: ivana Date: Fri, 14 Dec 2007 14:45:11 +0000 (+0000) Subject: In ReadFiles(): increased the size of line used in reading X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=2a7274d91909d26e7a3ecb6a5179899b6eddef48;p=u%2Fmrichter%2FAliRoot.git In ReadFiles(): increased the size of line used in reading (Laurent) --- diff --git a/MUON/AliMUONGainSubprocessor.cxx b/MUON/AliMUONGainSubprocessor.cxx index 088fcf9ebce..a490f7fd6b3 100644 --- a/MUON/AliMUONGainSubprocessor.cxx +++ b/MUON/AliMUONGainSubprocessor.cxx @@ -186,7 +186,7 @@ AliMUONGainSubprocessor::ReadFile(const char* filename) { return 0; } - char line[256]; + char line[1024]; Int_t busPatchID, manuID, manuChannel; Float_t a0, a1; Int_t thres; @@ -196,7 +196,7 @@ AliMUONGainSubprocessor::ReadFile(const char* filename) static const Int_t kNchannels(AliMpConstants::ManuNofChannels()); Int_t n(0); - while ( in.getline(line,256) ) + while ( in.getline(line,1024) ) { if ( strlen(line) < 10 ) continue; if ( line[0] == '/' && line[1] == '/' ) continue; diff --git a/MUON/AliMUONPedestalSubprocessor.cxx b/MUON/AliMUONPedestalSubprocessor.cxx index 30a92510617..c9cb2a7684e 100644 --- a/MUON/AliMUONPedestalSubprocessor.cxx +++ b/MUON/AliMUONPedestalSubprocessor.cxx @@ -179,16 +179,18 @@ AliMUONPedestalSubprocessor::ReadFile(const char* filename) std::ifstream in(sFilename.Data()); if (!in.good()) { + Master()->Log(Form("Could not open %s",sFilename.Data())); return 0; } - char line[80]; + char line[1024]; Int_t busPatchID, manuID, manuChannel; Float_t pedMean, pedSigma; static const Int_t kNchannels(AliMpConstants::ManuNofChannels()); Int_t n(0); - while ( in.getline(line,80) ) + while ( in.getline(line,1024) ) { + AliDebug(3,Form("line=%s",line)); if ( line[0] == '/' && line[1] == '/' ) continue; std::istringstream sin(line); sin >> busPatchID >> manuID >> manuChannel >> pedMean >> pedSigma; @@ -211,6 +213,9 @@ AliMUONPedestalSubprocessor::ReadFile(const char* filename) ++n; } in.close(); + + Master()->Log("File closed"); + return n; }