Changes in external/fastjet/plugins/Jade/JadePlugin.cc [cb80e6f:b7b836a] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/plugins/Jade/JadePlugin.cc
rcb80e6f rb7b836a 1 1 //FJSTARTHEADER 2 // $Id: JadePlugin.cc 4 442 2020-05-05 07:50:11Z soyez$3 // 4 // Copyright (c) 2007-20 20, Matteo Cacciari, Gavin P. Salam and Gregory Soyez2 // $Id: JadePlugin.cc 4354 2018-04-22 07:12:37Z salam $ 3 // 4 // Copyright (c) 2007-2018, 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. 111 // Watch out for cases where rt2E < 1.0 (cf. bug fix from 112 // andrii.verbytskyi@mpp.mpg.de on 2019-02-14) 110 // multiply it again, we won't get an overflow 113 111 const double almost_max = numeric_limits<double>::max() * (1 - 1e-13); 114 if (rt2E>1.0) return almost_max / rt2E; 115 else return almost_max; 112 return almost_max / rt2E; 116 113 } 117 114
Note:
See TracChangeset
for help on using the changeset viewer.