CbmRoot
Loading...
Searching...
No Matches
CbmQaCheckerCore.h
Go to the documentation of this file.
1/* Copyright (C) 2023 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Sergei Zharko [committer] */
4
9
10#ifndef CbmQaCheckerCore_h
11#define CbmQaCheckerCore_h 1
12
15#include "Rtypes.h"
16
17#include <memory>
18#include <string>
19#include <vector>
20
21class TFile;
22
24{
30 class Core {
31 public:
33 Core();
34
36 ~Core() = default;
37
39 Core(const Core&) = delete;
40
42 Core(Core&&) = delete;
43
45 Core& operator=(const Core&) = delete;
46
48 Core& operator=(Core&&) = delete;
49
50 // ----- User interface
54 void AddVersion(const char* label, const char* path);
55
58 void AddDataset(const char* datasetName);
59
72 int Process(Option_t* comparisonMethod = "E");
73
76 void RegisterOutFile(const char* filename);
77
82 void SetDefaultVersion(const char* defaultLabel) { fpObjDB->SetDefaultLabel(defaultLabel); }
83
86 void SetFromYAML(const char* configName);
87
90 void SetInputRootPath(const char* pathName) { fpObjDB->SetInputRootPath(pathName); }
91
94 void SetPvalThreshold(double pVal) { fpObjDB->SetPvalThreshold(pVal); }
95
99 void SetRatioRange(double min, double max) { fpObjDB->SetRatioRange(min, max); }
100
101 private:
103 void PrepareOutputFile();
104
105 std::shared_ptr<ObjectDB> fpObjDB = nullptr;
106 };
107} // namespace cbm::qa::checker
108
109#endif // CbmQaCheckerCore_h
Database for processed objects in the QA checker framework (implementation)
Common definitions for QA-Checker framework.
Core class for CBM QA checker framework (declaration)
void SetInputRootPath(const char *pathName)
Sets root path to input files.
void RegisterOutFile(const char *filename)
Registers root-file for storing output.
void SetDefaultVersion(const char *defaultLabel)
Sets default version label.
Core(const Core &)=delete
Copy constructor.
void SetFromYAML(const char *configName)
Sets checker configuration from YAML file.
Core & operator=(Core &&)=delete
Move assignment operator.
void AddDataset(const char *datasetName)
Adds a dataset name.
void SetRatioRange(double min, double max)
Sets ratio accepted range.
int Process(Option_t *comparisonMethod="E")
Runs checking routine.
Core & operator=(const Core &)=delete
Copy assignment operator.
void AddVersion(const char *label, const char *path)
Adds a version of QA output for a comparison.
Core(Core &&)=delete
Move constructor.
std::shared_ptr< ObjectDB > fpObjDB
Database of names.
void SetPvalThreshold(double pVal)
Sets P-value threshold.
~Core()=default
Destructor.
void PrepareOutputFile()
Prepares output file (creates directory structure)