]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 f7637b3fc15862a9f6955770510479010e01c6ff..7c218fea97967a5651dd781811102c94ffa7943d 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 a78922a4d933779e5074de1ea96b17c0c7baab92..d21ca047812a9bd7cc9f338e0097b9301d9ad2c6 100644 (file)
@@ -20,6 +20,7 @@
 #include "AliHLTPHOSDefinitions.h"
 #include "AliHLTPHOSUtilities.h"
 #include "AliHLTPHOSMapper.h"
+#include "AliLog.h"
 
 
 AliHLTPHOSRawAnalyzerComponentv3::AliHLTPHOSRawAnalyzerComponentv3() :