11#define UniDetector_H 1
25 TString str_detector_name;
27 TString* str_detector_desc;
55 if (str_detector_desc ==
nullptr)
58 return new TString(*str_detector_desc);
void Print()
print information about current detector
int SetDetectorName(TString detector_name)
set detector name of the current detector
TString GetDetectorName()
get detector name of the current detector
static int CheckDetectorExists(TString detector_name)
check detector exists in the database: 1- true, 0 - false, <0 - database operation error
static int PrintAll()
print all detectors
static int DeleteDetector(TString detector_name)
delete detector from the database
static UniDetector * CreateDetector(TString detector_name, TString *detector_desc)
add new detector to the database
TString * GetDetectorDesc()
get detector description of the current detector
static UniDetector * GetDetector(TString detector_name)
get detector from the database
int SetDetectorDesc(TString *detector_desc)
set detector description of the current detector