]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/AliHLTTPCClusterFinder.cxx
Added protection for empty data blocks (blocks where only the CDH is present) in...
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCClusterFinder.cxx
index f762f3292fffa73e8e4ad4616a03d3414e91af4e..7b0f673e81079ddf5d520c372f8f3db6ab4d18b5 100644 (file)
@@ -431,6 +431,9 @@ Bool_t AliHLTTPCClusterFinder::ComparePads(AliHLTTPCPad *nextPad,AliHLTTPCCluste
 
   //Checking if we have a match on the next pad
   for(UInt_t candidateNumber=0;candidateNumber<nextPad->fClusterCandidates.size();candidateNumber++){
+    if(nextPad->fUsedClusterCandidates[candidateNumber] == 1){
+      continue;
+    }
     AliHLTTPCClusters *candidate =&nextPad->fClusterCandidates[candidateNumber]; 
     //    if(cluster->fMean-candidate->fMean==1 || candidate->fMean-cluster->fMean==1 || cluster->fMean-candidate->fMean==0){