Skip to content

[PWGHF] Add charm D-D-meson femtoscopy workflows - #17998

Draft
zhangbiao-phy wants to merge 27 commits into
AliceO2Group:masterfrom
zhangbiao-phy:charm-charm-femto
Draft

zhangbiao-phy wants to merge 27 commits into
AliceO2Group:masterfrom
zhangbiao-phy:charm-charm-femto

Conversation

@zhangbiao-phy

@zhangbiao-phy zhangbiao-phy commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Add a FemtoDream producer and analysis task for D0D0 and D0D*+ correlations, including like-sign and unlike-sign flavour combinations. Reuse the existing candidate and collision tables for offline pairing and event mixing. D0 candidates share the two-prong table, while D*+ candidates use the Dstar table. No dedicated D–D pair table is produced. And we only support do offline mixing for this analsyiss.

Tag @fgrosa for infos

@github-actions github-actions Bot added the pwghf PWG-HF label Sep 21, 2026
@github-actions

github-actions Bot commented Sep 21, 2026

Copy link
Copy Markdown

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

@github-actions github-actions Bot changed the title PWGHF: Add charm-charm FemtoDream workflows [PWGHF] Add charm-charm FemtoDream workflows Sep 21, 2026
Please consider the following formatting changes to AliceO2Group#17998
@zhangbiao-phy
zhangbiao-phy marked this pull request as ready for review September 21, 2026 15:55
@zhangbiao-phy zhangbiao-phy changed the title [PWGHF] Add charm-charm FemtoDream workflows [PWGHF] Add charm D-D-meson femtoscopy workflows Sep 21, 2026
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/o2 for 13a67f1 at 2026-09-21 18:09:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc10_x86-64-slc10_x86-64/0/PWGHF/HFC/Tasks/taskCharmHadronsCharmFemtoDream.cxx:180:44: error: arithmetic between enumeration type 'HfTaskCharmHadronsCharmFemtoDream::PairChannel' and floating-point type 'double' is deprecated [-Werror=deprecated-enum-float-conversion]
ninja: build stopped: subcommand failed.

Full log here.

Please consider the following formatting changes to AliceO2Group#17998
Comment thread PWGHF/HFC/Tasks/taskCharmHadronsCharmFemtoDream.cxx Outdated
Comment thread PWGHF/HFC/Tasks/taskCharmHadronsCharmFemtoDream.cxx Outdated
Comment thread PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx Outdated
Comment thread PWGHF/HFC/Tasks/taskCharmHadronsCharmFemtoDream.cxx Outdated
Comment thread PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx Outdated
@vkucera
vkucera marked this pull request as draft September 21, 2026 19:01
@vkucera

vkucera commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

@zhangbiao-phy Please test your changes locally before you open a PR for review.

@vkucera

vkucera commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Something is wrong with your formatting. Please don't break the lines unnecessarily.

Comment on lines +166 to +173
static_cast<bool>(doprocessD0D0),
static_cast<bool>(doprocessD0Dstar),
static_cast<bool>(doprocessD0D0Ml),
static_cast<bool>(doprocessD0DstarMl),
static_cast<bool>(doprocessD0D0WithFT0C),
static_cast<bool>(doprocessD0DstarWithFT0C),
static_cast<bool>(doprocessD0D0MlWithFT0C),
static_cast<bool>(doprocessD0DstarMlWithFT0C)};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The casting should not be needed.

Comment on lines +245 to +246
if ((hypothesis == 0 ? cand.isSelD0() : cand.isSelD0bar()) <
selectionFlagD0) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still have weird line breaks throughout the code.

Comment on lines +78 to +81
Configurable<float> maxBkgD0{"maxBkgD0", 1.f, "Maximum D0 background score"};
Configurable<float> minPromptD0{"minPromptD0", 0.f, "Minimum D0 prompt score"};
Configurable<float> maxBkgDstar{"maxBkgDstar", 1.f, "Maximum Dstar background score"};
Configurable<float> minPromptDstar{"minPromptDstar", 0.f, "Minimum Dstar prompt score"};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the naming conventions.

Comment on lines +139 to +140
colBinningMultMultPercentile = {
{mixingBinVztx, mixingBinMult, mixingBinMultPercentile}, true};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird line break

Comment on lines +208 to +209
if (!std::isfinite(row.bdtBkg()) || !std::isfinite(row.bdtPrompt()) ||
row.bdtBkg() < 0.f || row.bdtPrompt() < 0.f) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird line break

Comment on lines +279 to +280
template <typename Policy, typename Collision>
int mixingBin(Policy const& policy, Collision col)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't copy collisions.

Comment on lines +474 to +475
return WorkflowSpec{
adaptAnalysisTask<HfTaskCharmHadronsCharmFemtoDream>(cfgc)};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird line break

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, seems my format tool has something wrong

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.

3 participants