From f4e310080c0eeeea248d68544bab8bb8d8f4b030 Mon Sep 17 00:00:00 2001 From: Luigi Dello Stritto Date: Thu, 12 Mar 2026 16:40:40 +0100 Subject: [PATCH 1/2] add V0 decay lenght to ML variables for LcK0sP --- PWGHF/Core/HfMlResponseLcToK0sP.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PWGHF/Core/HfMlResponseLcToK0sP.h b/PWGHF/Core/HfMlResponseLcToK0sP.h index 4e6899bf3aa..d5af9ae83df 100644 --- a/PWGHF/Core/HfMlResponseLcToK0sP.h +++ b/PWGHF/Core/HfMlResponseLcToK0sP.h @@ -28,10 +28,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_LC(FEATURE) \ - { \ - #FEATURE, static_cast(InputFeaturesLcToK0sP::FEATURE) \ - } +#define FILL_MAP_LC(FEATURE) \ + { \ + #FEATURE, static_cast(InputFeaturesLcToK0sP::FEATURE)} // Check if the index of mCachedIndices (index associated to a FEATURE) // matches the entry in EnumInputFeatures associated to this FEATURE @@ -82,6 +81,7 @@ enum class InputFeaturesLcToK0sP : uint8_t { v0MK0Short, v0MGamma, ctV0, + decayLengthV0, dcaV0daughters, ptV0Pos, dcaPosToPV, @@ -136,6 +136,7 @@ class HfMlResponseLcToK0sP : public HfMlResponse CHECK_AND_FILL_VEC_LC_FULL(candidate, v0MGamma, mGamma); CHECK_AND_FILL_VEC_LC_HFHELPER(candidate, ctV0, ctV0K0s); // CHECK_AND_FILL_VEC_LC_HFHELPER(candidate, ctV0, ctV0Lambda); + CHECK_AND_FILL_VEC_LC(decayLengthV0); CHECK_AND_FILL_VEC_LC(dcaV0daughters); CHECK_AND_FILL_VEC_LC(ptV0Pos); CHECK_AND_FILL_VEC_LC_FULL(candidate, dcaPosToPV, dcapostopv); @@ -180,6 +181,7 @@ class HfMlResponseLcToK0sP : public HfMlResponse FILL_MAP_LC(v0MK0Short), FILL_MAP_LC(v0MGamma), FILL_MAP_LC(ctV0), + FILL_MAP_LC(decayLengthV0), FILL_MAP_LC(dcaV0daughters), FILL_MAP_LC(ptV0Pos), FILL_MAP_LC(dcaPosToPV), From 1e27f01eb2ee3993f5c956c8a8d5a89689452053 Mon Sep 17 00:00:00 2001 From: Luigi Dello Stritto Date: Thu, 12 Mar 2026 17:07:06 +0100 Subject: [PATCH 2/2] fix --- PWGHF/Core/HfMlResponseLcToK0sP.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PWGHF/Core/HfMlResponseLcToK0sP.h b/PWGHF/Core/HfMlResponseLcToK0sP.h index d5af9ae83df..1d90b015008 100644 --- a/PWGHF/Core/HfMlResponseLcToK0sP.h +++ b/PWGHF/Core/HfMlResponseLcToK0sP.h @@ -28,9 +28,10 @@ // 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_LC(FEATURE) \ - { \ - #FEATURE, static_cast(InputFeaturesLcToK0sP::FEATURE)} +#define FILL_MAP_LC(FEATURE) \ + { \ + #FEATURE, static_cast(InputFeaturesLcToK0sP::FEATURE) \ + } // Check if the index of mCachedIndices (index associated to a FEATURE) // matches the entry in EnumInputFeatures associated to this FEATURE