BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
UniRawFile Class Reference

/home/soul/bmnroot/database/uni_db1/UniRawFile.h Class for the table: raw_file More...

#include <UniRawFile.h>

Collaboration diagram for UniRawFile:

Public Member Functions

virtual ~UniRawFile ()
int GetFileId ()
 get file id of the current raw file
int GetPeriodNumber ()
 get period number of the current raw file
int GetRunNumber ()
 get run number of the current raw file
int GetStartEvent ()
 get start event of the current raw file
int GetEndEvent ()
 get end event of the current raw file
TDatime GetStartDatetime ()
 get start datetime of the current raw file
TDatime GetEndDatetime ()
 get end datetime of the current raw file
TString GetFilePath ()
 get file path of the current raw file
int GetEventCount ()
 get event count of the current raw file
int64_t GetFileSize ()
 get file size of the current raw file
TString * GetFileHash ()
 get file hash of the current raw file
int SetPeriodNumber (int period_number)
 set period number of the current raw file
int SetRunNumber (int run_number)
 set run number of the current raw file
int SetStartEvent (int start_event)
 set start event of the current raw file
int SetEndEvent (int end_event)
 set end event of the current raw file
int SetStartDatetime (TDatime start_datetime)
 set start datetime of the current raw file
int SetEndDatetime (TDatime end_datetime)
 set end datetime of the current raw file
int SetFilePath (TString file_path)
 set file path of the current raw file
int SetEventCount (int event_count)
 set event count of the current raw file
int SetFileSize (int64_t file_size)
 set file size of the current raw file
int SetFileHash (TString *file_hash)
 set file hash of the current raw file
void Print ()
 print information about current raw file
virtual ~UniRawFile ()
int GetFileId ()
 get file id of the current raw file
int GetPeriodNumber ()
 get period number of the current raw file
int GetRunNumber ()
 get run number of the current raw file
int GetStartEvent ()
 get start event of the current raw file
int GetEndEvent ()
 get end event of the current raw file
TDatime GetStartDatetime ()
 get start datetime of the current raw file
TDatime GetEndDatetime ()
 get end datetime of the current raw file
TString GetFilePath ()
 get file path of the current raw file
int GetEventCount ()
 get event count of the current raw file
int64_t GetFileSize ()
 get file size of the current raw file
TString * GetFileHash ()
 get file hash of the current raw file
int SetPeriodNumber (int period_number)
 set period number of the current raw file
int SetRunNumber (int run_number)
 set run number of the current raw file
int SetStartEvent (int start_event)
 set start event of the current raw file
int SetEndEvent (int end_event)
 set end event of the current raw file
int SetStartDatetime (TDatime start_datetime)
 set start datetime of the current raw file
int SetEndDatetime (TDatime end_datetime)
 set end datetime of the current raw file
int SetFilePath (TString file_path)
 set file path of the current raw file
int SetEventCount (int event_count)
 set event count of the current raw file
int SetFileSize (int64_t file_size)
 set file size of the current raw file
int SetFileHash (TString *file_hash)
 set file hash of the current raw file
void Print ()
 print information about current raw file

Static Public Member Functions

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 UniRawFile * GetRawFile (int file_id)
 get raw file from the database
static UniRawFile * GetRawFile (TString file_path)
 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
static int CheckRawFileExists (TString file_path)
 check raw file exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteRawFile (int file_id)
 delete raw file from the database
static int DeleteRawFile (TString file_path)
 delete raw file from the database
static int PrintAll ()
 print all raw files
static int CheckRawFileExists (int period_number, int run_number, int start_event, int end_event, bool strict_compare=false)
 check raw file exists in the database for the given period_number:run_number and start_event-end_event values returns 1 - true, 0 - false, <0 - database operation error
static int CheckRawFileExists (int period_number, int run_number, int start_event)
 check that raw file exists in the database for the given period_number:run_number and start_event value returns maximum 'end_event' value, 0 - not exists, <0 - database operation error
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 TObjArray * GetRawFiles (int period_number, int run_number)
 get array of raw files (UniRawFile*) corresponding to the period:run number ordered by start_event ascending return nullptr if an error occured)
static TObjArray * GetRawFiles (int period_number, int run_number, int start_event, int end_event, bool strict_compare=true)
 get array of raw files (UniRawFile*) corresponding to the period_number:run_number and start_event - end_event ordered by file_id descending returns nullptr if an error occured
static TObjArray * GetRawFiles (TString path_part)
 get array of raw files (UniRawFile*) corresponding to a part of the file path, e.g.
static TString CalculateFileHash (TString file_path)
 calculate and return (in hex string format) cheсksum for a given file use Adler32 algorithm if zlib library is found or use MD5 algorithm if zlib library is not found
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 UniRawFile * GetRawFile (int file_id)
 get raw file from the database
static UniRawFile * GetRawFile (TString file_path)
 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
static int CheckRawFileExists (TString file_path)
 check raw file exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteRawFile (int file_id)
 delete raw file from the database
static int DeleteRawFile (TString file_path)
 delete raw file from the database
static int PrintAll ()
 print all raw files
static int CheckRawFileExists (int period_number, int run_number, int start_event, int end_event, bool strict_compare=false)
 check raw file exists in the database for the given period_number:run_number and start_event-end_event values returns 1 - true, 0 - false, <0 - database operation error
static int CheckRawFileExists (int period_number, int run_number, int start_event)
 check that raw file exists in the database for the given period_number:run_number and start_event value returns maximum 'end_event' value, 0 - not exists, <0 - database operation error
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 TObjArray * GetRawFiles (int period_number, int run_number)
 get array of raw files (UniRawFile*) corresponding to the period:run number ordered by start_event ascending return nullptr if an error occured)
static TObjArray * GetRawFiles (int period_number, int run_number, int start_event, int end_event, bool strict_compare=true)
 get array of raw files (UniRawFile*) corresponding to the period_number:run_number and start_event - end_event ordered by file_id descending returns nullptr if an error occured
static TObjArray * GetRawFiles (TString path_part)
 get array of raw files (UniRawFile*) corresponding to a part of the file path, e.g.
static TString CalculateFileHash (TString file_path)
 calculate and return (in hex string format) cheсksum for a given file use Adler32 algorithm if zlib library is found or use MD5 algorithm if zlib library is not found

Private Member Functions

 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)
 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)

Private Attributes

UniConnection * connectionDB
 connection to the database
int i_file_id
 file id
int i_period_number
 period number
int i_run_number
 run number
int i_start_event
 start event
int i_end_event
 end event
TDatime ts_start_datetime
 start datetime
TDatime ts_end_datetime
 end datetime
TString str_file_path
 file path
int i_event_count
 event count
int64_t i64_file_size
 file size
TString * str_file_hash
 file hash

Detailed Description

Definition at line 18 of file UniRawFile.h.

Constructor & Destructor Documentation

◆ UniRawFile() [1/2]

UniRawFile::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 )
private

Definition at line 24 of file UniRawFile.cxx.

References connectionDB, i64_file_size, i_end_event, i_event_count, i_file_id, i_period_number, i_run_number, i_start_event, str_file_hash, str_file_path, ts_end_datetime, and ts_start_datetime.

Referenced by CalculateFileHash(), CreateRawFile(), GetRawFile(), GetRawFile(), GetRawFiles(), GetRawFiles(), and GetRawFiles().

Here is the caller graph for this function:

◆ ~UniRawFile() [1/2]

UniRawFile::~UniRawFile ( )
virtual

Definition at line 53 of file UniRawFile.cxx.

References connectionDB, and str_file_hash.

◆ UniRawFile() [2/2]

UniRawFile::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 )
private

◆ ~UniRawFile() [2/2]

virtual UniRawFile::~UniRawFile ( )
virtual

Member Function Documentation

◆ CalculateFileHash() [1/2]

TString UniRawFile::CalculateFileHash ( TString file_path)
static

Definition at line 1259 of file UniRawFile.cxx.

References TMD5::AsString(), TString::Data(), and TMD5::FileChecksum().

Referenced by BmnRawSource::ConvertRawToRoot(), write_checksum_db(), write_raw_info(), and write_sim_checksum_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CalculateFileHash() [2/2]

TString UniRawFile::CalculateFileHash ( TString file_path)
static

References UniRawFile().

Here is the call graph for this function:

◆ CheckRawFileExists() [1/8]

int UniRawFile::CheckRawFileExists ( int file_id)
static

Definition at line 305 of file UniRawFile.cxx.

References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Referenced by BmnRawSource::ConvertRawToRoot().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckRawFileExists() [2/8]

int UniRawFile::CheckRawFileExists ( int file_id)
static

◆ CheckRawFileExists() [3/8]

int UniRawFile::CheckRawFileExists ( int period_number,
int run_number,
int start_event )
static

Definition at line 911 of file UniRawFile.cxx.

References TString::Format(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), i_end_event, TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ CheckRawFileExists() [4/8]

int UniRawFile::CheckRawFileExists ( int period_number,
int run_number,
int start_event )
static

◆ CheckRawFileExists() [5/8]

int UniRawFile::CheckRawFileExists ( int period_number,
int run_number,
int start_event,
int end_event,
bool strict_compare = false )
static

Definition at line 854 of file UniRawFile.cxx.

References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ CheckRawFileExists() [6/8]

int UniRawFile::CheckRawFileExists ( int period_number,
int run_number,
int start_event,
int end_event,
bool strict_compare = false )
static

◆ CheckRawFileExists() [7/8]

int UniRawFile::CheckRawFileExists ( TString file_path)
static

Definition at line 345 of file UniRawFile.cxx.

References TString::Data(), TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ CheckRawFileExists() [8/8]

int UniRawFile::CheckRawFileExists ( TString file_path)
static

◆ CreateRawFile() [1/2]

UniRawFile * 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 )
static

Definition at line 62 of file UniRawFile.cxx.

References UniRawFile(), TString::Format(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetDatime(), TSQLStatement::SetInt(), TSQLStatement::SetLong64(), TSQLStatement::SetNull(), TSQLStatement::SetString(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Referenced by BmnRawSource::ConvertRawToRoot().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateRawFile() [2/2]

UniRawFile * 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 )
static

References UniRawFile().

Here is the call graph for this function:

◆ DeleteRawFile() [1/4]

int UniRawFile::DeleteRawFile ( int file_id)
static

Definition at line 385 of file UniRawFile.cxx.

References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Referenced by remove_raw_files().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeleteRawFile() [2/4]

int UniRawFile::DeleteRawFile ( int file_id)
static

◆ DeleteRawFile() [3/4]

int UniRawFile::DeleteRawFile ( TString file_path)
static

Definition at line 415 of file UniRawFile.cxx.

References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetString(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ DeleteRawFile() [4/4]

int UniRawFile::DeleteRawFile ( TString file_path)
static

◆ GetEndDatetime() [1/2]

TDatime UniRawFile::GetEndDatetime ( )
inline

Definition at line 108 of file UniRawFile.h.

References ts_end_datetime.

Referenced by check_event_and_time(), and show_raw_stats().

Here is the caller graph for this function:

◆ GetEndDatetime() [2/2]

TDatime UniRawFile::GetEndDatetime ( )
inline

Definition at line 108 of file UniRawFile.h.

References ts_end_datetime.

◆ GetEndEvent() [1/2]

int UniRawFile::GetEndEvent ( )
inline

Definition at line 104 of file UniRawFile.h.

References i_end_event.

Referenced by check_event_and_time(), and BmnRawSource::ConvertRawToRoot().

Here is the caller graph for this function:

◆ GetEndEvent() [2/2]

int UniRawFile::GetEndEvent ( )
inline

Definition at line 104 of file UniRawFile.h.

References i_end_event.

◆ GetEventCount() [1/2]

int UniRawFile::GetEventCount ( )
inline

Definition at line 112 of file UniRawFile.h.

References i_event_count.

Referenced by check_event_and_time(), and show_raw_stats().

Here is the caller graph for this function:

◆ GetEventCount() [2/2]

int UniRawFile::GetEventCount ( )
inline

Definition at line 112 of file UniRawFile.h.

References i_event_count.

◆ GetFileHash() [1/2]

TString * UniRawFile::GetFileHash ( )
inline

Definition at line 116 of file UniRawFile.h.

References str_file_hash.

◆ GetFileHash() [2/2]

TString * UniRawFile::GetFileHash ( )
inline

Definition at line 116 of file UniRawFile.h.

References str_file_hash.

◆ GetFileId() [1/2]

int UniRawFile::GetFileId ( )
inline

Definition at line 96 of file UniRawFile.h.

References i_file_id.

Referenced by remove_raw_files().

Here is the caller graph for this function:

◆ GetFileId() [2/2]

int UniRawFile::GetFileId ( )
inline

Definition at line 96 of file UniRawFile.h.

References i_file_id.

◆ GetFilePath() [1/2]

TString UniRawFile::GetFilePath ( )
inline

Definition at line 110 of file UniRawFile.h.

References str_file_path.

Referenced by check_db_paths_exist(), remove_raw_files(), BmnMetadataDecoder::SetDigiDirectory(), and show_raw_stats().

Here is the caller graph for this function:

◆ GetFilePath() [2/2]

TString UniRawFile::GetFilePath ( )
inline

Definition at line 110 of file UniRawFile.h.

References str_file_path.

◆ GetFileSize() [1/2]

int64_t UniRawFile::GetFileSize ( )
inline

Definition at line 114 of file UniRawFile.h.

References i64_file_size.

Referenced by show_raw_stats().

Here is the caller graph for this function:

◆ GetFileSize() [2/2]

int64_t UniRawFile::GetFileSize ( )
inline

Definition at line 114 of file UniRawFile.h.

References i64_file_size.

◆ GetPeriodNumber() [1/2]

int UniRawFile::GetPeriodNumber ( )
inline

Definition at line 98 of file UniRawFile.h.

References i_period_number.

Referenced by remove_raw_files().

Here is the caller graph for this function:

◆ GetPeriodNumber() [2/2]

int UniRawFile::GetPeriodNumber ( )
inline

Definition at line 98 of file UniRawFile.h.

References i_period_number.

◆ GetRawFile() [1/4]

UniRawFile * UniRawFile::GetRawFile ( int file_id)
static

◆ GetRawFile() [2/4]

UniRawFile * UniRawFile::GetRawFile ( int file_id)
static

References UniRawFile().

Here is the call graph for this function:

◆ GetRawFile() [3/4]

UniRawFile * UniRawFile::GetRawFile ( TString file_path)
static

◆ GetRawFile() [4/4]

UniRawFile * UniRawFile::GetRawFile ( TString file_path)
static

References UniRawFile().

Here is the call graph for this function:

◆ GetRawFiles() [1/6]

TObjArray * UniRawFile::GetRawFiles ( int period_number,
int run_number )
static

Definition at line 1006 of file UniRawFile.cxx.

References UniRawFile(), TObjArray::Add(), TString::Format(), TSQLStatement::GetDatime(), TSQLStatement::GetInt(), TSQLStatement::GetLong64(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Referenced by BmnRawSource::ConvertRawToRoot(), UniRun::GetRawFiles(), remove_odd_runs(), remove_raw_files(), remove_runs(), and write_raw_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetRawFiles() [2/6]

TObjArray * UniRawFile::GetRawFiles ( int period_number,
int run_number )
static

◆ GetRawFiles() [3/6]

TObjArray * UniRawFile::GetRawFiles ( int period_number,
int run_number,
int start_event,
int end_event,
bool strict_compare = true )
static

◆ GetRawFiles() [4/6]

TObjArray * UniRawFile::GetRawFiles ( int period_number,
int run_number,
int start_event,
int end_event,
bool strict_compare = true )
static

◆ GetRawFiles() [5/6]

TObjArray * UniRawFile::GetRawFiles ( TString path_part)
static

filename ordered by file_id descending return nullptr if an error occured)

Definition at line 1179 of file UniRawFile.cxx.

References UniRawFile(), TObjArray::Add(), TString::Data(), TString::Format(), TSQLStatement::GetDatime(), TSQLStatement::GetInt(), TSQLStatement::GetLong64(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ GetRawFiles() [6/6]

TObjArray * UniRawFile::GetRawFiles ( TString path_part)
static

filename ordered by file_id descending return nullptr if an error occured)

◆ GetRunNumber() [1/2]

int UniRawFile::GetRunNumber ( )
inline

Definition at line 100 of file UniRawFile.h.

References i_run_number.

Referenced by remove_raw_files().

Here is the caller graph for this function:

◆ GetRunNumber() [2/2]

int UniRawFile::GetRunNumber ( )
inline

Definition at line 100 of file UniRawFile.h.

References i_run_number.

◆ GetStartDatetime() [1/2]

TDatime UniRawFile::GetStartDatetime ( )
inline

Definition at line 106 of file UniRawFile.h.

References ts_start_datetime.

Referenced by check_event_and_time(), and show_raw_stats().

Here is the caller graph for this function:

◆ GetStartDatetime() [2/2]

TDatime UniRawFile::GetStartDatetime ( )
inline

Definition at line 106 of file UniRawFile.h.

References ts_start_datetime.

◆ GetStartEvent() [1/2]

int UniRawFile::GetStartEvent ( )
inline

Definition at line 102 of file UniRawFile.h.

References i_start_event.

Referenced by check_event_and_time(), and BmnRawSource::ConvertRawToRoot().

Here is the caller graph for this function:

◆ GetStartEvent() [2/2]

int UniRawFile::GetStartEvent ( )
inline

Definition at line 102 of file UniRawFile.h.

References i_start_event.

◆ GetSumEventCount() [1/2]

int UniRawFile::GetSumEventCount ( int period_number,
int run_number )
static

Definition at line 962 of file UniRawFile.cxx.

References TString::Format(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ GetSumEventCount() [2/2]

int UniRawFile::GetSumEventCount ( int period_number,
int run_number )
static

◆ Print() [1/2]

◆ Print() [2/2]

void UniRawFile::Print ( )

◆ PrintAll() [1/2]

int UniRawFile::PrintAll ( )
static

Definition at line 445 of file UniRawFile.cxx.

References TString::Format(), TSQLStatement::GetDatime(), TSQLStatement::GetInt(), TSQLStatement::GetLong64(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ PrintAll() [2/2]

int UniRawFile::PrintAll ( )
static

◆ SetEndDatetime() [1/2]

int UniRawFile::SetEndDatetime ( TDatime end_datetime)

Definition at line 668 of file UniRawFile.cxx.

References connectionDB, TString::Format(), i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetDatime(), TSQLStatement::SetInt(), TSQLServer::Statement(), and ts_end_datetime.

Referenced by write_raw_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetEndDatetime() [2/2]

int UniRawFile::SetEndDatetime ( TDatime end_datetime)

◆ SetEndEvent() [1/2]

int UniRawFile::SetEndEvent ( int end_event)

Definition at line 604 of file UniRawFile.cxx.

References connectionDB, TString::Format(), i_end_event, i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Referenced by write_raw_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetEndEvent() [2/2]

int UniRawFile::SetEndEvent ( int end_event)

◆ SetEventCount() [1/2]

int UniRawFile::SetEventCount ( int event_count)

Definition at line 732 of file UniRawFile.cxx.

References connectionDB, TString::Format(), i_event_count, i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Referenced by write_raw_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetEventCount() [2/2]

int UniRawFile::SetEventCount ( int event_count)

◆ SetFileHash() [1/2]

int UniRawFile::SetFileHash ( TString * file_hash)

Definition at line 796 of file UniRawFile.cxx.

References connectionDB, TString::Format(), i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_file_hash.

Referenced by write_raw_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetFileHash() [2/2]

int UniRawFile::SetFileHash ( TString * file_hash)

◆ SetFilePath() [1/2]

int UniRawFile::SetFilePath ( TString file_path)

Definition at line 700 of file UniRawFile.cxx.

References connectionDB, TString::Format(), i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_file_path.

Referenced by write_raw_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetFilePath() [2/2]

int UniRawFile::SetFilePath ( TString file_path)

◆ SetFileSize() [1/2]

int UniRawFile::SetFileSize ( int64_t file_size)

Definition at line 764 of file UniRawFile.cxx.

References connectionDB, TString::Format(), i64_file_size, i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetLong64(), and TSQLServer::Statement().

Referenced by write_raw_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetFileSize() [2/2]

int UniRawFile::SetFileSize ( int64_t file_size)

◆ SetPeriodNumber() [1/2]

int UniRawFile::SetPeriodNumber ( int period_number)

Definition at line 508 of file UniRawFile.cxx.

References connectionDB, TString::Format(), i_file_id, i_period_number, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ SetPeriodNumber() [2/2]

int UniRawFile::SetPeriodNumber ( int period_number)

◆ SetRunNumber() [1/2]

int UniRawFile::SetRunNumber ( int run_number)

Definition at line 540 of file UniRawFile.cxx.

References connectionDB, TString::Format(), i_file_id, i_run_number, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ SetRunNumber() [2/2]

int UniRawFile::SetRunNumber ( int run_number)

◆ SetStartDatetime() [1/2]

int UniRawFile::SetStartDatetime ( TDatime start_datetime)

Definition at line 636 of file UniRawFile.cxx.

References connectionDB, TString::Format(), i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetDatime(), TSQLStatement::SetInt(), TSQLServer::Statement(), and ts_start_datetime.

Referenced by write_raw_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetStartDatetime() [2/2]

int UniRawFile::SetStartDatetime ( TDatime start_datetime)

◆ SetStartEvent() [1/2]

int UniRawFile::SetStartEvent ( int start_event)

Definition at line 572 of file UniRawFile.cxx.

References connectionDB, TString::Format(), i_file_id, i_start_event, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Referenced by write_raw_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetStartEvent() [2/2]

int UniRawFile::SetStartEvent ( int start_event)

Member Data Documentation

◆ connectionDB

◆ i64_file_size

int64_t UniRawFile::i64_file_size
private

Definition at line 44 of file UniRawFile.h.

Referenced by UniRawFile(), GetFileSize(), Print(), and SetFileSize().

◆ i_end_event

int UniRawFile::i_end_event
private

Definition at line 34 of file UniRawFile.h.

Referenced by UniRawFile(), CheckRawFileExists(), GetEndEvent(), Print(), and SetEndEvent().

◆ i_event_count

int UniRawFile::i_event_count
private

Definition at line 42 of file UniRawFile.h.

Referenced by UniRawFile(), GetEventCount(), Print(), and SetEventCount().

◆ i_file_id

◆ i_period_number

int UniRawFile::i_period_number
private

Definition at line 28 of file UniRawFile.h.

Referenced by UniRawFile(), GetPeriodNumber(), Print(), and SetPeriodNumber().

◆ i_run_number

int UniRawFile::i_run_number
private

Definition at line 30 of file UniRawFile.h.

Referenced by UniRawFile(), GetRunNumber(), Print(), and SetRunNumber().

◆ i_start_event

int UniRawFile::i_start_event
private

Definition at line 32 of file UniRawFile.h.

Referenced by UniRawFile(), GetStartEvent(), Print(), and SetStartEvent().

◆ str_file_hash

TString * UniRawFile::str_file_hash
private

Definition at line 46 of file UniRawFile.h.

Referenced by UniRawFile(), ~UniRawFile(), GetFileHash(), Print(), and SetFileHash().

◆ str_file_path

TString UniRawFile::str_file_path
private

Definition at line 40 of file UniRawFile.h.

Referenced by UniRawFile(), GetFilePath(), Print(), and SetFilePath().

◆ ts_end_datetime

TDatime UniRawFile::ts_end_datetime
private

Definition at line 38 of file UniRawFile.h.

Referenced by UniRawFile(), GetEndDatetime(), Print(), and SetEndDatetime().

◆ ts_start_datetime

TDatime UniRawFile::ts_start_datetime
private

Definition at line 36 of file UniRawFile.h.

Referenced by UniRawFile(), GetStartDatetime(), Print(), and SetStartDatetime().


The documentation for this class was generated from the following files: