]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing logging option. It was not working properly.
authorszostak <szostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Sep 2007 05:40:35 +0000 (05:40 +0000)
committerszostak <szostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Sep 2007 05:40:35 +0000 (05:40 +0000)
HLT/MUON/macros/RunChain.C

index f01c97eed201541d842abf5b460db6ce57205c25..b03a1366d2ffd7ad7295b072ef949305e91f77bf 100644 (file)
@@ -123,15 +123,15 @@ void RunChain(
        }
        
        TString logOpt = logLevel;
-       if (logOpt.CompareTo("normal", TString::kIgnoreCase) != 0)
+       if (logOpt.CompareTo("normal", TString::kIgnoreCase) == 0)
        {
                // nothing to do.
        }
-       else if (logOpt.CompareTo("max", TString::kIgnoreCase) != 0)
+       else if (logOpt.CompareTo("max", TString::kIgnoreCase) == 0)
        {
                maxLogging = true;
        }
-       else if (logOpt.CompareTo("min", TString::kIgnoreCase) != 0)
+       else if (logOpt.CompareTo("min", TString::kIgnoreCase) == 0)
        {
                minLogging = true;
        }
@@ -143,7 +143,6 @@ void RunChain(
        
        // Now we can initialise the AliHLTSystem...
        AliHLTSystem sys;
-       sys.LoadComponentLibraries("libAliHLTMUON.so");
        
        // Start by setting up the logging.
        if (maxLogging)
@@ -155,6 +154,8 @@ void RunChain(
        {
                sys.SetGlobalLoggingLevel(kHLTLogError);
        }
+       
+       sys.LoadComponentLibraries("libAliHLTMUON.so");
 
        // The DDL file publishers are only needed if we create the ddlreco or
        // full chains. The filename lists are built assuming the aliroot rawXX/