[PWGHF] Fix MC flagging for c-deuteron#16953
Conversation
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/staging for 5795b0e at 2026-07-07 17:11: Full log here. |
|
Error while checking build/O2Physics/o2 for 5795b0e at 2026-07-07 17:12: Full log here. |
|
Error while checking build/O2Physics/code-check for 5795b0e at 2026-07-07 17:16: Full log here. |
| static const std::array<int, 2> statusCodeCDeuteronToDeKstar0{-85, -95}; | ||
| static const std::array<int, 2> statusCodeCDeuteronToNeDeltaplusK{-86, -96}; | ||
| static const std::array<int, 2> statusCodeCDeuteronToNeL1520Pi{-87, -97}; |
There was a problem hiding this comment.
These used to be constexpr constants. Why are they not any more?
There was a problem hiding this comment.
I thought it was not necessary to have them constexpr in first place, but if you want I can revert them. What about all the other variables that are const (the maps)? Is there any advantage of having them constexpr?
There was a problem hiding this comment.
I thought it was not necessary to have them
constexprin first place, but if you want I can revert them.
Yes, please.
What about all the other variables that are
const(the maps)? Is there any advantage of having themconstexpr?
I don't remember if they can be constexpr but if yes, it would be better for compile-time checks and optimisations. I will check later.
There was a problem hiding this comment.
Apparently unordered_map cannot be constexpr in C++17 / C++20 / C++23
|
Error while checking build/O2Physics/code-check for d6b4b86 at 2026-07-07 17:47: Full log here. |
|
Error while checking build/O2Physics/code-check for fcc840e at 2026-07-07 18:44: Full log here. |
@zhangbiao-phy