|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
UniSimulationFile.h Class for the table: simulation_file. More...
#include <UniSimulationFile.h>
Public Member Functions | |
| virtual | ~UniSimulationFile () |
| int | GetFileId () |
| get file id of the current simulation file | |
| TString | GetGeneratorName () |
| get generator name of the current simulation file | |
| int | GetFileType () |
| get file type of the current simulation file | |
| TString | GetFilePath () |
| get file path of the current simulation file | |
| TString | GetBeamParticle () |
| get beam particle of the current simulation file | |
| TString | GetTargetParticle () |
| get target particle of the current simulation file | |
| double * | GetEnergy () |
| get energy of the current simulation file | |
| TString | GetCentrality () |
| get centrality of the current simulation file | |
| int * | GetEventCount () |
| get event count of the current simulation file | |
| int64_t * | GetFileSize () |
| get file size of the current simulation file | |
| TString * | GetFileHash () |
| get file hash of the current simulation file | |
| TString * | GetFileDesc () |
| get file desc of the current simulation file | |
| int | SetGeneratorName (TString generator_name) |
| set generator name of the current simulation file | |
| int | SetFileType (int file_type) |
| set file type of the current simulation file | |
| int | SetFilePath (TString file_path) |
| set file path of the current simulation file | |
| int | SetBeamParticle (TString beam_particle) |
| set beam particle of the current simulation file | |
| int | SetTargetParticle (TString target_particle) |
| set target particle of the current simulation file | |
| int | SetEnergy (double *energy) |
| set energy of the current simulation file | |
| int | SetCentrality (TString centrality) |
| set centrality of the current simulation file | |
| int | SetEventCount (int *event_count) |
| set event count of the current simulation file | |
| int | SetFileSize (int64_t *file_size) |
| set file size of the current simulation file | |
| int | SetFileHash (TString *file_hash) |
| set file hash of the current simulation file | |
| int | SetFileDesc (TString *file_desc) |
| set file desc of the current simulation file | |
| void | Print () |
| print information about current simulation file | |
| virtual | ~UniSimulationFile () |
| int | GetFileId () |
| get file id of the current simulation file | |
| TString | GetGeneratorName () |
| get generator name of the current simulation file | |
| int | GetFileType () |
| get file type of the current simulation file | |
| TString | GetFilePath () |
| get file path of the current simulation file | |
| TString | GetBeamParticle () |
| get beam particle of the current simulation file | |
| TString | GetTargetParticle () |
| get target particle of the current simulation file | |
| double * | GetEnergy () |
| get energy of the current simulation file | |
| TString | GetCentrality () |
| get centrality of the current simulation file | |
| int * | GetEventCount () |
| get event count of the current simulation file | |
| int64_t * | GetFileSize () |
| get file size of the current simulation file | |
| TString * | GetFileHash () |
| get file hash of the current simulation file | |
| TString * | GetFileDesc () |
| get file desc of the current simulation file | |
| int | SetGeneratorName (TString generator_name) |
| set generator name of the current simulation file | |
| int | SetFileType (int file_type) |
| set file type of the current simulation file | |
| int | SetFilePath (TString file_path) |
| set file path of the current simulation file | |
| int | SetBeamParticle (TString beam_particle) |
| set beam particle of the current simulation file | |
| int | SetTargetParticle (TString target_particle) |
| set target particle of the current simulation file | |
| int | SetEnergy (double *energy) |
| set energy of the current simulation file | |
| int | SetCentrality (TString centrality) |
| set centrality of the current simulation file | |
| int | SetEventCount (int *event_count) |
| set event count of the current simulation file | |
| int | SetFileSize (int64_t *file_size) |
| set file size of the current simulation file | |
| int | SetFileHash (TString *file_hash) |
| set file hash of the current simulation file | |
| int | SetFileDesc (TString *file_desc) |
| set file desc of the current simulation file | |
| void | Print () |
| print information about current simulation file | |
Static Public Member Functions | |
| static UniSimulationFile * | CreateSimulationFile (TString generator_name, int file_type, TString file_path, TString beam_particle, TString target_particle, double *energy, TString centrality, int *event_count, int64_t *file_size, TString *file_hash, TString *file_desc) |
| add new simulation file to the database | |
| static UniSimulationFile * | GetSimulationFile (int file_id) |
| get simulation file from the database | |
| static UniSimulationFile * | GetSimulationFile (TString file_path) |
| get simulation file from the database | |
| static int | CheckSimulationFileExists (int file_id) |
| check simulation file exists in the database: 1- true, 0 - false, <0 - database operation error | |
| static int | CheckSimulationFileExists (TString file_path) |
| check simulation file exists in the database: 1- true, 0 - false, <0 - database operation error | |
| static int | DeleteSimulationFile (int file_id) |
| delete simulation file from the database | |
| static int | DeleteSimulationFile (TString file_path) |
| delete simulation file from the database | |
| static int | PrintAll () |
| print all simulation files | |
| static TObjArray * | GetSimulationFiles () |
| get array of all UniSimulationFile-s from the database | |
| static TObjArray * | Search (UniSearchCondition &search_condition) |
| get simulation files corresponding to the specified single condition and set owner for search_condition to kTRUE | |
| static TObjArray * | Search (TObjArray &search_conditions) |
| get simulation files corresponding to the specified (vector) conditions and set owner for search_condition to kTRUE | |
| static UniSimulationFile * | CreateSimulationFile (TString generator_name, int file_type, TString file_path, TString beam_particle, TString target_particle, double *energy, TString centrality, int *event_count, int64_t *file_size, TString *file_hash, TString *file_desc) |
| add new simulation file to the database | |
| static UniSimulationFile * | GetSimulationFile (int file_id) |
| get simulation file from the database | |
| static UniSimulationFile * | GetSimulationFile (TString file_path) |
| get simulation file from the database | |
| static int | CheckSimulationFileExists (int file_id) |
| check simulation file exists in the database: 1- true, 0 - false, <0 - database operation error | |
| static int | CheckSimulationFileExists (TString file_path) |
| check simulation file exists in the database: 1- true, 0 - false, <0 - database operation error | |
| static int | DeleteSimulationFile (int file_id) |
| delete simulation file from the database | |
| static int | DeleteSimulationFile (TString file_path) |
| delete simulation file from the database | |
| static int | PrintAll () |
| print all simulation files | |
| static TObjArray * | GetSimulationFiles () |
| get array of all UniSimulationFile-s from the database | |
| static TObjArray * | Search (UniSearchCondition &search_condition) |
| get simulation files corresponding to the specified single condition and set owner for search_condition to kTRUE | |
| static TObjArray * | Search (TObjArray &search_conditions) |
| get simulation files corresponding to the specified (vector) conditions and set owner for search_condition to kTRUE | |
Private Member Functions | |
| UniSimulationFile (UniConnection *db_connect, int file_id, TString generator_name, int file_type, TString file_path, TString beam_particle, TString target_particle, double *energy, TString centrality, int *event_count, int64_t *file_size, TString *file_hash, TString *file_desc) | |
| UniSimulationFile (UniConnection *db_connect, int file_id, TString generator_name, int file_type, TString file_path, TString beam_particle, TString target_particle, double *energy, TString centrality, int *event_count, int64_t *file_size, TString *file_hash, TString *file_desc) | |
Private Attributes | |
| UniConnection * | connectionDB |
| connection to the database | |
| int | i_file_id |
| file id | |
| TString | str_generator_name |
| generator name | |
| int | i_file_type |
| file type | |
| TString | str_file_path |
| file path | |
| TString | str_beam_particle |
| beam particle | |
| TString | str_target_particle |
| target particle | |
| double * | d_energy |
| energy | |
| TString | str_centrality |
| centrality | |
| int * | i_event_count |
| event count | |
| int64_t * | i64_file_size |
| file size | |
| TString * | str_file_hash |
| file hash | |
| TString * | str_file_desc |
| file desc | |
Definition at line 18 of file UniSimulationFile.h.
|
private |
Definition at line 17 of file UniSimulationFile.cxx.
References connectionDB, d_energy, i64_file_size, i_event_count, i_file_id, i_file_type, str_beam_particle, str_centrality, str_file_desc, str_file_hash, str_file_path, str_generator_name, and str_target_particle.
Referenced by CreateSimulationFile(), GetSimulationFile(), GetSimulationFile(), GetSimulationFiles(), and Search().
|
virtual |
Definition at line 48 of file UniSimulationFile.cxx.
References connectionDB, d_energy, i64_file_size, i_event_count, str_file_desc, and str_file_hash.
|
private |
|
virtual |
|
static |
Definition at line 365 of file UniSimulationFile.cxx.
References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
|
static |
Definition at line 405 of file UniSimulationFile.cxx.
References TString::Data(), TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
|
static |
Definition at line 65 of file UniSimulationFile.cxx.
References UniSimulationFile(), TString::Format(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetDouble(), TSQLStatement::SetInt(), TSQLStatement::SetLong64(), TSQLStatement::SetNull(), TSQLStatement::SetString(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
Definition at line 445 of file UniSimulationFile.cxx.
References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().
|
static |
|
static |
Definition at line 475 of file UniSimulationFile.cxx.
References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetString(), and TSQLServer::Statement().
|
static |
|
inline |
Definition at line 108 of file UniSimulationFile.h.
References str_beam_particle.
|
inline |
Definition at line 108 of file UniSimulationFile.h.
References str_beam_particle.
|
inline |
Definition at line 120 of file UniSimulationFile.h.
References str_centrality.
|
inline |
Definition at line 120 of file UniSimulationFile.h.
References str_centrality.
|
inline |
Definition at line 112 of file UniSimulationFile.h.
References d_energy.
|
inline |
Definition at line 112 of file UniSimulationFile.h.
References d_energy.
|
inline |
Definition at line 122 of file UniSimulationFile.h.
References i_event_count.
|
inline |
Definition at line 122 of file UniSimulationFile.h.
References i_event_count.
|
inline |
Definition at line 146 of file UniSimulationFile.h.
References str_file_desc.
|
inline |
Definition at line 146 of file UniSimulationFile.h.
References str_file_desc.
|
inline |
Definition at line 138 of file UniSimulationFile.h.
References str_file_hash.
Referenced by write_sim_checksum_db().
|
inline |
Definition at line 138 of file UniSimulationFile.h.
References str_file_hash.
|
inline |
Definition at line 100 of file UniSimulationFile.h.
References i_file_id.
|
inline |
Definition at line 100 of file UniSimulationFile.h.
References i_file_id.
|
inline |
Definition at line 106 of file UniSimulationFile.h.
References str_file_path.
Referenced by write_sim_checksum_db().
|
inline |
Definition at line 106 of file UniSimulationFile.h.
References str_file_path.
|
inline |
Definition at line 130 of file UniSimulationFile.h.
References i64_file_size.
|
inline |
Definition at line 130 of file UniSimulationFile.h.
References i64_file_size.
|
inline |
Definition at line 104 of file UniSimulationFile.h.
References i_file_type.
|
inline |
Definition at line 104 of file UniSimulationFile.h.
References i_file_type.
|
inline |
Definition at line 102 of file UniSimulationFile.h.
References str_generator_name.
|
inline |
Definition at line 102 of file UniSimulationFile.h.
References str_generator_name.
|
static |
Definition at line 197 of file UniSimulationFile.cxx.
References UniSimulationFile(), TString::Format(), TSQLStatement::GetDouble(), TSQLStatement::GetInt(), TSQLStatement::GetLong64(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
|
static |
Definition at line 281 of file UniSimulationFile.cxx.
References UniSimulationFile(), TString::Data(), TString::Format(), TSQLStatement::GetDouble(), TSQLStatement::GetInt(), TSQLStatement::GetLong64(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
|
static |
Definition at line 992 of file UniSimulationFile.cxx.
References UniSimulationFile(), TObjArray::Add(), TString::Format(), TSQLStatement::GetDouble(), TSQLStatement::GetInt(), TSQLStatement::GetLong64(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TCollection::SetOwner(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
Referenced by write_sim_checksum_db().
|
static |
|
inline |
Definition at line 110 of file UniSimulationFile.h.
References str_target_particle.
|
inline |
Definition at line 110 of file UniSimulationFile.h.
References str_target_particle.
| void UniSimulationFile::Print | ( | ) |
Definition at line 975 of file UniSimulationFile.cxx.
References d_energy, TString::Format(), i64_file_size, i_event_count, i_file_id, i_file_type, str_beam_particle, str_centrality, str_file_desc, str_file_hash, str_file_path, str_generator_name, and str_target_particle.
| void UniSimulationFile::Print | ( | ) |
|
static |
Definition at line 505 of file UniSimulationFile.cxx.
References TString::Format(), TSQLStatement::GetDouble(), TSQLStatement::GetInt(), TSQLStatement::GetLong64(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
Definition at line 1087 of file UniSimulationFile.cxx.
References UniSimulationFile(), TObjArray::Add(), TDatime::AsSQLString(), UniSearchCondition::columnBeamParticle, UniSearchCondition::columnCentrality, UniSearchCondition::columnEnergy, UniSearchCondition::columnEventCount, UniSearchCondition::columnFileDesc, UniSearchCondition::columnFilePath, UniSearchCondition::columnFileSize, UniSearchCondition::columnGeneratorName, UniSearchCondition::columnTargetParticle, UniSearchCondition::conditionEqual, UniSearchCondition::conditionGreater, UniSearchCondition::conditionGreaterOrEqual, UniSearchCondition::conditionLess, UniSearchCondition::conditionLessOrEqual, UniSearchCondition::conditionLike, UniSearchCondition::conditionNotEqual, UniSearchCondition::conditionNotNull, UniSearchCondition::conditionNull, TString::Data(), TString::Format(), UniSearchCondition::GetColumn(), UniSearchCondition::GetCondition(), UniSearchCondition::GetDatimeValue(), TSQLStatement::GetDouble(), UniSearchCondition::GetDoubleValue(), TSQLStatement::GetInt(), UniSearchCondition::GetIntValue(), TSQLStatement::GetLong64(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), UniSearchCondition::GetStringValue(), UniSearchCondition::GetUIntValue(), UniSearchCondition::GetValueType(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TCollection::SetOwner(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
Definition at line 1293 of file UniSimulationFile.cxx.
References TObjArray::Add(), and Search().
Referenced by Search().
|
static |
| int UniSimulationFile::SetBeamParticle | ( | TString | beam_particle | ) |
Definition at line 678 of file UniSimulationFile.cxx.
References connectionDB, TString::Format(), i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_beam_particle.
| int UniSimulationFile::SetBeamParticle | ( | TString | beam_particle | ) |
| int UniSimulationFile::SetCentrality | ( | TString | centrality | ) |
Definition at line 782 of file UniSimulationFile.cxx.
References connectionDB, TString::Format(), i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_centrality.
| int UniSimulationFile::SetCentrality | ( | TString | centrality | ) |
| int UniSimulationFile::SetEnergy | ( | double * | energy | ) |
Definition at line 742 of file UniSimulationFile.cxx.
References connectionDB, d_energy, TString::Format(), i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetDouble(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), and TSQLServer::Statement().
| int UniSimulationFile::SetEnergy | ( | double * | energy | ) |
| int UniSimulationFile::SetEventCount | ( | int * | event_count | ) |
Definition at line 814 of file UniSimulationFile.cxx.
References connectionDB, TString::Format(), i_event_count, i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), and TSQLServer::Statement().
| int UniSimulationFile::SetEventCount | ( | int * | event_count | ) |
| int UniSimulationFile::SetFileDesc | ( | TString * | file_desc | ) |
Definition at line 934 of file UniSimulationFile.cxx.
References connectionDB, TString::Format(), i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_file_desc.
| int UniSimulationFile::SetFileDesc | ( | TString * | file_desc | ) |
| int UniSimulationFile::SetFileHash | ( | TString * | file_hash | ) |
Definition at line 894 of file UniSimulationFile.cxx.
References connectionDB, TString::Format(), i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_file_hash.
| int UniSimulationFile::SetFileHash | ( | TString * | file_hash | ) |
| int UniSimulationFile::SetFilePath | ( | TString | file_path | ) |
Definition at line 646 of file UniSimulationFile.cxx.
References connectionDB, TString::Format(), i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_file_path.
| int UniSimulationFile::SetFilePath | ( | TString | file_path | ) |
| int UniSimulationFile::SetFileSize | ( | int64_t * | file_size | ) |
Definition at line 854 of file UniSimulationFile.cxx.
References connectionDB, TString::Format(), i64_file_size, i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetLong64(), TSQLStatement::SetNull(), and TSQLServer::Statement().
| int UniSimulationFile::SetFileSize | ( | int64_t * | file_size | ) |
| int UniSimulationFile::SetFileType | ( | int | file_type | ) |
Definition at line 614 of file UniSimulationFile.cxx.
References connectionDB, TString::Format(), i_file_id, i_file_type, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().
| int UniSimulationFile::SetFileType | ( | int | file_type | ) |
| int UniSimulationFile::SetGeneratorName | ( | TString | generator_name | ) |
Definition at line 582 of file UniSimulationFile.cxx.
References connectionDB, TString::Format(), i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_generator_name.
| int UniSimulationFile::SetGeneratorName | ( | TString | generator_name | ) |
| int UniSimulationFile::SetTargetParticle | ( | TString | target_particle | ) |
Definition at line 710 of file UniSimulationFile.cxx.
References connectionDB, TString::Format(), i_file_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_target_particle.
| int UniSimulationFile::SetTargetParticle | ( | TString | target_particle | ) |
|
private |
Definition at line 23 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), ~UniSimulationFile(), SetBeamParticle(), SetCentrality(), SetEnergy(), SetEventCount(), SetFileDesc(), SetFileHash(), SetFilePath(), SetFileSize(), SetFileType(), SetGeneratorName(), and SetTargetParticle().
|
private |
Definition at line 38 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), ~UniSimulationFile(), GetEnergy(), Print(), and SetEnergy().
|
private |
Definition at line 44 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), ~UniSimulationFile(), GetFileSize(), Print(), and SetFileSize().
|
private |
Definition at line 42 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), ~UniSimulationFile(), GetEventCount(), Print(), and SetEventCount().
|
private |
Definition at line 26 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), GetFileId(), Print(), SetBeamParticle(), SetCentrality(), SetEnergy(), SetEventCount(), SetFileDesc(), SetFileHash(), SetFilePath(), SetFileSize(), SetFileType(), SetGeneratorName(), and SetTargetParticle().
|
private |
Definition at line 30 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), GetFileType(), Print(), and SetFileType().
|
private |
Definition at line 34 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), GetBeamParticle(), Print(), and SetBeamParticle().
|
private |
Definition at line 40 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), GetCentrality(), Print(), and SetCentrality().
|
private |
Definition at line 48 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), ~UniSimulationFile(), GetFileDesc(), Print(), and SetFileDesc().
|
private |
Definition at line 46 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), ~UniSimulationFile(), GetFileHash(), Print(), and SetFileHash().
|
private |
Definition at line 32 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), GetFilePath(), Print(), and SetFilePath().
|
private |
Definition at line 28 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), GetGeneratorName(), Print(), and SetGeneratorName().
|
private |
Definition at line 36 of file UniSimulationFile.h.
Referenced by UniSimulationFile(), GetTargetParticle(), Print(), and SetTargetParticle().