File tree Expand file tree Collapse file tree
PWGCF/EbyEFluctuations/Tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -812,20 +812,20 @@ struct V0ptHadPiKaProt {
812812 return 0 ;
813813 }
814814
815- int occupancy = coll.trackOccupancyInTimeRange ();
816- histos.fill (HIST (" hOccupancyVsCentrality_before" ), occupancy);
817-
818815 histos.fill (HIST (" hEventStatData" ), 6.5 );
819816 // events with selection bits based on occupancy time pattern
820- if (cfgEvSelUseOcuppancyTimeCut && !(coll.selection_bit (o2::aod::evsel::kNoCollInTimeRangeStandard ))) {
821- return 0 ;
822- }
823-
824- histos.fill (HIST (" hOccupancyVsCentrality_after" ), occupancy);
825-
826- histos.fill (HIST (" hEventStatData" ), 7.5 );
827- if (cfgEvSelSetOcuppancyRange && (occupancy < cfgMinOccupancy || occupancy > cfgMaxOccupancy)) {
828- return 0 ;
817+ if (cfgEvSelUseOcuppancyTimeCut) {
818+ int occupancy = coll.trackOccupancyInTimeRange ();
819+ histos.fill (HIST (" hOccupancyVsCentrality_before" ), coll.centFT0C (), occupancy);
820+ if (!(coll.selection_bit (o2::aod::evsel::kNoCollInTimeRangeStandard )))
821+ return 0 ;
822+ else
823+ histos.fill (HIST (" hOccupancyVsCentrality_after" ), coll.centFT0C (), occupancy);
824+
825+ histos.fill (HIST (" hEventStatData" ), 7.5 );
826+ if (cfgEvSelSetOcuppancyRange && (occupancy < cfgMinOccupancy || occupancy > cfgMaxOccupancy)) {
827+ return 0 ;
828+ }
829829 }
830830
831831 histos.fill (HIST (" hEventStatData" ), 8.5 );
You can’t perform that action at this time.
0 commit comments