diff --git a/PWGLF/TableProducer/lambdakzerobuilder.cxx b/PWGLF/TableProducer/lambdakzerobuilder.cxx index e89ec13ed76..07d239f0c0b 100644 --- a/PWGLF/TableProducer/lambdakzerobuilder.cxx +++ b/PWGLF/TableProducer/lambdakzerobuilder.cxx @@ -845,7 +845,13 @@ struct lambdakzeroBuilder { for (int i = 0; i < 6; i++) { momentumCovariance[i] = covTpositive[MomInd[i]] + covTnegative[MomInd[i]]; } - v0covs(positionCovariance, momentumCovariance); + if (V0.v0Type() > 0) { + if (V0.v0Type() > 1 && !storePhotonCandidates) + continue; + v0covs(positionCovariance, momentumCovariance); + } else { + v0fccovs(positionCovariance, momentumCovariance); + } } } // En masse histo filling at end of process call