Skip to content

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

Draft
Marcellocosti wants to merge 6 commits into
AliceO2Group:masterfrom
Marcellocosti:master
Draft

[PWGLF] MC matching for kinkBuilder + SP process function for L1405#16484
Marcellocosti wants to merge 6 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: ❌ 24 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 on lines -177 to +388
if (candidate.itsNCls() < cutNITSClusPi) {
if (std::abs(std::abs(candidate.eta()) > cutEtaDaught)) {
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.

This is a bug.

Comment on lines +345 to +346
funcMinQtAlphaAP = new TF1("funcMinQtAlphaAP", Form("%s", cutSigmaQtAPMin.value.data()), -1, 1);
LOGF(info, "funcMinQtAlphaAP: %s", Form("%s", cutSigmaQtAPMin.value.data()));
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 allocate memory dynamically, if you cannot handle it properly.

@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
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