Skip to content

[PWGHF] Update tree creator for Xic0Omegac0#16421

Open
jinhyunni wants to merge 6 commits into
AliceO2Group:masterfrom
jinhyunni:updateworkflow
Open

[PWGHF] Update tree creator for Xic0Omegac0#16421
jinhyunni wants to merge 6 commits into
AliceO2Group:masterfrom
jinhyunni:updateworkflow

Conversation

@jinhyunni
Copy link
Copy Markdown
Contributor

@jinhyunni jinhyunni commented May 27, 2026

Modified treeCreatorToXiPiQa.cxx to support saving an output table with generated-particle information.

@github-actions github-actions Bot added the pwghf PWG-HF label May 27, 2026
@github-actions github-actions Bot changed the title Update tree creator for Xic0Omegac0 [PWGHF] Update tree creator for Xic0Omegac0 May 27, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 27, 2026

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

Please consider the following formatting changes to AliceO2Group#16421
@vkucera vkucera marked this pull request as draft May 27, 2026 15:00
@vkucera
Copy link
Copy Markdown
Collaborator

vkucera commented May 27, 2026

You are repeating the same block 11 times!

if (fillParticle) {
rowCandidateParticles.reserve(mcParticles.size());
for (const auto& particle : mcParticles) {
rowCandidateParticles(RecoDecay::m(std::array{particle.px(), particle.py(), particle.pz()}, particle.e()),
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 don't you use pVector 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.

Thanks for your advice. I've changed the code to use pVector.

/// \author Krista Smith <krista.lizbeth.smith@cern.ch>, Pusan National University

#include "PWGHF/Core/CentralityEstimation.h"
#include "PWGHF/Core/DecayChannelsLegacy.h"
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.

Where do you use this?

Copy link
Copy Markdown
Contributor Author

@jinhyunni jinhyunni May 27, 2026

Choose a reason for hiding this comment

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

This header was included to give option which provides the input configuration used to filter the MCParticles table. It was introduced to support different decay chains.

DECLARE_SOA_COLUMN(MassV0Chi2OverNdf, massV0Chi2OverNdf, float);
DECLARE_SOA_COLUMN(MassCascChi2OverNdf, massCascChi2OverNdf, float);
// MC
DECLARE_SOA_COLUMN(PdgFromMc, pdgFromMc, int);
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.

What would a PDG not from MC be?

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.

Changed the column name into ParticlePdg. If you still have any opinions on this naming, please let me know.

@jinhyunni
Copy link
Copy Markdown
Contributor Author

You are repeating the same block 11 times!

I've written a helper function to fill in particle table to enhance code maintainence.

@jinhyunni jinhyunni marked this pull request as ready for review May 27, 2026 16:17
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