|
CbmRoot
|
Handler for single files, created from different QA versions. More...
#include <CbmQaCheckerFileHandler.h>
Public Member Functions | |
| FileHandler (std::shared_ptr< ObjectDB > &pObjDB, int iDataset, int iFile) | |
| Constructor. | |
| ~FileHandler () | |
| Destructor. | |
| FileHandler (const FileHandler &)=delete | |
| Copy constructor. | |
| FileHandler (FileHandler &&)=delete | |
| Move constructor. | |
| FileHandler & | operator= (const FileHandler &)=delete |
| Copy assignment operator. | |
| FileHandler & | operator= (FileHandler &&)=delete |
| Move assignment operator. | |
| int | GetDatasetID () const |
| Gets index of dataset. | |
| int | GetFileID () const |
| Gets index of file. | |
| std::vector< Result > | Process () |
| Processes comparison. | |
Private Member Functions | |
| TDirectory * | CreateNestedDirectory (const std::string &path) |
| Creates nested directory from a given path. | |
| void | ReOpenOutputFile () |
| Closes and opens output file. | |
Private Attributes | |
| int | fFileID = -1 |
| Index of file. | |
| int | fDatasetID = -1 |
| Index of dataset. | |
| std::shared_ptr< ObjectDB > | fpObjDB = nullptr |
| Pointer to object database. | |
| TDirectory * | fpOutDir = nullptr |
| Pointer to output directory. | |
| std::unique_ptr< TClonesArray > | fpInputFiles = nullptr |
| Pointer to input files array. | |
| std::unique_ptr< TFile > | fpOutputFile = nullptr |
| Pointer to output file. | |
Handler for single files, created from different QA versions.
Definition at line 30 of file CbmQaCheckerFileHandler.h.
| FileHandler::FileHandler | ( | std::shared_ptr< ObjectDB > & | pObjDB, |
| int | iDataset, | ||
| int | iFile ) |
Constructor.
| pObjDB | Shared pointer to object database |
| iDataset | Index of dataset |
| iFile | Index of file |
Definition at line 40 of file CbmQaCheckerFileHandler.cxx.
References fDatasetID, fFileID, fpInputFiles, fpObjDB, fpOutDir, and ReOpenOutputFile().
Referenced by FileHandler(), FileHandler(), operator=(), and operator=().
| FileHandler::~FileHandler | ( | ) |
Destructor.
Definition at line 64 of file CbmQaCheckerFileHandler.cxx.
References fpInputFiles, and fpOutputFile.
|
delete |
Copy constructor.
References FileHandler().
|
delete |
Move constructor.
References FileHandler().
|
private |
Creates nested directory from a given path.
| path | Path, parts of which are separated with slash |
Definition at line 75 of file CbmQaCheckerFileHandler.cxx.
References fpOutDir.
Referenced by Process().
|
inline |
Gets index of dataset.
Definition at line 55 of file CbmQaCheckerFileHandler.h.
References fDatasetID.
|
inline |
Gets index of file.
Definition at line 59 of file CbmQaCheckerFileHandler.h.
References fFileID.
|
delete |
Copy assignment operator.
References FileHandler().
|
delete |
Move assignment operator.
References FileHandler().
| std::vector< Result > FileHandler::Process | ( | ) |
Processes comparison.
| opt | Option: "B": suppress canvas creation "P": enables bin-by-bin comparison "S": enables statistical hypothesis test, where is possible "U": enables interval comparison "O": enables storage of the comparsion result |
Definition at line 84 of file CbmQaCheckerFileHandler.cxx.
References cbm::qa::checker::Chi2, CreateNestedDirectory(), cbm::qa::checker::Exact, fDatasetID, fFileID, fpInputFiles, fpObjDB, cbm::qa::checker::Ratio, ReOpenOutputFile(), and cbm::qa::checker::StronglyEqual.
|
private |
Closes and opens output file.
Definition at line 215 of file CbmQaCheckerFileHandler.cxx.
References fDatasetID, fFileID, fpObjDB, fpOutDir, and fpOutputFile.
Referenced by FileHandler(), and Process().
|
private |
Index of dataset.
Definition at line 81 of file CbmQaCheckerFileHandler.h.
Referenced by FileHandler(), GetDatasetID(), Process(), and ReOpenOutputFile().
|
private |
Index of file.
Definition at line 80 of file CbmQaCheckerFileHandler.h.
Referenced by FileHandler(), GetFileID(), Process(), and ReOpenOutputFile().
|
private |
Pointer to input files array.
Definition at line 85 of file CbmQaCheckerFileHandler.h.
Referenced by FileHandler(), Process(), and ~FileHandler().
|
private |
Pointer to object database.
Definition at line 83 of file CbmQaCheckerFileHandler.h.
Referenced by FileHandler(), Process(), and ReOpenOutputFile().
|
private |
Pointer to output directory.
Definition at line 84 of file CbmQaCheckerFileHandler.h.
Referenced by CreateNestedDirectory(), FileHandler(), and ReOpenOutputFile().
|
private |
Pointer to output file.
Definition at line 86 of file CbmQaCheckerFileHandler.h.
Referenced by ReOpenOutputFile(), and ~FileHandler().