Skip to content

Commit b86cd54

Browse files
[PWGLF] Add QC histogram for checking the filling and reading of boolean standard columns (#11087)
1 parent 7ab16c3 commit b86cd54

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,10 @@ struct StrangenessBuilder {
480480
hFindable->GetXaxis()->SetBinLabel(6, "Cascades with collId -1");
481481
}
482482

483+
auto hPrimaryV0s = histos.add<TH1>("hPrimaryV0s", "hPrimaryV0s", kTH1D, {{2, -0.5f, 1.5f}});
484+
hPrimaryV0s->GetXaxis()->SetBinLabel(1, "All V0s");
485+
hPrimaryV0s->GetXaxis()->SetBinLabel(2, "Primary V0s");
486+
483487
mRunNumber = 0;
484488

485489
mEnabledTables.resize(nTables, 0);
@@ -1462,6 +1466,9 @@ struct StrangenessBuilder {
14621466
thisInfo.negP[0], thisInfo.negP[1], thisInfo.negP[2],
14631467
thisInfo.momentum[0], thisInfo.momentum[1], thisInfo.momentum[2]);
14641468
histos.fill(HIST("hTableBuildingStatistics"), kV0MCCores);
1469+
histos.fill(HIST("hPrimaryV0s"), 0);
1470+
if (thisInfo.isPhysicalPrimary)
1471+
histos.fill(HIST("hPrimaryV0s"), 1);
14651472
}
14661473
if (mEnabledTables[kV0MCCollRefs]) {
14671474
products.v0mccollref(thisInfo.mcCollision);
@@ -1593,6 +1600,9 @@ struct StrangenessBuilder {
15931600
info.negP[0], info.negP[1], info.negP[2],
15941601
info.momentum[0], info.momentum[1], info.momentum[2]);
15951602
histos.fill(HIST("hTableBuildingStatistics"), kV0MCCores);
1603+
histos.fill(HIST("hPrimaryV0s"), 0);
1604+
if (thisInfo.isPhysicalPrimary)
1605+
histos.fill(HIST("hPrimaryV0s"), 1);
15961606
}
15971607
if (mEnabledTables[kV0MCCollRefs]) {
15981608
products.v0mccollref(info.mcCollision);

PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,10 @@ struct derivedlambdakzeroanalysis {
635635
hRawCentrality->SetBinContent(ii, value);
636636
}
637637

638+
auto hPrimaryV0s = histos.add<TH1>("hPrimaryV0s", "hPrimaryV0s", kTH1D, {{2, -0.5f, 1.5f}});
639+
hPrimaryV0s->GetXaxis()->SetBinLabel(1, "All V0s");
640+
hPrimaryV0s->GetXaxis()->SetBinLabel(2, "Primary V0s");
641+
638642
// histograms versus mass
639643
if (analyseK0Short) {
640644
histos.add("h2dNbrOfK0ShortVsCentrality", "h2dNbrOfK0ShortVsCentrality", kTH2F, {axisCentrality, {10, -0.5f, 9.5f}});
@@ -2299,9 +2303,12 @@ struct derivedlambdakzeroanalysis {
22992303
if (!v0MC.has_straMCCollision())
23002304
continue;
23012305

2306+
histos.fill(HIST("hPrimaryV0s"), 0);
23022307
if (!v0MC.isPhysicalPrimary())
23032308
continue;
23042309

2310+
histos.fill(HIST("hPrimaryV0s"), 1);
2311+
23052312
float ptmc = v0MC.ptMC();
23062313
float ymc = 1e3;
23072314
if (v0MC.pdgCode() == 310)

0 commit comments

Comments
 (0)