Skip to content

[PWGLF] Initialize variables, remove unused includes and use Particle constructor#16405

Open
alcaliva wants to merge 2 commits into
AliceO2Group:masterfrom
alcaliva:master
Open

[PWGLF] Initialize variables, remove unused includes and use Particle constructor#16405
alcaliva wants to merge 2 commits into
AliceO2Group:masterfrom
alcaliva:master

Conversation

@alcaliva
Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 27, 2026

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

@alcaliva
Copy link
Copy Markdown
Collaborator Author

@vkucera

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

Error while checking build/O2Physics/o2 for 32c219e at 2026-05-27 09:56:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:42:17: error: 'o2' is not a namespace-name
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:43:17: error: 'o2' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:43:21: error: 'framework' is not a namespace-name
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:55:3: error: 'HistogramRegistry' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:58:3: error: 'Configurable' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:59:3: error: 'Configurable' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:60:3: error: 'Configurable' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:61:3: error: 'Configurable' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:62:3: error: 'Configurable' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:3: error: 'Preslice' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:66:3: error: 'OutputObj' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:139:13: error: 'InitContext' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:595:27: error: 'aod' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:595:44: error: expected ',' or '...' before 'const'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:657:43: error: 'processCoalescence' is not a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:657:63: error: expected identifier before string constant
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:657:63: error: expected ',' or '...' before string constant
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:657:3: error: ISO C++ forbids declaration of 'PROCESS_SWITCH' with no type [-fpermissive]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:128:18: error: 'o2' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:130:18: error: 'o2' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:132:18: error: 'o2' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:141:5: error: 'registry' was not declared in this scope; did you mean 'register'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:141:51: error: 'HistType' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:142:21: error: expected primary-expression before '>' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:142:23: error: 'HIST' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:143:21: error: expected primary-expression before '>' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:144:21: error: expected primary-expression before '>' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:149:5: error: 'treeBoundState' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:176:26: error: 'boundStateSpecies' was not declared in this scope; did you mean 'BoundStateSpecies'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:223:5: error: 'treeBoundState' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:264:5: error: 'treeBoundState' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:316:20: error: 'pRhoMax' was not declared in this scope; did you mean 'pRho'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:381:20: error: 'pRhoMax' was not declared in this scope; did you mean 'pRho'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:385:23: error: 'pLambdaMax' was not declared in this scope; did you mean 'pLambda'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:483:39: error: 'etaMax' was not declared in this scope; did you mean 'ROOT::Math::etaMax'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:597:5: error: 'registry' was not declared in this scope; did you mean 'register'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:597:19: error: 'HIST' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:599:19: error: 'collision' was not declared in this scope; did you mean 'McCollision'?
[0 more errors; see full log]

Full log here.

@alibuild
Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/staging for 32c219e at 2026-05-27 09:57:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:42:17: error: 'o2' is not a namespace-name
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:43:17: error: 'o2' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:43:21: error: 'framework' is not a namespace-name
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:55:3: error: 'HistogramRegistry' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:58:3: error: 'Configurable' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:59:3: error: 'Configurable' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:60:3: error: 'Configurable' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:61:3: error: 'Configurable' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:62:3: error: 'Configurable' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:12: error: 'aod' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:64:3: error: 'Preslice' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:66:3: error: 'OutputObj' does not name a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:139:13: error: 'InitContext' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:595:27: error: 'aod' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:595:44: error: expected ',' or '...' before 'const'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:657:43: error: 'processCoalescence' is not a type
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:657:63: error: expected identifier before string constant
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:657:63: error: expected ',' or '...' before string constant
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:657:3: error: ISO C++ forbids declaration of 'PROCESS_SWITCH' with no type [-fpermissive]
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:128:18: error: 'o2' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:130:18: error: 'o2' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:132:18: error: 'o2' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:141:5: error: 'registry' was not declared in this scope; did you mean 'register'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:141:51: error: 'HistType' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:142:21: error: expected primary-expression before '>' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:142:23: error: 'HIST' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:143:21: error: expected primary-expression before '>' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:144:21: error: expected primary-expression before '>' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:149:5: error: 'treeBoundState' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:176:26: error: 'boundStateSpecies' was not declared in this scope; did you mean 'BoundStateSpecies'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:223:5: error: 'treeBoundState' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:264:5: error: 'treeBoundState' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:316:20: error: 'pRhoMax' was not declared in this scope; did you mean 'pRho'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:381:20: error: 'pRhoMax' was not declared in this scope; did you mean 'pRho'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:385:23: error: 'pLambdaMax' was not declared in this scope; did you mean 'pLambda'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:483:39: error: 'etaMax' was not declared in this scope; did you mean 'ROOT::Math::etaMax'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:597:5: error: 'registry' was not declared in this scope; did you mean 'register'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:597:19: error: 'HIST' was not declared in this scope
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx:599:19: error: 'collision' was not declared in this scope; did you mean 'McCollision'?
[0 more errors; see full log]

Full log here.

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.

The problem with these is the format.

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.

Fixed in #16415

@vkucera
Copy link
Copy Markdown
Collaborator

vkucera commented May 27, 2026

Hi @alcaliva , thanks for the fixes. I guess there was a misunderstanding in the previous PR about what to fix in the includes.

@alcaliva
Copy link
Copy Markdown
Collaborator Author

Hi @vkucera, thank you for helping me improving the code. If you have further comments I'll be happy to implement them.

@vkucera
Copy link
Copy Markdown
Collaborator

vkucera commented May 27, 2026

Hi @vkucera, thank you for helping me improving the code. If you have further comments I'll be happy to implement them.

Hi @alcaliva , no problem. I fixed the includes in #16415 so this PR can be merged without conflicting with that one.

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.

3 participants