You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PWGJE/Tasks/trackEfficiency.cxx
+24-17Lines changed: 24 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -85,9 +85,12 @@ struct TrackEfficiency {
85
85
86
86
std::vector<int> eventSelectionBits;
87
87
int trackSelection = -1;
88
-
int acceptSplitCollisionsCase0 = 0; // acceptSplitCollisions case: only look at mcCollisions that are not split
89
-
int acceptSplitCollisionsCase2 = 2; // acceptSplitCollisions case: accept split mcCollisions but only look at the first reco collision associated with it
90
-
// int acceptSplitCollisionsCase1 = 1; is in the else{} case
if (acceptSplitCollisions == acceptSplitCollisionsCase2) {// check only that the first reconstructed collision passes the check
288
+
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly) { // check only that the first reconstructed collision passes the check
282
289
if (jetderiveddatautilities::selectCollision(collisions.begin(), eventSelectionBits, skipMBGapEvents)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
283
290
hasSel8Coll = true;
284
291
}
285
292
if (!checkCentrality || ((centralityMin < collisions.begin().centrality()) && (collisions.begin().centrality() < centralityMax))) { // effect unclear if mcColl is split
286
293
centralityCheck = true;
287
294
}
288
-
} else { // check that at least one of the reconstructed collisions passes the checks
295
+
} elseif (acceptSplitCollisions == splitOkCheckAnyAssocColl) { // check that at least one of the reconstructed collisions passes the checks
289
296
for (autoconst& collision : collisions) {
290
297
if (jetderiveddatautilities::selectCollision(collision, eventSelectionBits, skipMBGapEvents)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
291
298
hasSel8Coll = true;
@@ -340,7 +347,7 @@ struct TrackEfficiency {
340
347
int splitCollCounter = 0;
341
348
for (autoconst& collision : collisions) {
342
349
splitCollCounter++;
343
-
if (acceptSplitCollisions == acceptSplitCollisionsCase2 && splitCollCounter > 1) {
350
+
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly && splitCollCounter > 1) {
344
351
return;
345
352
}
346
353
@@ -437,21 +444,21 @@ struct TrackEfficiency {
437
444
}
438
445
registry.fill(HIST("hMcCollCutsCounts"), 2.5); // mcCollisions with at least one reconstructed collision
439
446
440
-
if (acceptSplitCollisions == acceptSplitCollisionsCase0 && collisions.size() > 1) {
447
+
if (acceptSplitCollisions == nonSplitOnly && collisions.size() > 1) {
if (acceptSplitCollisions == acceptSplitCollisionsCase2) {// check only that the first reconstructed collision passes the check
454
+
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly) { // check only that the first reconstructed collision passes the check
448
455
if (jetderiveddatautilities::selectCollision(collisions.begin(), eventSelectionBits, skipMBGapEvents)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
449
456
hasSel8Coll = true;
450
457
}
451
458
if (!checkCentrality || ((centralityMin < collisions.begin().centrality()) && (collisions.begin().centrality() < centralityMax))) { // effect unclear if mcColl is split
452
459
centralityCheck = true;
453
460
}
454
-
} else { // check that at least one of the reconstructed collisions passes the checks
461
+
} elseif (acceptSplitCollisions == splitOkCheckAnyAssocColl) { // check that at least one of the reconstructed collisions passes the checks
455
462
for (autoconst& collision : collisions) {
456
463
if (jetderiveddatautilities::selectCollision(collision, eventSelectionBits, skipMBGapEvents)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
457
464
hasSel8Coll = true;
@@ -507,7 +514,7 @@ struct TrackEfficiency {
507
514
int splitCollCounter = 0;
508
515
for (autoconst& collision : collisions) {
509
516
splitCollCounter++;
510
-
if (acceptSplitCollisions == acceptSplitCollisionsCase2 && splitCollCounter > 1) {
517
+
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly && splitCollCounter > 1) {
511
518
return;
512
519
}
513
520
@@ -679,7 +686,7 @@ struct TrackEfficiency {
679
686
if (collisions.size() < 1) {
680
687
return;
681
688
}
682
-
if (acceptSplitCollisions == acceptSplitCollisionsCase0 && collisions.size() > 1) {
689
+
if (acceptSplitCollisions == nonSplitOnly && collisions.size() > 1) {
683
690
return;
684
691
}
685
692
@@ -692,14 +699,14 @@ struct TrackEfficiency {
692
699
693
700
bool hasSel8Coll = false;
694
701
bool centralityCheck = false;
695
-
if (acceptSplitCollisions == acceptSplitCollisionsCase2) {// check only that the first reconstructed collision passes the check
702
+
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly) { // check only that the first reconstructed collision passes the check
696
703
if (jetderiveddatautilities::selectCollision(collisions.begin(), eventSelectionBits, skipMBGapEvents)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
697
704
hasSel8Coll = true;
698
705
}
699
706
if (!checkCentrality || ((centralityMin < collisions.begin().centrality()) && (collisions.begin().centrality() < centralityMax))) { // effect unclear if mcColl is split
700
707
centralityCheck = true;
701
708
}
702
-
} else { // check that at least one of the reconstructed collisions passes the checks
709
+
} elseif (acceptSplitCollisions == splitOkCheckAnyAssocColl) { // check that at least one of the reconstructed collisions passes the checks
703
710
for (autoconst& collision : collisions) {
704
711
if (jetderiveddatautilities::selectCollision(collision, eventSelectionBits, skipMBGapEvents)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
705
712
hasSel8Coll = true;
@@ -740,7 +747,7 @@ struct TrackEfficiency {
740
747
if (collisions.size() < 1) {
741
748
return;
742
749
}
743
-
if (acceptSplitCollisions == acceptSplitCollisionsCase0 && collisions.size() > 1) {
750
+
if (acceptSplitCollisions == nonSplitOnly && collisions.size() > 1) {
744
751
return;
745
752
}
746
753
@@ -753,14 +760,14 @@ struct TrackEfficiency {
753
760
754
761
bool hasSel8Coll = false;
755
762
bool centralityCheck = false;
756
-
if (acceptSplitCollisions == acceptSplitCollisionsCase2) {// check only that the first reconstructed collision passes the check
763
+
if (acceptSplitCollisions == splitOkCheckFirstAssocCollOnly) { // check only that the first reconstructed collision passes the check
757
764
if (jetderiveddatautilities::selectCollision(collisions.begin(), eventSelectionBits, skipMBGapEvents)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
758
765
hasSel8Coll = true;
759
766
}
760
767
if (!checkCentrality || ((centralityMin < collisions.begin().centrality()) && (collisions.begin().centrality() < centralityMax))) { // effect unclear if mcColl is split
761
768
centralityCheck = true;
762
769
}
763
-
} else { // check that at least one of the reconstructed collisions passes the checks
770
+
} elseif (acceptSplitCollisions == splitOkCheckAnyAssocColl) { // check that at least one of the reconstructed collisions passes the checks
764
771
for (autoconst& collision : collisions) {
765
772
if (jetderiveddatautilities::selectCollision(collision, eventSelectionBits, skipMBGapEvents)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
0 commit comments