]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding extra checks to protect from fatal aborts.
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Feb 2010 21:41:32 +0000 (21:41 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Feb 2010 21:41:32 +0000 (21:41 +0000)
HLT/MUON/AliHLTMUONProcessor.cxx

index 1b28037472c4cd6f28026f91fdb35e0a760ad527..ce06323f6cb45048bcb2fa9e2fc99d38e6c728c6 100644 (file)
@@ -290,13 +290,34 @@ int AliHLTMUONProcessor::FetchMappingStores() const
        Int_t runUsed = cdbManager->GetRun();
        
        // Now we can try load the DDL and DE store objects.
+       if (cdbManager->GetId("MUON/Calib/MappingData", runUsed) == NULL)
+       {
+               HLTError("Could not find entry in CDB path '%s/MUON/Calib/MappingData' and run no. %d.",
+                       cdbPathUsed, runUsed
+               );
+               return -ENOENT;
+       }
+       if (cdbManager->GetId("MUON/Calib/Gains", runUsed) == NULL)
+       {
+               HLTError("Could not find entry in CDB path '%s/MUON/Calib/Gains' and run no. %d.",
+                       cdbPathUsed, runUsed
+               );
+               return -ENOENT;
+       }
+       if (cdbManager->GetId("MUON/Calib/Pedestals", runUsed) == NULL)
+       {
+               HLTError("Could not find entry in CDB path '%s/MUON/Calib/Pedestals' and run no. %d.",
+                       cdbPathUsed, runUsed
+               );
+               return -ENOENT;
+       }
        if (not AliMpCDB::LoadDDLStore(warn))
        {
                HLTError("Failed to load DDL or detector element store specified"
                         " for CDB path '%s' and run no. %d.",
                        cdbPathUsed, runUsed
                );
-               return -ENOENT;
+               return -EIO;
        }
        
        if (AliMpDDLStore::Instance(warn) == NULL or AliMpDEStore::Instance(warn) == NULL)