Skip to content

Commit 4e20dd7

Browse files
authored
Add multiple selection criteria to IsSelected function
1 parent 4e2f295 commit 4e20dd7

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

PWGEM/PhotonMeson/Core/EMPhotonEventCut.h

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,55 @@ class EMPhotonEventCut : public TNamed
5555
template <typename T>
5656
bool IsSelected(T const& collision) const
5757
{
58-
if (!EMPhotonEventCut::IsSelected(collision)) {
58+
if (mRequireSel8 && !IsSelected(collision, EMPhotonEventCuts::kSel8)) {
59+
return false;
60+
}
61+
if (mRequireFT0AND && !IsSelected(collision, EMPhotonEventCuts::kFT0AND)) {
62+
return false;
63+
}
64+
if (!IsSelected(collision, EMPhotonEventCuts::kZvtx)) {
65+
return false;
66+
}
67+
if (mRequireNoTFB && !IsSelected(collision, EMPhotonEventCuts::kNoTFB)) {
68+
return false;
69+
}
70+
if (mRequireNoITSROFB && !IsSelected(collision, EMPhotonEventCuts::kNoITSROFB)) {
71+
return false;
72+
}
73+
if (mRequireNoSameBunchPileup && !IsSelected(collision, EMPhotonEventCuts::kNoSameBunchPileup)) {
74+
return false;
75+
}
76+
if (mRequireVertexITSTPC && !IsSelected(collision, EMPhotonEventCuts::kIsVertexITSTPC)) {
77+
return false;
78+
}
79+
if (mRequireVertexTOFmatched && !IsSelected(collision, EMPhotonEventCuts::kIsVertexTOFmatched)) {
80+
return false;
81+
}
82+
if (mRequireGoodZvtxFT0vsPV && !IsSelected(collision, EMPhotonEventCuts::kIsGoodZvtxFT0vsPV)) {
83+
return false;
84+
}
85+
if (mRequireNoCollInTimeRangeStandard && !IsSelected(collision, EMPhotonEventCuts::kNoCollInTimeRangeStandard)) {
86+
return false;
87+
}
88+
if (mRequireNoCollInTimeRangeStrict && !IsSelected(collision, EMPhotonEventCuts::kNoCollInTimeRangeStrict)) {
89+
return false;
90+
}
91+
if (mRequireNoCollInITSROFStandard && !IsSelected(collision, EMPhotonEventCuts::kNoCollInITSROFStandard)) {
92+
return false;
93+
}
94+
if (mRequireNoCollInITSROFStrict && !IsSelected(collision, EMPhotonEventCuts::kNoCollInITSROFStrict)) {
95+
return false;
96+
}
97+
if (mRequireNoHighMultCollInPrevRof && !IsSelected(collision, EMPhotonEventCuts::kNoHighMultCollInPrevRof)) {
98+
return false;
99+
}
100+
if (mRequireGoodITSLayer3 && !IsSelected(collision, EMPhotonEventCuts::kIsGoodITSLayer3)) {
101+
return false;
102+
}
103+
if (mRequireGoodITSLayer0123 && !IsSelected(collision, EMPhotonEventCuts::kIsGoodITSLayer0123)) {
104+
return false;
105+
}
106+
if (mRequireGoodITSLayersAll && !IsSelected(collision, EMPhotonEventCuts::kIsGoodITSLayersAll)) {
59107
return false;
60108
}
61109
if (mRequireEMCReadoutInMB && !IsSelected(collision, EMPhotonEventCuts::kEMCReadoutInMB)) {

0 commit comments

Comments
 (0)