Skip to content

Commit 09cc87f

Browse files
authored
[PWGLF] Add jet pt histograms (#18284)
1 parent ecbed18 commit 09cc87f

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

‎PWGLF/Tasks/Nuspex/antinucleiInJets.cxx‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ struct AntinucleiInJets {
282282
getReweightingHistograms(ccdb, TString(pathToFile));
283283
}
284284

285-
// Binning
285+
// pt binning
286286
double min = 0.0;
287287
double max = 6.0;
288288
int nbins = 120;
@@ -326,6 +326,9 @@ struct AntinucleiInJets {
326326
registryData.add("jetEffectiveAreaOverPiR2", "jet effective area / piR^2", HistType::kTH1F, {{2000, 0, 2, "Area/#piR^{2}"}});
327327
registryData.add("jetArea", "jetArea", HistType::kTH1F, {{5000, 0, 5, "area"}});
328328

329+
// Jet pt distribution in data
330+
registryData.add("jetPtData", "jet pt distribution in data", HistType::kTH1F, {{2000, 0, 200, "#it{p}^{jet}_{T} (GeV/#it{c})"}});
331+
329332
// angle between track and jet axis
330333
registryData.add("theta_track_jet", "theta_track_jet", HistType::kTH2F, {{100, 0, 100, "#it{p}^{jet}_{T} (GeV/#it{c})"}, {400, 0, 20.0, "#theta_{track-jet} (deg)"}});
331334

@@ -379,6 +382,9 @@ struct AntinucleiInJets {
379382
registryMC.add("genEvents", "number of generated events in mc", HistType::kTH1F, {{10, 0, 10, "counter"}});
380383
registryMC.add("genJets", "number of generated jets", HistType::kTH1F, {{10, 0, 10, "counter"}});
381384

385+
// Jet pt distribution in gen MC
386+
registryMC.add("jetPtMCgenerated", "jet pt distribution in gen MC", HistType::kTH1F, {{2000, 0, 200, "#it{p}^{jet}_{T} (GeV/#it{c})"}});
387+
382388
// Size of particle array
383389
registryMC.add("sizeParticleArray", "number of particles", HistType::kTH1F, {{1000, 0, 1000, "#it{N}_{part}"}});
384390

@@ -415,6 +421,9 @@ struct AntinucleiInJets {
415421
registryMC.add("recEvents", "number of reconstructed events in mc", HistType::kTH1F, {{20, 0, 20, "counter"}});
416422
registryMC.add("recJets", "number of reconstructed jets", HistType::kTH1F, {{10, 0, 10, "counter"}});
417423

424+
// Jet pt distribution in rec MC
425+
registryMC.add("jetPtMCreconstructed", "jet pt distribution in rec MC", HistType::kTH1F, {{2000, 0, 200, "#it{p}^{jet}_{T} (GeV/#it{c})"}});
426+
418427
// Configuration
419428
registryMC.add("settingMC", "settingMC", HistType::kTH2F, {{100, 0.0, 50.0, "min #it{p}^{jet}_{T} (GeV/#it{c})"}, {20, 0.0, 1.0, "#it{R}_{jet}"}});
420429

@@ -1303,6 +1312,10 @@ struct AntinucleiInJets {
13031312
// Jet pt must be larger than threshold
13041313
auto jetForSub = jet;
13051314
fastjet::PseudoJet jetMinusBkg = backgroundSub.doRhoAreaSub(jetForSub, rhoPerp, rhoMPerp);
1315+
1316+
// Fill jet pt distribution
1317+
registryData.fill(HIST("jetPtData"), jetMinusBkg.pt());
1318+
13061319
if (isppRefAnalysis && (jet.pt() < minJetPt || jet.pt() > maxJetPt))
13071320
continue;
13081321
if (!isppRefAnalysis && (jetMinusBkg.pt() < minJetPt || jetMinusBkg.pt() > maxJetPt))
@@ -2141,6 +2154,10 @@ struct AntinucleiInJets {
21412154
// Jet pt must be larger than threshold
21422155
auto jetForSub = jet;
21432156
fastjet::PseudoJet jetMinusBkg = backgroundSub.doRhoAreaSub(jetForSub, rhoPerp, rhoMPerp);
2157+
2158+
// Fill jet pt distribution
2159+
registryMC.fill(HIST("jetPtMCgenerated"), jetMinusBkg.pt());
2160+
21442161
if (isppRefAnalysis && (jet.pt() < minJetPt || jet.pt() > maxJetPt))
21452162
continue;
21462163
if (!isppRefAnalysis && (jetMinusBkg.pt() < minJetPt || jetMinusBkg.pt() > maxJetPt))
@@ -2440,6 +2457,10 @@ struct AntinucleiInJets {
24402457
// Jet pt must be larger than threshold
24412458
auto jetForSub = jet;
24422459
fastjet::PseudoJet jetMinusBkg = backgroundSub.doRhoAreaSub(jetForSub, rhoPerp, rhoMPerp);
2460+
2461+
// Fill jet pt distribution
2462+
registryMC.fill(HIST("jetPtMCreconstructed"), jetMinusBkg.pt());
2463+
24432464
if (isppRefAnalysis && (jet.pt() < minJetPt || jet.pt() > maxJetPt))
24442465
continue;
24452466
if (!isppRefAnalysis && (jetMinusBkg.pt() < minJetPt || jetMinusBkg.pt() > maxJetPt))

0 commit comments

Comments
 (0)