@@ -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,17 @@ 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;
323311 // nSigma selection for daughter and bachelor tracks
324-
325312 if (part.sign () < 0 ) {
326313 if (std::abs (posChild.tpcNSigmaPr ()) > confNSigmaTPCProton) {
327314 continue ;
@@ -356,13 +343,9 @@ struct femtoUniversePairTaskTrackCascadeExtended {
356343 rXiQA.fill (HIST (" hDcaBachtoPV" ), casc.dcabachtopv ());
357344 rXiQA.fill (HIST (" hDcaV0toPV" ), casc.dcav0topv ());
358345 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" ));
363346 }
364347 }
365- PROCESS_SWITCH (femtoUniversePairTaskTrackCascadeExtended, processCascades , " Enable processing cascades" , false );
348+ PROCESS_SWITCH (femtoUniversePairTaskTrackCascadeExtended, processCascadeQA , " Enable processing cascades" , false );
366349
367350 template <class T >
368351 using hasSigma = decltype (std::declval<T&>().tpcNSigmaStorePr());
@@ -383,11 +366,6 @@ struct femtoUniversePairTaskTrackCascadeExtended {
383366 if (!invMCascade (part.mLambda (), part.mAntiLambda (), confCascType1)) // / mLambda stores Xi mass, mAntiLambda stores Omega mass
384367 continue ;
385368
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-
391369 const auto & posChild = parts.iteratorAt (part.globalIndex () - 3 - parts.begin ().globalIndex ());
392370 const auto & negChild = parts.iteratorAt (part.globalIndex () - 2 - parts.begin ().globalIndex ());
393371 const auto & bachelor = parts.iteratorAt (part.globalIndex () - 1 - parts.begin ().globalIndex ());
@@ -409,6 +387,11 @@ struct femtoUniversePairTaskTrackCascadeExtended {
409387 if ((!confCheckTOFBachelorOnly && ((posChild.pidCut () & (8u << CascChildTable[confCascType1][0 ])) == 0 || (negChild.pidCut () & (8u << CascChildTable[confCascType1][1 ])) == 0 )) || (bachelor.pidCut () & (8u << CascChildTable[confCascType1][2 ])) == 0 )
410388 continue ;
411389
390+ if constexpr (std::experimental::is_detected<hasSigma, typename TableType::iterator>::value)
391+ cascQAHistos.fillQA <false , true >(part);
392+ else
393+ cascQAHistos.fillQA <false , false >(part);
394+
412395 posChildHistos.fillQA <false , false >(posChild);
413396 negChildHistos.fillQA <false , false >(negChild);
414397 bachHistos.fillQABase <false , false >(bachelor, HIST (" hBachelor" ));
0 commit comments