]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Protection against badly corrupted data leading to a wrong hw addr and negative ...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Jun 2008 10:15:44 +0000 (10:15 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Jun 2008 10:15:44 +0000 (10:15 +0000)
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();
 
       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));
        if (warn) {
          Warning(kEH.Data(), "pad out of range (row=%d, pad=%d, maxpad=%d).",
                  row, pad, AliEveTPCSectorData::GetNPadsInRow(row));