Skip to content

Commit 2c002b9

Browse files
authored
[PWGUD] fix filter (#18210)
1 parent 9451931 commit 2c002b9

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎PWGUD/Tasks/flowCorrelationsUpc.cxx‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ struct FlowCorrelationsUpc {
7777
O2_DEFINE_CONFIGURABLE(cfgDcaz, bool, false, "choose dcaz")
7878
O2_DEFINE_CONFIGURABLE(cfgDcazCut, float, 2.0, "dcaz cut")
7979
O2_DEFINE_CONFIGURABLE(cfgMaxTPCChi2NCl, int, 4, "tpcchi2")
80-
O2_DEFINE_CONFIGURABLE(cfgGapSide, int, 1, "choose one side 0:A; 1:C")
80+
O2_DEFINE_CONFIGURABLE(cfgGapSide, int, 0, "choose one side 0:A; 1:C")
8181
O2_DEFINE_CONFIGURABLE(cfgCutTPCCrossedRows, float, 70.0f, "minimum number of crossed TPC Rows")
8282
O2_DEFINE_CONFIGURABLE(cfgCutTPCclu, float, 50.0f, "minimum number of found TPC clusters")
8383
O2_DEFINE_CONFIGURABLE(cfgCutITSclu, float, 5.0f, "minimum number of ITS clusters")
@@ -90,7 +90,7 @@ struct FlowCorrelationsUpc {
9090
O2_DEFINE_CONFIGURABLE(cfgRctFlagEnabled, bool, false, "use run condition table flag")
9191
O2_DEFINE_CONFIGURABLE(cfgRctFlagIndex, int, 1, "1: isCBTOk; 2:isCBTZdcOk; 3: isCBTHadronOk; 4:isCBTHadronZdcOk ")
9292
O2_DEFINE_CONFIGURABLE(cfgIRMaxCut, double, 50, "maximum interaction rate for UPC events")
93-
O2_DEFINE_CONFIGURABLE(cfgZdcTime, bool, false, "choose zdc time cut")
93+
O2_DEFINE_CONFIGURABLE(cfgZdcTime, bool, true, "choose zdc time cut")
9494
O2_DEFINE_CONFIGURABLE(cfgZdcTimeCut, float, 2.0, "zdc time cut")
9595
O2_DEFINE_CONFIGURABLE(cfgSbp, bool, true, "choose sbp")
9696
O2_DEFINE_CONFIGURABLE(cfgvtxITSTPC, bool, true, "choose vtxITSTPC")
@@ -121,7 +121,12 @@ struct FlowCorrelationsUpc {
121121

122122
// make the filters and cuts.
123123
Filter trackFilter = (aod::udtrack::isPVContributor == true);
124-
Filter collisionFilter = ((aod::udcollision::gapSide == (uint8_t)cfgGapSide) && (aod::upcservice::truegapside == cfgGapSide));
124+
Filter collisionFilter = ifnode(
125+
cfgGapSide.node() == 0,
126+
((aod::udcollision::gapSide == static_cast<uint8_t>(0)) &&
127+
(aod::upcservice::truegapside == 0)),
128+
((aod::udcollision::gapSide == static_cast<uint8_t>(1)) &&
129+
(aod::upcservice::truegapside == 1)));
125130

126131
// Connect to ccdb
127132
Service<ccdb::BasicCCDBManager> ccdb{};

0 commit comments

Comments
 (0)