Skip to content

PWGHF: Add the possibility to store D-meson ML scores in reduced B data model#3646

Merged
fgrosa merged 2 commits intoAliceO2Group:masterfrom
fgrosa:dev_bmesons
Oct 22, 2023
Merged

PWGHF: Add the possibility to store D-meson ML scores in reduced B data model#3646
fgrosa merged 2 commits intoAliceO2Group:masterfrom
fgrosa:dev_bmesons

Conversation

@fgrosa
Copy link
Collaborator

@fgrosa fgrosa commented Oct 19, 2023

@AlexBigO @apalasciano I added the possibility to add the ML scores to the reduced D-meson tables for the reduced B data format. It looks like a big change since I had to slightly change the implementation of the data creators, i.e. the templetised function now takes a single collision and the loop is moved in the process functions because otherwise I could not use the sliceBy (that is different in case of tables with and without BDT scores), but the effective differences are very few.

Copy link
Collaborator

@mfaggin mfaggin left a comment

Choose a reason for hiding this comment

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

Ciao @fgrosa ,
I went through your changes and they look reasonable to me. I have just a few minor comments.

While trying to digest your changes here, I noticed one thing that peraphs needs to be adjusted in the candidateSelectorD0. From the candidateSelectorD0 you get the statusD0 and statusD0Bar that you use to Filter the candidate 2 prongs to build your B+ mesons.
To monitor them, shouldn't we change the lines here https://github.com/AliceO2Group/O2Physics/blob/master/PWGHF/TableProducer/candidateSelectorD0.cxx#L387-L389 into something like

if (statusD0) { registry.fill(HIST("DebugBdt/hMassDmesonSel"), fHelper.invMassD0ToPiK(candidate)); } if (statusD0bar) { registry.fill(HIST("DebugBdt/hMassDmesonSel"), fHelper.invMassD0ToKPi(candidate)); }
?
If this is correct, do you think that we can include this small fix already in this PR?

It looks to me that there is not anything similar in the candidateSelectorDplus instead.

@fgrosa
Copy link
Collaborator Author

fgrosa commented Oct 20, 2023

Ciao @fgrosa , I went through your changes and they look reasonable to me. I have just a few minor comments.

While trying to digest your changes here, I noticed one thing that peraphs needs to be adjusted in the candidateSelectorD0. From the candidateSelectorD0 you get the statusD0 and statusD0Bar that you use to Filter the candidate 2 prongs to build your B+ mesons. To monitor them, shouldn't we change the lines here https://github.com/AliceO2Group/O2Physics/blob/master/PWGHF/TableProducer/candidateSelectorD0.cxx#L387-L389 into something like

if (statusD0) { registry.fill(HIST("DebugBdt/hMassDmesonSel"), fHelper.invMassD0ToPiK(candidate)); } if (statusD0bar) { registry.fill(HIST("DebugBdt/hMassDmesonSel"), fHelper.invMassD0ToKPi(candidate)); } ? If this is correct, do you think that we can include this small fix already in this PR?

It looks to me that there is not anything similar in the candidateSelectorDplus instead.

Hi @mfaggin, thanks!
I agree that this should be fixed, however I would do it in a separated PR since it does not concern the B-meson code development. I can open a separated PR.

mfaggin
mfaggin previously approved these changes Oct 20, 2023
Copy link
Contributor

@AlexBigO AlexBigO left a comment

Choose a reason for hiding this comment

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

Hi @fgrosa , thanks for the ML implementation! I just have one silly comment :)

hf_charm_cand_reduced::MlScoreBkg,
hf_charm_cand_reduced::MlScorePrompt,
hf_charm_cand_reduced::MlScoreNonprompt,
o2::soa::Marker<1>);
Copy link
Contributor

@AlexBigO AlexBigO Oct 20, 2023

Choose a reason for hiding this comment

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

To be consistent with what we did for HfRedxProngs tables, shouldn't we put o2::soa::Marker<1> for HfRed2ProngsMl and o2::soa::Marker<2> for HfRed3ProngsMl?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks @AlexBigO! There is no need, if the first table does not have the marker the second one can have o2::soa::Marker<1>

@fgrosa fgrosa enabled auto-merge (squash) October 22, 2023 14:33
Copy link
Collaborator

@alibuild alibuild left a comment

Choose a reason for hiding this comment

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

Auto-approving on behalf of @fgrosa.

@fgrosa fgrosa merged commit 51ca779 into AliceO2Group:master Oct 22, 2023
zconesa pushed a commit to zconesa/O2Physics that referenced this pull request Oct 27, 2023
…ta model (AliceO2Group#3646)

* Add the possibility to store D-meson ML scores in reduced B data model

* Remove defaults to template arguments
chengtt0406 pushed a commit to chengtt0406/O2Physics that referenced this pull request Dec 6, 2023
…ta model (AliceO2Group#3646)

* Add the possibility to store D-meson ML scores in reduced B data model

* Remove defaults to template arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants