CbmRoot
|
Specification of the handler for TProfile class. More...
#include <CbmQaCheckerHist2DHandler.h>
Public Member Functions | |
Hist2DHandler (int iObject, int iFile, int iDataset) | |
Constructor. | |
~Hist2DHandler ()=default | |
Destructor. | |
void | CreateCanvases (Option_t *opt="") override |
Creates object comparison canvas. | |
ECmpInference | Compare (int iVersion) const override |
Compares objects to default. | |
void | AddObjects (const std::vector< TNamed * > &vpObj) |
Adds vector of pointer to objects. | |
std::vector< ECmpInference > | CompareWithDefault () |
Compares different versions with default. | |
void | SetOutputDirectory (TDirectory *pDir) |
Sets folder to store output. | |
void | SetObjectDB (std::shared_ptr< ObjectDB > &pObjDB) |
Sets objects database. | |
void | SetComparisonMethod (ECmpMethod method) |
Sets bit flag to control handler behaviour. | |
void | Write () |
Writes objects to file. | |
Protected Attributes | |
std::string | fsObjType {""} |
Base type of the object to be handled. | |
std::string | fsBaseName {""} |
Base names of the object. | |
std::vector< TNamed * > | fvpObjects |
Vector of objects. | |
std::shared_ptr< ObjectDB > | fpObjDB {nullptr} |
Pointer to object database. | |
std::shared_ptr< TCanvas > | fpCanvas {nullptr} |
Comparison canvas. | |
TDirectory * | fpOutDir {nullptr} |
Pointer to directory. | |
int | fObjectID {-1} |
Index of object. | |
int | fFileID {-1} |
Index of file. | |
int | fDatasetID {-1} |
Index of dataset. | |
std::bitset< static_cast< size_t >(ECmpMethod::END)> | fCmpBits |
Bitset for comparison methods. | |
Specification of the handler for TProfile class.
Definition at line 19 of file CbmQaCheckerHist2DHandler.h.
Hist2DHandler::Hist2DHandler | ( | int | iObject, |
int | iFile, | ||
int | iDataset ) |
Constructor.
iObject | Index of object |
iFile | Index of file |
iDataset | Index of dataset |
Definition at line 19 of file CbmQaCheckerHist2DHandler.cxx.
|
default |
Destructor.
|
inherited |
Adds vector of pointer to objects.
vpObj | Vector of pointers to TNamed objects |
Definition at line 44 of file CbmQaCheckerObjectHandler.cxx.
References cbm::qa::checker::ObjectHandler::fpObjDB, cbm::qa::checker::ObjectHandler::fpOutDir, cbm::qa::checker::ObjectHandler::fsBaseName, and cbm::qa::checker::ObjectHandler::fvpObjects.
|
overridevirtualinherited |
Compares objects to default.
iVersion | Version index |
Implements cbm::qa::checker::ObjectHandler.
Definition at line 41 of file CbmQaCheckerHist1DHandler.cxx.
References cbm::qa::checker::Chi2, cbm::qa::checker::Different, cbm::qa::checker::Exact, cbm::qa::checker::ObjectHandler::fCmpBits, cbm::qa::checker::ObjectHandler::fDatasetID, cbm::qa::checker::ObjectHandler::fFileID, cbm::qa::checker::ObjectHandler::fObjectID, cbm::qa::checker::ObjectHandler::fpObjDB, cbm::qa::checker::ObjectHandler::fvpObjects, cbm::qa::checker::Ratio, cbm::qa::checker::StronglyEqual, cbm::qa::checker::ToString(), and cbm::qa::checker::WeaklyEqual.
|
inherited |
Compares different versions with default.
Definition at line 70 of file CbmQaCheckerObjectHandler.cxx.
References cbm::qa::checker::ObjectHandler::Compare(), cbm::qa::checker::ObjectHandler::fpObjDB, cbm::qa::checker::ObjectHandler::fvpObjects, and cbm::qa::checker::StronglyEqual.
|
overridevirtual |
Creates object comparison canvas.
opt | Canvas options |
Reimplemented from cbm::qa::checker::Hist1DHandler.
Definition at line 23 of file CbmQaCheckerHist2DHandler.cxx.
References cbm::qa::checker::ObjectHandler::fpCanvas, cbm::qa::checker::ObjectHandler::fpObjDB, cbm::qa::checker::ObjectHandler::fsBaseName, and cbm::qa::checker::ObjectHandler::fvpObjects.
|
inlineinherited |
Sets bit flag to control handler behaviour.
bit | Bit index |
The bit flags should be defined in an enumeration of the default class
Definition at line 72 of file CbmQaCheckerObjectHandler.h.
References cbm::qa::checker::ObjectHandler::fCmpBits.
|
inlineinherited |
Sets objects database.
pObjDB | Shared pointer to object database |
Definition at line 66 of file CbmQaCheckerObjectHandler.h.
References cbm::qa::checker::ObjectHandler::fpObjDB.
|
inherited |
Sets folder to store output.
pDir | Pointer to folder instance |
Definition at line 86 of file CbmQaCheckerObjectHandler.cxx.
References cbm::qa::checker::ObjectHandler::fpOutDir.
|
inherited |
Writes objects to file.
Definition at line 94 of file CbmQaCheckerObjectHandler.cxx.
References cbm::qa::checker::ObjectHandler::fpCanvas, cbm::qa::checker::ObjectHandler::fpOutDir, and cbm::qa::checker::ObjectHandler::fvpObjects.
|
protectedinherited |
Bitset for comparison methods.
Definition at line 88 of file CbmQaCheckerObjectHandler.h.
Referenced by cbm::qa::checker::Hist1DHandler::Compare(), and cbm::qa::checker::ObjectHandler::SetComparisonMethod().
|
protectedinherited |
Index of dataset.
Definition at line 86 of file CbmQaCheckerObjectHandler.h.
Referenced by cbm::qa::checker::Hist1DHandler::Compare().
|
protectedinherited |
Index of file.
Definition at line 85 of file CbmQaCheckerObjectHandler.h.
Referenced by cbm::qa::checker::Hist1DHandler::Compare().
|
protectedinherited |
Index of object.
Definition at line 84 of file CbmQaCheckerObjectHandler.h.
Referenced by cbm::qa::checker::Hist1DHandler::Compare().
|
protectedinherited |
Comparison canvas.
Definition at line 82 of file CbmQaCheckerObjectHandler.h.
Referenced by cbm::qa::checker::Hist1DHandler::CreateCanvases(), CreateCanvases(), cbm::qa::checker::Profile1DHandler::CreateCanvases(), and cbm::qa::checker::ObjectHandler::Write().
|
protectedinherited |
Pointer to object database.
Definition at line 81 of file CbmQaCheckerObjectHandler.h.
Referenced by cbm::qa::checker::ObjectHandler::AddObjects(), cbm::qa::checker::Hist1DHandler::Compare(), cbm::qa::checker::ObjectHandler::CompareWithDefault(), cbm::qa::checker::Hist1DHandler::CreateCanvases(), CreateCanvases(), cbm::qa::checker::Profile1DHandler::CreateCanvases(), and cbm::qa::checker::ObjectHandler::SetObjectDB().
|
protectedinherited |
Pointer to directory.
Definition at line 83 of file CbmQaCheckerObjectHandler.h.
Referenced by cbm::qa::checker::ObjectHandler::AddObjects(), cbm::qa::checker::Hist1DHandler::CreateCanvases(), cbm::qa::checker::ObjectHandler::SetOutputDirectory(), and cbm::qa::checker::ObjectHandler::Write().
|
protectedinherited |
Base names of the object.
Definition at line 79 of file CbmQaCheckerObjectHandler.h.
Referenced by cbm::qa::checker::ObjectHandler::AddObjects(), cbm::qa::checker::Hist1DHandler::CreateCanvases(), CreateCanvases(), and cbm::qa::checker::Profile1DHandler::CreateCanvases().
|
protectedinherited |
Base type of the object to be handled.
Definition at line 78 of file CbmQaCheckerObjectHandler.h.
|
protectedinherited |
Vector of objects.
Definition at line 80 of file CbmQaCheckerObjectHandler.h.
Referenced by cbm::qa::checker::ObjectHandler::AddObjects(), cbm::qa::checker::Hist1DHandler::Compare(), cbm::qa::checker::ObjectHandler::CompareWithDefault(), cbm::qa::checker::Hist1DHandler::CreateCanvases(), CreateCanvases(), cbm::qa::checker::Profile1DHandler::CreateCanvases(), cbm::qa::checker::ObjectHandler::Write(), and cbm::qa::checker::ObjectHandler::~ObjectHandler().