Adding printout concerning usage of snapshot for CPass
authorzampolli <chiara.zampolli@cern.ch>
Wed, 6 Aug 2014 13:32:34 +0000 (15:32 +0200)
committerzampolli <chiara.zampolli@cern.ch>
Wed, 6 Aug 2014 13:32:41 +0000 (15:32 +0200)
PWGPP/CalibMacros/CPass0/ConfigCalibTrain.C
PWGPP/CalibMacros/CPass1/ConfigCalibTrain.C

index 88f5393..c2ac57d 100644 (file)
@@ -18,8 +18,12 @@ void ConfigCalibTrain(Int_t run, const char *ocdb="raw://"){
   AliCDBManager::Instance()->SetDefaultStorage(ocdb);
   AliCDBManager::Instance()->SetRun(run); 
   if (gSystem->AccessPathName("OCDB.root", kFileExists)==0) {  
+    Printf("ConfigCalibTrain: using OCDB snapshot");
     AliCDBManager::Instance()->SetSnapshotMode("OCDB.root");
   }
+  else {
+    Printf("ConfigCalibTrain: NOT using OCDB snapshot");
+  }
   // magnetic field
   if ( !TGeoGlobalMagField::Instance()->GetField() ) {
     printf("Loading field map...\n");
index e73dad6..c8abcaf 100644 (file)
@@ -18,8 +18,12 @@ void ConfigCalibTrain(Int_t run, const char *ocdb="raw://"){
   AliCDBManager::Instance()->SetDefaultStorage(ocdb);
   AliCDBManager::Instance()->SetRun(run); 
   if (gSystem->AccessPathName("OCDB.root", kFileExists)==0) {  
+    Printf("ConfigCalibTrain: using OCDB snapshot");
     AliCDBManager::Instance()->SetSnapshotMode("OCDB.root");
   }
+  else {
+    Printf("ConfigCalibTrain: NOT using OCDB snapshot");
+  }
   // magnetic field
   if ( !TGeoGlobalMagField::Instance()->GetField() ) {
     printf("Loading field map...\n");