Updated MUONRawStreamTrackerErrorCount function
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Nov 2011 15:08:56 +0000 (15:08 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Nov 2011 15:08:56 +0000 (15:08 +0000)
MUON/MUONRawStreamTracker.C

index 995f4b7..5b708c3 100644 (file)
@@ -44,6 +44,7 @@
 #include "TStopwatch.h"
 #include "AliRawDataErrorLog.h"
 #include "Riostream.h"
+#include "AliMUONLogger.h"
 
 #endif
 
@@ -404,8 +405,13 @@ void MUONRawStreamTrackerErrorCount(TString fileName = "collection://filelist",
   
   // raw stream
   AliMUONRawStreamTrackerHP rawStream(rawReader);
-  rawStream.EnableRawReaderErrorLogger();    
   rawStream.DisableWarnings();    
+
+  AliMUONLogger logger;
+  
+  rawStream.EnableMUONErrorLogger();  
+  rawStream.SetMUONErrorLogger(&logger);    
+  rawStream.SetLoggingDetailLevel(AliMUONRawStreamTrackerHP::kMediumErrorDetail);
   
   //   Loop over events  
   Int_t iEvent = 0;
@@ -421,10 +427,14 @@ void MUONRawStreamTrackerErrorCount(TString fileName = "collection://filelist",
     while ((buspatch = rawStream.Next()) != NULL)
     {
     }
+    
+    ++iEvent;
   }
   
-  ShowErrors(*rawReader);
+  logger.Print();
   
+//  ShowErrors(*rawReader);
+
   delete rawReader;
   timer.Print();
 }