From 52d4f45e74d1722a2a8872a9156d1a1b87c5091d Mon Sep 17 00:00:00 2001 From: Bong-Hwi Lim Date: Fri, 6 Dec 2024 09:37:46 +0100 Subject: [PATCH] fix build issue --- PWGLF/TableProducer/Resonances/resonanceInitializer.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PWGLF/TableProducer/Resonances/resonanceInitializer.cxx b/PWGLF/TableProducer/Resonances/resonanceInitializer.cxx index 86f57cf28b9..51509e78205 100644 --- a/PWGLF/TableProducer/Resonances/resonanceInitializer.cxx +++ b/PWGLF/TableProducer/Resonances/resonanceInitializer.cxx @@ -38,11 +38,15 @@ #include "DataFormatsParameters/GRPObject.h" #include "DataFormatsParameters/GRPMagField.h" #include "CCDB/BasicCCDBManager.h" +#include "CommonConstants/PhysicsConstants.h" +#include "CommonConstants/MathConstants.h" using namespace o2; using namespace o2::framework; using namespace o2::framework::expressions; using namespace o2::soa; +using namespace o2::constants::physics; +using namespace o2::constants::math; /// Initializer for the resonance candidate producers struct ResonanceInitializer { @@ -416,12 +420,12 @@ struct ResonanceInitializer { // sum += pt * abs(sin(phiparm - phi)); sum += std::abs(px * ny - py * nx); } - float sph = std::power((sum / ptSum), 2); + float sph = std::pow((sum / ptSum), 2); if (sph < tempSph) tempSph = sph; } - return std::power(PIHalf, 2) * tempSph; + return std::pow(PIHalf, 2) * tempSph; } template