-
Notifications
You must be signed in to change notification settings - Fork 613
[PWGCF] calculate v2 correction factor from MC #9742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Error while checking build/O2Physics/o2 for 478916d at 2025-02-04 20:55: Full log here. |
|
@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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
| 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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
victor-gonzalez
left a comment
There was a problem hiding this 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
No description provided.