Adding possibility to suppress warnings from AliLog for the raw analyzer.
authorodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 28 Mar 2010 15:10:48 +0000 (15:10 +0000)
committerodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 28 Mar 2010 15:10:48 +0000 (15:10 +0000)
The option "-suppressalilogwarnings" should be passed to the component.

This is needed due to frequent warning messages from the decoder regarding some channels in PHOS.

HLT/CALO/AliHLTCaloRawAnalyzerComponentv3.cxx
HLT/PHOS/AliHLTPHOSRawAnalyzerComponentv3.cxx

index f7637b3..7c218fe 100644 (file)
@@ -34,6 +34,7 @@
 #include "AliHLTCaloCrazynessDefinitions.h"
 #include "AliHLTCaloChannelRawDataStruct.h"
 #include "AliHLTCaloCoordinate.h"
+#include "AliLog.h"
 
 //#include "AliCALOBunchInfo.h"
 //AliCALORawAnalyzer
@@ -133,6 +134,10 @@ AliHLTCaloRawAnalyzerComponentv3::DoInit( int argc, const char** argv )
           HLTWarning("fDoPushBadRawData and fDoPushRawData in conflict, using fDoPushRawData");
           fDoPushBadRawData = false;
        }
+       if(!strcmp("-suppressalilogwarnings", argv[i]))
+       {
+           AliLog::SetGlobalLogLevel(AliLog::kError);  //PHOS sometimes produces bad data -> Fill up the HLT logs...
+       }
     }
  
   /*
index a78922a..d21ca04 100644 (file)
@@ -20,6 +20,7 @@
 #include "AliHLTPHOSDefinitions.h"
 #include "AliHLTPHOSUtilities.h"
 #include "AliHLTPHOSMapper.h"
+#include "AliLog.h"
 
 
 AliHLTPHOSRawAnalyzerComponentv3::AliHLTPHOSRawAnalyzerComponentv3() :