10#ifndef UniRunGEOMETRY_H
11#define UniRunGEOMETRY_H 1
28 unsigned char* blob_root_geometry;
30 Long_t sz_root_geometry;
58 unsigned char* tmp_root_geometry =
new unsigned char[sz_root_geometry];
59 memcpy(tmp_root_geometry, blob_root_geometry, sz_root_geometry);
60 return tmp_root_geometry;
int GetGeometryId()
get geometry id of the current run geometry
int SetRootGeometry(unsigned char *root_geometry, Long_t size_root_geometry)
set root geometry of the current run geometry
virtual ~UniRunGeometry()
static TObjArray * GetAll()
get all run geometries
static int DeleteRunGeometry(int geometry_id)
delete run geometry from the database
static UniRunGeometry * CreateRunGeometry(int geometry_id, unsigned char *root_geometry, Long_t size_root_geometry)
static UniRunGeometry * GetRunGeometry(int geometry_id)
get run geometry from the database
static UniRunGeometry * CreateRunGeometry(unsigned char *root_geometry, Long_t size_root_geometry)
add new run geometry to the database
static int CheckRunGeometryExists(int geometry_id)
check run geometry exists in the database: 1- true, 0 - false, <0 - database operation error
unsigned char * GetRootGeometry()
get root geometry of the current run geometry
Long_t GetRootGeometrySize()
get size of root geometry of the current run geometry
ClassDef(UniRunGeometry, 1)
static int PrintAll()
print all run geometrys
void Print()
print information about current run geometry