Skip to content

[PWGHF] Optimized the UPC THnSparse#14802

Open
Rrantu wants to merge 4 commits intoAliceO2Group:masterfrom
Rrantu:master
Open

[PWGHF] Optimized the UPC THnSparse#14802
Rrantu wants to merge 4 commits intoAliceO2Group:masterfrom
Rrantu:master

Conversation

@Rrantu
Copy link
Contributor

@Rrantu Rrantu commented Feb 4, 2026

Removed unnecessary axes from the UPC THnSparse, added the fillUPCTHnLite configurable, and included ZDC timing information in the UPC THnSparse.

@github-actions github-actions bot added the pwghf PWG-HF label Feb 4, 2026
@github-actions github-actions bot changed the title Optimized the UPC THnSparse [PWGHF] Optimized the UPC THnSparse Feb 4, 2026
@zhangbiao-phy zhangbiao-phy enabled auto-merge (squash) February 4, 2026 15:29
/// Fill the ML outputScores and variables of candidate
std::vector<double> valuesToFill{massLc, pt, rapidity, outputBkg, outputPrompt, outputFD, static_cast<double>(numPvContributors), static_cast<double>(gap), static_cast<double>(fitInfo.ampFT0A), static_cast<double>(fitInfo.ampFT0C), static_cast<double>(fitInfo.ampFV0A), static_cast<double>(fitInfo.ampFDDA), static_cast<double>(fitInfo.ampFDDC), static_cast<double>(zdcEnergyZNA), static_cast<double>(zdcEnergyZNC)};
registry.get<THnSparse>(HIST("hnLcUpcVarsWithBdt"))->Fill(valuesToFill.data());
if (fillUPCTHnLite) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Dear @Rrantu @zhangbiao-phy, sorry for interfering the PR process, but here and in a block below you have two identical actions under if and else. Could you please get rid of this duplication?

Copy link
Contributor

Choose a reason for hiding this comment

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

Independently on the previous comment: are you sure that your code does what you intended logic-wise? I mean that the UPC THn will be filled both in cases when fillUPCTHnLite is true or false.
And presence of the UPC THn in the registry is conditioned by the fillTHn, not fillUPCTHnLite.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @lubynets, fillUPCTHnLite = true fills only candidates passing the sgselector gap selection, while fillUPCTHnLite = false fills all candidates.

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