@@ -51,7 +51,7 @@ struct FemtoUniversePairTaskTrackTrackMcTruth {
5151 Configurable<float > confEtaMax{" confEtaMax" , 0 .8f , " Higher limit for |Eta| (the same for both particles)" };
5252
5353 // / Particle 1
54- Configurable<int32_t > confPDGCodePartOne{" confPDGCodePartOne" , 2212 , " Particle 1 - PDG code" };
54+ Configurable<int > confPDGCodePartOne{" confPDGCodePartOne" , 2212 , " Particle 1 - PDG code" };
5555 Configurable<bool > confNoPDGPartOne{" confNoPDGPartOne" , false , " 0: selecting part by PDG, 1: no PID selection" };
5656 Configurable<float > confPtLowPart1{" confPtLowPart1" , 0.2 , " Lower limit for Pt for the first particle" };
5757 Configurable<float > confPtHighPart1{" confPtHighPart1" , 2.5 , " Higher limit for Pt for the first particle" };
@@ -65,7 +65,7 @@ struct FemtoUniversePairTaskTrackTrackMcTruth {
6565
6666 // / Particle 2
6767 Configurable<bool > confIsSame{" confIsSame" , false , " Pairs of the same particle" };
68- Configurable<int32_t > confPDGCodePartTwo{" confPDGCodePartTwo" , 333 , " Particle 2 - PDG code" };
68+ Configurable<int > confPDGCodePartTwo{" confPDGCodePartTwo" , 333 , " Particle 2 - PDG code" };
6969 Configurable<bool > confNoPDGPartTwo{" confNoPDGPartTwo" , false , " 0: selecting part by PDG, 1: no PID selection" };
7070 Configurable<float > confPtLowPart2{" confPtLowPart2" , 0.2 , " Lower limit for Pt for the second particle" };
7171 Configurable<float > confPtHighPart2{" confPtHighPart2" , 2.5 , " Higher limit for Pt for the second particle" };
@@ -194,13 +194,15 @@ struct FemtoUniversePairTaskTrackTrackMcTruth {
194194 if (!pairCleaner.isCleanPair (p1, p2, parts)) {
195195 continue ;
196196 }
197- if ((!confNoPDGPartOne && p2 .tempFitVar () != confPDGCodePartOne) || (!confNoPDGPartTwo && p1 .tempFitVar () != confPDGCodePartTwo)) {
197+ if ((!confNoPDGPartOne && static_cast < int >(p1 .tempFitVar ()) != confPDGCodePartOne) || (!confNoPDGPartTwo && static_cast < int >(p2 .tempFitVar () ) != confPDGCodePartTwo)) {
198198 continue ;
199199 }
200- if (swpart)
200+
201+ if (swpart) {
201202 sameEventCont.setPair <isMC>(p1, p2, multCol, confUse3D);
202- else
203+ } else {
203204 sameEventCont.setPair <isMC>(p2, p1, multCol, confUse3D);
205+ }
204206
205207 swpart = !swpart;
206208 }
@@ -255,7 +257,7 @@ struct FemtoUniversePairTaskTrackTrackMcTruth {
255257 fNeventsProcessed ++;
256258
257259 for (auto const & [p1, p2] : combinations (CombinationsFullIndexPolicy (groupPartsOne, groupPartsTwo))) {
258- if ((!confNoPDGPartOne && p2 .tempFitVar () != confPDGCodePartOne) || (!confNoPDGPartTwo && p1 .tempFitVar () != confPDGCodePartTwo)) {
260+ if ((!confNoPDGPartOne && static_cast < int >(p1 .tempFitVar ()) != confPDGCodePartOne) || (!confNoPDGPartTwo && static_cast < int >(p2 .tempFitVar () ) != confPDGCodePartTwo)) {
259261 continue ;
260262 }
261263 if (swpart)
0 commit comments