bug fix
authorsgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Jul 2013 00:51:59 +0000 (00:51 +0000)
committersgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Jul 2013 00:51:59 +0000 (00:51 +0000)
HLT/TPCLib/HWCFemulator/AliHLTTPCHWClusterMergerV1.cxx

index ec30f85..4d08d0a 100644 (file)
@@ -391,9 +391,10 @@ int AliHLTTPCHWClusterMergerV1::Merge()
       for( UInt_t  iCluster=0; iCluster<nClustersOrig; iCluster++){
        AliHLTTPCRawCluster &cluster = clusters->fClusters[iCluster];
        if( cluster.GetPad()<-1 ) continue; // the cluster has been merged
-       if( clusters->fCount == iCluster ) continue;
-       clusters->fClusters[clusters->fCount] = cluster;
-       if( mclabels ) mclabels->fLabels[clusters->fCount] = mclabels->fLabels[iCluster];
+       if( clusters->fCount != iCluster ){
+         clusters->fClusters[clusters->fCount] = cluster;
+         if( mclabels ) mclabels->fLabels[clusters->fCount] = mclabels->fLabels[iCluster];
+       }
        clusters->fCount++;
       }