60 double* field_voltage,
79 double* field_voltage,
83 static UniRun*
GetRun(
int period_number,
int run_number);
87 static int DeleteRun(
int period_number,
int run_number);
206 static UniRun*
GetRun(
int& period_number,
int& run_number,
bool usePrevRunIfMissing);
#define ClassDef(name, id)
UniRun.h Class for the table: run_.
double * GetEnergy()
get energy of the current run
static int PrintAll()
print all runs
void Print()
print information about current run
int GetRunType()
get run type of the current run
int i_run_number
run number
static UniRun * GetRun(int period_number, int run_number)
get run from the database
int SetEndDatetime(TDatime *end_datetime)
set end datetime of the current run
int GetRunNumber()
get run number of the current run
static TObjArray * Search(UniSearchCondition &search_condition)
get runs corresponding to the specified single condition and set owner for search_condition to kTRUE
int SetTargetParticle(TString target_particle)
set target particle of the current run
TObjArray * GetRawFiles()
get array of raw files (UniRawFile*) corresponding to the run (return nullptr if an error occured)
int GetPeriodNumber()
get period number of the current run
TString str_target_particle
target particle
TDatime * GetEndDatetime()
get end datetime of the current run
TDatime ts_start_datetime
start datetime
int SetRunType(int run_type)
set run type of the current run
TString GetBeamParticle()
get beam particle of the current run
static int DeleteRun(int period_number, int run_number)
delete run from the database
TDatime GetStartDatetime()
get start datetime of the current run
double * d_field_voltage
field voltage
double * GetFieldVoltage()
get field voltage of the current run
static int GetRunNumbers(UniqueRunNumber *&run_numbers, int start_period, int start_run=0, int end_period=-1, int end_run=-1)
get numbers of runs stored in the Database for a selected range
int SetPeriodNumber(int period_number)
set period number of the current run
int i_run_quality
run quality
TDatime * ts_end_datetime
end datetime
int GetRunQuality()
get run quality of the current run
UniRun(UniConnection *db_connect, int period_number, int run_number, int run_type, TDatime start_datetime, TDatime *end_datetime, TString beam_particle, TString target_particle, double *energy, double *field_voltage, int *event_count, int run_quality)
int * GetEventCount()
get event count of the current run
static UniRun * CreateRun(int period_number, int run_number, int run_type, TDatime start_datetime, TDatime *end_datetime, TString beam_particle, TString target_particle, double *energy, double *field_voltage, int *event_count, int run_quality)
add new run to the database
int SetEventCount(int *event_count)
set event count of the current run
int SetRunNumber(int run_number)
set run number of the current run
static double FindPreviousFieldVoltage(int &period_number, int &run_number)
get field voltage value if period_number > 0 and run_number > 0: from the closest previous run,...
static int FindPreviousRun(int &period_number, int &run_number)
get number of the closest run below the given one or return the latest run in the database if period_...
int * i_event_count
event count
int SetFieldVoltage(double *field_voltage)
set field voltage of the current run
int i_period_number
period number
int SetEnergy(double *energy)
set energy of the current run
int SetRunQuality(int run_quality)
set run quality of the current run
TString str_beam_particle
beam particle
UniConnection * connectionDB
connection to the database
int SetBeamParticle(TString beam_particle)
set beam particle of the current run
int SetStartDatetime(TDatime start_datetime)
set start datetime of the current run
static int CheckRunExists(int period_number, int run_number)
check run exists in the database: 1- true, 0 - false, <0 - database operation error
TString GetTargetParticle()
get target particle of the current run