From 4db335b3ebe265734929484d9e180b788a484f66 Mon Sep 17 00:00:00 2001 From: CesarOmarRA Date: Mon, 12 Oct 2026 09:06:23 -0600 Subject: [PATCH] [PWGUD] upcVmRof: kIsVertexITSTPC and kNoSameBunchPileup cuts configurable --- PWGUD/Tasks/upcVmRof.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PWGUD/Tasks/upcVmRof.cxx b/PWGUD/Tasks/upcVmRof.cxx index 00e3dc6ac7c..985a9b1ab1d 100644 --- a/PWGUD/Tasks/upcVmRof.cxx +++ b/PWGUD/Tasks/upcVmRof.cxx @@ -311,6 +311,8 @@ struct UpcVmRof { Configurable maxTrkDcaZ{"maxTrkDcaZ", 2.0, "max DCA in z of track to vtx (cm)"}; Configurable tfPerBin{"tfPerBin", 10000, "timeframes per bin 1e4 means some 28 s"}; Configurable genId{"genId", -1, "generator ID; -1 = no filter"}; + Configurable requireVtxItsTpc{"requireVtxItsTpc", false, "require kIsVertexITSTPC"}; + Configurable requireNoSameBunchPileup{"requireNoSameBunchPileup", false, "require kNoSameBunchPileup"}; //-------------------------------------------------------------------------------- // get ITS ROF info @@ -492,11 +494,11 @@ struct UpcVmRof { return false; } colTH1Pointers[Form("col/%d/colSel_H", run)]->Fill(3); - if (!col.selection_bit(aod::evsel::kIsVertexITSTPC)) { + if (requireVtxItsTpc && !col.selection_bit(aod::evsel::kIsVertexITSTPC)) { return false; } colTH1Pointers[Form("col/%d/colSel_H", run)]->Fill(4); - if (!col.selection_bit(aod::evsel::kNoSameBunchPileup)) { + if (requireNoSameBunchPileup && !col.selection_bit(aod::evsel::kNoSameBunchPileup)) { return false; } colTH1Pointers[Form("col/%d/colSel_H", run)]->Fill(5);