Changeset cb80e6f in git for external/fastjet/plugins/Jade/JadePlugin.cc
- Timestamp:
- Mar 25, 2021, 9:55:59 AM (4 years ago)
- Branches:
- master
- Children:
- 13331dc
- Parents:
- 5eda6767
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/plugins/Jade/JadePlugin.cc
r5eda6767 rcb80e6f 1 1 //FJSTARTHEADER 2 // $Id: JadePlugin.cc 4 354 2018-04-22 07:12:37Z salam$3 // 4 // Copyright (c) 2007-20 18, Matteo Cacciari, Gavin P. Salam and Gregory Soyez2 // $Id: JadePlugin.cc 4442 2020-05-05 07:50:11Z soyez $ 3 // 4 // Copyright (c) 2007-2020, Matteo Cacciari, Gavin P. Salam and Gregory Soyez 5 5 // 6 6 //---------------------------------------------------------------------- … … 108 108 // get a number that is almost the same as max(), just a little 109 109 // smaller so as to ensure that when we divide it by rt2E and then 110 // multiply it again, we won't get an overflow 110 // multiply it again, we won't get an overflow. 111 // Watch out for cases where rt2E < 1.0 (cf. bug fix from 112 // andrii.verbytskyi@mpp.mpg.de on 2019-02-14) 111 113 const double almost_max = numeric_limits<double>::max() * (1 - 1e-13); 112 return almost_max / rt2E; 114 if (rt2E>1.0) return almost_max / rt2E; 115 else return almost_max; 113 116 } 114 117
Note:
See TracChangeset
for help on using the changeset viewer.