From a93532d02d0678c7cb1d8e2a0b003c8e0cb15cbe Mon Sep 17 00:00:00 2001 From: ZFederica Date: Wed, 7 Feb 2024 10:50:45 +0100 Subject: [PATCH] change vtx for cospa calculation --- PWGHF/TableProducer/candidateCreatorToXiPi.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PWGHF/TableProducer/candidateCreatorToXiPi.cxx b/PWGHF/TableProducer/candidateCreatorToXiPi.cxx index 5f5168e4b71..39ad12f1c24 100644 --- a/PWGHF/TableProducer/candidateCreatorToXiPi.cxx +++ b/PWGHF/TableProducer/candidateCreatorToXiPi.cxx @@ -259,12 +259,12 @@ struct HfCandidateCreatorToXiPi { double mCharmBaryon = RecoDecay::m(std::array{pVecCascAsD, pVecPionFromCharmBaryon}, arrMassCharmBaryon); // computing cosPA - double cpaV0 = RecoDecay::cpa(vertexCasc, vertexV0, pVecV0); + double cpaV0 = casc.v0cosPA(collision.posX(), collision.posY(), collision.posZ()); double cpaCharmBaryon = RecoDecay::cpa(pvCoord, coordVtxCharmBaryon, pVecCharmBaryon); - double cpaCasc = RecoDecay::cpa(coordVtxCharmBaryon, vertexCasc, pVecCasc); - double cpaxyV0 = RecoDecay::cpaXY(vertexCasc, vertexV0, pVecV0); + double cpaCasc = casc.casccosPA(collision.posX(), collision.posY(), collision.posZ()); + double cpaxyV0 = RecoDecay::cpaXY(pvCoord, vertexV0, pVecV0); double cpaxyCharmBaryon = RecoDecay::cpaXY(pvCoord, coordVtxCharmBaryon, pVecCharmBaryon); - double cpaxyCasc = RecoDecay::cpaXY(coordVtxCharmBaryon, vertexCasc, pVecCasc); + double cpaxyCasc = RecoDecay::cpaXY(pvCoord, vertexCasc, pVecCasc); // computing decay length and ctau double decLenCharmBaryon = RecoDecay::distance(pvCoord, coordVtxCharmBaryon);