Temporary setting the local storage to ALICE_ROOT. One will need also a dummy calibra...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 10 Jan 2006 11:59:53 +0000 (11:59 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 10 Jan 2006 11:59:53 +0000 (11:59 +0000)
ZDC/AliZDCDigitizer.cxx
ZDC/AliZDCReconstructor.cxx

index 11b00c2b784b351bd39618350f6b56ce96531dbe..8c0e8748c7da8d1ea56fbad229aa564ff34ababd 100644 (file)
@@ -347,13 +347,13 @@ AliZDCCalibData* AliZDCDigitizer::GetCalibData(int runNumber) const
   //fStorage->PrintSelectionList();
   //AliCDBEntry *entry = fStorage->Get("ZDC/Calib/Data",runNumber);
   
-  AliCDBStorage *fStorage = AliCDBManager::Instance()->GetStorage("local://DBlocal");
-  AliCDBEntry  *entry = fStorage->Get("ZDC/Calib/Data",1);
+  AliCDBStorage *fStorage = AliCDBManager::Instance()->GetStorage("local://$ALICE_ROOT");
+  AliCDBEntry  *entry = fStorage->Get("ZDC/Calib/Data",0);
   
   AliZDCCalibData *calibda = (AliZDCCalibData*) entry->GetObject();
   //calibda->Print("");
 
-  AliCDBManager::Instance()->Destroy();
// AliCDBManager::Instance()->Destroy();
 
   return calibda;
 
index b8822ff32f85acae0fe2170bb35066de6c3e4ea7..6bc66751bd3db57bee18083eec6168e2f9ea5890 100644 (file)
@@ -353,12 +353,12 @@ AliZDCCalibData* AliZDCReconstructor::GetCalibData(int runNumber) const
   //AliCDBEntry *entry = fStorage->Get("DBlocal/ZDC/Calib/Data",runNumber);
 
   
-  AliCDBStorage *fStorage = AliCDBManager::Instance()->GetStorage("local://DBlocal");
-  AliCDBEntry  *entry = fStorage->Get("ZDC/Calib/Data",1);
+  AliCDBStorage *fStorage = AliCDBManager::Instance()->GetStorage("local://$ALICE_ROOT");
+  AliCDBEntry  *entry = fStorage->Get("ZDC/Calib/Data",0);
   
   AliZDCCalibData *calibda = (AliZDCCalibData*) entry->GetObject();
 
-  AliCDBManager::Instance()->Destroy();
+  //AliCDBManager::Instance()->Destroy();
 
   return calibda;