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 @@ -14,7 +14,7 @@
/// \author Biao Zhang <biao.zhang@cern.ch>, Heidelberg University

#ifndef PWGHF_CORE_HfMlResponseLBTOLCPI_H_
#define PWGHF_CORE_HfMlResponseLBTOLCPI_H_

Check warning on line 17 in PWGHF/Core/HfMlResponseLbToLcPi.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/macro]

Use SCREAMING_SNAKE_CASE for names of macros. Leading and double underscores are not allowed.

#include <map>
#include <string>
Expand All @@ -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) \

Check warning on line 29 in PWGHF/Core/HfMlResponseLbToLcPi.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/macro]

Use SCREAMING_SNAKE_CASE for names of macros. Leading and double underscores are not allowed.
{ \
#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) \

Check warning on line 38 in PWGHF/Core/HfMlResponseLbToLcPi.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/macro]

Use SCREAMING_SNAKE_CASE for names of macros. Leading and double underscores are not allowed.
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) \

Check warning on line 48 in PWGHF/Core/HfMlResponseLbToLcPi.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/macro]

Use SCREAMING_SNAKE_CASE for names of macros. Leading and double underscores are not allowed.
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) \

Check warning on line 56 in PWGHF/Core/HfMlResponseLbToLcPi.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/macro]

Use SCREAMING_SNAKE_CASE for names of macros. Leading and double underscores are not allowed.
case static_cast<uint8_t>(InputFeaturesLbToLcPi::GETTER): { \
inputFeatures.emplace_back(candidate.GETTER()); \
break; \
inputFeatures.emplace_back(candidate.GETTER()); \
break; \
}

namespace o2::analysis
Expand Down
Loading