]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
In ReadFiles(): increased the size of line used in reading
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Dec 2007 14:45:11 +0000 (14:45 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Dec 2007 14:45:11 +0000 (14:45 +0000)
(Laurent)

MUON/AliMUONGainSubprocessor.cxx
MUON/AliMUONPedestalSubprocessor.cxx

index 088fcf9ebcec9fe2d5fcb39404c267284b2d3764..a490f7fd6b373cbad829563dd033a8e573a930fe 100644 (file)
@@ -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;
index 30a925106179cac359f7906d66fcb624007b519c..c9cb2a7684e476f767ed2bcdafd423767fa0b07c 100644 (file)
@@ -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;
 }