Skip to content
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

[PWGHF] Add centrality information to Xic0 #9128

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Tao-Fang
Copy link

The FT0M, FT0A, FT0C and numContrib has been added to Xic0 event lever

The FT0M, FT0A, FT0C and numContrib has been added to Xic0 event lever
@github-actions github-actions bot added the pwghf PWG-HF label Dec 25, 2024
@github-actions github-actions bot changed the title Add centrality information to Xic0 [PWGHF] Add centrality information to Xic0 Dec 25, 2024
Copy link
Collaborator

@fgrosa fgrosa left a comment

Choose a reason for hiding this comment

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

Hi @Tao-Fang! I have a couple of comments, please take a look at them (especially regarding the unbound indices, I believe that you need to find another strategy)

}

template <typename T>
void fillCandidate(const T& candidate, int8_t flagMc, int8_t debugMc, int8_t originMc, bool collisionMatched)
{
rowCandidateFull(
candidate.collisionId(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do you need to keep the collision Id? Please note that this doesn't allow you to link it to your event table, since the same collisionId can be found in different original DF, and you loose the info of the original DF in self-contained derived data due to AO2D merging. In fact, the addition of this index implies the error of unbound indices since the original collision table is not stored.
Also, even in case you want to store the collision Id (which is however not useful for the reason mentioned above), there is no need to declare the column as index column (because it doesn't point to any table that you store).

@@ -356,6 +418,7 @@ struct HfTreeCreatorToXiPi {
if (candidate.resultSelections() && candidate.statusPidCharmBaryon() && candidate.statusInvMassLambda() && candidate.statusInvMassCascade() && candidate.statusInvMassCharmBaryon()) {

rowCandidateLite(
candidate.collisionId(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

The addition of this index implies the error of unbound indices since the original collision table is not stored. We should not add it here (especially in the lite table which is typically meant for the production of samples for ML trainings and does not require the collisionId info)

@@ -218,9 +249,11 @@ struct HfTreeCreatorToXiPi {
Produces<o2::aod::HfToXiPiEvs> rowEv;

Configurable<float> zPvCut{"zPvCut", 10., "Cut on absolute value of primary vertex z coordinate"};
Configurable<bool> useCentrality{"useCentrality", false, "Decide whether to use centrality information"};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of adding a configurable, I would templetize the process function in order to have one version that consumes the centrality tables, and another one that doesn't (otherwise regardless the value of this configurable, the user must always add the centrality task since this workflow always consumes the centrality tables)

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