You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actionsBot
changed the title
Remove unnecessary caching of feature names in HF track index skim creator
[PWGHF] Remove unnecessary caching of feature names in HF track index skim creator
Sep 7, 2026
@fgrosa The linked PR did not change any functionality. How can it be the reason for this PR?
If you try to execute the track index skim creator now with BDTs applied, you will get the following error:
[ERROR] SEVERE: Device hf-track-index-skim-creator (21008) had at least one message above severity 7: Input feature ptProng0 not available! Please check your configurables.
See e.g. https://alimonitor.cern.ch/train-workdir/tests/0075/00755074/stdout.log. I assumed that the issue was in the change of the check in cacheInputFeaturesIndices, since it was not happening before (and it makes sense because mAvailableInputFeatures.contains(inputFeature) cannot be true, as we do not pass the features via configurables given that they are fixed).
Error while checking build/O2Physics/code-check for 80e02b8 at 2026-09-07 14:25:
## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'Found 39 errors and 27 warnings.'
Found 39 errors and 27 warnings.
++ [[ 39 -gt 0 ]]
++ cat /sw/BUILD/da4548d66b33dde722b086532bcbae6ae9a229c7/O2Physics-code-check/errors.txt
PWGHF/TableProducer/trackIndexSkimCreator.cxx:177:42: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:177:55: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:178:25: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:179:50: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:312:76: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:317:76: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:322:72: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:327:84: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:337:74: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:342:87: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:343:95: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:345:71: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1426:68: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1429:70: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1432:74: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1435:78: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1438:70: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1441:70: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1444:72: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1447:72: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1450:72: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1453:72: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1456:72: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1459:76: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1476:77: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1478:92: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1479:102: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1480:94: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1481:94: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:1482:96: error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:2088:11: error: switching on non-enum value without default case may not cover all cases [bugprone-switch-missing-default-case,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:2462:17: error: empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether [bugprone-empty-catch,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:2594:27: error: switching on non-enum value without default case may not cover all cases [bugprone-switch-missing-default-case,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:2628:15: error: empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether [bugprone-empty-catch,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:2857:23: error: switching on non-enum value without default case may not cover all cases [bugprone-switch-missing-default-case,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:2886:23: error: switching on non-enum value without default case may not cover all cases [bugprone-switch-missing-default-case,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:3132:23: error: switching on non-enum value without default case may not cover all cases [bugprone-switch-missing-default-case,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:3161:23: error: switching on non-enum value without default case may not cover all cases [bugprone-switch-missing-default-case,-warnings-as-errors]
PWGHF/TableProducer/trackIndexSkimCreator.cxx:4195:17: error: uninitialized record type: 'dcaInfoXi' [cppcoreguidelines-pro-type-member-init,-warnings-as-errors]
++ [[ 27 -gt 0 ]]
++ cat /sw/BUILD/da4548d66b33dde722b086532bcbae6ae9a229c7/O2Physics-code-check/warnings.txt
PWGHF/TableProducer/trackIndexSkimCreator.cxx:171:43: warning: implicit conversion 'bool' -> 'int' [readability-implicit-bool-conversion]
[0 more errors; see full log]
I think the behavior of mAvailableInputFeatures.contains(inputFeature) is very similar to that previously implemented with mAvailableInputFeatures.count(inputFeature). Maybe the path now crashing in the index-skim-creator was never run before or using count the check was not effective.
In any case, the current behavior of MlResponse is what we want, so all looks sane to me.
BTW, after some investigation, the changes in this PR remove the workaround implemented in #16719 for the issue introduced by #16424 and fixed in #16722. Again, all makes sense.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR removes the unnecessary caching of feature names, which is incompatible with https://github.com/AliceO2Group/O2Physics/pull/17192/changes