diff --git a/roofit/src/RooNDKeysPdf.cxx b/roofit/src/RooNDKeysPdf.cxx index eca11bafa151c3a82b9d91f9dc443c2b7e6de996..777cfeaedf00f73f9fd30d4463848556fbb1ebb2 100644 --- a/roofit/src/RooNDKeysPdf.cxx +++ b/roofit/src/RooNDKeysPdf.cxx @@ -587,7 +587,7 @@ RooNDKeysPdf::loadWeightSet() const for (Int_t i=0; i<_nEventsM; i++) { _data.get(_idx[i]); if ( nWObs>0 ) { *weightObs = *values; } // update _weight - if ( fabs(_weight)>_minWeight ) { + if ( TMath::Abs(_weight)>_minWeight ) { _wMap[i] = _weight; } }