@@ -282,12 +282,16 @@ struct HfTreeCreatorXicToPKPi {
282282 }
283283
284284 float invMassXic = 0 ;
285- if constexpr (massHypo == 0 ) {
285+ int selStatusPKPi = candidate.isSelXicToPKPi ();
286+ int selStatusPiKP = candidate.isSelXicToPiKP ();
287+
288+ if constexpr (massHypo == 0 ) { // Xic->PKPi
289+ selStatusPiKP *= -1 ;
286290 invMassXic = hfHelper.invMassXicToPKPi (candidate);
287- } else if constexpr (massHypo == 1 ) {
291+ } else if constexpr (massHypo == 1 ) { // Xic->PiKP
292+ selStatusPKPi *= -1 ;
288293 invMassXic = hfHelper.invMassXicToPiKP (candidate);
289294 }
290-
291295 if (fillCandidateLiteTable) {
292296 rowCandidateLite (
293297 candidate.chi2PCA (),
@@ -316,8 +320,8 @@ struct HfTreeCreatorXicToPKPi {
316320 candidate.tpcTofNSigmaKa1 (),
317321 candidate.tpcTofNSigmaPi2 (),
318322 candidate.tpcTofNSigmaPr2 (),
319- candidate. isSelXicToPKPi () ,
320- candidate. isSelXicToPiKP () ,
323+ selStatusPKPi ,
324+ selStatusPiKP ,
321325 invMassXic,
322326 candidate.pt (),
323327 candidate.cpa (),
@@ -383,8 +387,8 @@ struct HfTreeCreatorXicToPKPi {
383387 candidate.tpcTofNSigmaKa1 (),
384388 candidate.tpcTofNSigmaPi2 (),
385389 candidate.tpcTofNSigmaPr2 (),
386- candidate. isSelXicToPKPi () ,
387- candidate. isSelXicToPiKP () ,
390+ selStatusPKPi ,
391+ selStatusPiKP ,
388392 invMassXic,
389393 candidate.pt (),
390394 candidate.p (),
0 commit comments