@@ -1207,6 +1207,11 @@ struct HigherMassResonances {
12071207 }
12081208 }
12091209 }
1210+ int sizeofv0indexes = v0indexes.size ();
1211+ rKzeroShort.fill (HIST (" NksProduced" ), sizeofv0indexes);
1212+ if (config.isselectTWOKsOnly && sizeofv0indexes == config.noOfDaughters && allConditionsMet) {
1213+ fillInvMass (mother, multiplicity, daughter1, daughter2, false );
1214+ }
12101215 v0indexes.clear ();
12111216 }
12121217 PROCESS_SWITCH (HigherMassResonances, processSE, " same event process" , true );
@@ -1258,7 +1263,6 @@ struct HigherMassResonances {
12581263 hglue.fill (HIST (" EpResRefARefB" ), multiplicity, resDenom);
12591264
12601265 std::vector<int > v0indexes;
1261- bool allConditionsMet = 0 ;
12621266
12631267 for (const auto & [v1, v2] : combinations (CombinationsFullIndexPolicy (V0s, V0s))) {
12641268
@@ -1320,7 +1324,6 @@ struct HigherMassResonances {
13201324 continue ;
13211325 }
13221326
1323- allConditionsMet = 1 ;
13241327 daughter1 = ROOT::Math::PxPyPzMVector (v1.px (), v1.py (), v1.pz (), o2::constants::physics::MassK0Short); // Kshort
13251328 daughter2 = ROOT::Math::PxPyPzMVector (v2.px (), v2.py (), v2.pz (), o2::constants::physics::MassK0Short); // Kshort
13261329
@@ -1370,11 +1373,6 @@ struct HigherMassResonances {
13701373 }
13711374 }
13721375 }
1373- int sizeofv0indexes = v0indexes.size ();
1374- rKzeroShort.fill (HIST (" NksProduced" ), sizeofv0indexes);
1375- if (config.isselectTWOKsOnly && sizeofv0indexes == config.noOfDaughters && allConditionsMet) {
1376- fillInvMass (mother, multiplicity, daughter1, daughter2, false );
1377- }
13781376 v0indexes.clear ();
13791377 }
13801378 PROCESS_SWITCH (HigherMassResonances, processSEEP, " same event process with EP table" , true );
0 commit comments