reset DDL data buffers in case of decoding errors detected within the DDL payload
authorrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Dec 2009 15:54:27 +0000 (15:54 +0000)
committerrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Dec 2009 15:54:27 +0000 (15:54 +0000)
TOF/AliTOFRawStream.cxx

index ebee5cc..8976bc0 100644 (file)
@@ -1392,6 +1392,8 @@ Bool_t AliTOFRawStream::Decode(Int_t verbose = 0) {
     if (fDecoder->Decode((UInt_t *)data, kDataWords, currentCDH) == kTRUE) {
       fRawReader->AddMajorErrorLog(kDDLDecoder,Form("DDL # = %d",currentDDL));
       AliWarning(Form("Error while decoding DDL # %d: decoder returned with errors", currentDDL));
+      ResetDataBuffer(currentDDL);
+      ResetPackedDataBuffer(currentDDL);
     }
     
     delete [] data;