Skip to content

Commit

Permalink
Put some parentheses around some logic, to avoid NaNs. Thanks to Giov…
Browse files Browse the repository at this point in the history
…anni Abbiendi for the fix
  • Loading branch information
Rick Wilkinson committed Oct 30, 2009
1 parent fc6e8de commit 3fcad2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RecoMuon/MuonSeedGenerator/src/MuonDTSeedFromRecHits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* See header file for a description of this class.
*
*
* $Date: 2008/10/17 23:26:24 $
* $Revision: 1.13 $
* $Date: 2009/03/12 04:00:21 $
* $Revision: 1.14 $
* \author A. Vitelli - INFN Torino, V.Palichik
* \author porting R. Bellan
*
Expand Down Expand Up @@ -162,7 +162,7 @@ float MuonDTSeedFromRecHits::bestEta() const {
Nseg++;
sdeta += fabs (eta1-eta2);

if ( Nseg > Maxseg || Nseg == Maxseg && sdeta < Msdeta ) {
if ( Nseg > Maxseg || (Nseg == Maxseg && sdeta < Msdeta) ) {
Maxseg = Nseg;
Msdeta = sdeta;
result = eta1;
Expand Down

0 comments on commit 3fcad2b

Please sign in to comment.