Fork me on GitHub

Ignore:
Timestamp:
Mar 25, 2021, 9:55:59 AM (4 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
master
Children:
13331dc
Parents:
5eda6767
Message:

update FastJet library to 3.3.4 and FastJet Contrib library to 1.045

File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/fastjet/plugins/Jade/JadePlugin.cc

    r5eda6767 rcb80e6f  
    11//FJSTARTHEADER
    2 // $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
     2// $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
    55//
    66//----------------------------------------------------------------------
     
    108108    // get a number that is almost the same as max(), just a little
    109109    // 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)
    111113    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;
    113116  }
    114117 
Note: See TracChangeset for help on using the changeset viewer.