Skip to content

Commit 494f90f

Browse files
authored
[PWGHF] Add UPC ZDC timing cut configuration to hfEvSel (#17447)
1 parent 01f7a44 commit 494f90f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

PWGHF/Utils/utilsEvSelHf.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
211211
o2::framework::Configurable<bool> rctCheckZDC{"rctCheckZDC", false, "RCT flag to check whether the ZDC is present or not"};
212212
o2::framework::Configurable<bool> rctTreatLimitedAcceptanceAsBad{"rctTreatLimitedAcceptanceAsBad", false, "RCT flag to reject events with limited acceptance for selected detectors"};
213213
o2::framework::Configurable<std::string> irSource{"irSource", "", "Estimator of the interaction rate (Empty: automatically set. Otherwise recommended: pp --> T0VTX, Pb-Pb --> ZNC hadronic)"};
214+
o2::framework::Configurable<bool> useUpcZdcTimeCut{"useUpcZdcTimeCut", true, "Apply ZDC time selection for UPC neutron class"};
214215
o2::framework::Configurable<float> upcZdcTimeMin{"upcZdcTimeMin", -2.f, "Minimum ZDC time for UPC neutron class selection (ns)"};
215216
o2::framework::Configurable<float> upcZdcTimeMax{"upcZdcTimeMax", 2.f, "Maximum ZDC time for UPC neutron class selection (ns)"};
216217

@@ -463,9 +464,11 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
463464
if (upcEventType > o2::aod::sgselector::DoubleGap) {
464465
SETBIT(rejectionMaskWithUpc, EventRejection::UpcEventCut);
465466
} else {
466-
const auto upcZdcNeutronClass = getUpcZdcNeutronClass(*sgSelectionResult.bc, upcZdcTimeMin, upcZdcTimeMax);
467-
if (upcZdcNeutronClass != UpcZdcNeutronClassSelection::kXn0n && upcZdcNeutronClass != UpcZdcNeutronClassSelection::k0nXn) {
468-
SETBIT(rejectionMaskWithUpc, EventRejection::UpcZdcNeutronClass);
467+
if (useUpcZdcTimeCut) {
468+
const auto upcZdcNeutronClass = getUpcZdcNeutronClass(*sgSelectionResult.bc, upcZdcTimeMin, upcZdcTimeMax);
469+
if (upcZdcNeutronClass != UpcZdcNeutronClassSelection::kXn0n && upcZdcNeutronClass != UpcZdcNeutronClassSelection::k0nXn) {
470+
SETBIT(rejectionMaskWithUpc, EventRejection::UpcZdcNeutronClass);
471+
}
469472
}
470473
hUpCollisions->Fill(upcEventType);
471474
}

0 commit comments

Comments
 (0)