CbmRoot
Loading...
Searching...
No Matches
services/qareport/main.cxx
Go to the documentation of this file.
1/* Copyright (C) 2025 GSI/VECC, Darmstadt/Kolkata
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Souvik Chattopadhyay[committer] */
4
6#include "QaReportGenerator.h"
7
8#include <iostream>
9int main(int argc, char* argv[])
10{
11 try {
12 ApplicationParameter params(argc, argv);
13
15 if (params.engine == "html")
17 else if (params.engine == "beamer")
19 else
21
22 QaReportGenerator generator(params.qaFile, params.setup, params.outDir, engine, params.figExt, params.ignoreSame);
23 generator.Generate();
24 }
25 catch (const std::exception& ex) {
26 std::cerr << "Error: " << ex.what() << std::endl;
27 return EXIT_FAILURE;
28 }
29
30 return 0;
31}
Class to parse and store command-line arguments.
std::string figExt
png | svg | pdf
std::string engine
html | latex | beamer
bool ignoreSame
ignore "same" results in comparison tables
std::string outDir
where figures & script will go
std::string qaFile
input ROOT file
Generates a comparison QA report (input + output) for CA tracking.
EngineType
Supported output engines.
void Generate()
Run the complete report generation pipeline.
int main(int argc, char *argv[])