@@ -97,6 +97,7 @@ struct FemtoUniversePairTaskTrackV0Helicity {
9797 ConfigurableAxis confChildTempFitVarpTBins{" confChildTempFitVarpTBins" , {20 , 0.5 , 4.05 }, " V0 child: pT binning of the pT vs. TempFitVar plot" };
9898 Configurable<float > confHPtPart2{" confHPtPart2" , 4 .0f , " higher limit for pt of particle 2" };
9999 Configurable<float > confLPtPart2{" confLPtPart2" , 0 .3f , " lower limit for pt of particle 2" };
100+ Configurable<int > confPDGCodeV0{" confPDGCodeV0" , 3122 , " V0 -- PDG code" };
100101 Configurable<int > confPDGCodePosChild{" confPDGCodePosChild" , 2212 , " Positive Child -- PDG code" };
101102 Configurable<int > confPDGCodeNegChild{" confPDGCodeNegChild" , 211 , " Negative Child -- PDG code" };
102103
@@ -506,7 +507,7 @@ struct FemtoUniversePairTaskTrackV0Helicity {
506507 // / Histogramming same event
507508 for (const auto & part : groupPartsTwo) {
508509 int pdgCode = static_cast <int >(part.pidCut ());
509- if ((confV0Type1 == 0 && pdgCode != 3122 ) || (confV0Type1 == 1 && pdgCode != -3122 ))
510+ if ((confV0Type1 == 0 && pdgCode != confPDGCodeV0 ) || (confV0Type1 == 1 && pdgCode != -confPDGCodeV0 ))
510511 continue ;
511512 trackHistoPartTwo.fillQA <false , true >(part);
512513 }
@@ -532,7 +533,7 @@ struct FemtoUniversePairTaskTrackV0Helicity {
532533 if (static_cast <int >(p1.pidCut ()) != confTrkPDGCodePartOne)
533534 continue ;
534535 int pdgCode2 = static_cast <int >(p2.pidCut ());
535- if ((confV0Type1 == 0 && pdgCode2 != 3122 ) || (confV0Type1 == 1 && pdgCode2 != -3122 ))
536+ if ((confV0Type1 == 0 && pdgCode2 != confPDGCodeV0 ) || (confV0Type1 == 1 && pdgCode2 != -confPDGCodeV0 ))
536537 continue ;
537538 // track cleaning
538539 if (confIsCPR.value ) {
@@ -557,17 +558,17 @@ struct FemtoUniversePairTaskTrackV0Helicity {
557558 // / Histogramming same event
558559 for (const auto & part : groupPartsTwo) {
559560 int pdgCode = static_cast <int >(part.pidCut ());
560- if ((confV0Type1 == 0 && pdgCode != 3122 ) || (confV0Type1 == 1 && pdgCode != -3122 ))
561+ if ((confV0Type1 == 0 && pdgCode != confPDGCodeV0 ) || (confV0Type1 == 1 && pdgCode != -confPDGCodeV0 ))
561562 continue ;
562563 trackHistoPartTwo.fillQA <false , true >(part);
563564 }
564565
565566 auto pairProcessFunc = [&](auto & p1, auto & p2) -> void {
566567 int pdgCode1 = static_cast <int >(p1.pidCut ());
567- if ((confV0Type1 == 0 && pdgCode1 != 3122 ) || (confV0Type1 == 1 && pdgCode1 != -3122 ))
568+ if ((confV0Type1 == 0 && pdgCode1 != confPDGCodeV0 ) || (confV0Type1 == 1 && pdgCode1 != -confPDGCodeV0 ))
568569 return ;
569570 int pdgCode2 = static_cast <int >(p2.pidCut ());
570- if ((confV0Type2 == 0 && pdgCode2 != 3122 ) || (confV0Type2 == 1 && pdgCode2 != -3122 ))
571+ if ((confV0Type2 == 0 && pdgCode2 != confPDGCodeV0 ) || (confV0Type2 == 1 && pdgCode2 != -confPDGCodeV0 ))
571572 return ;
572573 sameEventCont.setPair <false >(p1, p2, multCol, confUse3D);
573574 };
@@ -756,7 +757,7 @@ struct FemtoUniversePairTaskTrackV0Helicity {
756757 if (static_cast <int >(p1.pidCut ()) != confTrkPDGCodePartOne)
757758 continue ;
758759 int pdgCode2 = static_cast <int >(p2.pidCut ());
759- if ((confV0Type1 == 0 && pdgCode2 != 3122 ) || (confV0Type1 == 1 && pdgCode2 != -3122 ))
760+ if ((confV0Type1 == 0 && pdgCode2 != confPDGCodeV0 ) || (confV0Type1 == 1 && pdgCode2 != -confPDGCodeV0 ))
760761 continue ;
761762 if (confIsCPR.value ) {
762763 if (pairCloseRejection.isClosePair (p1, p2, parts, magFieldTesla1, femto_universe_container::EventType::mixed)) {
@@ -796,10 +797,10 @@ struct FemtoUniversePairTaskTrackV0Helicity {
796797
797798 for (const auto & [p1, p2] : combinations (CombinationsFullIndexPolicy (groupPartsOne, groupPartsTwo))) {
798799 int pdgCode1 = static_cast <int >(p1.pidCut ());
799- if ((confV0Type1 == 0 && pdgCode1 != 3122 ) || (confV0Type1 == 1 && pdgCode1 != -3122 ))
800+ if ((confV0Type1 == 0 && pdgCode1 != confPDGCodeV0 ) || (confV0Type1 == 1 && pdgCode1 != -confPDGCodeV0 ))
800801 continue ;
801802 int pdgCode2 = static_cast <int >(p2.pidCut ());
802- if ((confV0Type2 == 0 && pdgCode2 != 3122 ) || (confV0Type2 == 1 && pdgCode2 != -3122 ))
803+ if ((confV0Type2 == 0 && pdgCode2 != confPDGCodeV0 ) || (confV0Type2 == 1 && pdgCode2 != -confPDGCodeV0 ))
803804 continue ;
804805 mixedEventCont.setPair <false >(p1, p2, multCol, confUse3D);
805806 }
0 commit comments