Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions PWGHF/Core/HfMlResponseLbToLcPi.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,37 @@
// 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_Lb(FEATURE) \
{ \
#define FILL_MAP_Lb(FEATURE) \
{ \
#FEATURE, static_cast<uint8_t>(InputFeaturesLbToLcPi::FEATURE) \
}

// Check if the index of mCachedIndices (index associated to a FEATURE)
// matches the entry in EnumInputFeatures associated to this FEATURE
// if so, the inputFeatures vector is filled with the FEATURE's value
// by calling the corresponding GETTER from OBJECT
#define CHECK_AND_FILL_VEC_Lb_FULL(OBJECT, FEATURE, GETTER) \
#define CHECK_AND_FILL_VEC_Lb_FULL(OBJECT, FEATURE, GETTER) \
case static_cast<uint8_t>(InputFeaturesLbToLcPi::FEATURE): { \
inputFeatures.emplace_back(OBJECT.GETTER()); \
break; \
inputFeatures.emplace_back(OBJECT.GETTER()); \
break; \
}

// Check if the index of mCachedIndices (index associated to a FEATURE)
// matches the entry in EnumInputFeatures associated to this FEATURE
// if so, the inputFeatures vector is filled with the FEATURE's value
// by calling the GETTER function taking OBJECT in argument
#define CHECK_AND_FILL_VEC_Lb_FUNC(OBJECT, FEATURE, GETTER) \
#define CHECK_AND_FILL_VEC_Lb_FUNC(OBJECT, FEATURE, GETTER) \
case static_cast<uint8_t>(InputFeaturesLbToLcPi::FEATURE): { \
inputFeatures.emplace_back(GETTER(OBJECT)); \
break; \
inputFeatures.emplace_back(GETTER(OBJECT)); \
break; \
}

// Specific case of CHECK_AND_FILL_VEC_Lb_FULL(OBJECT, FEATURE, GETTER)
// where OBJECT is named candidate and FEATURE = GETTER
#define CHECK_AND_FILL_VEC_Lb(GETTER) \
#define CHECK_AND_FILL_VEC_Lb(GETTER) \
case static_cast<uint8_t>(InputFeaturesLbToLcPi::GETTER): { \
inputFeatures.emplace_back(candidate.GETTER()); \
break; \
inputFeatures.emplace_back(candidate.GETTER()); \
break; \
}

namespace o2::analysis
Expand Down