From 05af5053963d46eff912ed7f461f2f6fce8bf08e Mon Sep 17 00:00:00 2001 From: Alberto Caliva Date: Fri, 5 Sep 2025 12:46:45 +0200 Subject: [PATCH] [PWGLF] Added histograms to calculate jet reconstruction efficiency --- PWGLF/Tasks/Nuspex/antinucleiInJets.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx index 13d063d2d82..e2b2459bc2b 100644 --- a/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx +++ b/PWGLF/Tasks/Nuspex/antinucleiInJets.cxx @@ -252,6 +252,7 @@ struct AntinucleiInJets { // Event counter registryMC.add("genEvents", "number of generated events in mc", HistType::kTH1F, {{10, 0, 10, "counter"}}); + registryMC.add("genJets", "number of generated jets", HistType::kTH1F, {{10, 0, 10, "counter"}}); // Generated spectra of antiprotons registryMC.add("antiproton_gen_jet", "antiproton_gen_jet", HistType::kTH1F, {{nbins, min, max, "#it{p}_{T} (GeV/#it{c})"}}); @@ -267,6 +268,7 @@ struct AntinucleiInJets { // Event counter registryMC.add("recEvents", "number of reconstructed events in mc", HistType::kTH1F, {{20, 0, 20, "counter"}}); + registryMC.add("recJets", "number of reconstructed jets", HistType::kTH1F, {{10, 0, 10, "counter"}}); // Reconstructed spectra of antiprotons registryMC.add("antiproton_rec_tpc_jet", "antiproton_rec_tpc_jet", HistType::kTH1F, {{nbins, min, max, "#it{p}_{T} (GeV/#it{c})"}}); @@ -1454,6 +1456,9 @@ struct AntinucleiInJets { continue; isAtLeastOneJetSelected = true; + // Generated jets + registryMC.fill(HIST("genJets"), 0.5); + // Analyze jet constituents std::vector jetConstituents = jet.constituents(); for (const auto& particle : jetConstituents) { @@ -1622,6 +1627,9 @@ struct AntinucleiInJets { continue; isAtLeastOneJetSelected = true; + // Reconstructed jets + registryMC.fill(HIST("recJets"), 0.5); + // Set up two perpendicular cone axes for underlying event estimation double coneRadius = std::sqrt(jet.area() / PI); TVector3 jetAxis(jet.px(), jet.py(), jet.pz());