]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fix in checking if MUON module is loaded.
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Feb 2010 10:28:38 +0000 (10:28 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Feb 2010 10:28:38 +0000 (10:28 +0000)
HLT/MUON/OfflineInterface/AliHLTMUONAgent.cxx

index 2323f6099e3f3ccabefd9fdca7b4106e994a1da3..47dab1b608efff9cf89f17cb2136db7f59d0d68e 100644 (file)
@@ -61,13 +61,12 @@ ClassImp(AliHLTMUONAgent);
 
 bool AliHLTMUONAgent::IsMuonModuleLoaded()
 {
-       // Checks to see if the MUON module is loaded or not.
+       /// Checks to see if the MUON module is loaded or not.
 
        // If the check was already done then use the cached value.
        if (fgMuonModuleLoaded > 0) return true;
        if (fgMuonModuleLoaded < 0) return false;
        
-       bool haveMuonModule = false;
        if (gAlice != NULL)
        {
                // Search for a module in gAlice deriving from AliMUON.
@@ -82,11 +81,9 @@ bool AliHLTMUONAgent::IsMuonModuleLoaded()
                        }
                }
        }
-       else
-       {
-               fgMuonModuleLoaded = -1;
-               return false;
-       }
+       
+       fgMuonModuleLoaded = -1;
+       return false;
 }