Skip to content

[PWGHF] Register the D* - V0 MC process in the femto task process counter - #18849

Open
Alascraker wants to merge 1 commit into
AliceO2Group:masterfrom
Alascraker:fix-mc-dstar-v0-count
Open

Alascraker wants to merge 1 commit into
AliceO2Group:masterfrom
Alascraker:fix-mc-dstar-v0-count

Conversation

@Alascraker

Copy link
Copy Markdown
Contributor

Follow-up to #18830, which added the processMcDstarV0 Monte Carlo process to this task.

The task verifies in init() that exactly one process function is enabled, using a hard-coded list of the process switches:

std::array<bool, 5> processes = {doprocessDataLcV0, doprocessDataDplusV0, doprocessDataD0V0, doprocessDataDstarV0, doprocessMcDplusV0};
if (std::accumulate(processes.begin(), processes.end(), 0) != 1) {
  LOGP(fatal, "One and only one process function must be enabled at a time.");
}

processMcDstarV0 was not added to that list, so

  • enabling only the new process gives a count of zero and the task stops at initialisation with the fatal message above,
  • the processDstar flag used e.g. for the close-pair-rejection setup was not set for the new process either.

Change

  • std::array<bool, 5> -> std::array<bool, 6>, with doprocessMcDstarV0 added to the list
  • bool processDstar = doprocessDataDstarV0 || doprocessMcDstarV0;

This follows the pattern already used in the track-based femto task (bool processDstar = doprocessDataDstarTrk || doprocessMcDstarTrk;).

Verification

  • git diff is limited to these two lines
  • the file compiles with the project compile flags (-fsyntax-only, no diagnostics)
  • no behaviour change for any existing configuration (all process switches remain false by default)

…nter

The V0 femto task verifies in init() that exactly one process function
is enabled, using a hard-coded list of the process switches, and derives
from them the particle-type flags used e.g. for the close-pair rejection
setup.

processMcDstarV0 was added in AliceO2Group#18830 but not registered in that list, so
enabling only the new process results in a count of zero and the task
stops with "One and only one process function must be enabled at a time".
The D* flag was also not set for the new process.

Add doprocessMcDstarV0 to the process list and to the D* flag, following
the pattern already used in the track-based femto task.
@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 0 warnings, 🔕 0 disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pwghf PWG-HF

Development

Successfully merging this pull request may close these issues.

1 participant