10#ifndef CbmQaCheckerObjectHandler_h
11#define CbmQaCheckerObjectHandler_h 1
38 ObjectHandler(
int iObject,
int iFile,
int iDataset,
const char* objType =
"");
45 void AddObjects(
const std::vector<TNamed*>& vpObj);
81 std::shared_ptr<ObjectDB>
fpObjDB{
nullptr};
Database for processed objects in the QA checker framework (implementation)
Common definitions for QA-Checker framework.
Base abstract class for object handler.
std::string fsObjType
Base type of the object to be handled.
virtual void CreateCanvases(Option_t *)
Creates object comparison canvas.
std::string fsBaseName
Base names of the object.
std::shared_ptr< TCanvas > fpCanvas
Comparison canvas.
int fDatasetID
Index of dataset.
std::shared_ptr< ObjectDB > fpObjDB
Pointer to object database.
virtual ECmpInference Compare(int iVersion) const =0
Compares objects to default.
void Write()
Writes objects to file.
int fObjectID
Index of object.
void SetComparisonMethod(ECmpMethod method)
Sets bit flag to control handler behaviour.
std::vector< TNamed * > fvpObjects
Vector of objects.
ObjectHandler(int iObject, int iFile, int iDataset, const char *objType="")
Default constructor.
virtual ~ObjectHandler()
Destructor.
TDirectory * fpOutDir
Pointer to directory.
int fFileID
Index of file.
void AddObjects(const std::vector< TNamed * > &vpObj)
Adds vector of pointer to objects.
void SetOutputDirectory(TDirectory *pDir)
Sets folder to store output.
std::bitset< static_cast< size_t >(ECmpMethod::END)> fCmpBits
Bitset for comparison methods.
void SetObjectDB(std::shared_ptr< ObjectDB > &pObjDB)
Sets objects database.
std::vector< ECmpInference > CompareWithDefault()
Compares different versions with default.
ECmpInference
The object comparison inference.
ECmpMethod
Comparison method.