10#ifndef UniSimulationFile_H
11#define UniSimulationFile_H 1
#define ClassDef(name, id)
UniSimulationFile.h Class for the table: simulation_file.
int SetEnergy(double *energy)
set energy of the current simulation file
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)
int64_t * GetFileSize()
get file size of the current simulation file
void Print()
print information about current simulation file
int SetEventCount(int *event_count)
set event count of the current simulation file
int SetFileHash(TString *file_hash)
set file hash of the current simulation file
int SetCentrality(TString centrality)
set centrality of the current simulation file
static int PrintAll()
print all simulation files
static UniSimulationFile * GetSimulationFile(int file_id)
get simulation file from the database
TString GetBeamParticle()
get beam particle of the current simulation file
TString str_centrality
centrality
int * GetEventCount()
get event count of the current simulation file
static TObjArray * Search(UniSearchCondition &search_condition)
get simulation files corresponding to the specified single condition and set owner for search_conditi...
TString GetFilePath()
get file path of the current simulation file
int64_t * i64_file_size
file size
TString str_generator_name
generator name
static int CheckSimulationFileExists(TString file_path)
check simulation file exists in the database: 1- true, 0 - false, <0 - database operation error
static int CheckSimulationFileExists(int file_id)
check simulation file exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteSimulationFile(TString file_path)
delete simulation file from the database
TString GetGeneratorName()
get generator name of the current simulation file
static int DeleteSimulationFile(int file_id)
delete simulation file from the database
int GetFileType()
get file type of the current simulation file
static TObjArray * GetSimulationFiles()
get array of all UniSimulationFile-s from the database
int SetFileType(int file_type)
set file type of the current simulation file
static UniSimulationFile * GetSimulationFile(TString file_path)
get simulation file from the database
static TObjArray * Search(TObjArray &search_conditions)
get simulation files corresponding to the specified (vector) conditions and set owner for search_cond...
virtual ~UniSimulationFile()
int * i_event_count
event count
int SetFileDesc(TString *file_desc)
set file desc of the current simulation file
TString str_file_path
file path
TString * str_file_desc
file desc
TString * str_file_hash
file hash
TString GetTargetParticle()
get target particle of the current simulation file
double * GetEnergy()
get energy of the current simulation file
int SetBeamParticle(TString beam_particle)
set beam particle of the current simulation file
TString str_beam_particle
beam particle
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
TString GetCentrality()
get centrality of the current simulation file
UniConnection * connectionDB
connection to the database
TString str_target_particle
target particle
TString * GetFileDesc()
get file desc of the current simulation file
int SetGeneratorName(TString generator_name)
set generator name of the current simulation file
int SetFilePath(TString file_path)
set file path of the current simulation file
int SetTargetParticle(TString target_particle)
set target particle of the current simulation file
int GetFileId()
get file id of the current simulation file
TString * GetFileHash()
get file hash of the current simulation file
int SetFileSize(int64_t *file_size)
set file size of the current simulation file