157 bool strict_compare =
false);
179 bool strict_compare =
true);
#define ClassDef(name, id)
/home/soul/bmnroot/database/uni_db1/UniRawFile.h Class for the table: raw_file
int64_t GetFileSize()
get file size of the current raw file
int GetEventCount()
get event count of the current raw file
TString str_file_path
file path
static int PrintAll()
print all raw files
TString * str_file_hash
file hash
int i_start_event
start event
int SetFileSize(int64_t file_size)
set file size of the current raw file
TString GetFilePath()
get file path of the current raw file
void Print()
print information about current raw file
int SetEndDatetime(TDatime end_datetime)
set end datetime of the current raw file
int GetRunNumber()
get run number of the current raw file
UniConnection * connectionDB
connection to the database
TDatime GetStartDatetime()
get start datetime of the current raw file
int SetFileHash(TString *file_hash)
set file hash of the current raw file
static int GetSumEventCount(int period_number, int run_number)
get event count for a given run as a sum for all raw files: if <0 - database operation error
static UniRawFile * GetRawFile(int file_id)
get raw file from the database
static int CheckRawFileExists(int file_id)
check raw file exists in the database: 1- true, 0 - false, <0 - database operation error
TString * GetFileHash()
get file hash of the current raw file
int SetRunNumber(int run_number)
set run number of the current raw file
int SetEventCount(int event_count)
set event count of the current raw file
int SetStartDatetime(TDatime start_datetime)
set start datetime of the current raw file
int SetStartEvent(int start_event)
set start event of the current raw file
UniRawFile(UniConnection *db_connect, int file_id, int period_number, int run_number, int start_event, int end_event, TDatime start_datetime, TDatime end_datetime, TString file_path, int event_count, int64_t file_size, TString *file_hash)
TDatime GetEndDatetime()
get end datetime of the current raw file
static UniRawFile * CreateRawFile(int period_number, int run_number, int start_event, int end_event, TDatime start_datetime, TDatime end_datetime, TString file_path, int event_count, int64_t file_size, TString *file_hash)
add new raw file to the database
int SetEndEvent(int end_event)
set end event of the current raw file
int GetFileId()
get file id of the current raw file
int i_period_number
period number
int SetFilePath(TString file_path)
set file path of the current raw file
int i_event_count
event count
TDatime ts_end_datetime
end datetime
TDatime ts_start_datetime
start datetime
int GetEndEvent()
get end event of the current raw file
static TObjArray * GetRawFiles(int period_number, int run_number)
get array of raw files (UniRawFile*) corresponding to the period:run number ordered by start_event as...
static int DeleteRawFile(int file_id)
delete raw file from the database
int i_run_number
run number
static TString CalculateFileHash(TString file_path)
calculate and return (in hex string format) cheсksum for a given file use Adler32 algorithm if zlib l...
int GetPeriodNumber()
get period number of the current raw file
int GetStartEvent()
get start event of the current raw file
int64_t i64_file_size
file size
int SetPeriodNumber(int period_number)
set period number of the current raw file