@@ -57,8 +57,9 @@ struct femtoUniversePairTaskTrackCascadeExtended {
5757 Configurable<float > confCascInvMassLowLimit{" confCascInvMassLowLimit" , 1.315 , " Lower limit of the Casc invariant mass" };
5858 Configurable<float > confCascInvMassUpLimit{" confCascInvMassUpLimit" , 1.325 , " Upper limit of the Casc invariant mass" };
5959
60- Configurable<float > confNSigmaTPCPion{" confNSigmaTPCPion" , 4 , " NSigmaTPCPion" };
61- Configurable<float > confNSigmaTPCProton{" confNSigmaTPCProton" , 4 , " NSigmaTPCProton" };
60+ // TODO: Add seperate selection for daughter particles
61+ // Configurable<float> confNSigmaTPCPion{"confNSigmaTPCPion", 4, "NSigmaTPCPion"};
62+ // Configurable<float> confNSigmaTPCProton{"confNSigmaTPCProton", 4, "NSigmaTPCProton"};
6263
6364 // / applying narrow cut
6465 Configurable<float > confZVertexCut{" confZVertexCut" , 10 .f , " Event sel: Maximum z-Vertex (cm)" };
@@ -350,25 +351,12 @@ struct femtoUniversePairTaskTrackCascadeExtended {
350351 const auto & negChild = parts.iteratorAt (part.globalIndex () - 2 - parts.begin ().globalIndex ());
351352 const auto & bachelor = parts.iteratorAt (part.globalIndex () - 1 - parts.begin ().globalIndex ());
352353
353- // nSigma selection for daughter and bachelor tracks
354- if (part.sign () < 0 ) {
355- if (std::abs (posChild.tpcNSigmaPr ()) > confNSigmaTPCProton) {
356- continue ;
357- }
358- if (std::abs (negChild.tpcNSigmaPi ()) > confNSigmaTPCPion) {
359- continue ;
360- }
361- } else {
362- if (std::abs (negChild.tpcNSigmaPr ()) > confNSigmaTPCProton) {
363- continue ;
364- }
365- if (std::abs (posChild.tpcNSigmaPi ()) > confNSigmaTPCPion) {
366- continue ;
367- }
368- }
369- if (std::abs (bachelor.tpcNSigmaPi ()) > confNSigmaTPCPion) {
354+ float posChildTPC, negChildTPC, bachelorTPC, posChildTOF, negChildTOF, bachelorTOF;
355+ if (!isParticleTPC (posChild, CascChildTable[confCascType1][0 ], &posChildTPC) || !isParticleTPC (negChild, CascChildTable[confCascType1][1 ], &negChildTPC) || !isParticleTPC (bachelor, CascChildTable[confCascType1][2 ], &bachelorTPC))
356+ continue ;
357+
358+ if ((!confCheckTOFBachelorOnly && (!isParticleTOF (posChild, CascChildTable[confCascType1][0 ], &posChildTOF) || !isParticleTOF (negChild, CascChildTable[confCascType1][1 ], &negChildTOF))) || !isParticleTOF (bachelor, CascChildTable[confCascType1][2 ], &bachelorTOF))
370359 continue ;
371- }
372360
373361 rXiQA.fill (HIST (" hPtXi" ), part.pt ());
374362 rXiQA.fill (HIST (" hEtaXi" ), part.eta ());
0 commit comments