Skip to content

Commit 21a3485

Browse files
authored
Add configurable vertex selection
1 parent 885d829 commit 21a3485

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PWGLF/Tasks/GlobalEventProperties/heavyionMultiplicity.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ struct HeavyionMultiplicity {
197197
Configurable<bool> isApplyNoCollInRofStandard{"isApplyNoCollInRofStandard", false, "Enable NoCollInRofStandard cut"};
198198
Configurable<bool> isApplyNoHighMultCollInPrevRof{"isApplyNoHighMultCollInPrevRof", false, "Enable NoHighMultCollInPrevRof cut"};
199199
Configurable<bool> isApplyInelgt0{"isApplyInelgt0", false, "Enable INEL > 0 condition"};
200+
Configurable<bool> isApplyVtxCut{"isApplyVtxCut", false, "Enable vertex cut condition"};
200201
Configurable<bool> isApplyFT0CbasedOccupancy{"isApplyFT0CbasedOccupancy", false, "Enable FT0CbasedOccupancy cut"};
201202
Configurable<bool> isApplyCentFT0C{"isApplyCentFT0C", true, "Centrality based on FT0C"};
202203
Configurable<bool> isApplyCentFV0A{"isApplyCentFV0A", false, "Centrality based on FV0A"};
@@ -417,6 +418,10 @@ struct HeavyionMultiplicity {
417418
return false;
418419
}
419420
histos.fill(HIST("EventHist"), 10);
421+
if (isApplyVtxCut && std::abs(col.posZ()) >= vtxRange) {
422+
return false;
423+
}
424+
histos.fill(HIST("EventHist"), 11);
420425
return true;
421426
}
422427

0 commit comments

Comments
 (0)