Skip to content

[PWGDQ] Update table with properties for prompt-non prompt J/psi separation - #18370

Closed
JonathanWitte wants to merge 7 commits into
AliceO2Group:masterfrom
JonathanWitte:promptNonPromptSeparationTable
Closed

JonathanWitte wants to merge 7 commits into
AliceO2Group:masterfrom
JonathanWitte:promptNonPromptSeparationTable

Conversation

@JonathanWitte

Copy link
Copy Markdown
Contributor

Thorough review and upgrade of the table used for P/NP separation
PromptNonPromptSepTable / o2::aod::JPsieeCandidates / "DQPSEUDOPROPER"

Recalculating missing properties
Removing TPC track quality properties due to MC mismatch
Add FT0C centrality in table
Move table fill outside of cut loop and guard missing options with condition

… add FT0C centrality value, and setup stable filling outside the cut loop
@github-actions github-actions Bot added the pwgdq label Oct 20, 2026
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

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

Comment thread PWGDQ/Tasks/tableReader_withAssoc.h Resolved
Comment thread PWGDQ/Tasks/tableReader_withAssoc.h Resolved
Comment thread PWGDQ/Tasks/tableReader_withAssoc.h Resolved
Comment thread PWGDQ/Tasks/tableReader_withAssoc.h Resolved
@@ -2293,10 +2375,6 @@ struct AnalysisSameEventPairing {
}
}
if (sign1 * sign2 < 0) {

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.

Why introduce the check above again if it is already here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is in the loop over the cut sets, so the table would be filled multiple times. Also t1&t2 are not available here

Comment thread PWGDQ/Tasks/tableReader_withAssoc.h Resolved
Comment thread PWGDQ/Core/VarManager.h Outdated
values[kDCAxy2] = dca2XY;
values[kDCAz2] = dca2Z;

values[kDCASigxy1] = dca1XY / std::sqrt(t1.cYY());

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 calculations are done already a few lines below, maybe you can move the definitions below out of the if-condition so it is only calculated once and then add the kDCASig variables. But good notice that they never have been filled

Comment thread PWGDQ/Core/VarManager.h Outdated
values[kVertexingLz] = std::sqrt(values[kVertexingLz]);
values[kVertexingLxyz] = std::sqrt(values[kVertexingLxyz]);

values[kVertexingLxyOverErr] = values[kVertexingLxy] / values[kVertexingLxyErr];

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.

These are already calculated below, around line 5191 (old), respectively 5207 (with your current changes)

Comment thread PWGDQ/Core/VarManager.h Outdated
kCharge1,
kDCAxy1,
kDCAz1,
kDCASigxy1, // DCAxy / sqrt(cYY) of leg 1

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 rename the variable to kDCAxyOverSig1 or (or similar) instead of leaving a comment here. Nobody notices that comment.

In general, please always name variables to exactly what the do and do not put a comment.

Comment thread PWGDQ/Core/VarManager.cxx Outdated
fgVarNamesMap["kCharge1"] = kCharge1;
fgVarNamesMap["kDCAxy1"] = kDCAxy1;
fgVarNamesMap["kDCAz1"] = kDCAz1;
fgVarNamesMap["kDCASigxy1"] = kDCASigxy1;

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.

Also here, rename to kDCAxyOverSig1 and also for the second leg (as commented in the VarManager.h)

Comment thread PWGDQ/Tasks/dqEfficiency_withAssoc.cxx Outdated
}
}
}
// flat table for prompt / non-prompt BDT training: one row per MC-matched opposite-sign pair

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.

Remove the comments here, not necessary

Comment thread PWGDQ/Tasks/tableReader_withAssoc.h Outdated
(fConfigML.applyBDT && fOutputMlPsi2ee.size() > 1) ? VarManager::fgValues[VarManager::kBdtPrompt] : -999.f,
(fConfigML.applyBDT && fOutputMlPsi2ee.size() > 2) ? VarManager::fgValues[VarManager::kBdtNonprompt] : -999.f);
}
// flat table for prompt / non-prompt BDT training: one row per pair (not per cut; select cuts offline via PairFilter)

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.

Remove the comments also here, not necessary

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

Labels

Development

Successfully merging this pull request may close these issues.

3 participants