@@ -863,32 +863,31 @@ struct femtoUniversePairTaskTrackCascadeExtended {
863863 continue ;
864864
865865 cascQAHistos.fillQA <false , false >(part);
866-
867- for (const auto & part : groupPartsOne) {
868- int pdgCode = static_cast <int >(part.pidCut ());
869- if (pdgCode != confTrkPDGCodePartOne)
870- continue ;
871- const auto & pdgTrackParticle = pdgMC->GetParticle (pdgCode);
872- if (!pdgTrackParticle) {
873- continue ;
874- }
875-
876- if (pdgTrackParticle->Charge () > 0 ) {
877- trackHistoPartOnePos.fillQA <false , false >(part);
878- } else if (pdgTrackParticle->Charge () < 0 ) {
879- trackHistoPartOneNeg.fillQA <false , false >(part);
880- }
866+ }
867+ for (const auto & part : groupPartsOne) {
868+ int pdgCode = static_cast <int >(part.pidCut ());
869+ if (pdgCode != confTrkPDGCodePartOne)
870+ continue ;
871+ const auto & pdgTrackParticle = pdgMC->GetParticle (pdgCode);
872+ if (!pdgTrackParticle) {
873+ continue ;
881874 }
882875
883- for (const auto & [p1, p2] : combinations (CombinationsFullIndexPolicy (groupPartsOne, groupPartsTwo))) {
884- if (static_cast <int >(p1.pidCut ()) != confTrkPDGCodePartOne)
885- continue ;
886- int pdgCodeCasc = static_cast <int >(p2.pidCut ());
887- if ((confCascType1 == 0 && pdgCodeCasc != kOmegaMinus ) || (confCascType1 == 2 && pdgCodeCasc != kOmegaPlusBar ) || (confCascType1 == 1 && pdgCodeCasc != kXiMinus ) || (confCascType1 == 3 && pdgCodeCasc != kXiPlusBar ))
888- continue ;
889- sameEventCont.setPair <false >(p1, p2, multCol, confUse3D, 1 .0f );
876+ if (pdgTrackParticle->Charge () > 0 ) {
877+ trackHistoPartOnePos.fillQA <false , false >(part);
878+ } else if (pdgTrackParticle->Charge () < 0 ) {
879+ trackHistoPartOneNeg.fillQA <false , false >(part);
890880 }
891881 }
882+
883+ for (const auto & [p1, p2] : combinations (CombinationsFullIndexPolicy (groupPartsOne, groupPartsTwo))) {
884+ if (static_cast <int >(p1.pidCut ()) != confTrkPDGCodePartOne)
885+ continue ;
886+ int pdgCodeCasc = static_cast <int >(p2.pidCut ());
887+ if ((confCascType1 == 0 && pdgCodeCasc != kOmegaMinus ) || (confCascType1 == 2 && pdgCodeCasc != kOmegaPlusBar ) || (confCascType1 == 1 && pdgCodeCasc != kXiMinus ) || (confCascType1 == 3 && pdgCodeCasc != kXiPlusBar ))
888+ continue ;
889+ sameEventCont.setPair <false >(p1, p2, multCol, confUse3D, 1 .0f );
890+ }
892891 }
893892 PROCESS_SWITCH (femtoUniversePairTaskTrackCascadeExtended, processSameEventMCgen, " Enable processing same event MC truth for track - cascade" , false );
894893
@@ -907,24 +906,24 @@ struct femtoUniversePairTaskTrackCascadeExtended {
907906 continue ;
908907
909908 cascQAHistos.fillQA <false , false >(part);
909+ }
910910
911- auto pairProcessFunc = [&](auto & p1, auto & p2) -> void {
912- int pdgCodeCasc1 = static_cast <int >(p1.pidCut ());
913- if ((confCascType1 == 0 && pdgCodeCasc1 != kOmegaMinus ) || (confCascType1 == 2 && pdgCodeCasc1 != kOmegaPlusBar ) || (confCascType1 == 1 && pdgCodeCasc1 != kXiMinus ) || (confCascType1 == 3 && pdgCodeCasc1 != kXiPlusBar ))
914- return ;
915- int pdgCodeCasc2 = static_cast <int >(p2.pidCut ());
916- if ((confCascType2 == 0 && pdgCodeCasc2 != kOmegaMinus ) || (confCascType2 == 2 && pdgCodeCasc2 != kOmegaPlusBar ) || (confCascType2 == 1 && pdgCodeCasc2 != kXiMinus ) || (confCascType2 == 3 && pdgCodeCasc2 != kXiPlusBar ))
917- return ;
918- sameEventCont.setPair <false >(p1, p2, multCol, confUse3D, 1 .0f );
919- };
911+ auto pairProcessFunc = [&](auto & p1, auto & p2) -> void {
912+ int pdgCodeCasc1 = static_cast <int >(p1.pidCut ());
913+ if ((confCascType1 == 0 && pdgCodeCasc1 != kOmegaMinus ) || (confCascType1 == 2 && pdgCodeCasc1 != kOmegaPlusBar ) || (confCascType1 == 1 && pdgCodeCasc1 != kXiMinus ) || (confCascType1 == 3 && pdgCodeCasc1 != kXiPlusBar ))
914+ return ;
915+ int pdgCodeCasc2 = static_cast <int >(p2.pidCut ());
916+ if ((confCascType2 == 0 && pdgCodeCasc2 != kOmegaMinus ) || (confCascType2 == 2 && pdgCodeCasc2 != kOmegaPlusBar ) || (confCascType2 == 1 && pdgCodeCasc2 != kXiMinus ) || (confCascType2 == 3 && pdgCodeCasc2 != kXiPlusBar ))
917+ return ;
918+ sameEventCont.setPair <false >(p1, p2, multCol, confUse3D, 1 .0f );
919+ };
920920
921- if (confCascType1 == confCascType2) {
922- for (const auto & [p1, p2] : combinations (CombinationsStrictlyUpperIndexPolicy (groupPartsTwo, groupPartsTwo)))
923- pairProcessFunc (p1, p2);
924- } else {
925- for (const auto & [p1, p2] : combinations (CombinationsFullIndexPolicy (groupPartsTwo, groupPartsTwo)))
926- pairProcessFunc (p1, p2);
927- }
921+ if (confCascType1 == confCascType2) {
922+ for (const auto & [p1, p2] : combinations (CombinationsStrictlyUpperIndexPolicy (groupPartsTwo, groupPartsTwo)))
923+ pairProcessFunc (p1, p2);
924+ } else {
925+ for (const auto & [p1, p2] : combinations (CombinationsFullIndexPolicy (groupPartsTwo, groupPartsTwo)))
926+ pairProcessFunc (p1, p2);
928927 }
929928 }
930929 PROCESS_SWITCH (femtoUniversePairTaskTrackCascadeExtended, processSameEventCascMCgen, " Enable processing same event MC truth for cascade - cascade" , false );
0 commit comments