Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PWGHF/D2H/Tasks/taskD0.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ struct HfTaskD0 {
// Get the corresponding MC particle.
auto indexMother = RecoDecay::getMother(particlesMC, candidate.prong0_as<aod::BigTracksMC>().mcParticle_as<soa::Join<aod::McParticles, aod::HfCand2ProngMcGen>>(), pdg::Code::kD0, true);
auto particleMother = particlesMC.rawIteratorAt(indexMother);
auto ptGen = particleMother.pt(); // gen. level pT
auto ptGen = particleMother.pt(); // gen. level pT
auto yGen = RecoDecay::y(array{particleMother.px(), particleMother.py(), particleMother.pz()}, RecoDecay::getMassPDG(particleMother.pdgCode())); // gen. level y
registry.fill(HIST("hPtGenSig"), ptGen); // gen. level pT
registry.fill(HIST("hPtGenSig"), ptGen); // gen. level pT
auto ptRec = candidate.pt();
auto yRec = yD0(candidate);
if (candidate.isRecoHfFlag() >= selectionFlagHf) {
Expand Down