File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ FASTJET_BEGIN_NAMESPACE // defined in fastjet/internal/base.hh
3030namespace contrib {
3131
3232 // Modification to satisfy C++11 (thanks to Gavin Salam)
33+ #if __cplusplus >= 201103L
34+ #else
3335 const double JetCleanser::jc_zero = 1.0e-6 ;
36+ #endif
3437
3538 // ///////////////////////////
3639 // constructor
Original file line number Diff line number Diff line change @@ -105,7 +105,13 @@ public:
105105private:
106106 // Modification to satisfy C++11 (thanks to Gavin Salam)
107107 // static const double jc_zero = 1.0e-6;
108+ // CMS change:
109+ // Change not endorsed by fastjet collaboration
110+ #if __cplusplus >= 201103L
111+ static constexpr double jc_zero = 1.0e-6 ;
112+ #else
108113 static const double jc_zero;
114+ #endif
109115
110116 double _rsub;
111117 double _fcut;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ LimitedWarning RecursiveSymmetryCutBase::_mu2_gt1_warning;
3737// LimitedWarning RecursiveSymmetryCutBase::_nonca_warning;
3838LimitedWarning RecursiveSymmetryCutBase::_explicit_ghost_warning;
3939
40- bool RecursiveSymmetryCutBase::_verbose = false ;
40+ std::atomic< bool > RecursiveSymmetryCutBase::_verbose { false } ;
4141
4242// ----------------------------------------------------------------------
4343PseudoJet RecursiveSymmetryCutBase::result (const PseudoJet & jet) const {
Original file line number Diff line number Diff line change 3737#else
3838#include " Recluster.hh"
3939#endif
40+ #include < atomic>
41+
4042
4143/* * \mainpage RecursiveTools contrib
4244
@@ -215,7 +217,7 @@ public:
215217 class StructureType ;
216218
217219 // / for testing
218- static bool _verbose;
220+ static std::atomic< bool > _verbose;
219221
220222protected:
221223 // the methods below have to be defined by deerived classes
You can’t perform that action at this time.
0 commit comments