Add new online gain tables
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Jul 2012 15:48:38 +0000 (15:48 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Jul 2012 15:48:38 +0000 (15:48 +0000)
TRD/AliTRDcalibDB.cxx

index dcc2e59..0d3217b 100644 (file)
@@ -279,7 +279,11 @@ const TObject *AliTRDcalibDB::GetCachedCDBObject(Int_t id)
           break;
         case 7:
          // Online gain table ID 7
-          return CacheCDBEntry(kIDOnlineGainFactor  ,"TRD/Calib/Gaintbl_Uniform_FGAN8_2012-01"); 
+          return CacheCDBEntry(kIDOnlineGainFactor  ,"TRD/Calib/Gaintbl_Uniform_FGAN8_2012-01");
+          break; 
+        case 8:
+         // Online gain table ID 8
+          return CacheCDBEntry(kIDOnlineGainFactor  ,"TRD/Calib/Krypton_2012-01"); 
           break;
       }
       break;
@@ -1032,6 +1036,10 @@ Int_t AliTRDcalibDB::GetOnlineGainTableID()
       fOnlineGainTableID = 7;
       return fOnlineGainTableID;
     }
+    if (tableName.CompareTo("Krypton_2011-03")               == 0) {
+      fOnlineGainTableID = 8;
+      return fOnlineGainTableID;
+    }
 
   } 
   else {