[PWGUD] use get track size and add flowMC#15679
[PWGUD] use get track size and add flowMC#15679miedema-11 wants to merge 5 commits intoAliceO2Group:masterfrom
Conversation
|
O2 linter results: ❌ 1 errors, |
|
Error while checking build/O2Physics/o2 for 4eeefde at 2026-04-08 08:43: Full log here. |
|
@miedema-11 This is a duplicate of #15626. Please do not do that. I made several suggestions on your previous PR which are now completely disconnected from this version and I have to visually compare both versions to see your implementation of my comments. |
PWGUD/Tasks/flowMcUpc.cxx
Outdated
| auto mcParticle = track.udMcParticle(); | ||
| int pdgCode = std::abs(mcParticle.pdgCode()); | ||
| if (pdgCode == PDG_t::kElectron) | ||
| recoMC.SetM(o2::constants::physics::MassElectron); | ||
| else if (pdgCode == PDG_t::kMuonMinus) | ||
| recoMC.SetM(o2::constants::physics::MassMuon); | ||
| else if (pdgCode == PDG_t::kPiPlus) | ||
| recoMC.SetM(o2::constants::physics::MassPionCharged); | ||
| else if (pdgCode == PDG_t::kKPlus) | ||
| recoMC.SetM(o2::constants::physics::MassKaonCharged); | ||
| else if (pdgCode == PDG_t::kProton) | ||
| recoMC.SetM(o2::constants::physics::MassProton); | ||
| else | ||
| continue; | ||
|
|
||
| double pt = recoMC.Pt(); | ||
| double eta = recoMC.Eta(); |
|
Hi @miedema-11, |
Not exactly, I also modify the flowcorrelationupc.cxx, so I open a new one to avoid conflict. And I already corrected the code according to your comment. Maybe I haven't done it correctly? |
PWGUD/Tasks/flowMcUpc.cxx
Outdated
| using namespace o2; | ||
| using namespace o2::framework; | ||
| using namespace o2::framework::expressions; | ||
| using LorentzVectorM = ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double>>; |
PWGUD/Tasks/flowMcUpc.cxx
Outdated
| #include <TProfile.h> | ||
| #include <TRandom3.h> |
There was a problem hiding this comment.
Where do you use these headers?
|
Dear experts, |
No description provided.