From 55fb377e97e7cfc27d2b59090f3008f31db6869f Mon Sep 17 00:00:00 2001 From: Sabrina Hernandez Date: Thu, 6 Feb 2025 12:15:44 -0600 Subject: [PATCH 1/2] added event selection --- PWGCF/Flow/Tasks/flowZdcTask.cxx | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/PWGCF/Flow/Tasks/flowZdcTask.cxx b/PWGCF/Flow/Tasks/flowZdcTask.cxx index 6ef4d78d9ca..d1906c1eb08 100644 --- a/PWGCF/Flow/Tasks/flowZdcTask.cxx +++ b/PWGCF/Flow/Tasks/flowZdcTask.cxx @@ -44,7 +44,7 @@ using namespace o2::framework::expressions; using namespace o2::aod::mult; using namespace o2::aod::evsel; using ColEvSels = soa::Join; -using AodCollisions = soa::Filtered>; +using AodCollisions = soa::Filtered>; using AodTracks = soa::Filtered>; using BCsRun3 = soa::Join; using AodZDCs = soa::Join; @@ -298,7 +298,25 @@ struct FlowZdcTask { if (isGoodITSLayersAll && !col.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) { return false; } - histos.fill(HIST("eventSelectionSteps"), 6); + if (isApplyVertexTOFmatched && !col.selection_bit(o2::aod::evsel::kIsVertexTOFmatched)) { + return false; + } + histos.fill(HIST("EventHist"), 6); + + if (isApplyVertexTRDmatched && !col.selection_bit(o2::aod::evsel::kIsVertexTRDmatched)) { + return false; + } + histos.fill(HIST("EventHist"), 7); + if (col.centFT0C() < 0. || col.centFT0C() > 100.) { + return false; + } + histos.fill(HIST("EventHist"), 8); + + if (isApplyExtraCorrCut && col.multNTracksPV() > npvTracksCut && col.multFT0C() < (10 * col.multNTracksPV() - ft0cCut)) { + return false; + } + histos.fill(HIST("EventHist"), 9); + histos.fill(HIST("eventSelectionSteps"), 10); return true; } From 92135a8735eb3ed667fb7f627b2d590e7c4a18fa Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Thu, 6 Feb 2025 18:18:09 +0000 Subject: [PATCH 2/2] Please consider the following formatting changes --- PWGCF/Flow/Tasks/flowZdcTask.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGCF/Flow/Tasks/flowZdcTask.cxx b/PWGCF/Flow/Tasks/flowZdcTask.cxx index d1906c1eb08..a772459e563 100644 --- a/PWGCF/Flow/Tasks/flowZdcTask.cxx +++ b/PWGCF/Flow/Tasks/flowZdcTask.cxx @@ -315,7 +315,7 @@ struct FlowZdcTask { if (isApplyExtraCorrCut && col.multNTracksPV() > npvTracksCut && col.multFT0C() < (10 * col.multNTracksPV() - ft0cCut)) { return false; } - histos.fill(HIST("EventHist"), 9); + histos.fill(HIST("EventHist"), 9); histos.fill(HIST("eventSelectionSteps"), 10); return true; }