Skip to content

Commit 7294129

Browse files
committed
fill histo
1 parent f4c33be commit 7294129

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

PWGJE/TableProducer/slimTablesProducer.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ struct SlimTablesProducer {
123123

124124
histos.add("h_collisions", "event status;event status;entries", {HistType::kTH1F, {{4, 0.0, 4.0}}});
125125
histos.add("h2_centrality_collisions", "event status vs. centrality;entries;centrality", {HistType::kTH2F, {centralityAxis, {4, 0.0, 4.0}}}, doSumw2);
126+
histos.add("h_occupancy_raw", "occupancy;occupancy;entries", {HistType::kTH1F, {{200, -10, 10000}}});
127+
126128
auto hColl = histos.get<TH1>(HIST("h_collisions"));
127129
hColl->GetXaxis()->SetBinLabel(1, "All");
128130
hColl->GetXaxis()->SetBinLabel(2, "eventSelection");
@@ -218,6 +220,7 @@ struct SlimTablesProducer {
218220
continue;
219221
}
220222
histos.fill(HIST("h_mcCollMCD_counts_weight"), 2.5, eventWeightMC);
223+
histos.fill(HIST("h_occupancy_raw"), collision.trackOccupancyInTimeRange()); // <-- ici
221224
// occupancy cut only applied to the reconstructed (MCD) collision, not to the mcCollision
222225
if (collision.trackOccupancyInTimeRange() < trackOccupancyInTimeRangeMin || trackOccupancyInTimeRangeMax < collision.trackOccupancyInTimeRange()) {
223226
continue;

0 commit comments

Comments
 (0)