Skip to content

[PWGHF] HFInvMassFitter enhancement#15860

Draft
lubynets wants to merge 26 commits intoAliceO2Group:masterfrom
lubynets:hff_rebase
Draft

[PWGHF] HFInvMassFitter enhancement#15860
lubynets wants to merge 26 commits intoAliceO2Group:masterfrom
lubynets:hff_rebase

Conversation

@lubynets
Copy link
Copy Markdown
Contributor

  1. Added a possibility of slight change of initial fit parameters (total integral of signal and background and background's function parameters) in order to avoid fit's convergence to a local minimum instead of the global one.
    Detailed explanation: it was observed that the raw yield as a function of BDT NP score lower-value cut demonstrates non-smooth behavior (see some outlier points in left panel as well as points with error bars larger than the neighbor points have). It was assumed to happen due to possible fit's convergence to a local minimum instead of the global one exactly at this NP score cut. In order to avoid this, the initial fit parameters are now randomized around their original values, using the TRandom3 class seeded with RandomSeed configurable. It turns out that for 100 trials most of raw yield values clusterize at a certain value (which is belived to be a "true" value), wile some number of outliers is present (middle panel). The median out of 100 trials value of each variable of interest (raw yield, mean, sigma, or statistical error on them) can be extracted, then the raw yield vs NP score cut distribution does not have outliers (right panel). This is critically important for stability of the cut variation method implemented in cut_variation.py.
Screenshot from 2026-04-18 23-22-00
  1. Added double-sided Crystal Ball function to possible signal functions.

  2. Configuration via json made more user- and reading-friendly:
    vector of values (of the size of number of slice intervals) can be replaced with a single number when all vector components are equal;
    check for correct parsing the config added (to replace the json package error message with the custom one);
    histograms which are optional in some mode (e.g. MC) are not requested to be present in the config.

  3. Bugs and code imperfections cleaned

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 18, 2026

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

@github-actions github-actions bot changed the title HFInvMassFitter enhancement [PWGHF] HFInvMassFitter enhancement Apr 18, 2026
@lubynets
Copy link
Copy Markdown
Contributor Author

lubynets commented Apr 18, 2026

All checks except for O2Physics build are passed. Since this PR does not affect files compiled within O2Physics, the pending test do not make sense for it, therefore the PR is converted to draft to prevent the server from unnecessary job.

@lubynets lubynets marked this pull request as draft April 18, 2026 22:25
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