]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Suppressing unnecessary warning message, because appropriate error messages are being...
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 May 2008 09:38:32 +0000 (09:38 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 May 2008 09:38:32 +0000 (09:38 +0000)
HLT/MUON/AliHLTMUONProcessor.cxx

index be8a1c0fa9458ca05ea4ed157a3a890588aa2cc2..0ac023dca592829f5e802037bfbd8b30c282d8cc 100644 (file)
@@ -55,9 +55,11 @@ int AliHLTMUONProcessor::FetchMappingStores(
        /// \note AliMpDDLStore::Instance() and AliMpDEStore::Instance() must be used
        ///      to fetch the objects after this method returns a code equal to zero.
        
+       Bool_t warn = kFALSE;
+       
        // Check if the objects are already loaded. If they are then exit early,
        // otherwise we need to try load the objects.
-       if (AliMpDDLStore::Instance() != NULL and AliMpDEStore::Instance() != NULL)
+       if (AliMpDDLStore::Instance(warn) != NULL and AliMpDEStore::Instance(warn) != NULL)
                return 0;
        
        const char* defaultPath = "local://$ALICE_ROOT";
@@ -106,7 +108,6 @@ int AliHLTMUONProcessor::FetchMappingStores(
        Int_t runUsed = cdbManager->GetRun();
        
        // Now we can try load the DDL and DE store objects.
-       Bool_t warn = kFALSE;
        if (not AliMpCDB::LoadDDLStore(warn))
        {
                HLTError("Failed to load DDL or detector element store specified"
@@ -116,7 +117,7 @@ int AliHLTMUONProcessor::FetchMappingStores(
                return -ENOENT;
        }
        
-       if (AliMpDDLStore::Instance() == NULL or AliMpDEStore::Instance() == NULL)
+       if (AliMpDDLStore::Instance(warn) == NULL or AliMpDEStore::Instance(warn) == NULL)
        {
                HLTError("Could not find or load the DDL or detector element store instance.");
                return -EIO;