@@ -54,7 +54,6 @@ struct femtoUniversePairTaskTrackCascadeExtended {
5454 ConfigurableAxis confChildTempFitVarBins{" confChildTempFitVarBins" , {300 , -0.15 , 0.15 }, " V0 child: binning of the TempFitVar in the pT vs. TempFitVar plot" };
5555 Configurable<float > confCascInvMassLowLimit{" confCascInvMassLowLimit" , 1.315 , " Lower limit of the Casc invariant mass" };
5656 Configurable<float > confCascInvMassUpLimit{" confCascInvMassUpLimit" , 1.325 , " Upper limit of the Casc invariant mass" };
57- Configurable<float > confCascTranRad{" confCascTranRad" , 0.5 , " Cascade transverse radius" };
5857
5958 Configurable<float > confNSigmaTPCPion{" confNSigmaTPCPion" , 4 , " NSigmaTPCPion" };
6059 Configurable<float > confNSigmaTPCProton{" confNSigmaTPCProton" , 4 , " NSigmaTPCProton" };
@@ -299,29 +298,18 @@ struct femtoUniversePairTaskTrackCascadeExtended {
299298 }
300299 }
301300
302- void processCascades ([[maybe_unused]] const FilteredFDCollision& col, const FemtoFullParticles& parts, const aod::FDCascParticles& fdcascs)
301+ void processCascadeQA ([[maybe_unused]] const FilteredFDCollision& col, const FemtoFullParticles& parts, const aod::FDCascParticles& fdcascs)
303302 {
304- // auto groupCascs = cascs->sliceByCached(aod::femtouniverseparticle::fdCollisionId, col.globalIndex(), cache);
305- // const int multCol = col.multNtr();
306-
307303 for (const auto & casc : fdcascs) {
308304 const auto & part = casc.fdParticle_as <FemtoFullParticles>();
309305 rXiQA.fill (HIST (" hMassXi" ), part.mLambda ());
310306
311- // if (!invMCascade(casc.mLambda(), casc.mAntiLambda()))
312- // continue;
313-
314307 const auto & posChild = parts.iteratorAt (part.globalIndex () - 3 - parts.begin ().globalIndex ());
315308 const auto & negChild = parts.iteratorAt (part.globalIndex () - 2 - parts.begin ().globalIndex ());
316309 const auto & bachelor = parts.iteratorAt (part.globalIndex () - 1 - parts.begin ().globalIndex ());
317310
318- // if (casc.transRadius() < confCascTranRad)
319- // continue;
320- // std::cout<<std::endl;
321- // std::cout<<"TYPE:"<<std::endl;
322- // std::cout<<casc.partType()<<std::endl;
323- // nSigma selection for daughter and bachelor tracks
324311
312+ // nSigma selection for daughter and bachelor tracks
325313 if (part.sign () < 0 ) {
326314 if (std::abs (posChild.tpcNSigmaPr ()) > confNSigmaTPCProton) {
327315 continue ;
@@ -356,13 +344,9 @@ struct femtoUniversePairTaskTrackCascadeExtended {
356344 rXiQA.fill (HIST (" hDcaBachtoPV" ), casc.dcabachtopv ());
357345 rXiQA.fill (HIST (" hDcaV0toPV" ), casc.dcav0topv ());
358346 rXiQA.fill (HIST (" hInvMpT" ), part.pt (), part.mLambda ());
359-
360- posChildHistos.fillQA <false , true >(posChild);
361- negChildHistos.fillQA <false , true >(negChild);
362- bachHistos.fillQABase <false , true >(bachelor, HIST (" hBachelor" ));
363347 }
364348 }
365- PROCESS_SWITCH (femtoUniversePairTaskTrackCascadeExtended, processCascades , " Enable processing cascades" , false );
349+ PROCESS_SWITCH (femtoUniversePairTaskTrackCascadeExtended, processCascadeQA , " Enable processing cascades" , false );
366350
367351 template <class T >
368352 using hasSigma = decltype (std::declval<T&>().tpcNSigmaStorePr());
@@ -383,11 +367,6 @@ struct femtoUniversePairTaskTrackCascadeExtended {
383367 if (!invMCascade (part.mLambda (), part.mAntiLambda (), confCascType1)) // / mLambda stores Xi mass, mAntiLambda stores Omega mass
384368 continue ;
385369
386- if constexpr (std::experimental::is_detected<hasSigma, typename TableType::iterator>::value)
387- cascQAHistos.fillQA <false , true >(part);
388- else
389- cascQAHistos.fillQA <false , false >(part);
390-
391370 const auto & posChild = parts.iteratorAt (part.globalIndex () - 3 - parts.begin ().globalIndex ());
392371 const auto & negChild = parts.iteratorAt (part.globalIndex () - 2 - parts.begin ().globalIndex ());
393372 const auto & bachelor = parts.iteratorAt (part.globalIndex () - 1 - parts.begin ().globalIndex ());
@@ -409,6 +388,11 @@ struct femtoUniversePairTaskTrackCascadeExtended {
409388 if ((!confCheckTOFBachelorOnly && ((posChild.pidCut () & (8u << CascChildTable[confCascType1][0 ])) == 0 || (negChild.pidCut () & (8u << CascChildTable[confCascType1][1 ])) == 0 )) || (bachelor.pidCut () & (8u << CascChildTable[confCascType1][2 ])) == 0 )
410389 continue ;
411390
391+ if constexpr (std::experimental::is_detected<hasSigma, typename TableType::iterator>::value)
392+ cascQAHistos.fillQA <false , true >(part);
393+ else
394+ cascQAHistos.fillQA <false , false >(part);
395+
412396 posChildHistos.fillQA <false , false >(posChild);
413397 negChildHistos.fillQA <false , false >(negChild);
414398 bachHistos.fillQABase <false , false >(bachelor, HIST (" hBachelor" ));
0 commit comments