File tree Expand file tree Collapse file tree
DPG/Tasks/AOTTrack/V0Cascades Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments