Skip to content

Commit a57e860

Browse files
committed
also adding into the analyzer
1 parent ce62df8 commit a57e860

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

PWGUD/Tasks/upcTauRl.cxx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ struct UpcTauRl {
156156
Configurable<float> cutTrueGapSideFT0C{"cutTrueGapSideFT0C", 50., "FT0C threshold for SG selector"};
157157
Configurable<float> cutTrueGapSideZDC{"cutTrueGapSideZDC", 0., "ZDC threshold for SG selector. 0 is <1n, 4.2 is <2n, 6.7 is <3n, 9.5 is <4n, 12.5 is <5n"};
158158
Configurable<float> cutFITtime{"cutFITtime", 40., "Maximum FIT time allowed. Default is 40ns"};
159+
Configurable<bool> cutEvTFb{"cutEvTFb", true, {"Event selection bit kNoTimeFrameBorder"}};
160+
Configurable<bool> cutEvITSROFb{"cutEvITSROFb", true, {"Event selection bit kNoITSROFrameBorder"}};
161+
Configurable<bool> cutEvSbp{"cutEvSbp", true, {"Event selection bit kNoSameBunchPileup"}};
162+
Configurable<bool> cutEvZvtxFT0vPV{"cutEvZvtxFT0vPV", false, {"Event selection bit kIsGoodZvtxFT0vsPV"}};
163+
Configurable<bool> cutEvVtxITSTPC{"cutEvVtxITSTPC", true, {"Event selection bit kIsVertexITSTPC"}};
159164
Configurable<float> cutEvOccupancy{"cutEvOccupancy", 100000., "Maximum allowed occupancy"};
160165
Configurable<bool> cutEvTrs{"cutEvTrs", true, {"Event selection bit kNoCollInTimeRangeStandard"}};
161166
Configurable<bool> cutEvTrofs{"cutEvTrofs", true, {"Event selection bit kNoCollInRofStandard"}};
@@ -862,6 +867,26 @@ struct UpcTauRl {
862867
bool isGoodROFtime(C const& coll)
863868
{
864869

870+
// kNoTimeFrameBorder
871+
if (cutSample.cutEvTFb && !coll.tfb())
872+
return false;
873+
874+
// kNoITSROFrameBorder
875+
if (cutSample.cutEvITSROFb && !coll.itsROFb())
876+
return false;
877+
878+
// kNoSameBunchPileup
879+
if (cutSample.cutEvSbp && !coll.sbp())
880+
return false;
881+
882+
// kIsGoodZvtxFT0vsPV
883+
if (cutSample.cutEvZvtxFT0vPV && !coll.zVtxFT0vPV())
884+
return false;
885+
886+
// kIsVertexITSTPC
887+
if (cutSample.cutEvVtxITSTPC && !coll.vtxITSTPC())
888+
return false;
889+
865890
// Occupancy
866891
if (coll.occupancyInTime() > cutSample.cutEvOccupancy)
867892
return false;

0 commit comments

Comments
 (0)