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);