Skip to content

Commit 2b41b88

Browse files
authored
[DPG] [TOF] add pv contributors histogram (#8619)
1 parent fec95d8 commit 2b41b88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

DPG/Tasks/AOTTrack/PID/TOF/qaPIDTOF.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ struct tofPidQa {
262262
{
263263
const AxisSpec multAxis{100, 0, 100, "TOF multiplicity"};
264264
const AxisSpec vtxZAxis{100, -20, 20, "Vtx_{z} (cm)"};
265+
const AxisSpec contributorsAxis{100, 0, 1000, "PV contributors"};
265266
const AxisSpec etaAxis{etaBins, "#it{#eta}"};
266267
const AxisSpec phiAxis{phiBins, "#it{#phi}"};
267268
const AxisSpec colTimeAxis{100, -2000, 2000, "Collision time (ps)"};
@@ -295,6 +296,7 @@ struct tofPidQa {
295296
h->GetXaxis()->SetBinLabel(5, "hasTOF");
296297
h->GetXaxis()->SetBinLabel(6, "goodTOFMatch");
297298

299+
histos.add("event/pvcontributors", "", kTH1D, {contributorsAxis});
298300
histos.add("event/vertexz", "", kTH1D, {vtxZAxis});
299301
h = histos.add<TH1>("event/particlehypo", "", kTH1D, {{10, 0, 10, "PID in tracking"}});
300302
for (int i = 0; i < 9; i++) {
@@ -389,6 +391,7 @@ struct tofPidQa {
389391
pvContributors++;
390392
}
391393
}
394+
histos.fill(HIST("event/pvcontributors"), pvContributors);
392395
if (pvContributors < pvContributorsMin) {
393396
return false;
394397
}

0 commit comments

Comments
 (0)