returning ddl number instead of -1
authorbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Jul 2008 14:54:44 +0000 (14:54 +0000)
committerbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Jul 2008 14:54:44 +0000 (14:54 +0000)
PMD/AliPMDRawStream.cxx
PMD/PMDPEDESTALda.cxx

index 8408e4b..3cfb38d 100644 (file)
@@ -93,7 +93,7 @@ Int_t AliPMDRawStream::DdlData(TObjArray *pmdddlcont)
 
     
 
-    Int_t iddl = -1;
+  Int_t iddl = -1;
 
   AliPMDddldata *pmdddldata;
 
@@ -103,7 +103,7 @@ Int_t AliPMDRawStream::DdlData(TObjArray *pmdddlcont)
   Int_t dataSize = fRawReader->GetDataSize();
   Int_t totaldataword = dataSize/4;
 
-  if (dataSize <= 0) return -1;
+  if (dataSize <= 0) return iddl;
 
   UInt_t data;
 
@@ -246,7 +246,7 @@ Int_t AliPMDRawStream::DdlData(TObjArray *pmdddlcont)
              Int_t rawdatalength = pbusHeader.GetRawDataLength();
              Int_t pbusid = pbusHeader.GetPatchBusId();
 
-             if (pbusid < 0 || pbusid > 50) return -1;
+             if (pbusid < 0 || pbusid > 50) return iddl;
 
 
              ilowLimit = iuppLimit;
@@ -273,7 +273,7 @@ Int_t AliPMDRawStream::DdlData(TObjArray *pmdddlcont)
                    {
                      AliWarning(Form("Parity Error:: Patch Bus %d Module %d",pbusid,imodule));
                      fRawReader->AddMajorErrorLog(kParityError);
-                     return -1;
+                     return iddl;
                    }
 
                  ConvertDDL2SMN(iddl, imodule, ismn, idet);
index d2d0fbc..9e28e90 100644 (file)
@@ -4,7 +4,7 @@ PMD DA for online calibration
 contact: basanta@phy.iitb.ac.in
 Link:
 Reference Run:/afs/cern.ch/user/b/bnandi/public/pedestaldata/run37820.raw
-Run Type: STANDALONE
+Run Type: PEDESTAL
 DA Type: LDC
 Number of events needed: 1000
 Input Files: