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 11b00c2..8c0e874 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 b8822ff..6bc6675 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;