add optional localOCDBaccessConfig.C similar to cpass1 (for testing purposes)
authormkrzewic <mkrzewic@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Jun 2013 12:59:34 +0000 (12:59 +0000)
committermkrzewic <mkrzewic@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Jun 2013 12:59:34 +0000 (12:59 +0000)
PWGPP/CalibMacros/CPass0/ConfigCalibTrain.C
PWGPP/CalibMacros/CPass0/recCPass0.C

index 58ab3d8..88f5393 100644 (file)
@@ -39,4 +39,9 @@ void ConfigCalibTrain(Int_t run, const char *ocdb="raw://"){
     printf("Problem with align objects\n"); 
   }
 
+  if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {        
+    gROOT->LoadMacro("localOCDBaccessConfig.C");
+    localOCDBaccessConfig();
+  }
+
 }
index 279655b..351fb21 100644 (file)
@@ -22,6 +22,12 @@ void recCPass0(const char *filename="raw.root",Int_t nevents=-1, const char *ocd
     //rec.SetFromCDBSnapshot("OCDB.root");
     rec.SetCDBSnapshotMode("OCDB.root");
   }
+
+  if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {        
+    gROOT->LoadMacro("localOCDBaccessConfig.C");
+    localOCDBaccessConfig();
+  }
+
   // All friends
   rec.SetFractionFriends(1.0);