Protection against badly corrupted data leading to a wrong hw addr and negative ...
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTPCData.cxx
index 6dd73961bf2cec020ec6f925fc207000cd63584b..34a6c28dd6c842f00c6a31196bd8a449d9ce0faa 100644 (file)
@@ -213,7 +213,7 @@ void AliEveTPCData::LoadRaw(AliTPCRawStream& input, Bool_t spawnSectors, Bool_t
       row = input.GetRow() + rowOffset;
       pad = input.GetPad();
 
-      if (pad >= AliEveTPCSectorData::GetNPadsInRow(row)) {
+      if (pad >= AliEveTPCSectorData::GetNPadsInRow(row) || pad < 0) {
        if (warn) {
          Warning(kEH.Data(), "pad out of range (row=%d, pad=%d, maxpad=%d).",
                  row, pad, AliEveTPCSectorData::GetNPadsInRow(row));