[PWGUD] MC analysis for flow#15626
Conversation
|
O2 linter results: ❌ 1 errors, |
|
Error while checking build/O2Physics/o2 for fc7b1e9 at 2026-04-02 15:31: Full log here. |
Comment out the calculation of phi for mcParticles and tracks.
|
Error while checking build/O2Physics/o2 for aad8ae2 at 2026-04-02 21:12: Full log here. |
|
sorry for this error, but I am not sure what to do about the CMakeList.cxx |
|
If it is caused by my code, please let me know. Thank you so much |
|
Dear @miedema-11, |
There was a problem hiding this comment.
Why don't you fix the error instead of disabling it?
| #include "ReconstructionDataFormats/Track.h" | ||
| #include <CCDB/BasicCCDBManager.h> | ||
|
|
||
| #include <TF1.h> |
There was a problem hiding this comment.
I don't see any mention of TF1. How did you verify that you included what you used?
| #include "Common/Core/trackUtilities.h" | ||
| #include "Common/DataModel/TrackSelectionTables.h" | ||
|
|
||
| #include "Framework/ASoAHelpers.h" |
| // } | ||
|
|
||
| template <typename TTrack> | ||
| bool trackSelected(TTrack track) |
| bool trackSelected(TTrack track) | ||
| { | ||
| auto momentum = std::array<double, 3>{track.px(), track.py(), track.pz()}; | ||
| double pt = RecoDecay::pt(momentum); |
|
|
||
| for (auto const& mcParticle : mcParticles) { | ||
| auto momentum = std::array<double, 3>{mcParticle.px(), mcParticle.py(), mcParticle.pz()}; | ||
| double pt = RecoDecay::pt(momentum); |
| auto momentum = std::array<double, 3>{mcParticle.px(), mcParticle.py(), mcParticle.pz()}; | ||
| double pt = RecoDecay::pt(momentum); | ||
| // double phi = RecoDecay::phi(momentum); | ||
| double eta = RecoDecay::eta(momentum); |
| double eta = RecoDecay::eta(momentum); | ||
| // focus on bulk: e, mu, pi, k, p | ||
| int pdgCode = std::abs(mcParticle.pdgCode()); | ||
| if (pdgCode != PDG_t::kElectron && pdgCode != PDG_t::kMuonMinus && pdgCode != PDG_t::kPiPlus && pdgCode != kKPlus && pdgCode != PDG_t::kProton) |
There was a problem hiding this comment.
| if (pdgCode != PDG_t::kElectron && pdgCode != PDG_t::kMuonMinus && pdgCode != PDG_t::kPiPlus && pdgCode != kKPlus && pdgCode != PDG_t::kProton) | |
| if (pdgCode != PDG_t::kElectron && pdgCode != PDG_t::kMuonMinus && pdgCode != PDG_t::kPiPlus && pdgCode != PDG_t::kKPlus && pdgCode != PDG_t::kProton) |
No description provided.