Skip to content

Commit dff2be9

Browse files
[PWGCF] add event-selection cut TOFmatched (#10295)
1 parent c3ac025 commit dff2be9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

PWGCF/EbyEFluctuations/Tasks/netprotonCumulantsMc.cxx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ struct NetprotonCumulantsMc {
154154
Configurable<bool> cfgUseGoodITSLayerAllCut{"cfgUseGoodITSLayerAllCut", true, "Remove time interval with dead ITS zone"};
155155
Configurable<bool> cfgIfRejectElectron{"cfgIfRejectElectron", true, "Remove electrons"};
156156
Configurable<bool> cfgIfMandatoryTOF{"cfgIfMandatoryTOF", true, "Mandatory TOF requirement to remove pileup"};
157-
157+
Configurable<bool> cfgEvSelkIsVertexTOFmatched{"cfgEvSelkIsVertexTOFmatched", true, "If matched with TOF, for pileup"};
158158
ConfigurableAxis cfgCentralityBins{"cfgCentralityBins", {90, 0., 90.}, "Centrality/Multiplicity percentile bining"};
159159

160160
// Connect to ccdb
@@ -1025,6 +1025,9 @@ struct NetprotonCumulantsMc {
10251025
if (cfgEvSelkNoSameBunchPileup && !(collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup))) {
10261026
continue;
10271027
}
1028+
if (cfgEvSelkIsVertexTOFmatched && !(collision.selection_bit(o2::aod::evsel::kIsVertexTOFmatched))) {
1029+
continue;
1030+
}
10281031

10291032
cent = collision.centFT0M();
10301033

@@ -1134,6 +1137,9 @@ struct NetprotonCumulantsMc {
11341137
}
11351138
if (cfgEvSelkNoSameBunchPileup && !(collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup))) {
11361139
return;
1140+
}
1141+
if (cfgEvSelkIsVertexTOFmatched && !(collision.selection_bit(o2::aod::evsel::kIsVertexTOFmatched))) {
1142+
return;
11371143
;
11381144
}
11391145

@@ -2076,6 +2082,11 @@ struct NetprotonCumulantsMc {
20762082
return;
20772083
}
20782084

2085+
if (cfgEvSelkIsVertexTOFmatched && !(coll.selection_bit(o2::aod::evsel::kIsVertexTOFmatched))) {
2086+
return;
2087+
;
2088+
}
2089+
20792090
histos.fill(HIST("hZvtx_after_sel"), coll.posZ());
20802091
// variables
20812092
auto cent = coll.centFT0M();

0 commit comments

Comments
 (0)