|
CbmRoot
|
Generates a comparison QA report (input + output) for CA tracking. More...
#include <QaReportGenerator.h>
Public Types | |
| enum class | EngineType { kHtml , kBeamer , kLatex } |
| Supported output engines. More... | |
Public Member Functions | |
| QaReportGenerator (const std::string &qaFile, const std::string &setup, const std::string &outDir, EngineType engine=EngineType::kLatex, const std::string &figExt="png", bool ignoreSame=false) | |
| void | Generate () |
| Run the complete report generation pipeline. | |
Private Member Functions | |
| void | GetResults (TDirectory *dir, const std::string ¤tPath, const std::string &taskName) |
| void | Process (const std::string &yamlFile) |
| Process the YAML results file. | |
Static Private Member Functions | |
| static std::string | EscapeLatex (const std::string &text) |
| static std::vector< std::string > | GetCanvasPaths (TDirectory *dir, const std::string &prefix="") |
| static std::string | CmpInferenceToString (cbm::qa::checker::ECmpInference inf) |
Private Attributes | |
| std::unique_ptr< TFile > | fFile |
| input ROOT file | |
| std::unique_ptr< cbm::qa::report::Builder > | fReport |
| report builder | |
| std::string | fSetup |
| setup tag | |
| std::string | fOutDir |
| output directory | |
| EngineType | fEngine |
| chosen engine | |
| std::vector< std::string > | fObjlist |
| list of objects in the file | |
| std::vector< std::string > | fVersionLabel |
| version labels for comparison | |
| std::unordered_map< std::string, std::vector< cbm::qa::checker::Result > > | fResults |
| results map | |
| bool | fIgnoreSame = false |
| ignore "Same" results in comparison tables | |
Generates a comparison QA report (input + output) for CA tracking.
Encapsulates the full report pipeline and lets the caller choose the output engine (HTML, LaTeX, Beamer).
Definition at line 29 of file QaReportGenerator.h.
|
strong |
Supported output engines.
| Enumerator | |
|---|---|
| kHtml | |
| kBeamer | |
| kLatex | |
Definition at line 32 of file QaReportGenerator.h.
| QaReportGenerator::QaReportGenerator | ( | const std::string & | qaFile, |
| const std::string & | setup, | ||
| const std::string & | outDir, | ||
| EngineType | engine = EngineType::kLatex, | ||
| const std::string & | figExt = "png", | ||
| bool | ignoreSame = false ) |
Construct the generator.
| qaFile | Path to the ROOT QA file. |
| setup | Setup tag (e.g. "s100c"). |
| outDir | Output directory for figures + script. |
| engine | Output engine (default: LaTeX). |
| figExt | Image extension for saved canvases (png/svg/pdf). |
Definition at line 32 of file QaReportGenerator.cxx.
References fEngine, fFile, fIgnoreSame, fOutDir, fReport, and fSetup.
|
staticprivate |
Definition at line 279 of file QaReportGenerator.cxx.
Referenced by Process().
|
staticprivate |
| text | Text to escape. |
Definition at line 212 of file QaReportGenerator.cxx.
References pos.
| void QaReportGenerator::Generate | ( | ) |
|
staticprivate |
Definition at line 178 of file QaReportGenerator.cxx.
References GetCanvasPaths().
Referenced by GetCanvasPaths(), and Process().
|
private |
Definition at line 229 of file QaReportGenerator.cxx.
References fObjlist, fResults, fVersionLabel, GetResults(), and pos.
Referenced by GetResults(), and Process().
|
private |
Process the YAML results file.
Definition at line 79 of file QaReportGenerator.cxx.
References CmpInferenceToString(), fObjlist, fReport, fResults, fVersionLabel, GetCanvasPaths(), and GetResults().
Referenced by Generate().
|
private |
chosen engine
Definition at line 83 of file QaReportGenerator.h.
Referenced by Generate(), and QaReportGenerator().
|
private |
input ROOT file
Definition at line 79 of file QaReportGenerator.h.
Referenced by Generate(), and QaReportGenerator().
|
private |
ignore "Same" results in comparison tables
Definition at line 89 of file QaReportGenerator.h.
Referenced by QaReportGenerator().
|
private |
list of objects in the file
Definition at line 84 of file QaReportGenerator.h.
Referenced by GetResults(), and Process().
|
private |
output directory
Definition at line 82 of file QaReportGenerator.h.
Referenced by QaReportGenerator().
|
private |
report builder
Definition at line 80 of file QaReportGenerator.h.
Referenced by Generate(), Process(), and QaReportGenerator().
|
private |
results map
Definition at line 88 of file QaReportGenerator.h.
Referenced by GetResults(), and Process().
|
private |
|
private |
version labels for comparison
Definition at line 85 of file QaReportGenerator.h.
Referenced by GetResults(), and Process().