Skip to content

Commit c790f22

Browse files
authored
[PWGJE,EMCAL-670] Update BC selection to EMCal QA task (AliceO2Group#10991)
1 parent 6b7c99a commit c790f22

File tree

1 file changed

+2
-39
lines changed

1 file changed

+2
-39
lines changed

PWGJE/Core/utilsBcSelEMC.h

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ enum EventRejection {
3535
TvxTrigger,
3636
TimeFrameBorderCut,
3737
ItsRofBorderCut,
38-
IsGoodZvtxFT0vsPV,
39-
NoSameBunchPileup,
40-
NoCollInTimeRangeNarrow,
41-
NoCollInTimeRangeStandard,
42-
NoCollInRofStandard,
4338
NEventRejection
4439
};
4540

@@ -56,11 +51,6 @@ void setEventRejectionLabels(Histo& hRejection)
5651
hRejection->GetXaxis()->SetBinLabel(EventRejection::TvxTrigger + 1, "TVX Trigger");
5752
hRejection->GetXaxis()->SetBinLabel(EventRejection::TimeFrameBorderCut + 1, "TF border");
5853
hRejection->GetXaxis()->SetBinLabel(EventRejection::ItsRofBorderCut + 1, "ITS ROF border");
59-
hRejection->GetXaxis()->SetBinLabel(EventRejection::IsGoodZvtxFT0vsPV + 1, "PV #it{z} consistency FT0 timing");
60-
hRejection->GetXaxis()->SetBinLabel(EventRejection::NoSameBunchPileup + 1, "No same-bunch pile-up");
61-
hRejection->GetXaxis()->SetBinLabel(EventRejection::NoCollInTimeRangeNarrow + 1, "No coll timerange narrow");
62-
hRejection->GetXaxis()->SetBinLabel(EventRejection::NoCollInTimeRangeStandard + 1, "No coll timerange strict");
63-
hRejection->GetXaxis()->SetBinLabel(EventRejection::NoCollInRofStandard + 1, "No coll in ROF std");
6454
}
6555

6656
struct EMCEventSelection : o2::framework::ConfigurableGroup {
@@ -71,12 +61,6 @@ struct EMCEventSelection : o2::framework::ConfigurableGroup {
7161
o2::framework::Configurable<bool> useTvxTrigger{"useTvxTrigger", true, "Apply TVX trigger sel"};
7262
o2::framework::Configurable<bool> useTimeFrameBorderCut{"useTimeFrameBorderCut", true, "Apply TF border cut"};
7363
o2::framework::Configurable<bool> useItsRofBorderCut{"useItsRofBorderCut", true, "Apply ITS ROF border cut"};
74-
o2::framework::Configurable<bool> useIsGoodZvtxFT0vsPV{"useIsGoodZvtxFT0vsPV", false, "Check consistency between PVz from central barrel with that from FT0 timing"};
75-
o2::framework::Configurable<bool> useNoSameBunchPileup{"useNoSameBunchPileup", false, "Exclude collisions in bunches with more than 1 reco. PV"};
76-
o2::framework::Configurable<bool> useNoCollInTimeRangeNarrow{"useNoCollInTimeRangeNarrow", false, "Reject collisions in time range narrow"};
77-
o2::framework::Configurable<bool> useNoCollInTimeRangeStandard{"useNoCollInTimeRangeStandard", false, "Reject collisions in time range strict"};
78-
o2::framework::Configurable<bool> useNoCollInRofStandard{"useNoCollInRofStandard", false, "Reject collisions in ROF standard"};
79-
8064
// histogram names
8165
static constexpr char NameHistBCs[] = "hBCs";
8266

@@ -103,8 +87,8 @@ struct EMCEventSelection : o2::framework::ConfigurableGroup {
10387

10488
if constexpr (useEvSel) {
10589
/// trigger condition
106-
bool sel8 = bc.selection_bit(o2::aod::evsel::kIsBBT0A) && bc.selection_bit(o2::aod::evsel::kIsBBT0C);
107-
if ((useSel8Trigger && sel8) || (!useSel8Trigger && triggerClass > -1 && !bc.alias_bit(triggerClass))) {
90+
bool sel8 = bc.selection_bit(o2::aod::evsel::kIsTriggerTVX) && bc.selection_bit(o2::aod::evsel::kNoTimeFrameBorder) && bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder);
91+
if ((useSel8Trigger && !sel8) || (!useSel8Trigger && triggerClass > -1 && !bc.alias_bit(triggerClass))) {
10892
SETBIT(rejectionMask, EventRejection::Trigger);
10993
}
11094
/// TVX trigger selection
@@ -119,27 +103,6 @@ struct EMCEventSelection : o2::framework::ConfigurableGroup {
119103
if (useItsRofBorderCut && !bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
120104
SETBIT(rejectionMask, EventRejection::ItsRofBorderCut);
121105
}
122-
/// PVz consistency tracking - FT0 timing
123-
if (useIsGoodZvtxFT0vsPV && !bc.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV)) {
124-
SETBIT(rejectionMask, EventRejection::IsGoodZvtxFT0vsPV);
125-
}
126-
/// remove collisions in bunches with more than 1 reco bc
127-
/// POTENTIALLY BAD FOR BEAUTY ANALYSES
128-
if (useNoSameBunchPileup && !bc.selection_bit(o2::aod::evsel::kNoSameBunchPileup)) {
129-
SETBIT(rejectionMask, EventRejection::NoSameBunchPileup);
130-
}
131-
/// No collisions in time range narrow
132-
if (useNoCollInTimeRangeNarrow && !bc.selection_bit(o2::aod::evsel::kNoCollInTimeRangeNarrow)) {
133-
SETBIT(rejectionMask, EventRejection::NoCollInTimeRangeNarrow);
134-
}
135-
/// No collisions in time range strict
136-
if (useNoCollInTimeRangeStandard && !bc.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard)) {
137-
SETBIT(rejectionMask, EventRejection::NoCollInTimeRangeStandard);
138-
}
139-
/// No collisions in ROF standard
140-
if (useNoCollInRofStandard && !bc.selection_bit(o2::aod::evsel::kNoCollInRofStandard)) {
141-
SETBIT(rejectionMask, EventRejection::NoCollInRofStandard);
142-
}
143106
}
144107
return rejectionMask;
145108
}

0 commit comments

Comments
 (0)