|
BmnRoot
|
#include <UniRawFile.h>
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 | |
| ClassDef (UniRawFile, 1) | |
| 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 | |
| ClassDef (UniRawFile, 1) | |
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) |
| static int | CheckRawFileExists (int period_number, int run_number, int start_event) |
| 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) |
| static TObjArray * | GetRawFiles (int period_number, int run_number, int start_event, int end_event, bool strict_compare=true) |
| static TObjArray * | GetRawFiles (TString path_part) |
| static TString | CalculateFileHash (TString file_path) |
| 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) |
| static int | CheckRawFileExists (int period_number, int run_number, int start_event) |
| 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) |
| static TObjArray * | GetRawFiles (int period_number, int run_number, int start_event, int end_event, bool strict_compare=true) |
| static TObjArray * | GetRawFiles (TString path_part) |
| static TString | CalculateFileHash (TString file_path) |
/home/soul/bmnroot/database/uni_db1/UniRawFile.h Class for the table: raw_file
Definition at line 18 of file UniRawFile.h.
|
virtual |
Definition at line 53 of file UniRawFile.cxx.
|
virtual |
|
static |
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
Definition at line 1251 of file UniRawFile.cxx.
Referenced by BmnRawSource::ConvertRawToRoot().
|
static |
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 |
check raw file exists in the database: 1- true, 0 - false, <0 - database operation error
Definition at line 305 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
Referenced by BmnRawSource::ConvertRawToRoot().
|
static |
check raw file exists in the database: 1- true, 0 - false, <0 - database operation error
|
static |
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
Definition at line 907 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
|
static |
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 |
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
Definition at line 854 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
|
static |
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 |
check raw file exists in the database: 1- true, 0 - false, <0 - database operation error
Definition at line 345 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
|
static |
check raw file exists in the database: 1- true, 0 - false, <0 - database operation error
| UniRawFile::ClassDef | ( | UniRawFile | , |
| 1 | |||
| ) |
| UniRawFile::ClassDef | ( | UniRawFile | , |
| 1 | |||
| ) |
|
static |
add new raw file to the database
Definition at line 62 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
Referenced by BmnRawSource::ConvertRawToRoot().
|
static |
add new raw file to the database
|
static |
delete raw file from the database
Definition at line 385 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
|
static |
delete raw file from the database
|
static |
delete raw file from the database
Definition at line 415 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
|
static |
delete raw file from the database
|
inline |
get end datetime of the current raw file
Definition at line 108 of file UniRawFile.h.
|
inline |
get end datetime of the current raw file
Definition at line 108 of file UniRawFile.h.
|
inline |
get end event of the current raw file
Definition at line 104 of file UniRawFile.h.
Referenced by BmnRawSource::ConvertRawToRoot().
|
inline |
get end event of the current raw file
Definition at line 104 of file UniRawFile.h.
|
inline |
get event count of the current raw file
Definition at line 112 of file UniRawFile.h.
|
inline |
get event count of the current raw file
Definition at line 112 of file UniRawFile.h.
|
inline |
get file hash of the current raw file
Definition at line 116 of file UniRawFile.h.
|
inline |
get file hash of the current raw file
Definition at line 116 of file UniRawFile.h.
|
inline |
get file id of the current raw file
Definition at line 96 of file UniRawFile.h.
|
inline |
get file id of the current raw file
Definition at line 96 of file UniRawFile.h.
|
inline |
get file path of the current raw file
Definition at line 110 of file UniRawFile.h.
Referenced by BmnMetadataDecoder::SetDigiDirectory().
|
inline |
get file path of the current raw file
Definition at line 110 of file UniRawFile.h.
|
inline |
get file size of the current raw file
Definition at line 114 of file UniRawFile.h.
|
inline |
get file size of the current raw file
Definition at line 114 of file UniRawFile.h.
|
inline |
get period number of the current raw file
Definition at line 98 of file UniRawFile.h.
|
inline |
get period number of the current raw file
Definition at line 98 of file UniRawFile.h.
|
static |
get raw file from the database
Definition at line 165 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
|
static |
get raw file from the database
|
static |
get raw file from the database
Definition at line 235 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
|
static |
get raw file from the database
|
static |
get array of raw files (UniRawFile*) corresponding to the period:run number ordered by start_event ascending return nullptr if an error occured)
Definition at line 1002 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
Referenced by BmnRawSource::ConvertRawToRoot(), and UniRun::GetRawFiles().
|
static |
get array of raw files (UniRawFile*) corresponding to the period:run number ordered by start_event ascending return nullptr if an error occured)
|
static |
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
Definition at line 1080 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
|
static |
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 |
get array of raw files (UniRawFile*) corresponding to a part of the file path, e.g. filename ordered by file_id descending return nullptr if an error occured)
Definition at line 1173 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
|
static |
get array of raw files (UniRawFile*) corresponding to a part of the file path, e.g. filename ordered by file_id descending return nullptr if an error occured)
|
inline |
get run number of the current raw file
Definition at line 100 of file UniRawFile.h.
|
inline |
get run number of the current raw file
Definition at line 100 of file UniRawFile.h.
|
inline |
get start datetime of the current raw file
Definition at line 106 of file UniRawFile.h.
|
inline |
get start datetime of the current raw file
Definition at line 106 of file UniRawFile.h.
|
inline |
get start event of the current raw file
Definition at line 102 of file UniRawFile.h.
Referenced by BmnRawSource::ConvertRawToRoot().
|
inline |
get start event of the current raw file
Definition at line 102 of file UniRawFile.h.
|
static |
get event count for a given run as a sum for all raw files: if <0 - database operation error
Definition at line 958 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
|
static |
get event count for a given run as a sum for all raw files: if <0 - database operation error
| void UniRawFile::Print | ( | ) |
print information about current raw file
Definition at line 837 of file UniRawFile.cxx.
| void UniRawFile::Print | ( | ) |
print information about current raw file
|
static |
print all raw files
Definition at line 445 of file UniRawFile.cxx.
References UniConnection::GetSQLServer(), and UniConnection::Open().
|
static |
print all raw files
| int UniRawFile::SetEndDatetime | ( | TDatime | end_datetime | ) |
set end datetime of the current raw file
Definition at line 668 of file UniRawFile.cxx.
References UniConnection::GetSQLServer().
| int UniRawFile::SetEndDatetime | ( | TDatime | end_datetime | ) |
set end datetime of the current raw file
| int UniRawFile::SetEndEvent | ( | int | end_event | ) |
set end event of the current raw file
Definition at line 604 of file UniRawFile.cxx.
References UniConnection::GetSQLServer().
| int UniRawFile::SetEndEvent | ( | int | end_event | ) |
set end event of the current raw file
| int UniRawFile::SetEventCount | ( | int | event_count | ) |
set event count of the current raw file
Definition at line 732 of file UniRawFile.cxx.
References UniConnection::GetSQLServer().
| int UniRawFile::SetEventCount | ( | int | event_count | ) |
set event count of the current raw file
| int UniRawFile::SetFileHash | ( | TString * | file_hash | ) |
set file hash of the current raw file
Definition at line 796 of file UniRawFile.cxx.
References UniConnection::GetSQLServer().
| int UniRawFile::SetFileHash | ( | TString * | file_hash | ) |
set file hash of the current raw file
| int UniRawFile::SetFilePath | ( | TString | file_path | ) |
set file path of the current raw file
Definition at line 700 of file UniRawFile.cxx.
References UniConnection::GetSQLServer().
| int UniRawFile::SetFilePath | ( | TString | file_path | ) |
set file path of the current raw file
| int UniRawFile::SetFileSize | ( | int64_t | file_size | ) |
set file size of the current raw file
Definition at line 764 of file UniRawFile.cxx.
References UniConnection::GetSQLServer().
| int UniRawFile::SetFileSize | ( | int64_t | file_size | ) |
set file size of the current raw file
| int UniRawFile::SetPeriodNumber | ( | int | period_number | ) |
set period number of the current raw file
Definition at line 508 of file UniRawFile.cxx.
References UniConnection::GetSQLServer().
| int UniRawFile::SetPeriodNumber | ( | int | period_number | ) |
set period number of the current raw file
| int UniRawFile::SetRunNumber | ( | int | run_number | ) |
set run number of the current raw file
Definition at line 540 of file UniRawFile.cxx.
References UniConnection::GetSQLServer().
| int UniRawFile::SetRunNumber | ( | int | run_number | ) |
set run number of the current raw file
| int UniRawFile::SetStartDatetime | ( | TDatime | start_datetime | ) |
set start datetime of the current raw file
Definition at line 636 of file UniRawFile.cxx.
References UniConnection::GetSQLServer().
| int UniRawFile::SetStartDatetime | ( | TDatime | start_datetime | ) |
set start datetime of the current raw file
| int UniRawFile::SetStartEvent | ( | int | start_event | ) |
set start event of the current raw file
Definition at line 572 of file UniRawFile.cxx.
References UniConnection::GetSQLServer().
| int UniRawFile::SetStartEvent | ( | int | start_event | ) |
set start event of the current raw file