Sweeping !20930 from master to 21.3
Trivial change dropping unnecessary brackets, which give a warning in gcc8. Cherry-picking to 21.3 to keep the code in sync.
See merge request !20930 (merged)
(cherry picked from commit cb0dab2a)
41c113d2 TrigInDetAnalysisUser: Fix gcc8 compilation warning.