Skip to content

Commit 9cd86da

Browse files
correct run error for lightions
1 parent 5f455bc commit 9cd86da

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)