Skip to content

Commit 6a56b6a

Browse files
author
Changhwan Choi
committed
Reverted updated TH3 histograms to multiple TH2 histograms
1 parent 4e7fda8 commit 6a56b6a

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

PWGJE/Tasks/bjetTaggingGnn.cxx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -368,15 +368,15 @@ struct BjetTaggingGnn {
368368
// merging of TH3 has been observed to dump all content into the flavour-axis overflow bin, while the
369369
// equivalent TH2 merges correctly (see fillSVHistograms()/fillMCDJetHistograms() fill sites).
370370
auto addSVFlavorHistograms = [&](const AxisSpec& axisJetpT, const std::string& suffix) {
371-
registry.add("h2_SVMass_jetpT_b" + suffix, "", {HistType::kTH2F, {axisJetpT, axisSVMass}}, callSumw2);
372-
registry.add("h2_SVMass_jetpT_c" + suffix, "", {HistType::kTH2F, {axisJetpT, axisSVMass}}, callSumw2);
373-
registry.add("h2_SVMass_jetpT_lf" + suffix, "", {HistType::kTH2F, {axisJetpT, axisSVMass}}, callSumw2);
374-
registry.add("h2_SVLxyS_jetpT_b" + suffix, "", {HistType::kTH2F, {axisJetpT, axisSVLxyS}}, callSumw2);
375-
registry.add("h2_SVLxyS_jetpT_c" + suffix, "", {HistType::kTH2F, {axisJetpT, axisSVLxyS}}, callSumw2);
376-
registry.add("h2_SVLxyS_jetpT_lf" + suffix, "", {HistType::kTH2F, {axisJetpT, axisSVLxyS}}, callSumw2);
377-
registry.add("h2_SVDispersion_jetpT_b" + suffix, "", {HistType::kTH2F, {axisJetpT, axisSVDispersion}}, callSumw2);
378-
registry.add("h2_SVDispersion_jetpT_c" + suffix, "", {HistType::kTH2F, {axisJetpT, axisSVDispersion}}, callSumw2);
379-
registry.add("h2_SVDispersion_jetpT_lf" + suffix, "", {HistType::kTH2F, {axisJetpT, axisSVDispersion}}, callSumw2);
371+
registry.add("h2_SVMass_jetpT_b" + suffix, "", HistType::kTH2F, {axisJetpT, axisSVMass}, callSumw2);
372+
registry.add("h2_SVMass_jetpT_c" + suffix, "", HistType::kTH2F, {axisJetpT, axisSVMass}, callSumw2);
373+
registry.add("h2_SVMass_jetpT_lf" + suffix, "", HistType::kTH2F, {axisJetpT, axisSVMass}, callSumw2);
374+
registry.add("h2_SVLxyS_jetpT_b" + suffix, "", HistType::kTH2F, {axisJetpT, axisSVLxyS}, callSumw2);
375+
registry.add("h2_SVLxyS_jetpT_c" + suffix, "", HistType::kTH2F, {axisJetpT, axisSVLxyS}, callSumw2);
376+
registry.add("h2_SVLxyS_jetpT_lf" + suffix, "", HistType::kTH2F, {axisJetpT, axisSVLxyS}, callSumw2);
377+
registry.add("h2_SVDispersion_jetpT_b" + suffix, "", HistType::kTH2F, {axisJetpT, axisSVDispersion}, callSumw2);
378+
registry.add("h2_SVDispersion_jetpT_c" + suffix, "", HistType::kTH2F, {axisJetpT, axisSVDispersion}, callSumw2);
379+
registry.add("h2_SVDispersion_jetpT_lf" + suffix, "", HistType::kTH2F, {axisJetpT, axisSVDispersion}, callSumw2);
380380
};
381381
auto addCoreJetHistograms = [&](const AxisSpec& axisJetpT, const std::string& suffix) {
382382
registry.add("h_jetpT" + suffix, "", HistType::kTH1F, {axisJetpT}, callSumw2);
@@ -497,21 +497,21 @@ struct BjetTaggingGnn {
497497
}
498498
auto addMCDFlavorAndMatchedHistograms = [&](const AxisSpec& axisJetpT, const std::string& suffix) {
499499
auto hJetpTFlavor = registry.add<TH2>("h2_jetpT_flavor" + suffix, "", HistType::kTH2F, {axisJetpT, axisJetFlavorCat}, callSumw2);
500-
registry.add("h2_jetpT_Db_b" + suffix, "", {HistType::kTH2F, {axisJetpT, axisDb}});
501-
registry.add("h2_jetpT_Db_c" + suffix, "", {HistType::kTH2F, {axisJetpT, axisDb}});
502-
registry.add("h2_jetpT_Db_lf" + suffix, "", {HistType::kTH2F, {axisJetpT, axisDb}});
500+
registry.add("h2_jetpT_Db_b" + suffix, "", HistType::kTH2F, {axisJetpT, axisDb});
501+
registry.add("h2_jetpT_Db_c" + suffix, "", HistType::kTH2F, {axisJetpT, axisDb});
502+
registry.add("h2_jetpT_Db_lf" + suffix, "", HistType::kTH2F, {axisJetpT, axisDb});
503503
auto hJetpTLfmatch = registry.add<TH2>("h2_jetpT_lfmatch" + suffix, "lf-jet", HistType::kTH2F, {axisJetpT, axisLfMatchStatus}, callSumw2);
504504
setLfMatchStatusAxisLabels(hJetpTLfmatch->GetYaxis());
505-
registry.add("h2_jetpT_Db_lfmatched" + suffix, "lf-jet", {HistType::kTH2F, {axisJetpT, axisDb}}, callSumw2);
506-
registry.add("h2_jetpT_Db_lfnone" + suffix, "lf-jet", {HistType::kTH2F, {axisJetpT, axisDb}}, callSumw2);
505+
registry.add("h2_jetpT_Db_lfmatched" + suffix, "lf-jet", HistType::kTH2F, {axisJetpT, axisDb}, callSumw2);
506+
registry.add("h2_jetpT_Db_lfnone" + suffix, "lf-jet", HistType::kTH2F, {axisJetpT, axisDb}, callSumw2);
507507
auto hResponse = registry.add<TH2>("h2_Response_DetjetpT_PartjetpT" + suffix, "", HistType::kTH2F, {axisJetpT, axisJetpT}, callSumw2);
508-
registry.add("h2_Response_DetjetpT_PartjetpT_b" + suffix, "", {HistType::kTH2F, {axisJetpT, axisJetpT}}, callSumw2);
509-
registry.add("h2_Response_DetjetpT_PartjetpT_c" + suffix, "", {HistType::kTH2F, {axisJetpT, axisJetpT}}, callSumw2);
510-
registry.add("h2_Response_DetjetpT_PartjetpT_lf" + suffix, "", {HistType::kTH2F, {axisJetpT, axisJetpT}}, callSumw2);
508+
registry.add("h2_Response_DetjetpT_PartjetpT_b" + suffix, "", HistType::kTH2F, {axisJetpT, axisJetpT}, callSumw2);
509+
registry.add("h2_Response_DetjetpT_PartjetpT_c" + suffix, "", HistType::kTH2F, {axisJetpT, axisJetpT}, callSumw2);
510+
registry.add("h2_Response_DetjetpT_PartjetpT_lf" + suffix, "", HistType::kTH2F, {axisJetpT, axisJetpT}, callSumw2);
511511
registry.add("h2_jetpT_Db_npp" + suffix, "NotPhysPrim", HistType::kTH2F, {axisJetpT, axisDb});
512-
registry.add("h2_jetpT_Db_npp_b" + suffix, "NotPhysPrim", {HistType::kTH2F, {axisJetpT, axisDb}});
513-
registry.add("h2_jetpT_Db_npp_c" + suffix, "NotPhysPrim", {HistType::kTH2F, {axisJetpT, axisDb}});
514-
registry.add("h2_jetpT_Db_npp_lf" + suffix, "NotPhysPrim", {HistType::kTH2F, {axisJetpT, axisDb}});
512+
registry.add("h2_jetpT_Db_npp_b" + suffix, "NotPhysPrim", HistType::kTH2F, {axisJetpT, axisDb});
513+
registry.add("h2_jetpT_Db_npp_c" + suffix, "NotPhysPrim", HistType::kTH2F, {axisJetpT, axisDb});
514+
registry.add("h2_jetpT_Db_npp_lf" + suffix, "NotPhysPrim", HistType::kTH2F, {axisJetpT, axisDb});
515515
setJetFlavorCatAxisLabels(hJetpTFlavor->GetYaxis());
516516
(void)hResponse;
517517

0 commit comments

Comments
 (0)