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
7 changes: 4 additions & 3 deletions PWGEM/Dilepton/Utils/MlResponseO2Track.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,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_O2_TRACK(FEATURE) \
{ \
#FEATURE, static_cast<uint8_t>(InputFeaturesO2Track::FEATURE)}
#define FILL_MAP_O2_TRACK(FEATURE) \
{ \
#FEATURE, static_cast<uint8_t>(InputFeaturesO2Track::FEATURE) \
}

// Check if the index of mCachedIndices (index associated to a FEATURE)
// matches the entry in EnumInputFeatures associated to this FEATURE
Expand Down Expand Up @@ -87,9 +88,9 @@
inputFeature = track.GETTER1(); \
} else { \
if (track.GETTER1() > 0) { \
inputFeature = sqrt((pow(track.GETTER1(), 2) + pow(track.GETTER2(), 2)) / 2.); \

Check failure on line 91 in PWGEM/Dilepton/Utils/MlResponseO2Track.h

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
} else { \
inputFeature = (-1) * sqrt((pow(track.GETTER1(), 2) + pow(track.GETTER2(), 2)) / 2.); \

Check failure on line 93 in PWGEM/Dilepton/Utils/MlResponseO2Track.h

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
} \
} \
break; \
Expand All @@ -101,7 +102,7 @@
// by calling the corresponding GETTER from track and applying a sqrt
#define CHECK_AND_FILL_O2_TRACK_SQRT(FEATURE, GETTER) \
case static_cast<uint8_t>(InputFeaturesO2Track::FEATURE): { \
inputFeature = sqrt(track.GETTER()); \

Check failure on line 105 in PWGEM/Dilepton/Utils/MlResponseO2Track.h

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
break; \
}

Expand Down Expand Up @@ -190,7 +191,7 @@
virtual ~MlResponseO2Track() = default;

template <typename T, typename U, typename V>
float return_feature(uint8_t idx, T const& track, U const& trackParCov, V const& collision)

Check failure on line 194 in PWGEM/Dilepton/Utils/MlResponseO2Track.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
{
float inputFeature = 0.;
switch (idx) {
Expand Down
Loading