Skip to content

Commit 05af505

Browse files
committed
[PWGLF] Added histograms to calculate jet reconstruction efficiency
1 parent a812ed4 commit 05af505

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ struct AntinucleiInJets {
252252

253253
// Event counter
254254
registryMC.add("genEvents", "number of generated events in mc", HistType::kTH1F, {{10, 0, 10, "counter"}});
255+
registryMC.add("genJets", "number of generated jets", HistType::kTH1F, {{10, 0, 10, "counter"}});
255256

256257
// Generated spectra of antiprotons
257258
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 {
267268

268269
// Event counter
269270
registryMC.add("recEvents", "number of reconstructed events in mc", HistType::kTH1F, {{20, 0, 20, "counter"}});
271+
registryMC.add("recJets", "number of reconstructed jets", HistType::kTH1F, {{10, 0, 10, "counter"}});
270272

271273
// Reconstructed spectra of antiprotons
272274
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 {
14541456
continue;
14551457
isAtLeastOneJetSelected = true;
14561458

1459+
// Generated jets
1460+
registryMC.fill(HIST("genJets"), 0.5);
1461+
14571462
// Analyze jet constituents
14581463
std::vector<fastjet::PseudoJet> jetConstituents = jet.constituents();
14591464
for (const auto& particle : jetConstituents) {
@@ -1622,6 +1627,9 @@ struct AntinucleiInJets {
16221627
continue;
16231628
isAtLeastOneJetSelected = true;
16241629

1630+
// Reconstructed jets
1631+
registryMC.fill(HIST("recJets"), 0.5);
1632+
16251633
// Set up two perpendicular cone axes for underlying event estimation
16261634
double coneRadius = std::sqrt(jet.area() / PI);
16271635
TVector3 jetAxis(jet.px(), jet.py(), jet.pz());

0 commit comments

Comments
 (0)