]> 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 5a90f142c291c59e97389ebb389a21345bd7ac91..4ff6d5c48d981a032c183c65c03897b066e41963 100644 (file)
@@ -110,14 +110,19 @@ Int_t AliPMDRawStream::DdlData(TObjArray *pmdddlcont)
 
   if (dataSize <= 0) return -1;
 
-  UInt_t data;
+  UInt_t data = 0;
 
-  fRawReader->ReadNextData(fData);
+ // PMD raw data does not contain CDH
 
-  fPosition = 0;
+  if (!fRawReader->ReadNextData(fData))
+    {
+      return kFALSE;
+    }
 
 
-  Int_t ibus;
+  fPosition = 0;
+
+  Int_t ibus = 0;
 
   const Int_t kNPatchBus = 51;
 
@@ -177,14 +182,14 @@ Int_t AliPMDRawStream::DdlData(TObjArray *pmdddlcont)
   const Int_t kdspHLen  = dspHeader.GetHeaderLength();
   const Int_t kpbusHLen = pbusHeader.GetHeaderLength();
   
-  Int_t parity;
-  Int_t idet, ismn;
+  Int_t parity = 0;
+  Int_t idet = 0, ismn = 0;
   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;