Skip to content

Commit 2bd3640

Browse files
committed
[PWGLF] added histogram for spectra normalization
1 parent a7e98b9 commit 2bd3640

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ struct AntinucleiInJets {
256256
// Generated spectra of antiprotons
257257
registryMC.add("antiproton_gen_jet", "antiproton_gen_jet", HistType::kTH1F, {{nbins, min, max, "#it{p}_{T} (GeV/#it{c})"}});
258258
registryMC.add("antiproton_gen_ue", "antiproton_gen_ue", HistType::kTH1F, {{nbins, min, max, "#it{p}_{T} (GeV/#it{c})"}});
259+
260+
// Normalization histogram
261+
registryMC.add("antiproton_y_phi", "antiproton_y_phi", HistType::kTH2F, {{2000, -1.0, 1.0, "#it{y}"}, {2000, 0.0, TwoPI, "#Delta#phi"}});
259262
}
260263

261264
// Reconstructed antiproton spectra in jets and UE (MC-matched) with TPC/TOF PID
@@ -1459,6 +1462,9 @@ struct AntinucleiInJets {
14591462
if (particle.eta() < minEta || particle.eta() > maxEta)
14601463
continue;
14611464

1465+
// Fill normalization histogram
1466+
registryMC.fill(HIST("antiproton_y_phi"), particle.y(), getDeltaPhi(particle.phi(), jet.phi()));
1467+
14621468
// Fill histogram for generated antiprotons
14631469
registryMC.fill(HIST("antiproton_gen_jet"), particle.pt());
14641470
}

0 commit comments

Comments
 (0)