Skip to content

Commit 5b4018b

Browse files
committed
use generic candidate as an argument of kfCalculateProngMomentumInSecondaryVertex()
1 parent a0db01f commit 5b4018b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎PWGHF/TableProducer/candidateCreator3Prong.cxx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,9 @@ struct HfCandidateCreator3Prong {
661661
const float chi2geo = kfCandGeneric->Chi2() / static_cast<float>(kfCandGeneric->NDF());
662662
const std::pair<float, float> ldl = kfCalculateLdL(*kfCandGeneric, kfpV);
663663

664-
std::array<float, 3> pProng0 = kfCalculateProngMomentumInSecondaryVertex(kfFirstProton, kfCandPiKP);
665-
std::array<float, 3> pProng1 = kfCalculateProngMomentumInSecondaryVertex(kfSecondKaon, kfCandPiKP);
666-
std::array<float, 3> pProng2 = kfCalculateProngMomentumInSecondaryVertex(kfThirdPion, kfCandPiKP);
664+
std::array<float, 3> pProng0 = kfCalculateProngMomentumInSecondaryVertex(kfFirstProton, *kfCandGeneric);
665+
std::array<float, 3> pProng1 = kfCalculateProngMomentumInSecondaryVertex(kfSecondKaon, *kfCandGeneric);
666+
std::array<float, 3> pProng2 = kfCalculateProngMomentumInSecondaryVertex(kfThirdPion, *kfCandGeneric);
667667

668668
registry.fill(HIST("hCovSVXX"), kfCandGeneric->GetCovariance(0, 0));
669669
registry.fill(HIST("hCovSVYY"), kfCandGeneric->GetCovariance(1, 1));

0 commit comments

Comments
 (0)