[PWGUD] modify mc producer & dihadron codes - #17295
Conversation
miedema-11
commented
Aug 3, 2026
- an improved version for flow mc
- add event selection switch for dihadron
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/code-check for c651528 at 2026-08-04 19:05: Full log here. |
|
Hi, could you please merge the codes? Thank you very much |
|
@miedema-11 Why have you not fixed the errors? |
| using namespace o2::aod::rctsel; | ||
|
|
||
| #define O2_DEFINE_CONFIGURABLE(NAME, TYPE, DEFAULT, HELP) Configurable<TYPE> NAME{#NAME, DEFAULT, HELP}; | ||
| #define O2_DEFINE_CONFIGURABLE(NAME, TYPE, DEFAULT, HELP) Configurable<TYPE> NAME{#NAME, (DEFAULT), (HELP)}; // NOLINT(bugprone-macro-parentheses) |
There was a problem hiding this comment.
Why do you disable the error?
| kITSLayersAll, | ||
| kITSLayer0123, | ||
| kITSLayer3, | ||
| kCount_ITSLayersFlag |
There was a problem hiding this comment.
Follow naming conventions.
| TAxis* fPtAxis = nullptr; | ||
| std::vector<GFW::CorrConfig> corrconfigsTruth; | ||
| std::vector<GFW::CorrConfig> corrconfigsReco; | ||
| TRandom3* fRndm = new TRandom3(0); |
There was a problem hiding this comment.
- Why do you use dynamic memory allocation?
- Where is the object destroyed?
| if (!cfgFlowAcceptance.value.empty()) { | ||
| mAcceptance = ccdb->getForTimeStamp<GFWWeights>(cfgFlowAcceptance, timestamp); | ||
| if (mAcceptance) { | ||
| LOGF(info, "Loaded acceptance weights from %s (%p)", cfgFlowAcceptance.value.c_str(), static_cast<void*>(mAcceptance)); |
There was a problem hiding this comment.
Hi @miedema-11, when you have LOGF with info or warning make sure it goes with a switch where you may disable this kind of outputs. Outputs sometimes are very heavy and can cause HY crash.
|
@miedema-11 The PR title does not tell me anything about which workflow or analysis is affected. |
|
Error while checking build/O2Physics/code-check for ca0ba15 at 2026-08-04 19:51: Full log here. |