Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions EventFiltering/PWGCF/CFFilterAll.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ struct CFFilterAll {
struct : ConfigurableGroup {
std::string prefix = "EventSel";
Configurable<float> zvtx{"zvtx", 10.f, "Max. z-Vertex (cm)"};
Configurable<bool> eventSel{"eventSel", true, "Use sel8"};
Configurable<bool> useSel8{"useSel8", true, "Use sel8"};
Configurable<bool> useIsTriggerTvx{"useIsTriggerTvx", false, "Use TVX trigger"};
Configurable<bool> useNoTimeFrameBorder{"useNoTimeFrameBorder", false, "Use time frame border cut"};
Configurable<bool> useNoItsRofFrameBorder{"useNoItsRofFrameBorder", false, "Use ITS ROF border cut"};
} EventSelection;

// Configs for tracks
Expand Down Expand Up @@ -1051,7 +1054,18 @@ struct CFFilterAll {
if (std::abs(col.posZ()) > EventSelection.zvtx.value) {
return false;
}
if (EventSelection.eventSel.value && !col.sel8()) {
// full cut on sel 8
if (EventSelection.useSel8.value && !col.sel8()) {
return false;
}
// allow cut on components of sel8 in case we dont need ROF cut in 2026 anymore
if (EventSelection.useIsTriggerTvx.value && !col.selection_bit(aod::evsel::kIsTriggerTVX)) {
return false;
}
if (EventSelection.useNoTimeFrameBorder.value && !col.selection_bit(aod::evsel::kNoTimeFrameBorder)) {
return false;
}
if (EventSelection.useNoItsRofFrameBorder.value && !col.selection_bit(aod::evsel::kNoITSROFrameBorder)) {
return false;
}
return true;
Expand Down
Loading