correcting bounds check for array
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Mar 2011 08:39:02 +0000 (08:39 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Mar 2011 08:39:02 +0000 (08:39 +0000)
HLT/TPCLib/AliHLTTPCTrackHistoComponent.cxx

index ac1d520..b59214d 100644 (file)
@@ -290,7 +290,7 @@ void AliHLTTPCTrackHistoComponent::ReadTracks(const AliHLTComponentBlockData* it
            Int_t patchTrack = AliHLTTPCSpacePointData::GetPatch(idTrack);
            UInt_t pos      = AliHLTTPCSpacePointData::GetNumber(idTrack);
                   
-          if(sliceTrack<0 || sliceTrack>36 || patchTrack<0 || patchTrack>5 ){
+          if(sliceTrack<0 || sliceTrack>=36 || patchTrack<0 || patchTrack>5 ){
              HLTError("Corrupted TPC cluster Id: slice %d, patch %d, cluster %d", sliceTrack, patchTrack, idTrack);
              continue;
           }