Technical fix for bug #55338: Memory corruption in HMPID
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 Sep 2009 14:46:59 +0000 (14:46 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 Sep 2009 14:46:59 +0000 (14:46 +0000)
HMPID/AliHMPIDRawStream.cxx

index b4b05c5..0a94526 100644 (file)
@@ -199,10 +199,10 @@ Bool_t AliHMPIDRawStream::Next()
   */
 
   fPosition = 0;
-  Bool_t status=kTRUE;
+  Bool_t status=kFALSE;
   Int_t  rawDataSize=0;        
+  fDDLNumber = fRawReader->GetDDLID();
   if(fRawReader->GetType() == 7 || fRawReader->GetType() == 8 )  {           //New: Select Physics events, Old: Raw data size is not 0 and not 47148 (pedestal)
-    fDDLNumber = fRawReader->GetDDLID();
     fnDDLInStream[fDDLNumber]=1; fnDDLOutStream[fDDLNumber]=0;
     
     fLDCNumber = fRawReader->GetLDCId();