Skip to content

Commit 6470112

Browse files
committed
Add missing assignment of eta values
1 parent 220d1f2 commit 6470112

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎PWGHF/TableProducer/treeCreatorXicToXiPiPi.cxx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,8 +755,10 @@ struct HfTreeCreatorXicToXiPiPi {
755755
if (std::abs(daugh.pdgCode()) == +kPiPlus) {
756756
if (foundFirstPi) {
757757
ptPi1 = daugh.pt();
758+
etaPi1 = daugh.eta();
758759
} else {
759760
ptPi0 = daugh.pt();
761+
etaPi0 = daugh.eta();
760762
foundFirstPi = true;
761763
}
762764
} else if (std::abs(daugh.pdgCode()) == +kXiMinus) {
@@ -765,14 +767,17 @@ struct HfTreeCreatorXicToXiPiPi {
765767
auto daughXi = particles.rawIteratorAt(iProngXi);
766768
if (std::abs(daughXi.pdgCode()) == +kPiPlus) {
767769
ptPiBachelor = daughXi.pt();
770+
etaPiBachelor = daughXi.eta();
768771
} else {
769772
RecoDecay::getDaughters(daughXi, &arrDaughIndex, std::array{+kProton, -kPiPlus}, 1);
770773
for (const int iProngLambda : arrDaughIndex) {
771774
auto daughLambda = particles.rawIteratorAt(iProngLambda);
772775
if (std::abs(daughLambda.pdgCode()) == +kPiPlus) {
773776
ptPiFromLambda = daughLambda.pt();
777+
etaPiFromLambda = daughLambda.eta();
774778
} else {
775779
ptPrFromLambda = daughLambda.pt();
780+
etaPrFromLambda = daughLambda.eta();
776781
}
777782
}
778783
}

0 commit comments

Comments
 (0)