Skip to content

Conversation

@Marcellocosti
Copy link
Contributor

@Marcellocosti Marcellocosti commented Aug 5, 2025

This PR adds the D* pi final state for the B0 meson in the reduced workflow. Separate tables and functions have been created for D*, please let me know if you prefer other solutions.

@github-actions
Copy link

github-actions bot commented Aug 5, 2025

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

@github-actions github-actions bot changed the title Add D*pi channel in B0 reduced workflow [PWGHF] Add D*pi channel in B0 reduced workflow Aug 5, 2025
Marcellocosti added a commit to Marcellocosti/O2Physics that referenced this pull request Aug 5, 2025
Please consider the following formatting changes to AliceO2Group#12451
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 @Marcellocosti, thanks for the development!
I have a comment about the data structure. I would not call the "Dstar" table "Dstar", since it contains basically D0 features. Also, there is some duplication of information that is not necessary, and you can handle a bit better. See my comments below, if you need clarifications let me know!

vkucera
vkucera previously approved these changes Aug 7, 2025
Copy link
Collaborator

@vkucera vkucera left a comment

Choose a reason for hiding this comment

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

Thanks @Marcellocosti for addressing my comments.
Approving to not block the review by @fgrosa .

Please consider the following formatting changes to AliceO2Group#12451
hf_cand::E<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
hf_cand::E2<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>);

DECLARE_SOA_TABLE(HfCandB0DStar, "AOD", "HFCANDB0DSTAR",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This table seems produced only by candidateCreatorB0Reduced.cxx. Why is it defined in the main data model?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought it would be clearer to have this table declared close to HfCandB0Base (table for the D-pi channel) since it is its respective table for the D*Pi channel.

Copy link
Collaborator

@fgrosa fgrosa Aug 13, 2025

Choose a reason for hiding this comment

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

Hi @vkucera I think it's good to keep it there for 2 reasons:

  1. consistency with the other channels
  2. in the future this channel might be considered to be added in the "non reduced" workflow, for instance if there will be an interest to include it in the HF-jet analyses (in principle we expect this to have more or less the same performance as B0 -> D-pi+)

#define PWGHF_CORE_HFMLRESPONSEB0TODPI_H_

#include "PWGHF/Core/HfMlResponse.h"
#include "PWGHF/D2H/DataModel/ReducedDataModel.h"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this header as later in the same file I retrieve the soft pion of the D*, using the tables declared in ReducedDataModel.h with the line
auto prongSoftPi = candidate.template prongSoftPi_as<o2::soa::Join<o2::aod::HfRedSoftPiBases, o2::aod::HfRedSoftPiCov, o2::aod::HfRedSoftPiPid>>();

@Marcellocosti
Copy link
Contributor Author

Hi @fgrosa, @vkucera, I tried to address all your comments. Please let me know if I overlooked something!

Please consider the following formatting changes to AliceO2Group#12451
@Marcellocosti Marcellocosti marked this pull request as ready for review August 14, 2025 12:05
@fgrosa
Copy link
Collaborator

fgrosa commented Aug 14, 2025

Hi @fgrosa, @vkucera, I tried to address all your comments. Please let me know if I overlooked something!

Thanks @Marcellocosti, it's good for me now!

@fgrosa fgrosa enabled auto-merge (squash) August 14, 2025 13:22
@fgrosa fgrosa merged commit 878fb4b into AliceO2Group:master Aug 14, 2025
13 of 14 checks passed
@Marcellocosti Marcellocosti deleted the B0ToDstar branch August 14, 2025 14:03
ThePhDane pushed a commit to ThePhDane/O2Physics that referenced this pull request Nov 3, 2025
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
jloemker pushed a commit to jloemker/O2Physics that referenced this pull request Nov 11, 2025
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
alibuild added a commit to alibuild/O2Physics that referenced this pull request Dec 5, 2025
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
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.

4 participants