diff --git a/StRoot/StFcsClusterMaker/StFcsClusterMaker.cxx b/StRoot/StFcsClusterMaker/StFcsClusterMaker.cxx index 050df3cfbe6..6a92d4d5acf 100644 --- a/StRoot/StFcsClusterMaker/StFcsClusterMaker.cxx +++ b/StRoot/StFcsClusterMaker/StFcsClusterMaker.cxx @@ -285,7 +285,7 @@ float StFcsClusterMaker::isNeighbor(StFcsHit* hit, StFcsCluster* clu){ if(ehp==1) thr=mNeighborDistance_Hcal; float d = distance(hit,h); float e = h->energy(); - if(d < thr) ne=e; + if(d < thr && e>ne) ne=e; } return ne; }