36 TDatime ts_start_datetime;
38 TDatime ts_end_datetime;
40 TString str_file_path;
44 int64_t i64_file_size;
46 TString* str_file_hash;
55 TDatime start_datetime,
73 TDatime start_datetime,
118 if (str_file_hash ==
nullptr)
121 return new TString(*str_file_hash);
153 static int CheckRawFileExists(
int period_number,
int run_number,
int start_event,
int end_event,
bool strict_compare =
false);
166 static TObjArray*
GetRawFiles(
int period_number,
int run_number);
171 static TObjArray*
GetRawFiles(
int period_number,
int run_number,
int start_event,
int end_event,
bool strict_compare =
true);
int64_t GetFileSize()
get file size of the current raw file
int GetEventCount()
get event count of the current raw file
static int PrintAll()
print all raw files
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
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
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 SetFilePath(TString file_path)
set file path of the current raw file
int GetEndEvent()
get end event of the current raw file
static TObjArray * GetRawFiles(int period_number, int run_number)
static int DeleteRawFile(int file_id)
delete raw file from the database
static TString CalculateFileHash(TString file_path)
int GetPeriodNumber()
get period number of the current raw file
int GetStartEvent()
get start event of the current raw file
int SetPeriodNumber(int period_number)
set period number of the current raw file