]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Proper message and abort in case of missing DATE_RUN_NUMBER env variable
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 1 Feb 2008 12:17:21 +0000 (12:17 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 1 Feb 2008 12:17:21 +0000 (12:17 +0000)
ITS/ITSSPDPHYSda.cxx
ITS/ITSSPDSCANda.cxx

index 54a6c53138ca465317a1587358ca6a5bbe782743..fa579f5e19dfd18c4a06898b1ec5f6e135113861 100644 (file)
@@ -129,6 +129,10 @@ int main(int argc, char **argv) {
   // ********* STEP 1: Produce phys container files (Reference Data). ***********************************
 
 #ifndef SPD_DA_OFF
+  if (getenv("DATE_RUN_NUMBER")==0) {
+    printf("DATE_RUN_NUMBER not properly set.\n");
+    return -1;
+  }
   int runNr = atoi(getenv("DATE_RUN_NUMBER"));
 #else
   int runNr = atoi(argv[1]);
index 9bf0f6c348d5559f3992f561a038017d8e8e2f86..5859a5380492e397b2ade3e897fecdee697c18b6 100644 (file)
@@ -145,6 +145,10 @@ int main(int argc, char **argv) {
   int startSeg = 1;
 
 #ifndef SPD_DA_OFF
+  if (getenv("DATE_RUN_NUMBER")==0) {
+    printf("DATE_RUN_NUMBER not properly set.\n");
+    return -1;
+  }
   int runNr = atoi(getenv("DATE_RUN_NUMBER"));
 #else
   int runNr = atoi(argv[1]);