BmnRoot
Loading...
Searching...
No Matches
UniSimulationFile Class Reference

#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
 
 ClassDef (UniSimulationFile, 1)
 
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
 
 ClassDef (UniSimulationFile, 1)
 

Static Public Member Functions

static UniSimulationFileCreateSimulationFile (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 UniSimulationFileGetSimulationFile (int file_id)
 get simulation file from the database
 
static UniSimulationFileGetSimulationFile (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)
 
static UniSimulationFileCreateSimulationFile (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 UniSimulationFileGetSimulationFile (int file_id)
 get simulation file from the database
 
static UniSimulationFileGetSimulationFile (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)
 

Detailed Description

UniSimulationFile.h Class for the table: simulation_file

Definition at line 18 of file UniSimulationFile.h.

Constructor & Destructor Documentation

◆ ~UniSimulationFile() [1/2]

UniSimulationFile::~UniSimulationFile ( )
virtual

Definition at line 48 of file UniSimulationFile.cxx.

◆ ~UniSimulationFile() [2/2]

virtual UniSimulationFile::~UniSimulationFile ( )
virtual

Member Function Documentation

◆ CheckSimulationFileExists() [1/4]

int UniSimulationFile::CheckSimulationFileExists ( int  file_id)
static

check simulation file exists in the database: 1- true, 0 - false, <0 - database operation error

Definition at line 365 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ CheckSimulationFileExists() [2/4]

static int UniSimulationFile::CheckSimulationFileExists ( int  file_id)
static

check simulation file exists in the database: 1- true, 0 - false, <0 - database operation error

◆ CheckSimulationFileExists() [3/4]

int UniSimulationFile::CheckSimulationFileExists ( TString  file_path)
static

check simulation file exists in the database: 1- true, 0 - false, <0 - database operation error

Definition at line 405 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ CheckSimulationFileExists() [4/4]

static int UniSimulationFile::CheckSimulationFileExists ( TString  file_path)
static

check simulation file exists in the database: 1- true, 0 - false, <0 - database operation error

◆ ClassDef() [1/2]

UniSimulationFile::ClassDef ( UniSimulationFile  ,
 
)

◆ ClassDef() [2/2]

UniSimulationFile::ClassDef ( UniSimulationFile  ,
 
)

◆ CreateSimulationFile() [1/2]

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

add new simulation file to the database

Definition at line 65 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ CreateSimulationFile() [2/2]

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

add new simulation file to the database

◆ DeleteSimulationFile() [1/4]

int UniSimulationFile::DeleteSimulationFile ( int  file_id)
static

delete simulation file from the database

Definition at line 445 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ DeleteSimulationFile() [2/4]

static int UniSimulationFile::DeleteSimulationFile ( int  file_id)
static

delete simulation file from the database

◆ DeleteSimulationFile() [3/4]

int UniSimulationFile::DeleteSimulationFile ( TString  file_path)
static

delete simulation file from the database

Definition at line 475 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ DeleteSimulationFile() [4/4]

static int UniSimulationFile::DeleteSimulationFile ( TString  file_path)
static

delete simulation file from the database

◆ GetBeamParticle() [1/2]

TString UniSimulationFile::GetBeamParticle ( )
inline

get beam particle of the current simulation file

Definition at line 108 of file UniSimulationFile.h.

◆ GetBeamParticle() [2/2]

TString UniSimulationFile::GetBeamParticle ( )
inline

get beam particle of the current simulation file

Definition at line 108 of file UniSimulationFile.h.

◆ GetCentrality() [1/2]

TString UniSimulationFile::GetCentrality ( )
inline

get centrality of the current simulation file

Definition at line 120 of file UniSimulationFile.h.

◆ GetCentrality() [2/2]

TString UniSimulationFile::GetCentrality ( )
inline

get centrality of the current simulation file

Definition at line 120 of file UniSimulationFile.h.

◆ GetEnergy() [1/2]

double * UniSimulationFile::GetEnergy ( )
inline

get energy of the current simulation file

Definition at line 112 of file UniSimulationFile.h.

◆ GetEnergy() [2/2]

double * UniSimulationFile::GetEnergy ( )
inline

get energy of the current simulation file

Definition at line 112 of file UniSimulationFile.h.

◆ GetEventCount() [1/2]

int * UniSimulationFile::GetEventCount ( )
inline

get event count of the current simulation file

Definition at line 122 of file UniSimulationFile.h.

◆ GetEventCount() [2/2]

int * UniSimulationFile::GetEventCount ( )
inline

get event count of the current simulation file

Definition at line 122 of file UniSimulationFile.h.

◆ GetFileDesc() [1/2]

TString * UniSimulationFile::GetFileDesc ( )
inline

get file desc of the current simulation file

Definition at line 146 of file UniSimulationFile.h.

◆ GetFileDesc() [2/2]

TString * UniSimulationFile::GetFileDesc ( )
inline

get file desc of the current simulation file

Definition at line 146 of file UniSimulationFile.h.

◆ GetFileHash() [1/2]

TString * UniSimulationFile::GetFileHash ( )
inline

get file hash of the current simulation file

Definition at line 138 of file UniSimulationFile.h.

◆ GetFileHash() [2/2]

TString * UniSimulationFile::GetFileHash ( )
inline

get file hash of the current simulation file

Definition at line 138 of file UniSimulationFile.h.

◆ GetFileId() [1/2]

int UniSimulationFile::GetFileId ( )
inline

get file id of the current simulation file

Definition at line 100 of file UniSimulationFile.h.

◆ GetFileId() [2/2]

int UniSimulationFile::GetFileId ( )
inline

get file id of the current simulation file

Definition at line 100 of file UniSimulationFile.h.

◆ GetFilePath() [1/2]

TString UniSimulationFile::GetFilePath ( )
inline

get file path of the current simulation file

Definition at line 106 of file UniSimulationFile.h.

◆ GetFilePath() [2/2]

TString UniSimulationFile::GetFilePath ( )
inline

get file path of the current simulation file

Definition at line 106 of file UniSimulationFile.h.

◆ GetFileSize() [1/2]

int64_t * UniSimulationFile::GetFileSize ( )
inline

get file size of the current simulation file

Definition at line 130 of file UniSimulationFile.h.

◆ GetFileSize() [2/2]

int64_t * UniSimulationFile::GetFileSize ( )
inline

get file size of the current simulation file

Definition at line 130 of file UniSimulationFile.h.

◆ GetFileType() [1/2]

int UniSimulationFile::GetFileType ( )
inline

get file type of the current simulation file

Definition at line 104 of file UniSimulationFile.h.

◆ GetFileType() [2/2]

int UniSimulationFile::GetFileType ( )
inline

get file type of the current simulation file

Definition at line 104 of file UniSimulationFile.h.

◆ GetGeneratorName() [1/2]

TString UniSimulationFile::GetGeneratorName ( )
inline

get generator name of the current simulation file

Definition at line 102 of file UniSimulationFile.h.

◆ GetGeneratorName() [2/2]

TString UniSimulationFile::GetGeneratorName ( )
inline

get generator name of the current simulation file

Definition at line 102 of file UniSimulationFile.h.

◆ GetSimulationFile() [1/4]

UniSimulationFile * UniSimulationFile::GetSimulationFile ( int  file_id)
static

get simulation file from the database

Definition at line 197 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ GetSimulationFile() [2/4]

static UniSimulationFile * UniSimulationFile::GetSimulationFile ( int  file_id)
static

get simulation file from the database

◆ GetSimulationFile() [3/4]

UniSimulationFile * UniSimulationFile::GetSimulationFile ( TString  file_path)
static

get simulation file from the database

Definition at line 281 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ GetSimulationFile() [4/4]

static UniSimulationFile * UniSimulationFile::GetSimulationFile ( TString  file_path)
static

get simulation file from the database

◆ GetSimulationFiles() [1/2]

TObjArray * UniSimulationFile::GetSimulationFiles ( )
static

get array of all UniSimulationFile-s from the database

Definition at line 992 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ GetSimulationFiles() [2/2]

static TObjArray * UniSimulationFile::GetSimulationFiles ( )
static

get array of all UniSimulationFile-s from the database

◆ GetTargetParticle() [1/2]

TString UniSimulationFile::GetTargetParticle ( )
inline

get target particle of the current simulation file

Definition at line 110 of file UniSimulationFile.h.

◆ GetTargetParticle() [2/2]

TString UniSimulationFile::GetTargetParticle ( )
inline

get target particle of the current simulation file

Definition at line 110 of file UniSimulationFile.h.

◆ Print() [1/2]

void UniSimulationFile::Print ( )

print information about current simulation file

Definition at line 975 of file UniSimulationFile.cxx.

◆ Print() [2/2]

void UniSimulationFile::Print ( )

print information about current simulation file

◆ PrintAll() [1/2]

int UniSimulationFile::PrintAll ( )
static

print all simulation files

Definition at line 505 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer(), and UniConnection::Open().

◆ PrintAll() [2/2]

static int UniSimulationFile::PrintAll ( )
static

print all simulation files

◆ Search() [1/4]

◆ Search() [2/4]

static TObjArray * UniSimulationFile::Search ( TObjArray &  search_conditions)
static

get simulation files corresponding to the specified (vector) conditions and set owner for search_condition to kTRUE

◆ Search() [3/4]

TObjArray * UniSimulationFile::Search ( UniSearchCondition search_condition)
static

get simulation files corresponding to the specified single condition and set owner for search_condition to kTRUE

Definition at line 1293 of file UniSimulationFile.cxx.

References Search().

Referenced by Search().

◆ Search() [4/4]

static TObjArray * UniSimulationFile::Search ( UniSearchCondition search_condition)
static

get simulation files corresponding to the specified single condition and set owner for search_condition to kTRUE

◆ SetBeamParticle() [1/2]

int UniSimulationFile::SetBeamParticle ( TString  beam_particle)

set beam particle of the current simulation file

Definition at line 678 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer().

◆ SetBeamParticle() [2/2]

int UniSimulationFile::SetBeamParticle ( TString  beam_particle)

set beam particle of the current simulation file

◆ SetCentrality() [1/2]

int UniSimulationFile::SetCentrality ( TString  centrality)

set centrality of the current simulation file

Definition at line 782 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer().

◆ SetCentrality() [2/2]

int UniSimulationFile::SetCentrality ( TString  centrality)

set centrality of the current simulation file

◆ SetEnergy() [1/2]

int UniSimulationFile::SetEnergy ( double *  energy)

set energy of the current simulation file

Definition at line 742 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer().

◆ SetEnergy() [2/2]

int UniSimulationFile::SetEnergy ( double *  energy)

set energy of the current simulation file

◆ SetEventCount() [1/2]

int UniSimulationFile::SetEventCount ( int *  event_count)

set event count of the current simulation file

Definition at line 814 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer().

◆ SetEventCount() [2/2]

int UniSimulationFile::SetEventCount ( int *  event_count)

set event count of the current simulation file

◆ SetFileDesc() [1/2]

int UniSimulationFile::SetFileDesc ( TString *  file_desc)

set file desc of the current simulation file

Definition at line 934 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer().

◆ SetFileDesc() [2/2]

int UniSimulationFile::SetFileDesc ( TString *  file_desc)

set file desc of the current simulation file

◆ SetFileHash() [1/2]

int UniSimulationFile::SetFileHash ( TString *  file_hash)

set file hash of the current simulation file

Definition at line 894 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer().

◆ SetFileHash() [2/2]

int UniSimulationFile::SetFileHash ( TString *  file_hash)

set file hash of the current simulation file

◆ SetFilePath() [1/2]

int UniSimulationFile::SetFilePath ( TString  file_path)

set file path of the current simulation file

Definition at line 646 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer().

◆ SetFilePath() [2/2]

int UniSimulationFile::SetFilePath ( TString  file_path)

set file path of the current simulation file

◆ SetFileSize() [1/2]

int UniSimulationFile::SetFileSize ( int64_t *  file_size)

set file size of the current simulation file

Definition at line 854 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer().

◆ SetFileSize() [2/2]

int UniSimulationFile::SetFileSize ( int64_t *  file_size)

set file size of the current simulation file

◆ SetFileType() [1/2]

int UniSimulationFile::SetFileType ( int  file_type)

set file type of the current simulation file

Definition at line 614 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer().

◆ SetFileType() [2/2]

int UniSimulationFile::SetFileType ( int  file_type)

set file type of the current simulation file

◆ SetGeneratorName() [1/2]

int UniSimulationFile::SetGeneratorName ( TString  generator_name)

set generator name of the current simulation file

Definition at line 582 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer().

◆ SetGeneratorName() [2/2]

int UniSimulationFile::SetGeneratorName ( TString  generator_name)

set generator name of the current simulation file

◆ SetTargetParticle() [1/2]

int UniSimulationFile::SetTargetParticle ( TString  target_particle)

set target particle of the current simulation file

Definition at line 710 of file UniSimulationFile.cxx.

References UniConnection::GetSQLServer().

◆ SetTargetParticle() [2/2]

int UniSimulationFile::SetTargetParticle ( TString  target_particle)

set target particle of the current simulation file


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