Skip to content

[PWGLF] MC matching for kinkBuilder + SP process function for L1405#16484

Open
Marcellocosti wants to merge 12 commits into
AliceO2Group:masterfrom
Marcellocosti:master
Open

[PWGLF] MC matching for kinkBuilder + SP process function for L1405#16484
Marcellocosti wants to merge 12 commits into
AliceO2Group:masterfrom
Marcellocosti:master

Conversation

@Marcellocosti
Copy link
Copy Markdown
Contributor

@Marcellocosti Marcellocosti commented Jun 1, 2026

  • kinkBuilder: added process function with Monte Carlo matching, histograms to study reconstruction efficiency, selection QA histograms and process function to analyze specific centrality intervals
  • lambda1405analysis: added process function with Scalar Product information, histograms for efficiency evaluation, possibility to analyze only a selected centrality class + QA histograms

Tagging @fmazzasc, @stefanopolitano

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

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

Marcellocosti added a commit to Marcellocosti/O2Physics that referenced this pull request Jun 1, 2026
[PWGLF] Please consider the following formatting changes to AliceO2Group#16484
@alibuild
Copy link
Copy Markdown
Collaborator

alibuild commented Jun 2, 2026

Error while checking build/O2Physics/staging for 0ca9223 at 2026-06-02 08:00:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Common/kinkBuilder.cxx:831:43: error: unused parameter 'mcGenCollisions' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Common/kinkBuilder.cxx:842:48: error: unused parameter 'mcGenCollisions' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Common/kinkBuilder.cxx:457:100: error: unused parameter 'collisions' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Common/kinkBuilder.cxx:457:100: error: unused parameter 'collisions' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Common/kinkBuilder.cxx:457:100: error: unused parameter 'collisions' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Common/kinkBuilder.cxx:457:100: error: unused parameter 'collisions' [-Werror=unused-parameter]
ninja: build stopped: subcommand failed.

Full log here.

@alibuild
Copy link
Copy Markdown
Collaborator

alibuild commented Jun 2, 2026

Error while checking build/O2Physics/o2 for 0ca9223 at 2026-06-02 09:42:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Common/kinkBuilder.cxx:831:43: error: unused parameter 'mcGenCollisions' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Common/kinkBuilder.cxx:842:48: error: unused parameter 'mcGenCollisions' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Common/kinkBuilder.cxx:457:100: error: unused parameter 'collisions' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Common/kinkBuilder.cxx:457:100: error: unused parameter 'collisions' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Common/kinkBuilder.cxx:457:100: error: unused parameter 'collisions' [-Werror=unused-parameter]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Common/kinkBuilder.cxx:457:100: error: unused parameter 'collisions' [-Werror=unused-parameter]
ninja: build stopped: subcommand failed.

Full log here.

Comment thread PWGLF/Tasks/Resonances/lambda1405analysis.cxx Outdated
Comment thread PWGLF/Tasks/Resonances/lambda1405analysis.cxx Outdated
@vkucera
Copy link
Copy Markdown
Collaborator

vkucera commented Jun 2, 2026

You are adding plenty of magic numbers. Don't.

@vkucera vkucera marked this pull request as draft June 2, 2026 14:24
@Marcellocosti
Copy link
Copy Markdown
Contributor Author

Thanks for your review @vkucera, I implemented your comments and fixed most of the warnings, which were although already present in the code

@Marcellocosti Marcellocosti marked this pull request as ready for review June 3, 2026 10:32
Comment on lines +68 to +71
enum KinkDecayType { kSigmaMinusToPiMinusNeutron = 0,
kSigmaPlusToPiPlusNeutron,
kSigmaPlusToProtonPi0,
kNMatchedDecays };
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.

These are compile-time constants. Don't use the k prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants