Skip to content

Commit 641bda5

Browse files
authored
[DPG] Update k0s: add occupancy selection (#6252)
1 parent 276dd8b commit 641bda5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

DPG/Tasks/AOTTrack/V0Cascades/perfK0sResolution.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ struct perfK0sResolution {
9595
Configurable<std::string> lutPath{"lutPath", "GLO/Param/MatLUT", "Path of the Lut parametrization"};
9696
Configurable<std::string> ccdburl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
9797
Configurable<std::string> grpmagPath{"grpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
98+
Configurable<int> minOccupancyCut{"minOccupancyCut", 1, "Minimum occupancy cut. Enabled if min < max"};
99+
Configurable<int> maxOccupancyCut{"maxOccupancyCut", -1, "Maximum occupancy cut. Enabled if min < max"};
98100

99101
int runNumber = -1;
100102

@@ -421,6 +423,13 @@ struct perfK0sResolution {
421423
soa::Filtered<aod::V0Datas> const& fullV0s,
422424
PIDTracks const&)
423425
{
426+
const int occupancy = collision.trackOccupancyInTimeRange();
427+
if (minOccupancyCut < maxOccupancyCut) {
428+
if (occupancy < minOccupancyCut || occupancy > maxOccupancyCut) {
429+
return;
430+
}
431+
}
432+
424433
rK0sResolution.fill(HIST("h1_stats"), 0.5);
425434
for (auto& v0 : fullV0s) {
426435
rK0sResolution.fill(HIST("h1_stats"), 1.5);

0 commit comments

Comments
 (0)