Skip to content

[PWGLF] Add tree producer for coalescence studies#16390

Merged
alcaliva merged 5 commits into
AliceO2Group:masterfrom
alcaliva:master
May 26, 2026
Merged

[PWGLF] Add tree producer for coalescence studies#16390
alcaliva merged 5 commits into
AliceO2Group:masterfrom
alcaliva:master

Conversation

@alcaliva
Copy link
Copy Markdown
Collaborator

Tree producer to store space-time coordinates and momentum components of bound-state candidates for coalescence studies

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

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

@alibuild
Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/o2 for 2d26eee at 2026-05-26 11:48:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:39:10: fatal error: Common/DataModel/MCParticles.h: No such file or directory
ninja: build stopped: subcommand failed.

Full log here.

@alibuild
Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/staging for 2d26eee at 2026-05-26 11:48:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:39:10: fatal error: Common/DataModel/MCParticles.h: No such file or directory
ninja: build stopped: subcommand failed.

Full log here.

@alibuild
Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/staging for 7ea2771 at 2026-05-26 12:00:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:39:10: fatal error: Common/DataModel/MCParticles.h: No such file or directory
ninja: build stopped: subcommand failed.

Full log here.

@alibuild
Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/o2 for 7ea2771 at 2026-05-26 12:02:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:39:10: fatal error: Common/DataModel/MCParticles.h: No such file or directory
ninja: build stopped: subcommand failed.

Full log here.

@alcaliva alcaliva enabled auto-merge (squash) May 26, 2026 10:07
@alibuild
Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/staging for 4ab91f7 at 2026-05-26 12:08:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:159:16: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:162:16: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:171:12: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:173:12: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:175:12: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:497:18: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:499:25: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:501:25: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:503:25: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:505:25: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:507:25: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:578:28: error: comparison of integer expressions of different signedness: 'std::vector<CoalescenceTreeProducer::Particle>::size_type' {aka 'long unsigned int'} and 'int' [-Werror=sign-compare]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:579:32: error: comparison of integer expressions of different signedness: 'std::vector<CoalescenceTreeProducer::Particle>::size_type' {aka 'long unsigned int'} and 'int' [-Werror=sign-compare]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:588:49: error: comparison of integer expressions of different signedness: 'std::vector<CoalescenceTreeProducer::Particle>::size_type' {aka 'long unsigned int'} and 'int' [-Werror=sign-compare]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:589:57: error: comparison of integer expressions of different signedness: 'std::vector<CoalescenceTreeProducer::Particle>::size_type' {aka 'long unsigned int'} and 'int' [-Werror=sign-compare]
ninja: build stopped: subcommand failed.

Full log here.

@alibuild
Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/o2 for 4ab91f7 at 2026-05-26 12:12:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:159:16: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:162:16: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:171:12: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:173:12: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:175:12: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:497:18: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:499:25: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:501:25: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:503:25: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:505:25: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:507:25: error: 'PDG_t' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:578:28: error: comparison of integer expressions of different signedness: 'std::vector<CoalescenceTreeProducer::Particle>::size_type' {aka 'long unsigned int'} and 'int' [-Werror=sign-compare]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:579:32: error: comparison of integer expressions of different signedness: 'std::vector<CoalescenceTreeProducer::Particle>::size_type' {aka 'long unsigned int'} and 'int' [-Werror=sign-compare]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:588:49: error: comparison of integer expressions of different signedness: 'std::vector<CoalescenceTreeProducer::Particle>::size_type' {aka 'long unsigned int'} and 'int' [-Werror=sign-compare]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:589:57: error: comparison of integer expressions of different signedness: 'std::vector<CoalescenceTreeProducer::Particle>::size_type' {aka 'long unsigned int'} and 'int' [-Werror=sign-compare]
ninja: build stopped: subcommand failed.

Full log here.

@alcaliva alcaliva merged commit 6d6d0fc into AliceO2Group:master May 26, 2026
11 of 12 checks passed
Comment on lines +31 to +37
#include "Framework/AnalysisTask.h"
#include "Framework/Configurable.h"
#include "Framework/HistogramRegistry.h"
#include "Framework/InitContext.h"
#include "Framework/Logger.h"
#include "Framework/OutputObjHeader.h"
#include "Framework/runDataProcessing.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.

@alcaliva @maciacco This is wrong.

Comment on lines +87 to +89
static constexpr double MassP = o2::constants::physics::MassProton;
static constexpr double MassN = o2::constants::physics::MassNeutron;
static constexpr double MassL = o2::constants::physics::MassLambda0;
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.

Don't.

Comment on lines +76 to +85
int64_t eventID; // Event ID
int64_t idB1, idB2, idB3; // MC particle IDs of the constituent baryons

int pdgB1, pdgB2, pdgB3;
int chargeB1, chargeB2, chargeB3;

// Space-time coordinates and momentum components of the constituent baryons in the lab frame
float xB1, yB1, zB1, tB1, pxB1, pyB1, pzB1;
float xB2, yB2, zB2, tB2, pxB2, pyB2, pzB2;
float xB3, yB3, zB3, tB3, pxB3, pyB3, pzB3;
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.

Everything uninitialised.

Comment on lines +92 to +102
int64_t id;
int pdg;
int charge;
float x;
float y;
float z;
float t;
float px;
float py;
float pz;
float mass;
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.

Everything uninitialised.

Comment on lines +183 to +184
template <typename T>
Particle makeParticle(T const& p)
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 is this not a Particle constructor?

@alcaliva
Copy link
Copy Markdown
Collaborator Author

Hi @vkucera , thanks for your comments. I'm going to fix this task asap.

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