Skip to content

Commit 91ebc1b

Browse files
committed
add event slection switch
1 parent db57fce commit 91ebc1b

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

PWGUD/Tasks/flowCorrelationsUpc.cxx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#include <TH1.h>
4141
#include <TH3.h>
4242
#include <TRandom3.h>
43-
#include <TString.h>
4443

4544
#include <array>
4645
#include <chrono>
@@ -94,6 +93,10 @@ struct FlowCorrelationsUpc {
9493
O2_DEFINE_CONFIGURABLE(cfgIRMaxCut, double, 50, "maximum interaction rate for UPC events")
9594
O2_DEFINE_CONFIGURABLE(cfgZdcTime, bool, false, "choose zdc time cut")
9695
O2_DEFINE_CONFIGURABLE(cfgZdcTimeCut, float, 2.0, "zdc time cut")
96+
O2_DEFINE_CONFIGURABLE(cfgSbp, bool, true, "choose sbp")
97+
O2_DEFINE_CONFIGURABLE(cfgvtxITSTPC, bool, true, "choose vtxITSTPC")
98+
O2_DEFINE_CONFIGURABLE(cfgItsROFb, bool, true, "choose itsROFb")
99+
O2_DEFINE_CONFIGURABLE(cfgTfb, bool, true, "choose tfb")
97100

98101
ConfigurableAxis axisVertex{"axisVertex", {10, -10, 10}, "vertex axis for histograms"};
99102
ConfigurableAxis axisEta{"axisEta", {40, -1., 1.}, "eta axis for histograms"};
@@ -290,19 +293,19 @@ struct FlowCorrelationsUpc {
290293
if (cfgIfVertex && std::abs(collision.posZ()) > cfgZVtxCut) {
291294
return false;
292295
}
293-
if (!collision.vtxITSTPC()) {
296+
if (cfgvtxITSTPC && !collision.vtxITSTPC()) {
294297
return false;
295298
}
296299

297-
if (!collision.sbp()) {
300+
if (cfgSbp && !collision.sbp()) {
298301
return false;
299302
}
300303

301-
if (!collision.itsROFb()) {
304+
if (cfgItsROFb && !collision.itsROFb()) {
302305
return false;
303306
}
304307

305-
if (!collision.tfb()) {
308+
if (cfgTfb && !collision.tfb()) {
306309
return false;
307310
}
308311

0 commit comments

Comments
 (0)