From cb087888e4f80e8f7d764d96caeaae20f16a223c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ku=C4=8Dera?= <26327373+vkucera@users.noreply.github.com> Date: Wed, 2 Dec 2026 11:57:52 +0100 Subject: [PATCH] Apply Clang-Tidy fixes for the `bugprone` errors --- PWGEM/Dilepton/Utils/MlResponseO2Track.h | 7 +++---- PWGEM/Tasks/phosAlign.cxx | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/PWGEM/Dilepton/Utils/MlResponseO2Track.h b/PWGEM/Dilepton/Utils/MlResponseO2Track.h index 80824c3ff87..da4ec7bb0f6 100644 --- a/PWGEM/Dilepton/Utils/MlResponseO2Track.h +++ b/PWGEM/Dilepton/Utils/MlResponseO2Track.h @@ -27,10 +27,9 @@ // Fill the map of available input features // the key is the feature's name (std::string) // the value is the corresponding value in EnumInputFeatures -#define FILL_MAP_O2_TRACK(FEATURE) \ - { \ - #FEATURE, static_cast(InputFeaturesO2Track::FEATURE) \ - } +#define FILL_MAP_O2_TRACK(FEATURE) \ + { \ + #FEATURE, static_cast(InputFeaturesO2Track::FEATURE)} // Check if the index of mCachedIndices (index associated to a FEATURE) // matches the entry in EnumInputFeatures associated to this FEATURE diff --git a/PWGEM/Tasks/phosAlign.cxx b/PWGEM/Tasks/phosAlign.cxx index 4345280188c..d5b0562e98e 100644 --- a/PWGEM/Tasks/phosAlign.cxx +++ b/PWGEM/Tasks/phosAlign.cxx @@ -318,9 +318,8 @@ struct phosAlign { mHistManager.fill(HIST("hEpAllDisp"), clu.e(), trackMom / clu.e(), module); if (electron) { mHistManager.fill(HIST("hEpEl"), clu.e(), trackMom / clu.e(), module); - if (isDispOK) { - mHistManager.fill(HIST("hEpElDisp"), clu.e(), trackMom / clu.e(), module); - } + + mHistManager.fill(HIST("hEpElDisp"), clu.e(), trackMom / clu.e(), module); } } mHistManager.fill(HIST("hdZvsZ"), dz, posZ, module);