-
Notifications
You must be signed in to change notification settings - Fork 613
[PWGHF] Refactory of charm reso derived data creator to improve compilation time #14027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
O2 linter results: ❌ 0 errors, |
Please consider the following formatting changes to AliceO2Group#14027
|
Thanks a lot @fgrosa ! |
Please consider the following formatting changes to AliceO2Group#14027
Please consider the following formatting changes to AliceO2Group#14027
Hi @vkucera, thanks for the feedback! I still factored out histograms and most of the configurables, and I simplified a bit the event selection. I would consider it as satisfactory for this version (further improvements can of course be implemented in the future), to merge it in a ~short timescale. However, before marking as ready for review however I still want to test it to make sure that it does not introduces bugs to the analysis. |
| o2::framework::Configurable<float> maxEta{"maxEta", 0.8, "maximum pseudorapidity for single tracks to be paired with D mesons"}; | ||
| o2::framework::Configurable<float> minPt{"minPt", 0.1, "minimum pT for single tracks to be paired with D mesons"}; | ||
| o2::framework::Configurable<float> maxNsigmaTpcPi{"maxNsigmaTpcPi", -1., "maximum pion NSigma in TPC for single tracks to be paired with D mesons; set negative to reject"}; | ||
| o2::framework::Configurable<float> maxNsigmaTpcKa{"maxNsigmaTpcKa", -1., "maximum kaon NSigma in TPC for single tracks to be paired with D mesons; set negative to reject"}; | ||
| o2::framework::Configurable<float> maxNsigmaTpcPr{"maxNsigmaTpcPr", 3., "maximum proton NSigma in TPC for single tracks to be paired with D mesons; set negative to reject"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Min, Max are attributes, not quantities, so should be appended at the end.
| o2::framework::Configurable<float> cutMassDMin{"cutMassDMin", 1.83, "minimum mass for D0 and Dplus candidates"}; // o2-linter: disable=pdg/explicit-mass (false positive) | ||
| o2::framework::Configurable<float> cutMassDMax{"cutMassDMax", 1.92, "maximum mass for D0 and Dplus candidates"}; // o2-linter: disable=pdg/explicit-mass (false positive) | ||
| o2::framework::Configurable<float> cutMassDstarMin{"cutMassDstarMin", 0.139, "minimum mass for Dstar candidates"}; // o2-linter: disable=pdg/explicit-mass (false positive) | ||
| o2::framework::Configurable<float> cutMassDstarMax{"cutMassDstarMax", 0.175, "maximum mass for Dstar candidates"}; // o2-linter: disable=pdg/explicit-mass (false positive) | ||
| o2::framework::Configurable<float> cutMassK0sMin{"cutMassK0sMin", 0.485, "minimum mass for K0s candidates"}; // o2-linter: disable=pdg/explicit-mass (false positive) | ||
| o2::framework::Configurable<float> cutMassK0sMax{"cutMassK0sMax", 0.509, "maximum mass for K0s candidates"}; // o2-linter: disable=pdg/explicit-mass (false positive) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The prefix cut is redundant.
|
I tested the code for two cases (D*+V0 and D+V0) and it gives exactly the same output as the previous version (see small example below for one distribution, they are all the same between old and new version). |
|
Thanks a lot @fgrosa for addressing the comments. Fine for the configurables. However, there are remaining issues reported by the linter which would be better to fix before merging. |
Also warnings addressed! |
Perfect! Thanks! |
|
Error while checking build/O2Physics/o2 for 27b13d0 at 2025-12-02 16:44: Full log here. |
alibuild
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approving on behalf of @fgrosa.

@Luca610 @vkucera this PR implements the refactory discussed to improve the compilation time of O2Physics. In particular, I splitted the derived data creator in 3, one for each D meson species, by keeping the possibility to have combinations with V0, or tracks, or both in all the three new derived data creators.
Before merging I would still like to test it and compare the outputs with the current version to be sure that I did not introduce any bug.
Pinging for info other users @zhangbiao-phy @cterrevo