diff --git a/Framework/Core/include/Framework/ASoA.h b/Framework/Core/include/Framework/ASoA.h index 3f185e5144131..ce67498f49471 100644 --- a/Framework/Core/include/Framework/ASoA.h +++ b/Framework/Core/include/Framework/ASoA.h @@ -2024,11 +2024,16 @@ ColumnGetterFunction createGetterPtr(const std::string_view& columnLabel) { // allows user to use consistent formatting (with prefix) of all column labels // by default there isn't 'f' prefix for dynamic column labels - bool isPrefixMatch = columnLabel.size() > 1 && columnLabel.substr(1) == C::columnLabel(); + if(columnLabel.size() > 1 && columnLabel.substr(1) == C::columnLabel()) { + return &getColumnValue; + } + // check also exact match if user is aware of prefix missing - bool isExactMatch = columnLabel == C::columnLabel(); + if(columnLabel == C::columnLabel()) { + return &getColumnValue; + } - return (isPrefixMatch || isExactMatch) ? &getColumnValue : nullptr; + return nullptr; } template