10#ifndef UniSimulationFile_H
11#define UniSimulationFile_H 1
28 TString str_generator_name;
32 TString str_file_path;
34 TString str_beam_particle;
36 TString str_target_particle;
40 TString str_centrality;
44 int64_t* i64_file_size;
46 TString* str_file_hash;
48 TString* str_file_desc;
53 TString generator_name,
56 TString beam_particle,
57 TString target_particle,
75 TString beam_particle,
76 TString target_particle,
114 if (d_energy ==
nullptr)
117 return new double(*d_energy);
124 if (i_event_count ==
nullptr)
127 return new int(*i_event_count);
132 if (i64_file_size ==
nullptr)
135 return new int64_t(*i64_file_size);
140 if (str_file_hash ==
nullptr)
143 return new TString(*str_file_hash);
148 if (str_file_desc ==
nullptr)
151 return new TString(*str_file_desc);
189 static TObjArray*
Search(TObjArray& search_conditions);
int SetEnergy(double *energy)
set energy of the current simulation file
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
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
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
ClassDef(UniSimulationFile, 1)
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)
virtual ~UniSimulationFile()
int SetFileDesc(TString *file_desc)
set file desc of the current simulation file
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
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
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