]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PMD/PMDPEDESTALda.cxx
coverity fixes
[u/mrichter/AliRoot.git] / PMD / PMDPEDESTALda.cxx
index b3d09a9e9ae1d40b14c06bebd81cd270d0517047..13f42d123361a7316e6bc44fa50c6a25d02016f7 100644 (file)
@@ -1,13 +1,13 @@
 /*
 PMD DA for online calibration
 
-contact: basanta@phy.iitb.ac.in
-Link:
+contact: basanta@iitb.ac.in, Satyajit.Jena@cern.ch
+Link: https://twiki.cern.ch/twiki/bin/view/ALICE/DA
 Reference Run:/afs/cern.ch/user/s/sjena/public/run83496.raw
 Run Type: PEDESTAL
 DA Type: LDC
 Number of events needed: 1000
-Input Files: Run0_999999999_v0_s0.root from the DAQ DB for mapping
+Input Files: PMD/Calib/Mapping/Run0_999999999_v0_s0.root
 Output Files: pmd_ped.root, to be exported to the DAQ FXS, pedestal230*.ped
 Trigger types used: PHYSICS_EVENT
 
@@ -99,14 +99,16 @@ int main(int argc, char **argv) {
 
     // Get run number
 
+    int runNr = 0;
     if (getenv("DATE_RUN_NUMBER")==0) {
       printf("DATE_RUN_NUMBER not properly set.\n");
-      return -1;
+      //return -1;
+      printf("Run Number is set to Zero \n");
     }
-    int runNr = atoi(getenv("DATE_RUN_NUMBER"));
-
-    //int runNr = 0;
-
+    else
+      {
+       runNr = atoi(getenv("DATE_RUN_NUMBER"));
+      }
 
     if (gSystem->AccessPathName("localOCDB/PMD/Calib/Mapping",kFileExists))
       {
@@ -116,10 +118,10 @@ int main(int argc, char **argv) {
            return -1;
          }
       }
-    status = daqDA_DB_getFile("PMD/Calib/Mapping","localOCDB/PMD/Calib/Mapping/Run0_999999999_v0_s0.root");
+    status = daqDA_DB_getFile("PMD/Calib/Mapping/Run0_999999999_v0_s0.root","localOCDB/PMD/Calib/Mapping/Run0_999999999_v0_s0.root");
     if (status)
       {
-       printf("Failed to get PMD-Mapping file (PMD/Calib/Mapping) from DAQdetDB, status=%d\n", status);
+       printf("Failed to get PMD-Mapping file (PMD/Calib/Mapping/Run0_999999999_v0_s0.root) from DAQdetDB, status=%d\n", status);
        return -1;
       }