diff --git a/PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx b/PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx index ecf0eb644d0..ea641494cab 100644 --- a/PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx +++ b/PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx @@ -460,7 +460,7 @@ struct AnalysisEventSelection { if (fConfigQA) { fHistMan->FillHistClass("Event_BeforeCuts", static_cast(VarManager::fgValues)); // automatically fill all the histograms in the class Event } - if (fEventCut->isSelected(static_cast(VarManager::fgValues)) || (fConfigRCT.fConfigUseRCT.value && !rctChecker(event))) { + if (fEventCut->isSelected(static_cast(VarManager::fgValues)) && (!fConfigRCT.fConfigUseRCT.value || rctChecker(event))) { if (fConfigQA) { fHistMan->FillHistClass("Event_AfterCuts", static_cast(VarManager::fgValues)); }