From 93f369b7f2c308023a344bf1c7893df357f4c237 Mon Sep 17 00:00:00 2001 From: Pengchong Hu Date: Fri, 3 Jul 2026 16:36:29 +0200 Subject: [PATCH 1/2] add some particle cuts and event cuts --- .../Tasks/multiharmonicCorrelations.cxx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx b/PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx index 475fc0008e2..f96aa73209d 100644 --- a/PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx +++ b/PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx @@ -117,10 +117,15 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to Configurable cfUseWeights{"cfUseWeights", true, "use weights"}; Configurable cfToyModel{"cfToyModel", true, "phi-distribution from toy model"}; Configurable cfNest{"cfNest", true, "nested loops"}; + Configurable cfTechcuts{"cfTechcuts", true, "technical cuts"}; Configurable> cfVertexZ{"cfVertexZ", {-10, 10.}, "vertex z position range: {min, max}[cm], with convention: min <= Vz < max"}; Configurable> cfPt{"cfPt", {0.2, 5.0}, "transverse momentum range"}; Configurable> cfEta{"cfEta", {-0.8, 0.8}, "eta range"}; + Configurable> cfDCAxy{"cfDCAxy", {-0.5, 0.5}, "dca xy range"}; + Configurable> cfDCAz{"cfDCAz", {-0.2, 0.2}, "dca z range"}; + Configurable cftpcNClsFoundmin{"cftpcNClsFoundmin", 70., "tpcNClsFoundmin"}; + Configurable cftpcChi2NClmax{"cftpcChi2NClmax", 4., "tpcChi2NClmax"}; Configurable> cfRuns{"cfRuns", {544091, 544095, 544098, 544116, 544121, 544122, 544123, 544124}, "List of run numbers to analyze"}; Configurable cfFileWithWeights{"cfFileWithWeights", "/alice-ccdb.cern.ch/Users/p/pengchon/weightsfile06", "path to external ROOT file which holds all particle weights"}; @@ -367,6 +372,10 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to float NContrcut = 2.; if (posZ < vertexZmin || posZ > vertexZmax || (!collision.sel8()) || collision.numContrib() < NContrcut) return false; + if (cfTechcuts) { + if (!collision.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard) || !collision.selection_bit(o2::aod::evsel::kNoCollInRofStandard) || !collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup) || !collision.selection_bit(o2::aod::evsel::kIsVertexITSTPC) || !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll) || !collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV) || !collision.selection_bit(o2::aod::evsel::kNoHighMultCollInPrevRof)) + return false; + } return true; } @@ -381,7 +390,15 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to float etacutmin = static_cast(Eta[0]); float etacutmax = static_cast(Eta[1]); float eta = track.eta(); - if (pt < ptcutmin || pt > ptcutmax || eta < etacutmin || eta > etacutmax) + vector dcaXY = cfDCAxy.value; + float dcaxycutmin = static_cast(dcaXY[0]); + float dcaxycutmax = static_cast(dcaXY[1]); + float dcaxy = track.dcaXY(); + vector dcaZ = cfDCAz.value; + float dcazcutmin = static_cast(dcaZ[0]); + float dcazcutmax = static_cast(dcaZ[1]); + float dcaz = track.dcaZ(); + if (pt < ptcutmin || pt > ptcutmax || eta < etacutmin || eta > etacutmax || dcaxy < dcaxycutmin || dcaxy > dcaxycutmax || dcaz < dcazcutmin || dcaz > dcazcutmax || (!track.isPrimaryTrack()) || (!track.isPVContributor()) || track.tpcNClsFound() < cftpcNClsFoundmin.value || track.tpcChi2NCl() > cftpcChi2NClmax) return false; return true; } From a778ad9d628e1d8087be14dd5986d288f9751fd8 Mon Sep 17 00:00:00 2001 From: Pengchong Hu Date: Fri, 3 Jul 2026 18:00:06 +0200 Subject: [PATCH 2/2] add headfile --- .../Tasks/multiharmonicCorrelations.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx b/PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx index f96aa73209d..c1ae82000be 100644 --- a/PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx +++ b/PWGCF/MultiparticleCorrelations/Tasks/multiharmonicCorrelations.cxx @@ -9,6 +9,7 @@ // granted to it by virtue of its status as an Intergovernmental Organization // or submit itself to any jurisdiction. +#include "Common/CCDB/EventSelectionParams.h" #include "Common/DataModel/Centrality.h" #include "Common/DataModel/EventSelection.h" #include "Common/DataModel/Multiplicity.h"