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< ECmpInference > | Process (Option_t *opt="") |
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 28 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 38 of file CbmQaCheckerFileHandler.cxx.
References fDatasetID, fFileID, fpInputFiles, fpObjDB, fpOutDir, and ReOpenOutputFile().
FileHandler::~FileHandler | ( | ) |
Destructor.
Definition at line 62 of file CbmQaCheckerFileHandler.cxx.
References fpInputFiles, and fpOutputFile.
|
delete |
Copy constructor.
|
delete |
Move constructor.
|
private |
Creates nested directory from a given path.
path | Path, parts of which are separated with slash |
Definition at line 73 of file CbmQaCheckerFileHandler.cxx.
References fpOutDir.
Referenced by Process().
|
inline |
Gets index of dataset.
Definition at line 53 of file CbmQaCheckerFileHandler.h.
References fDatasetID.
|
inline |
Gets index of file.
Definition at line 57 of file CbmQaCheckerFileHandler.h.
References fFileID.
|
delete |
Copy assignment operator.
|
delete |
Move assignment operator.
std::vector< ECmpInference > FileHandler::Process | ( | Option_t * | opt = "" | ) |
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 |
Definition at line 81 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 186 of file CbmQaCheckerFileHandler.cxx.
References fDatasetID, fFileID, fpObjDB, fpOutDir, and fpOutputFile.
Referenced by FileHandler(), and Process().
|
private |
Index of dataset.
Definition at line 78 of file CbmQaCheckerFileHandler.h.
Referenced by FileHandler(), GetDatasetID(), Process(), and ReOpenOutputFile().
|
private |
Index of file.
Definition at line 77 of file CbmQaCheckerFileHandler.h.
Referenced by FileHandler(), GetFileID(), Process(), and ReOpenOutputFile().
|
private |
Pointer to input files array.
Definition at line 82 of file CbmQaCheckerFileHandler.h.
Referenced by FileHandler(), Process(), and ~FileHandler().
|
private |
Pointer to object database.
Definition at line 80 of file CbmQaCheckerFileHandler.h.
Referenced by FileHandler(), Process(), and ReOpenOutputFile().
|
private |
Pointer to output directory.
Definition at line 81 of file CbmQaCheckerFileHandler.h.
Referenced by CreateNestedDirectory(), FileHandler(), and ReOpenOutputFile().
|
private |
Pointer to output file.
Definition at line 83 of file CbmQaCheckerFileHandler.h.
Referenced by ReOpenOutputFile(), and ~FileHandler().