Skip to content

Commit 1beb9c1

Browse files
authored
[PWGLF] Add centrality events histogram (#18599)
1 parent 81202ee commit 1beb9c1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ struct nucleiSpectra {
558558
spectra.get<TH1>(HIST("hEventSelections"))->GetXaxis()->SetBinLabel(nuclei::evSel::kINELgt0 + 2, "IsINELgt0");
559559

560560
spectra.add("hRecVtxZData", "collision z position", HistType::kTH1F, {{200, -20., +20., "z position (cm)"}});
561+
spectra.add("hCentralityEvents", "selected events", HistType::kTH1D, {centAxis});
561562
if (doprocessMC) {
562563
spectra.add("hGenVtxZ", " generated collision z position", HistType::kTH1F, {{200, -20., +20., "z position (cm)"}});
563564
}
@@ -655,6 +656,7 @@ struct nucleiSpectra {
655656
gRandom->SetSeed(bc.timestamp());
656657

657658
spectra.fill(HIST("hRecVtxZData"), collision.posZ());
659+
spectra.fill(HIST("hCentralityEvents"), getCentrality(collision));
658660

659661
if (!collision.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
660662
spectra.fill(HIST("hRecVtxZDataITSrof"), collision.posZ());

0 commit comments

Comments
 (0)