Skip to content

Conversation

@Luzhiyongg
Copy link
Contributor

No description provided.

@alibuild
Copy link
Collaborator

alibuild commented Feb 4, 2025

Error while checking build/O2Physics/o2 for 478916d at 2025-02-04 20:55:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/9742-slc9_x86-64/0/PWGCF/Flow/Tasks/flowPtEfficiency.cxx:158:17: error: 'class GFWWeights' has no member named 'SetPtBins'; did you mean 'setPtBins'?
/sw/SOURCES/O2Physics/9742-slc9_x86-64/0/PWGCF/Flow/Tasks/flowPtEfficiency.cxx:159:17: error: 'class GFWWeights' has no member named 'Init'; did you mean 'init'?
/sw/SOURCES/O2Physics/9742-slc9_x86-64/0/PWGCF/Flow/Tasks/flowPtEfficiency.cxx:329:33: error: 'class GFWWeights' has no member named 'GetNUA'; did you mean 'getNUA'?
/sw/SOURCES/O2Physics/9742-slc9_x86-64/0/PWGCF/Flow/Tasks/flowPtEfficiency.cxx:390:25: error: 'class GFWWeights' has no member named 'Fill'; did you mean 'fill'?
/sw/SOURCES/O2Physics/9742-slc9_x86-64/0/PWGCF/Flow/Tasks/flowMc.cxx:104:17: error: 'class GFWWeights' has no member named 'SetPtBins'; did you mean 'setPtBins'?
/sw/SOURCES/O2Physics/9742-slc9_x86-64/0/PWGCF/Flow/Tasks/flowMc.cxx:105:17: error: 'class GFWWeights' has no member named 'Init'; did you mean 'init'?
/sw/SOURCES/O2Physics/9742-slc9_x86-64/0/PWGCF/Flow/Tasks/flowMc.cxx:141:33: error: 'class GFWWeights' has no member named 'GetNUA'; did you mean 'getNUA'?
/sw/SOURCES/O2Physics/9742-slc9_x86-64/0/PWGCF/Flow/Tasks/flowMc.cxx:218:21: error: 'class GFWWeights' has no member named 'Fill'; did you mean 'fill'?
ninja: build stopped: subcommand failed.

Full log here.

@Luzhiyongg
Copy link
Contributor Author

@victor-gonzalez hi Victor, I've fixed the errors. Could you please review this pull request?

for (auto const& mcParticle : mcParticles) {
// focus on bulk: e, mu, pi, k, p
int pdgCode = std::abs(mcParticle.pdgCode());
if (pdgCode != 11 && pdgCode != 13 && pdgCode != 211 && pdgCode != 321 && pdgCode != 2212)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please, for the next iteration use named constants from TPDGCode.h instead of numbers

float imp = mcCollision.impactParameter();

int pdgCode = std::abs(mcParticle.pdgCode());
if (pdgCode != 3312 && pdgCode != 3334)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

Comment on lines +269 to +278
if (pdgCode == 3312)
histos.fill(HIST("hBVsPtVsPhiGeneratedXi"), imp, deltaPhi, mcParticle.pt());
if (pdgCode == 3334)
histos.fill(HIST("hBVsPtVsPhiGeneratedOmega"), imp, deltaPhi, mcParticle.pt());

if (cascades.size() > 0) {
if (pdgCode == 3312)
histos.fill(HIST("hBVsPtVsPhiGlobalXi"), imp, deltaPhi, mcParticle.pt());
if (pdgCode == 3334)
histos.fill(HIST("hBVsPtVsPhiGlobalOmega"), imp, deltaPhi, mcParticle.pt());
Copy link
Collaborator

Choose a reason for hiding this comment

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

And here

Copy link
Collaborator

@victor-gonzalez victor-gonzalez left a comment

Choose a reason for hiding this comment

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

Please, have a look at my comments for the next iteration

@victor-gonzalez victor-gonzalez merged commit 787df17 into AliceO2Group:master Feb 5, 2025
15 of 16 checks passed
nasirmehdimalik pushed a commit to nasirmehdimalik/O2Physics that referenced this pull request Feb 12, 2025
smaff92 pushed a commit to smaff92/O2Physics that referenced this pull request Feb 17, 2025
alibuild pushed a commit to alibuild/O2Physics that referenced this pull request Aug 11, 2025
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