Skip to content

Commit 85da5fb

Browse files
authored
[PWGLF] Add flags to event selection (#9252)
1 parent ed57932 commit 85da5fb

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

PWGMM/UE/Tasks/uecharged.cxx

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ struct ueCharged {
8888
Configurable<bool> isRun3{"isRun3", true, "is Run3 dataset"};
8989
Configurable<bool> piluprejection{"piluprejection", true, "Pileup rejection"};
9090
Configurable<bool> goodzvertex{"goodzvertex", true, "removes collisions with large differences between z of PV by tracks and z of PV from FT0 A-C time difference."};
91+
Configurable<bool> sel8{"sel8", true, "Apply the sel8 event selection"};
92+
Configurable<bool> removeITSROFBorder{"removeITSROFBorder", false, "Remove ITS Read-Out Frame border and only apply kIsTriggerTVX & kNoTimeFrameBorder (recommended for MC)"};
93+
Configurable<bool> manuallyApplysel8{"manuallyApplysel8", false, "Apply manually the event selection criteria considered in sel8, ie. kIsTriggerTVX & kNoTimeFrameBorder & kNoITSROFrameBorder"};
9194

9295
// acceptance cuts
9396
Configurable<float> cfgTrkEtaCut{"cfgTrkEtaCut", 0.8f, "Eta range for tracks"};
@@ -424,7 +427,15 @@ void ueCharged::processMeas(const C& collision, const T& tracks)
424427

425428
ue.fill(HIST("hCounter"), 0);
426429

427-
if (!collision.sel8()) {
430+
if (sel8 && !collision.sel8()) {
431+
return;
432+
}
433+
434+
if (removeITSROFBorder && (!collision.selection_bit(o2::aod::evsel::kIsTriggerTVX) || !collision.selection_bit(o2::aod::evsel::kNoTimeFrameBorder))) {
435+
return;
436+
}
437+
438+
if (manuallyApplysel8 && (!collision.selection_bit(o2::aod::evsel::kIsTriggerTVX) || !collision.selection_bit(o2::aod::evsel::kNoTimeFrameBorder) || !collision.selection_bit(o2::aod::evsel::kNoITSROFrameBorder))) {
428439
return;
429440
}
430441

@@ -720,9 +731,18 @@ void ueCharged::processMeasMC(const C& collision, const T& tracks, const P& part
720731
phiArrayTrue.clear();
721732
indexArrayTrue.clear();
722733

723-
if (!collision.selection_bit(o2::aod::evsel::kIsTriggerTVX) || !collision.selection_bit(o2::aod::evsel::kNoTimeFrameBorder)) {
734+
if (sel8 && !collision.sel8()) {
724735
return;
725736
}
737+
738+
if (removeITSROFBorder && (!collision.selection_bit(o2::aod::evsel::kIsTriggerTVX) || !collision.selection_bit(o2::aod::evsel::kNoTimeFrameBorder))) {
739+
return;
740+
}
741+
742+
if (manuallyApplysel8 && (!collision.selection_bit(o2::aod::evsel::kIsTriggerTVX) || !collision.selection_bit(o2::aod::evsel::kNoTimeFrameBorder) || !collision.selection_bit(o2::aod::evsel::kNoITSROFrameBorder))) {
743+
return;
744+
}
745+
726746
ue.fill(HIST("hCounter"), 1);
727747

728748
if (piluprejection && !collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup)) {

0 commit comments

Comments
 (0)