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/jetSpectraCharged.cxx
+49-52Lines changed: 49 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,6 @@ struct JetSpectraCharged {
83
83
Configurable<bool> checkGeoPtMatched{"checkGeoPtMatched", false, "0: turn off geometry and pT matching, 1: do geometry and pT matching"};
84
84
Configurable<int> acceptSplitCollisions{"acceptSplitCollisions", 0, "0: only look at mcCollisions that are not split; 1: accept split mcCollisions, 2: accept split mcCollisions but only look at the first reco collision associated with it"};
85
85
86
-
87
86
std::vector<int> eventSelectionBits;
88
87
int trackSelection = -1;
89
88
@@ -111,7 +110,7 @@ struct JetSpectraCharged {
111
110
}
112
111
}
113
112
114
-
if (doprocessSpectraData || doprocessSpectraMCD || doprocessSpectraMCDWeighted){
113
+
if (doprocessSpectraData || doprocessSpectraMCD || doprocessSpectraMCDWeighted){
registry.fill(HIST("h_mcColl_counts_areasub"), 0.5); //all mc collisions
635
+
registry.fill(HIST("h_mcColl_counts_areasub"), 0.5); //all mc collisions
637
636
if (std::abs(mccollision.posZ()) > vertexZCut) {
638
637
return;
639
638
}
640
-
registry.fill(HIST("h_mcColl_counts_areasub"), 1.5); //cut on mccollision.posZ()
639
+
registry.fill(HIST("h_mcColl_counts_areasub"), 1.5); //cut on mccollision.posZ()
641
640
if (collisions.size() < 1) {
642
641
return;
643
642
}
644
-
registry.fill(HIST("h_mcColl_counts_areasub"), 2.5); //mcCollisions with at least one resonstructed collision
643
+
registry.fill(HIST("h_mcColl_counts_areasub"), 2.5); //mcCollisions with at least one resonstructed collision
645
644
if (acceptSplitCollisions == 0 && collisions.size() > 1) {
646
645
return;
647
646
}
@@ -650,7 +649,7 @@ struct JetSpectraCharged {
650
649
bool hasSel8Coll = false;
651
650
bool centralityIsGood = false;
652
651
bool occupancyIsGood = false;
653
-
if (acceptSplitCollisions == 2) {
652
+
if (acceptSplitCollisions == 2) {
654
653
if (jetderiveddatautilities::selectCollision(collisions.begin(), eventSelectionBits)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
655
654
hasSel8Coll = true;
656
655
}
@@ -660,8 +659,7 @@ struct JetSpectraCharged {
660
659
if ((trackOccupancyInTimeRangeMin < collisions.begin().trackOccupancyInTimeRange()) && (collisions.begin().trackOccupancyInTimeRange() < trackOccupancyInTimeRangeMax)) {
661
660
occupancyIsGood = true;
662
661
}
663
-
}
664
-
else { // check that at least one of the reconstructed collisions passes the checks
662
+
} else { // check that at least one of the reconstructed collisions passes the checks
665
663
for (auto& collision : collisions) {
666
664
if (jetderiveddatautilities::selectCollision(collision, eventSelectionBits)) { // Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
667
665
hasSel8Coll = true;
@@ -670,7 +668,7 @@ struct JetSpectraCharged {
670
668
centralityIsGood = true;
671
669
}
672
670
if ((trackOccupancyInTimeRangeMin < collision.trackOccupancyInTimeRange()) && (collision.trackOccupancyInTimeRange() < trackOccupancyInTimeRangeMax)) {
0 commit comments