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
+55-57Lines changed: 55 additions & 57 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){
if (jetderiveddatautilities::selectCollision(collisions.begin(), eventSelectionBits)) {// Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
652
+
if (acceptSplitCollisions == 2) {
653
+
if (jetderiveddatautilities::selectCollision(collisions.begin(), eventSelectionBits)) {
655
654
hasSel8Coll = true;
656
655
}
657
-
if ((centralityMin < collisions.begin().centrality()) && (collisions.begin().centrality() < centralityMax)) {// effect unclear if mcColl is split
656
+
if ((centralityMin < collisions.begin().centrality()) && (collisions.begin().centrality() < centralityMax)) {
658
657
centralityIsGood = true;
659
658
}
660
659
if ((trackOccupancyInTimeRangeMin < collisions.begin().trackOccupancyInTimeRange()) && (collisions.begin().trackOccupancyInTimeRange() < trackOccupancyInTimeRangeMax)) {
661
660
occupancyIsGood = true;
662
661
}
663
662
}
664
-
else {// check that at least one of the reconstructed collisions passes the checks
663
+
else {
665
664
for (auto& collision : collisions) {
666
-
if (jetderiveddatautilities::selectCollision(collision, eventSelectionBits)) {// Skipping MC events that have not a single selected reconstructed collision ; effect unclear if mcColl is split
665
+
if (jetderiveddatautilities::selectCollision(collision, eventSelectionBits)) {
667
666
hasSel8Coll = true;
668
667
}
669
-
if ((centralityMin < collision.centrality()) && (collision.centrality() < centralityMax)) {// effect unclear if mcColl is split
668
+
if ((centralityMin < collision.centrality()) && (collision.centrality() < centralityMax)) {
670
669
centralityIsGood = true;
671
670
}
672
671
if ((trackOccupancyInTimeRangeMin < collision.trackOccupancyInTimeRange()) && (collision.trackOccupancyInTimeRange() < trackOccupancyInTimeRangeMax)) {
673
-
occupancyIsGood = true;
672
+
occupancyIsGood = true;
674
673
}
675
674
}
676
675
}
677
676
if (!hasSel8Coll) {
678
677
return;
679
678
}
680
-
registry.fill(HIST("h_mcColl_counts_areasub"), 4.5);// at least one of the reconstructed collisions associated with this mcCollision is selected
registry.fill(HIST("h_mcColl_counts_areasub"), 5.5);// at least one of the reconstructed collisions associated with this mcCollision is selected with regard to centrality
registry.fill(HIST("h_mcColl_counts_areasub"), 6.5);// at least one of the reconstructed collisions associated with this mcCollision is selected with regard to centrality
registry.fill(HIST("h_mcColl_counts"), 0.5);//all mc collisions
708
+
registry.fill(HIST("h_mcColl_counts"), 0.5);
710
709
if (std::abs(mccollision.posZ()) > vertexZCut) {
711
710
return;
712
711
}
713
-
registry.fill(HIST("h_mcColl_counts"), 1.5);//cut on mccollision.posZ()
712
+
registry.fill(HIST("h_mcColl_counts"), 1.5);
714
713
if (collisions.size() < 1) {
715
714
return;
716
715
}
717
-
registry.fill(HIST("h_mcColl_counts"), 2.5);//mcCollisions with at least one resonstructed collision
716
+
registry.fill(HIST("h_mcColl_counts"), 2.5);
718
717
719
718
bool hasSel8Coll = false;
720
719
bool centralityIsGood = false;
@@ -733,44 +732,43 @@ struct JetSpectraCharged {
733
732
if (!hasSel8Coll) {
734
733
return;
735
734
}
736
-
registry.fill(HIST("h_mcColl_counts"), 3.5);// at least one of the reconstructed collisions associated with this mcCollision is selected
735
+
registry.fill(HIST("h_mcColl_counts"), 3.5);
737
736
if (!centralityIsGood) {
738
737
return;
739
738
}
740
-
registry.fill(HIST("h_mcColl_counts"), 4.5);// at least one of the reconstructed collisions associated with this mcCollision is selected with regard to centrality
739
+
registry.fill(HIST("h_mcColl_counts"), 4.5);
741
740
if (!occupancyIsGood) {
742
741
return;
743
742
}
744
-
registry.fill(HIST("h_mcColl_counts"), 5.5);// at least one of the reconstructed collisions associated with this mcCollision is selected with regard to centrality
0 commit comments