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 Dec 4, 2023
1 parent e712e8f commit 5c8ba8f
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 5c8ba8f

Please sign in to comment.