Update needed for the new ocdb SPDSparseDead (Annalisa)
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Oct 2011 13:57:55 +0000 (13:57 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Oct 2011 13:57:55 +0000 (13:57 +0000)
ITS/ITSSPDVertexDiamondda.cxx

index c8dadd2..1f9307d 100644 (file)
@@ -137,6 +137,19 @@ int main(int argc, char **argv) {
     return -1;
   }
 
+  if (gSystem->AccessPathName("localOCDB/ITS/Calib/SPDSparseDead",kFileExists)) {
+    if (gSystem->mkdir("localOCDB/ITS/Calib/SPDSparseDead",kTRUE) != 0) {
+      printf("Failed to create directory: localOCDB/ITS/Calib/SPDSparseDead");
+      return -1;
+    }
+  }
+
+  status = daqDA_DB_getFile("spd_sparsedead_ocdb","localOCDB/ITS/Calib/SPDSparseDead/Run0_999999999_v0_s0.root");
+  if (status) {
+    printf("Failed to get spd file (spd_sparsedead_ocdb) from DAQdetDB, status=%d\n", status);
+    return -1;
+  }
+
   if (gSystem->AccessPathName("localOCDB/TRIGGER/SPD/PITConditions",kFileExists)) {
     if (gSystem->mkdir("localOCDB/TRIGGER/SPD/PITConditions",kTRUE) != 0) {
       printf("Failed to create directory: localOCDB/TRIGGER/SPD/PITConditions");