Skip to content

Commit ce62df8

Browse files
committed
adding new possiblities to select on event
1 parent 2d33373 commit ce62df8

2 files changed

Lines changed: 29 additions & 5 deletions

File tree

PWGUD/TableProducer/tauEventTableProducer.cxx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ struct TauEventTableProducer {
7777
Configurable<float> cutTrueGapSideFT0C{"cutTrueGapSideFT0C", 50., "FT0C threshold for SG selector"};
7878
Configurable<float> cutTrueGapSideZDC{"cutTrueGapSideZDC", 10000., "ZDC threshold for SG selector. 0 is <1n, 4.2 is <2n, 6.7 is <3n, 9.5 is <4n, 12.5 is <5n"};
7979
Configurable<float> cutFITtime{"cutFITtime", 40., "Maximum FIT time allowed. Default is 40ns"};
80+
Configurable<bool> cutEvTFb{"cutEvTFb", true, {"Event selection bit kNoTimeFrameBorder"}};
81+
Configurable<bool> cutEvITSROFb{"cutEvITSROFb", true, {"Event selection bit kNoITSROFrameBorder"}};
82+
Configurable<bool> cutEvSbp{"cutEvSbp", true, {"Event selection bit kNoSameBunchPileup"}};
83+
Configurable<bool> cutEvZvtxFT0vPV{"cutEvZvtxFT0vPV", false, {"Event selection bit kIsGoodZvtxFT0vsPV"}};
84+
Configurable<bool> cutEvVtxITSTPC{"cutEvVtxITSTPC", true, {"Event selection bit kIsVertexITSTPC"}};
8085
Configurable<float> cutEvOccupancy{"cutEvOccupancy", 100000., "Maximum allowed occupancy"};
8186
Configurable<bool> cutEvTrs{"cutEvTrs", false, {"Event selection bit kNoCollInTimeRangeStandard"}};
8287
Configurable<bool> cutEvTrofs{"cutEvTrofs", false, {"Event selection bit kNoCollInRofStandard"}};
@@ -156,6 +161,26 @@ struct TauEventTableProducer {
156161
bool isGoodROFtime(C const& coll)
157162
{
158163

164+
// kNoTimeFrameBorder
165+
if (cutSample.cutEvTFb && !coll.tfb())
166+
return false;
167+
168+
// kNoITSROFrameBorder
169+
if (cutSample.cutEvITSROFb && !coll.itsROFb())
170+
return false;
171+
172+
// kNoSameBunchPileup
173+
if (cutSample.cutEvSbp && !coll.sbp())
174+
return false;
175+
176+
// kIsGoodZvtxFT0vsPV
177+
if (cutSample.cutEvZvtxFT0vPV && !coll.zVtxFT0vPV())
178+
return false;
179+
180+
// kIsVertexITSTPC
181+
if (cutSample.cutEvVtxITSTPC && !coll.vtxITSTPC())
182+
return false;
183+
159184
// Occupancy
160185
if (coll.occupancyInTime() > cutSample.cutEvOccupancy)
161186
return false;

PWGUD/TableProducer/twoTracksEventTableProducer.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ struct TauEventTableProducer {
7777
Configurable<float> cutTrueGapSideFT0C{"cutTrueGapSideFT0C", 50., "FT0C threshold for SG selector"};
7878
Configurable<float> cutTrueGapSideZDC{"cutTrueGapSideZDC", 10000., "ZDC threshold for SG selector. 0 is <1n, 4.2 is <2n, 6.7 is <3n, 9.5 is <4n, 12.5 is <5n"};
7979
Configurable<float> cutFITtime{"cutFITtime", 40., "Maximum FIT time allowed. Default is 40ns"};
80-
Configurable<bool> cutEvTFb{"cutEvTFb", false, {"Event selection bit kNoTimeFrameBorder"}};
81-
Configurable<bool> cutEvITSROFb{"cutEvITSROFb", false, {"Event selection bit kNoITSROFrameBorder"}};
82-
Configurable<bool> cutEvSbp{"cutEvSbp", false, {"Event selection bit kNoSameBunchPileup"}};
80+
Configurable<bool> cutEvTFb{"cutEvTFb", true, {"Event selection bit kNoTimeFrameBorder"}};
81+
Configurable<bool> cutEvITSROFb{"cutEvITSROFb", true, {"Event selection bit kNoITSROFrameBorder"}};
82+
Configurable<bool> cutEvSbp{"cutEvSbp", true, {"Event selection bit kNoSameBunchPileup"}};
8383
Configurable<bool> cutEvZvtxFT0vPV{"cutEvZvtxFT0vPV", false, {"Event selection bit kIsGoodZvtxFT0vsPV"}};
84-
Configurable<bool> cutEvVtxITSTPC{"cutEvVtxITSTPC", false, {"Event selection bit kIsVertexITSTPC"}};
84+
Configurable<bool> cutEvVtxITSTPC{"cutEvVtxITSTPC", true, {"Event selection bit kIsVertexITSTPC"}};
8585
Configurable<float> cutEvOccupancy{"cutEvOccupancy", 100000., "Maximum allowed occupancy"};
8686
Configurable<bool> cutEvTrs{"cutEvTrs", false, {"Event selection bit kNoCollInTimeRangeStandard"}};
8787
Configurable<bool> cutEvTrofs{"cutEvTrofs", false, {"Event selection bit kNoCollInRofStandard"}};
@@ -161,7 +161,6 @@ struct TauEventTableProducer {
161161
bool isGoodROFtime(C const& coll)
162162
{
163163

164-
165164
// kNoTimeFrameBorder
166165
if (cutSample.cutEvTFb && !coll.tfb())
167166
return false;

0 commit comments

Comments
 (0)