From 9f842bf6c38cad6e4cc5ae3520b360ce41ede77a Mon Sep 17 00:00:00 2001 From: Laura Serksnyte Date: Tue, 13 Jan 2026 01:42:05 +0100 Subject: [PATCH 1/2] Include sel8 --- .../Resonances/f1protonreducedtable.cxx | 20 ++++++++++++++----- .../Tasks/Resonances/f1protoncorrelation.cxx | 8 ++++---- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx b/PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx index a1e5a5bd18c..23ecf355676 100644 --- a/PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx +++ b/PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx @@ -30,12 +30,12 @@ #include "CCDB/BasicCCDBManager.h" #include "CCDB/CcdbApi.h" #include "CommonConstants/MathConstants.h" -#include "MathUtils/BetheBlochAleph.h" #include "Framework/ASoAHelpers.h" #include "Framework/AnalysisDataModel.h" #include "Framework/AnalysisTask.h" #include "Framework/HistogramRegistry.h" #include "Framework/runDataProcessing.h" +#include "MathUtils/BetheBlochAleph.h" #include #include @@ -50,6 +50,7 @@ #include #include #include +#include using namespace o2; using namespace o2::framework; @@ -69,8 +70,14 @@ struct f1protonreducedtable { OutputObj zorroSummary{"zorroSummary"}; // Configs for events - Configurable ConfEvtSelectZvtx{"ConfEvtSelectZvtx", true, "Event selection includes max. z-Vertex"}; - Configurable ConfEvtZvtx{"ConfEvtZvtx", 10.f, "Evt sel: Max. z-Vertex (cm)"}; + + /// Event selection + struct : ConfigurableGroup { + std::string prefix = std::string("EventSel"); + Configurable ConfEvtSelectZvtx{"ConfEvtSelectZvtx", true, "Event selection includes max. z-Vertex"}; + Configurable ConfEvtZvtx{"ConfEvtZvtx", 10.f, "Evt sel: Max. z-Vertex (cm)"}; + Configurable ConfEvtSel8{"ConfEvtSel8", true, "Event selection sel8"}; + } EventSel; // event spherocity calculation Configurable trackSphDef{"trackSphDef", 0, "Spherocity Definition: |pT| = 1 -> 0, otherwise -> 1"}; @@ -184,7 +191,10 @@ struct f1protonreducedtable { template bool isSelectedEvent(T const& col) { - if (ConfEvtSelectZvtx && std::abs(col.posZ()) > ConfEvtZvtx) { + if (EventSel.ConfEvtSelectZvtx && std::abs(col.posZ()) > EventSel.ConfEvtZvtx) { + return false; + } + if (EventSel.ConfEvtSel8 && !col.sel8()) { return false; } return true; @@ -497,7 +507,7 @@ struct f1protonreducedtable { Filter dcaFilter = nabs(aod::track::dcaXY) < ConfTrkDCAxyMaxF1Proton && nabs(aod::track::dcaZ) < ConfTrkDCAzMaxF1Proton; // using EventCandidates = soa::Join; - using EventCandidates = aod::Collisions; + using EventCandidates = soa::Join; using ResoV0s = aod::V0Datas; using PrimaryTrackCandidates = soa::Filtered Date: Sat, 24 Jan 2026 21:00:39 +0000 Subject: [PATCH 2/2] Please consider the following formatting changes --- PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx b/PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx index 23ecf355676..7727987a5d7 100644 --- a/PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx +++ b/PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx @@ -48,9 +48,9 @@ #include #include +#include #include #include -#include using namespace o2; using namespace o2::framework;