From 2e91861cd16cfa8f4771a5858888e9254e7b1b79 Mon Sep 17 00:00:00 2001
From: "s.zharko@gsi.de" <s.zharko@gsi.de>
Date: Sat, 28 Sep 2024 19:46:56 +0200
Subject: [PATCH] QA: cosmetics

---
 core/qa/report/CbmQaReportBeamerEngine.cxx | 24 +++++++++++++++++++++-
 macro/qa/qa_compare_ca.C                   |  2 +-
 reco/L1/qa/CbmCaInputQaBase.cxx            |  2 +-
 3 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/core/qa/report/CbmQaReportBeamerEngine.cxx b/core/qa/report/CbmQaReportBeamerEngine.cxx
index 87e51240f8..95c2676ff4 100644
--- a/core/qa/report/CbmQaReportBeamerEngine.cxx
+++ b/core/qa/report/CbmQaReportBeamerEngine.cxx
@@ -45,7 +45,7 @@ std::string BeamerEngine::FigureBody(const Figure& figure) const
   }
 
   std::stringstream out;
-  out << "\\begin{frame}{" << LatexFormat::Apply(figure.GetMother()->GetTitle()) << "}\n";
+  out << "\\begin{frame}{" << figure.GetMother()->GetTitle() << "}\n";
   out << "  \\begin{figure}\n";
   out << "    \\def\\hgt{\\textheight-2\\baselineskip}\n";
   out << "    \\centering\n";
@@ -190,6 +190,28 @@ std::string BeamerEngine::HeaderBody(const Header& header) const
 
   out << "\\setbeamertemplate{caption}[numbered]\n";
 
+  out << "\\AtBeginSection[]{\n";
+  out << "  \\begin{frame}\n";
+  out << "  \\vfill\n";
+  out << "  \\begin{beamercolorbox}[sep=8pt,shadow=true,rounded=true]{title}\n";
+  out << "    \\usebeamerfont{title}Section: \\insertsectionhead\\par%\n";
+  out << "  \\end{beamercolorbox}\n";
+  out << "  \\tableofcontents[currentsection]\n";
+  out << "  \\vfill\n";
+  out << "  \\end{frame}\n";
+  out << "}\n";
+  out << "\n";
+  out << "\\AtBeginSubsection[]{\n";
+  out << "  \\begin{frame}\n";
+  out << "  \\vfill\n";
+  out << "    \\begin{beamercolorbox}[sep=6pt,shadow=true,rounded=true]{title}\n";
+  out << "      \\usebeamerfont{title}Subsection: \\insertsubsectionhead\\par%\n";
+  out << "    \\end{beamercolorbox}\n";
+  out << "    \\tableofcontents[currentsubsection]\n";
+  out << "  \\vfill\n";
+  out << "  \\end{frame}\n";
+  out << "}\n";
+
   //out << "\\usepackage{color}\n";
   //out << "\\definecolor{hrefcolor}{rgb}{0.2, 0.2, 0.6}\n";
   //out << "\\hypersetup{color}{colorlinks=true, urlcolor=hrefcolor,linkcolor=black,citecolor=hrefcolor}\n";
diff --git a/macro/qa/qa_compare_ca.C b/macro/qa/qa_compare_ca.C
index 00c65783e1..ddb750158a 100644
--- a/macro/qa/qa_compare_ca.C
+++ b/macro/qa/qa_compare_ca.C
@@ -36,7 +36,7 @@ int qa_compare_ca(
   pQaChecker->SetFromYAML(configName);      // Read file-object map
 
   //// ----- Run comparision routine
-  pQaChecker->Process("PR");  // P -
+  pQaChecker->Process("PRC");  // P -
 
   //// ----- Scan results
   bool res = pQaChecker->Scan();  // true - objects are the same, false - objects differ
diff --git a/reco/L1/qa/CbmCaInputQaBase.cxx b/reco/L1/qa/CbmCaInputQaBase.cxx
index 35f0f1e5eb..48ceacf28f 100644
--- a/reco/L1/qa/CbmCaInputQaBase.cxx
+++ b/reco/L1/qa/CbmCaInputQaBase.cxx
@@ -183,7 +183,7 @@ void CbmCaInputQaBase<DetID>::Check()
       pEffTable->SetColWidth(20);
 
       for (int iSt = 0; iSt < nSt; ++iSt) {
-        auto eff = fvph_reco_eff[iSt]->GetMean();
+        auto eff = fvph_reco_eff[iSt]->GetMean();  // FIXME (GetMean(>>>2<<<))
         pEffTable->SetRowName(iSt, Form("station %d", iSt));
         pEffTable->SetCell(iSt, 0, eff);
         bool res = CheckRange("Hit finder efficiency in station " + std::to_string(iSt), eff, fConfig.fEffThrsh, 1.000);
-- 
GitLab