Skip to content

Commit cf4f765

Browse files
fix else {} to else if {} transition
1 parent ca1c382 commit cf4f765

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

PWGJE/Tasks/trackEfficiency.cxx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ struct TrackEfficiency {
285285

286286
bool hasSel8Coll = false;
287287
bool centralityCheck = false;
288-
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly) { // check only that the first reconstructed collision passes the check
288+
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly || acceptSplitCollisions == nonSplitOnly) { // check only that the first reconstructed collision passes the check (for the nonSplitOnly case, there's only one associated collision)
289289
if (jetderiveddatautilities::selectCollision(collisions.begin(), eventSelectionBits, skipMBGapEvents)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
290290
hasSel8Coll = true;
291291
}
@@ -301,7 +301,6 @@ struct TrackEfficiency {
301301
centralityCheck = true;
302302
}
303303
}
304-
}
305304
if (!hasSel8Coll) {
306305
return;
307306
}
@@ -418,7 +417,7 @@ struct TrackEfficiency {
418417
}
419418
}
420419
}
421-
}
420+
}
422421
PROCESS_SWITCH(TrackEfficiency, processEFficiencyPurity, "Histograms for efficiency and purity quantities", true);
423422

424423
void processEFficiencyPurityWeighted(aod::JetMcCollision const& mcCollision,
@@ -451,7 +450,7 @@ struct TrackEfficiency {
451450

452451
bool hasSel8Coll = false;
453452
bool centralityCheck = false;
454-
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly) { // check only that the first reconstructed collision passes the check
453+
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly || acceptSplitCollisions == nonSplitOnly) { // check only that the first reconstructed collision passes the check (for the nonSplitOnly case, there's only one associated collision)
455454
if (jetderiveddatautilities::selectCollision(collisions.begin(), eventSelectionBits, skipMBGapEvents)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
456455
hasSel8Coll = true;
457456
}
@@ -699,7 +698,7 @@ struct TrackEfficiency {
699698

700699
bool hasSel8Coll = false;
701700
bool centralityCheck = false;
702-
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly) { // check only that the first reconstructed collision passes the check
701+
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly || acceptSplitCollisions == nonSplitOnly) { // check only that the first reconstructed collision passes the check (for the nonSplitOnly case, there's only one associated collision)
703702
if (jetderiveddatautilities::selectCollision(collisions.begin(), eventSelectionBits, skipMBGapEvents)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
704703
hasSel8Coll = true;
705704
}
@@ -760,7 +759,7 @@ struct TrackEfficiency {
760759

761760
bool hasSel8Coll = false;
762761
bool centralityCheck = false;
763-
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly) { // check only that the first reconstructed collision passes the check
762+
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly || acceptSplitCollisions == nonSplitOnly) { // check only that the first reconstructed collision passes the check (for the nonSplitOnly case, there's only one associated collision)
764763
if (jetderiveddatautilities::selectCollision(collisions.begin(), eventSelectionBits, skipMBGapEvents)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
765764
hasSel8Coll = true;
766765
}

0 commit comments

Comments
 (0)