Skip to content
Prev Previous commit
Next Next commit
Use pVector for particle daughters
  • Loading branch information
vkucera committed Apr 19, 2024
commit 37a95dc0c2d8df0817eb401fc0080ede133498ca
4 changes: 2 additions & 2 deletions PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ struct HfDataCreatorCharmHadPiReduced {
for (const auto& daught : particle.daughters_as<aod::McParticles>()) {
ptProngs[counter] = daught.pt();
etaProngs[counter] = daught.eta();
yProngs[counter] = RecoDecay::y(std::array{daught.px(), daught.py(), daught.pz()}, pdg->Mass(daught.pdgCode()));
yProngs[counter] = RecoDecay::y(daught.pVector(), pdg->Mass(daught.pdgCode()));
counter++;
}
rowHfB0McGenReduced(flag, ptParticle, yParticle, etaParticle,
Expand Down Expand Up @@ -766,7 +766,7 @@ struct HfDataCreatorCharmHadPiReduced {
for (const auto& daught : particle.daughters_as<aod::McParticles>()) {
ptProngs[counter] = daught.pt();
etaProngs[counter] = daught.eta();
yProngs[counter] = RecoDecay::y(std::array{daught.px(), daught.py(), daught.pz()}, pdg->Mass(daught.pdgCode()));
yProngs[counter] = RecoDecay::y(daught.pVector(), pdg->Mass(daught.pdgCode()));
counter++;
}
rowHfBpMcGenReduced(flag, ptParticle, yParticle, etaParticle,
Expand Down
2 changes: 1 addition & 1 deletion PWGHF/D2H/Tasks/taskB0.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ struct HfTaskB0 {
for (const auto& daught : particle.daughters_as<aod::McParticles>()) {
ptProngs[counter] = daught.pt();
etaProngs[counter] = daught.eta();
yProngs[counter] = RecoDecay::y(std::array{daught.px(), daught.py(), daught.pz()}, pdg->Mass(daught.pdgCode()));
yProngs[counter] = RecoDecay::y(daught.pVector(), pdg->Mass(daught.pdgCode()));
counter++;
}

Expand Down
2 changes: 1 addition & 1 deletion PWGHF/D2H/Tasks/taskBplus.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ struct HfTaskBplus {
for (const auto& daught : particle.daughters_as<aod::McParticles>()) {
ptProngs[counter] = daught.pt();
etaProngs[counter] = daught.eta();
yProngs[counter] = RecoDecay::y(std::array{daught.px(), daught.py(), daught.pz()}, pdg->Mass(daught.pdgCode()));
yProngs[counter] = RecoDecay::y(daught.pVector(), pdg->Mass(daught.pdgCode()));
counter++;
}

Expand Down
2 changes: 1 addition & 1 deletion PWGHF/D2H/Tasks/taskBs.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ struct HfTaskBs {
for (const auto& daught : particle.daughters_as<aod::McParticles>()) {
ptProngs[counter] = daught.pt();
etaProngs[counter] = daught.eta();
yProngs[counter] = RecoDecay::y(std::array{daught.px(), daught.py(), daught.pz()}, pdg->Mass(daught.pdgCode()));
yProngs[counter] = RecoDecay::y(daught.pVector(), pdg->Mass(daught.pdgCode()));
counter++;
}

Expand Down
2 changes: 1 addition & 1 deletion PWGHF/D2H/Tasks/taskLb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ struct HfTaskLbMc {
for (const auto& daught : particle.daughters_as<aod::McParticles>()) {
ptProngs[counter] = daught.pt();
etaProngs[counter] = daught.eta();
yProngs[counter] = RecoDecay::y(std::array{daught.px(), daught.py(), daught.pz()}, pdg->Mass(daught.pdgCode()));
yProngs[counter] = RecoDecay::y(daught.pVector(), pdg->Mass(daught.pdgCode()));
counter++;
}

Expand Down
2 changes: 1 addition & 1 deletion PWGHF/D2H/Tasks/taskXic.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ struct HfTaskXic {
for (const auto& daught : particle.daughters_as<soa::Join<aod::McParticles, aod::HfCand3ProngMcGen>>()) {
ptProngs[counter] = daught.pt();
etaProngs[counter] = daught.eta();
yProngs[counter] = RecoDecay::y(std::array{daught.px(), daught.py(), daught.pz()}, pdg->Mass(daught.pdgCode()));
yProngs[counter] = RecoDecay::y(daught.pVector(), pdg->Mass(daught.pdgCode()));
counter++;
}

Expand Down