diff --git a/CaloFuture/CaloFuturePIDs/src/CaloChargedBremAlg.cpp b/CaloFuture/CaloFuturePIDs/src/CaloChargedBremAlg.cpp index d42f90f5b55fc124e0af200aa3b3e122e166c1e3..e6807363146e84685786a668efe327ffa4d9b3e0 100644 --- a/CaloFuture/CaloFuturePIDs/src/CaloChargedBremAlg.cpp +++ b/CaloFuture/CaloFuturePIDs/src/CaloChargedBremAlg.cpp @@ -11,6 +11,7 @@ #include "CaloChargedInfoUtils.h" #include "GaudiKernel/IFileAccess.h" #include "LHCbAlgs/Transformer.h" +#include <cmath> /** @class CaloChargedBremAlg CaloChargedBremAlg.h * @@ -161,7 +162,7 @@ namespace LHCb::Calo { pid.field<ChargedInfoTag::BremAcceptance>().set( comb_brem_acc ); // DLL variables, obtained from base variables + DLL hists from ParamFiles - auto track_logp = -LHCb::Math::fast_log( abs( track.qOverP( SL::FirstMeasurement ).cast() ) ); + auto track_logp = -LHCb::Math::fast_log( std::abs( track.qOverP( SL::FirstMeasurement ).cast() ) ); auto dlle_brem = getDLL_3D<DLLType::BremPIDe>( *m_dlls, tracktype, brem_chi2, brem_dx, track_logp ); pid.field<ChargedInfoTag::BremPIDe>().set( dlle_brem ); } diff --git a/CaloFuture/CaloFuturePIDs/src/CaloChargedPIDsAlg.cpp b/CaloFuture/CaloFuturePIDs/src/CaloChargedPIDsAlg.cpp index 4a07ca95162226d06d189898329d5fd264286a59..10aa59049529308501477be0ac5f5eb7991f5d6b 100644 --- a/CaloFuture/CaloFuturePIDs/src/CaloChargedPIDsAlg.cpp +++ b/CaloFuture/CaloFuturePIDs/src/CaloChargedPIDsAlg.cpp @@ -11,6 +11,7 @@ #include "CaloChargedInfoUtils.h" #include "GaudiKernel/IFileAccess.h" #include "LHCbAlgs/Transformer.h" +#include <cmath> /** @class CaloChargedPIDsAlg CaloChargedPIDsAlg.h * @@ -152,7 +153,7 @@ namespace LHCb::Calo { pid.field<ChargedInfoTag::ElectronShowerDLL>().set( eshower_dll_val ); // DLL variables, obtained from base variables + DLL hists from ParamFiles - auto track_logp = -LHCb::Math::fast_log( abs( track.qOverP( SL::FirstMeasurement ).cast() ) ); + auto track_logp = -LHCb::Math::fast_log( std::abs( track.qOverP( SL::FirstMeasurement ).cast() ) ); auto dlle_ecal = inecal ? getDLL_3D<DLLType::EcalPIDe>( *m_dlls_3D, tracktype, eshower_dll_val, eshower_eop_val, track_logp ) : 0.f;