@@ -502,7 +502,7 @@ struct FemtoUniversePairTaskTrackV0Extended {
502502
503503 eventHisto.fillQA (col);
504504
505- // / Histogramming same event
505+ // / Histogramming same event for first V0 particle
506506 for (const auto & part : groupPartsTwo) {
507507 if (!invMLambda (part.mLambda (), part.mAntiLambda ()))
508508 continue ;
@@ -518,6 +518,8 @@ struct FemtoUniversePairTaskTrackV0Extended {
518518 trackHistoV0Type1.fillQABase <false , true >(part, HIST (" V0Type1" ));
519519 posChildV0Type1.fillQABase <false , true >(posChild, HIST (" posChildV0Type1" ));
520520 negChildV0Type1.fillQABase <false , true >(negChild, HIST (" negChildV0Type1" ));
521+ qaRegistry.fill (HIST (" V0Type1/hInvMassLambdaVsCent" ), multCol, part.mLambda ());
522+ qaRegistry.fill (HIST (" V0Type1/hInvMassAntiLambdaVsCent" ), multCol, part.mAntiLambda ());
521523 } else {
522524 if ((posChild.pidCut () & (1u << V0ChildTable[ConfV0Selection.confV0Type1 ][0 ])) == 0 || (negChild.pidCut () & (1u << V0ChildTable[ConfV0Selection.confV0Type1 ][1 ])) == 0 )
523525 continue ;
@@ -532,12 +534,17 @@ struct FemtoUniversePairTaskTrackV0Extended {
532534 posChildV0Type1.fillQABase <false , false >(posChild, HIST (" posChildV0Type1" ));
533535 negChildV0Type1.fillQABase <false , false >(negChild, HIST (" negChildV0Type1" ));
534536 }
535- qaRegistry.fill (HIST (" V0Type1/hInvMassLambdaVsCent" ), multCol, part.mLambda ());
536- qaRegistry.fill (HIST (" V0Type1/hInvMassAntiLambdaVsCent" ), multCol, part.mAntiLambda ());
537537 if constexpr (isMC) {
538538 effCorrection.fillRecoHist <ParticleNo::ONE, FilteredFDCollisions>(part, kLambda0 );
539539 }
540+ }
540541
542+ // / Histogramming same event for second V0 particle
543+ for (const auto & part : groupPartsTwo) {
544+ if (!invMLambda (part.mLambda (), part.mAntiLambda ()))
545+ continue ;
546+ const auto & posChild = parts.iteratorAt (part.globalIndex () - 2 - parts.begin ().globalIndex ());
547+ const auto & negChild = parts.iteratorAt (part.globalIndex () - 1 - parts.begin ().globalIndex ());
541548 // / Check daughters of second V0 particle
542549 if constexpr (std::experimental::is_detected<hasSigma, typename PartType::iterator>::value) {
543550 if (!isParticleTPC (posChild, V0ChildTable[ConfV0Selection.confV0Type2 ][0 ]) || !isParticleTPC (negChild, V0ChildTable[ConfV0Selection.confV0Type2 ][1 ]))
@@ -547,22 +554,22 @@ struct FemtoUniversePairTaskTrackV0Extended {
547554 trackHistoV0Type2.fillQABase <false , true >(part, HIST (" V0Type2" ));
548555 posChildV0Type2.fillQABase <false , true >(posChild, HIST (" posChildV0Type2" ));
549556 negChildV0Type2.fillQABase <false , true >(negChild, HIST (" negChildV0Type2" ));
557+ qaRegistry.fill (HIST (" V0Type2/hInvMassLambdaVsCent" ), multCol, part.mLambda ());
558+ qaRegistry.fill (HIST (" V0Type2/hInvMassAntiLambdaVsCent" ), multCol, part.mAntiLambda ());
550559 } else {
551- if ((posChild.pidCut () & (1u << V0ChildTable[ConfV0Selection.confV0Type1 ][0 ])) == 0 || (negChild.pidCut () & (1u << V0ChildTable[ConfV0Selection.confV0Type1 ][1 ])) == 0 )
560+ if ((posChild.pidCut () & (1u << V0ChildTable[ConfV0Selection.confV0Type2 ][0 ])) == 0 || (negChild.pidCut () & (1u << V0ChildTable[ConfV0Selection.confV0Type2 ][1 ])) == 0 )
552561 continue ;
553562 if (ConfV0Selection.confUseStrangenessTOF ) {
554- if (((ConfV0Selection.confV0Type1 == 0 ) && (part.pidCut () & 3 ) != 3 ) || ((ConfV0Selection.confV0Type1 == 1 ) && (part.pidCut () & 12 ) != 12 ) || ((ConfV0Selection.confV0Type1 == 2 ) && (part.pidCut () & 48 ) != 48 ))
563+ if (((ConfV0Selection.confV0Type2 == 0 ) && (part.pidCut () & 3 ) != 3 ) || ((ConfV0Selection.confV0Type1 == 1 ) && (part.pidCut () & 12 ) != 12 ) || ((ConfV0Selection.confV0Type2 == 2 ) && (part.pidCut () & 48 ) != 48 ))
555564 continue ;
556565 } else {
557- if ((posChild.pidCut () & (8u << V0ChildTable[ConfV0Selection.confV0Type1 ][0 ])) == 0 || (negChild.pidCut () & (8u << V0ChildTable[ConfV0Selection.confV0Type1 ][1 ])) == 0 )
566+ if ((posChild.pidCut () & (8u << V0ChildTable[ConfV0Selection.confV0Type2 ][0 ])) == 0 || (negChild.pidCut () & (8u << V0ChildTable[ConfV0Selection.confV0Type2 ][1 ])) == 0 )
558567 continue ;
559568 }
560569 trackHistoV0Type2.fillQABase <false , false >(part, HIST (" V0Type2" ));
561570 posChildV0Type2.fillQABase <false , false >(posChild, HIST (" posChildV0Type2" ));
562571 negChildV0Type2.fillQABase <false , false >(negChild, HIST (" negChildV0Type2" ));
563572 }
564- qaRegistry.fill (HIST (" V0Type2/hInvMassLambdaVsCent" ), multCol, part.mLambda ());
565- qaRegistry.fill (HIST (" V0Type2/hInvMassAntiLambdaVsCent" ), multCol, part.mAntiLambda ());
566573 if constexpr (isMC) {
567574 effCorrection.fillRecoHist <ParticleNo::TWO, FilteredFDCollisions>(part, kLambda0Bar );
568575 }
0 commit comments