Updating with the usage of OCDB snapshot also in the ConfiCalibTrain.C macro (Raffaele).
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Apr 2012 07:12:27 +0000 (07:12 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Apr 2012 07:12:27 +0000 (07:12 +0000)
PWGPP/CalibMacros/CPass0/ConfigCalibTrain.C
PWGPP/CalibMacros/CPass1/ConfigCalibTrain.C

index 98ad554..58ab3d8 100644 (file)
@@ -18,7 +18,7 @@ void ConfigCalibTrain(Int_t run, const char *ocdb="raw://"){
   AliCDBManager::Instance()->SetDefaultStorage(ocdb);
   AliCDBManager::Instance()->SetRun(run); 
   if (gSystem->AccessPathName("OCDB.root", kFileExists)==0) {  
-    AliCDBManager::Instance()->InitFromSnapshot("OCDB.root");
+    AliCDBManager::Instance()->SetSnapshotMode("OCDB.root");
   }
   // magnetic field
   if ( !TGeoGlobalMagField::Instance()->GetField() ) {
index 98ad554..58ab3d8 100644 (file)
@@ -18,7 +18,7 @@ void ConfigCalibTrain(Int_t run, const char *ocdb="raw://"){
   AliCDBManager::Instance()->SetDefaultStorage(ocdb);
   AliCDBManager::Instance()->SetRun(run); 
   if (gSystem->AccessPathName("OCDB.root", kFileExists)==0) {  
-    AliCDBManager::Instance()->InitFromSnapshot("OCDB.root");
+    AliCDBManager::Instance()->SetSnapshotMode("OCDB.root");
   }
   // magnetic field
   if ( !TGeoGlobalMagField::Instance()->GetField() ) {