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);
171 static TObjArray*
GetRawFiles(
int period_number,
int run_number,
int start_event,
int end_event,
bool strict_compare =
true);
static int CheckRawFileExists(int period_number, int run_number, int start_event, int end_event, bool strict_compare=false)
int64_t GetFileSize()
get file size of the current raw file
int GetEventCount()
get event count of the current raw file
static TString CalculateFileHash(TString file_path)
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
static int PrintAll()
print all raw files
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
static int CheckRawFileExists(int period_number, int run_number, int start_event)
int SetFileHash(TString *file_hash)
set file hash of the current raw file
static int DeleteRawFile(TString file_path)
delete raw file from the database
static UniRawFile * GetRawFile(TString file_path)
get raw file from the database
TString * GetFileHash()
get file hash of the current raw file
int SetRunNumber(int run_number)
set run number of the current raw file
static TObjArray * GetRawFiles(int period_number, int run_number)
int SetEventCount(int event_count)
set event count of the current raw file
static int CheckRawFileExists(int file_id)
check raw file exists in the database: 1- true, 0 - false, <0 - database operation error
int SetStartDatetime(TDatime start_datetime)
set start datetime of the current raw file
static int CheckRawFileExists(TString file_path)
check raw file exists in the database: 1- true, 0 - false, <0 - database operation error
int SetStartEvent(int start_event)
set start event of the current raw file
static int DeleteRawFile(int file_id)
delete raw file from the database
static UniRawFile * GetRawFile(int file_id)
get raw file from the database
TDatime GetEndDatetime()
get end datetime of the current raw file
int SetEndEvent(int end_event)
set end event of the current raw file
int GetFileId()
get file id 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
int SetFilePath(TString file_path)
set file path of the current raw file
static TObjArray * GetRawFiles(int period_number, int run_number, int start_event, int end_event, bool strict_compare=true)
int GetEndEvent()
get end event 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
static TObjArray * GetRawFiles(TString path_part)
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