]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PMD/AliPMDRawStream.cxx
reduce to 50 MeV cut the print and exclude too low energy clusters
[u/mrichter/AliRoot.git] / PMD / AliPMDRawStream.cxx
index 5e0237b7a9cbdd66dae9119d966262997cf415a1..4ff6d5c48d981a032c183c65c03897b066e41963 100644 (file)
@@ -112,11 +112,16 @@ Int_t AliPMDRawStream::DdlData(TObjArray *pmdddlcont)
 
   UInt_t data = 0;
 
-  fRawReader->ReadNextData(fData);
+ // PMD raw data does not contain CDH
 
-  fPosition = 0;
+  if (!fRawReader->ReadNextData(fData))
+    {
+      return kFALSE;
+    }
 
 
+  fPosition = 0;
+
   Int_t ibus = 0;
 
   const Int_t kNPatchBus = 51;
@@ -182,9 +187,9 @@ Int_t AliPMDRawStream::DdlData(TObjArray *pmdddlcont)
   Int_t irow = -1;
   Int_t icol = -1;
 
-  Int_t blHeaderWord[8];
-  Int_t dspHeaderWord[10];
-  Int_t pbusHeaderWord[4];
+  Int_t blHeaderWord[8]={0};
+  Int_t dspHeaderWord[10]={0};
+  Int_t pbusHeaderWord[4]={0};
 
   Int_t blRawDataLength  = 0;
   Int_t dspRawDataLength = 0;