|
CbmRoot
|
Core class for CBM QA checker framework (declaration) More...
#include <CbmQaCheckerCore.h>
Public Member Functions | |
| Core () | |
| Default ctor. | |
| ~Core ()=default | |
| Destructor. | |
| Core (const Core &)=delete | |
| Copy constructor. | |
| Core (Core &&)=delete | |
| Move constructor. | |
| Core & | operator= (const Core &)=delete |
| Copy assignment operator. | |
| Core & | operator= (Core &&)=delete |
| Move assignment operator. | |
| void | AddVersion (const char *label, const char *path) |
| Adds a version of QA output for a comparison. | |
| void | AddDataset (const char *datasetName) |
| Adds a dataset name. | |
| int | Process (Option_t *comparisonMethod="E") |
| Runs checking routine. | |
| void | RegisterOutFile (const char *filename) |
| Registers root-file for storing output. | |
| void | SetDefaultVersion (const char *defaultLabel) |
| Sets default version label. | |
| void | SetFromYAML (const char *configName) |
| Sets checker configuration from YAML file. | |
| void | SetInputRootPath (const char *pathName) |
| Sets root path to input files. | |
| void | SetPvalThreshold (double pVal) |
| Sets P-value threshold. | |
| void | SetRatioRange (double min, double max) |
| Sets ratio accepted range. | |
Private Member Functions | |
| void | PrepareOutputFile () |
| Prepares output file (creates directory structure) | |
Private Attributes | |
| std::shared_ptr< ObjectDB > | fpObjDB = nullptr |
| Database of names. | |
Core class for CBM QA checker framework (declaration)
Class CbmQaCheckerCore defines a core of the QA checker framework and provides a user interface for the comparison routine execution
Definition at line 30 of file CbmQaCheckerCore.h.
| Core::Core | ( | ) |
Default ctor.
Definition at line 23 of file CbmQaCheckerCore.cxx.
References fpObjDB.
Referenced by Core(), Core(), operator=(), and operator=().
|
default |
Destructor.
| void Core::AddDataset | ( | const char * | datasetName | ) |
Adds a dataset name.
| datasetName | Name of dataset |
Definition at line 35 of file CbmQaCheckerCore.cxx.
References fpObjDB.
| void Core::AddVersion | ( | const char * | label, |
| const char * | path ) |
Adds a version of QA output for a comparison.
| label | Label of the version |
| path | Path to the QA output directory for this version |
Definition at line 31 of file CbmQaCheckerCore.cxx.
References fpObjDB.
Copy assignment operator.
References Core().
Move assignment operator.
References Core().
|
private |
Prepares output file (creates directory structure)
Definition at line 95 of file CbmQaCheckerCore.cxx.
References fpObjDB.
Referenced by Process().
| int Core::Process | ( | Option_t * | comparisonMethod = "E" | ) |
Runs checking routine.
| opt | Option: "B": suppress canvas creation "C": forces canvas creation (even if there is no difference) "R": draw ratio on canvas "D": draw difference on canvas "E": enables exact comparison "S": enables statistical hypothesis test, where is possible "U": enables ratio comparison "O": enables storage of the comparsion result |
Definition at line 47 of file CbmQaCheckerCore.cxx.
References fpObjDB, PrepareOutputFile(), cbm::qa::checker::StronglyEqual, and cbm::qa::checker::ToString().
| void Core::RegisterOutFile | ( | const char * | filename | ) |
Registers root-file for storing output.
| filename | Name of file |
Definition at line 39 of file CbmQaCheckerCore.cxx.
References fpObjDB.
|
inline |
Sets default version label.
| defaultLabel | Name of default label |
If the default version is not provided, the first version will be used as the default one.
Definition at line 83 of file CbmQaCheckerCore.h.
References fpObjDB.
| void Core::SetFromYAML | ( | const char * | configName | ) |
Sets checker configuration from YAML file.
| configName | Name of YAML configuration file |
Definition at line 91 of file CbmQaCheckerCore.cxx.
References fpObjDB.
|
inline |
Sets root path to input files.
| pathName | Relative or absolute root path to input the input directories |
Definition at line 91 of file CbmQaCheckerCore.h.
References fpObjDB.
|
inline |
Sets P-value threshold.
| pVal | P-value threshold |
Definition at line 95 of file CbmQaCheckerCore.h.
References fpObjDB.
|
inline |
Sets ratio accepted range.
| min | Lower boundary |
| max | Upper boundary |
Definition at line 100 of file CbmQaCheckerCore.h.
|
private |
Database of names.
Definition at line 106 of file CbmQaCheckerCore.h.
Referenced by AddDataset(), AddVersion(), Core(), PrepareOutputFile(), Process(), RegisterOutFile(), SetDefaultVersion(), SetFromYAML(), SetInputRootPath(), SetPvalThreshold(), and SetRatioRange().