]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSRawStreamSPD.cxx
Fix in sensor size calculation
[u/mrichter/AliRoot.git] / ITS / AliITSRawStreamSPD.cxx
index 0f45774a5bc537225bcfa1d1de5f72109d5a9265..6c0a72d06e8b0009b9dfb7152976be902dc250c7 100644 (file)
@@ -176,6 +176,10 @@ Int_t AliITSRawStreamSPD::ReadCalibHeader() {
   if (ddlID==-1) { // we may need to read one word to get the blockAttr
     if (!ReadNextShort()) return -1;
     ddlID = fRawReader->GetDDLID();
+    if(ddlID<0){
+      AliError("fRawReader->GetDDLID() returns a negative value");
+      ddlID=0;
+    }
   }
   // reset flags and counters
   fEqPLBytesRead = 2;