-
Notifications
You must be signed in to change notification settings - Fork 529
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
base: master
Are you sure you want to change the base?
Conversation
The FT0M, FT0A, FT0C and numContrib has been added to Xic0 event lever
Please consider the following formatting changes to AliceO2Group#9128
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.
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(), |
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.
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(), |
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 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"}; |
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.
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)
The FT0M, FT0A, FT0C and numContrib has been added to Xic0 event lever