Skip to content

Commit

Permalink
A minor logic fix in StFcsClusterMaker::isNeighbor() (star-bnl#633)
Browse files Browse the repository at this point in the history
Kumar found a logic flaw in isNeighbor() thus fixing it. Effect is minor
  • Loading branch information
akioogawa authored and dkapukchyan committed Mar 11, 2024
1 parent fc0ef17 commit 6e43ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StRoot/StFcsClusterMaker/StFcsClusterMaker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6e43ca4

Please sign in to comment.