- coverity fix 14329
authorkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Mar 2011 14:49:46 +0000 (14:49 +0000)
committerkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Mar 2011 14:49:46 +0000 (14:49 +0000)
HLT/TPCLib/AliHLTTPCTrackHistoComponent.cxx

index e41978d..ac1d520 100644 (file)
@@ -289,13 +289,13 @@ void AliHLTTPCTrackHistoComponent::ReadTracks(const AliHLTComponentBlockData* it
            Int_t sliceTrack = AliHLTTPCSpacePointData::GetSlice(idTrack);
            Int_t patchTrack = AliHLTTPCSpacePointData::GetPatch(idTrack);
            UInt_t pos      = AliHLTTPCSpacePointData::GetNumber(idTrack);
-           if( !fClustersArray[sliceTrack][patchTrack] ) continue;            
-          
+                  
           if(sliceTrack<0 || sliceTrack>36 || patchTrack<0 || patchTrack>5 ){
              HLTError("Corrupted TPC cluster Id: slice %d, patch %d, cluster %d", sliceTrack, patchTrack, idTrack);
              continue;
           }
+           if( !fClustersArray[sliceTrack][patchTrack] ) continue;            
 
            if(fNSpacePoints[sliceTrack][patchTrack]<=pos ){
              HLTError("Space point array out of boundaries!");