Skip to content

Commit 3c84f24

Browse files
committed
[PWGJE] Added Vz Vs Cent Hist
1 parent 676510c commit 3c84f24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PWGJE/Tasks/nucleiInJets.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ struct nucleiInJets {
246246
jetHist.get<TH1>(HIST("hNEventsInc"))->GetXaxis()->SetBinLabel(2, "Sel8");
247247
jetHist.get<TH1>(HIST("hNEventsInc"))->GetXaxis()->SetBinLabel(3, "|Vz|<10");
248248

249+
jetHist.add("hNEventsIncVsCent", "hNEventsIncVsCent", {HistType::kTH2D, {{4, 0.f, 4.f}, {CentAxis}}});
250+
249251
// TPC nSigma vs pT (inclusive)
250252
jetHist.add<TH3>("tracksInc/proton/h3PtVsProtonNSigmaTPCVsPt", "pT(p) vs NSigmaTPC (p) vs centrality; #it{p}_{T} (GeV/#it{c}); NSigmaTPC; centrality", HistType::kTH3F, {PtAxis, {200, -10, 10}, CentAxis});
251253
jetHist.add<TH3>("tracksInc/antiProton/h3PtVsantiProtonNSigmaTPCVsPt", "pT(#bar{p}) vs NSigmaTPC (#bar{p}) vs centrality; #it{p}_{T} (GeV/#it{c}); NSigmaTPC; centrality", HistType::kTH3F, {PtAxis, {200, -10, 10}, CentAxis});
@@ -495,7 +497,7 @@ struct nucleiInJets {
495497
jetHist.get<TH1>(HIST("recInc/eventStat"))->GetXaxis()->SetBinLabel(2, "Sel8");
496498
jetHist.get<TH1>(HIST("recInc/eventStat"))->GetXaxis()->SetBinLabel(3, "|Vz|<10");
497499

498-
jetHist.add<TH1>("recInc/vertexZ", "vertexZ (inclusive)", HistType::kTH1F, {{100, -15.0, 15.0}});
500+
jetHist.add<TH2>("recInc/vertexZ", "vertexZ (inclusive)", HistType::kTH2F, {{100, -15.0, 15.0}, {CentAxis}});
499501
jetHist.add<TH3>("recInc/pt/PtParticleTypeTPC", "Pt vs ParticleType vs Centrality (TPC)", HistType::kTH3F, {{100, 0.f, 10.f}, {14, -7, 7}, {100, 0, 100}});
500502
jetHist.add<TH3>("recInc/pt/PtParticleTypeTPCTOF", "Pt vs ParticleType vs Centrality (TPC+TOF)", HistType::kTH3F, {{100, 0.f, 10.f}, {14, -7, 7}, {100, 0, 100}});
501503
jetHist.add<TH3>("recInc/pt/PtParticleTypeTPCTOFVeto", "Pt vs ParticleType vs Centrality (TPC+TOF Veto)", HistType::kTH3F, {{100, 0.f, 10.f}, {14, -7, 7}, {100, 0, 100}});
@@ -1369,7 +1371,7 @@ struct nucleiInJets {
13691371
default:
13701372
centrality = -999;
13711373
}
1372-
1374+
jetHist.fill(HIST("hNEventsIncVsCent"), coll.posZ(), centrality);
13731375
for (const auto& track : tracks) {
13741376
auto trk = track.track_as<TrackCandidates>();
13751377
if (!isTrackSelected(trk)) {
@@ -1971,8 +1973,6 @@ struct nucleiInJets {
19711973
jetHist.fill(HIST("recInc/eventStat"), 1.5);
19721974
if (std::abs(coll.posZ()) > 10) // bad vertex
19731975
return;
1974-
1975-
jetHist.fill(HIST("recInc/vertexZ"), coll.posZ());
19761976
jetHist.fill(HIST("recInc/eventStat"), 2.5);
19771977

19781978
float centrality = -999;
@@ -1989,7 +1989,7 @@ struct nucleiInJets {
19891989
default:
19901990
centrality = -999;
19911991
}
1992-
1992+
jetHist.fill(HIST("recInc/vertexZ"), coll.posZ(), centrality);
19931993
for (const auto& track : tracks) {
19941994
if (!isTrackSelected(track)) {
19951995
continue;

0 commit comments

Comments
 (0)