@@ -80,6 +80,7 @@ struct femtoUniversePairTaskTrackCascadeExtended { // o2-linter: disable=name/st
8080 Configurable<float > confLPtPart2{" ConfLPtPart2" , 0 .3f , " lower limit for pt of particle 2" };
8181 Configurable<float > confmom{" Confmom" , 0.75 , " momentum threshold for particle identification using TOF" };
8282 Configurable<float > confNsigmaTPCParticle{" ConfNsigmaTPCParticle" , 3.0 , " TPC Sigma for particle momentum < Confmom" };
83+ Configurable<float > confNsigmaTOFParticle{" ConfNsigmaTOFParticle" , 3.0 , " TOF Sigma for particle momentum > Confmom" };
8384 Configurable<float > confNsigmaCombinedParticle{" ConfNsigmaCombinedParticle" , 3.0 , " TPC and TOF Sigma (combined) for particle momentum > Confmom" };
8485
8586 ConfigurableAxis confkstarBins{" ConfkstarBins" , {1500 , 0 ., 6 .}, " binning kstar" };
@@ -160,6 +161,20 @@ struct femtoUniversePairTaskTrackCascadeExtended { // o2-linter: disable=name/st
160161 }
161162 }
162163
164+ bool isNSigmaTOF (float mom, float nsigmaTOFParticle, float hasTOF)
165+ {
166+ // Cut only on tracks, that have TOF signal
167+ if (mom > confmom && hasTOF == 1 ) {
168+ if (std::abs (nsigmaTOFParticle) < confNsigmaTOFParticle) {
169+ return true ;
170+ } else {
171+ return false ;
172+ }
173+ } else {
174+ return true ;
175+ }
176+ }
177+
163178 bool isNSigmaCombined (float mom, float nsigmaTPCParticle, float nsigmaTOFParticle)
164179 {
165180 if (mom <= confmom) {
@@ -177,6 +192,14 @@ struct femtoUniversePairTaskTrackCascadeExtended { // o2-linter: disable=name/st
177192 return isNSigmaTPC (tpcNSigmas[id]);
178193 }
179194
195+ template <typename T>
196+ bool isParticleTOF (const T& part, int id)
197+ {
198+ const float tofNSigmas[3 ] = {unPackInTable<aod::pidtof_tiny::binning>(part.tofNSigmaStorePr ()), unPackInTable<aod::pidtof_tiny::binning>(part.tofNSigmaStorePi ()), unPackInTable<aod::pidtof_tiny::binning>(part.tofNSigmaStoreKa ())};
199+
200+ return isNSigmaTOF (part.p (), tofNSigmas[id], part.tempFitVar ());
201+ }
202+
180203 template <typename T>
181204 bool isParticleCombined (const T& part, int id)
182205 {
@@ -346,6 +369,9 @@ struct femtoUniversePairTaskTrackCascadeExtended { // o2-linter: disable=name/st
346369 if (!isParticleTPC (posChild, CascChildTable[confCascType1][0 ]) || !isParticleTPC (negChild, CascChildTable[confCascType1][1 ]) || !isParticleTPC (bachelor, CascChildTable[confCascType1][2 ]))
347370 continue ;
348371
372+ if (!isParticleTOF (posChild, CascChildTable[confCascType1][0 ]) || !isParticleTOF (negChild, CascChildTable[confCascType1][1 ]) || !isParticleTOF (bachelor, CascChildTable[confCascType1][2 ]))
373+ continue ;
374+
349375 posChildHistos.fillQA <false , true >(posChild);
350376 negChildHistos.fillQA <false , true >(negChild);
351377 bachHistos.fillQABase <false , true >(bachelor, HIST (" hBachelor" ));
0 commit comments