29 TDatime dt_record_date;
31 TString* str_shift_leader_id;
41 TString* str_daq_status;
55 double* d_target_width;
57 TString* str_record_comment;
59 int* i_system_status_id;
65 TString* shift_leader_id,
78 TString* record_comment,
79 int* system_status_id);
89 TString* shift_leader_id,
101 double* target_width,
102 TString* record_comment,
103 int* system_status_id);
121 if (str_shift_leader_id ==
nullptr)
124 return new TString(*str_shift_leader_id);
131 if (i_period_number ==
nullptr)
134 return new int(*i_period_number);
139 if (i_run_number ==
nullptr)
142 return new int(*i_run_number);
147 if (i_trigger_id ==
nullptr)
150 return new int(*i_trigger_id);
155 if (str_daq_status ==
nullptr)
158 return new TString(*str_daq_status);
163 if (i_sp_41 ==
nullptr)
166 return new int(*i_sp_41);
171 if (i_sp_57 ==
nullptr)
174 return new int(*i_sp_57);
179 if (i_vkm2 ==
nullptr)
182 return new int(*i_vkm2);
189 if (d_energy ==
nullptr)
192 return new double(*d_energy);
199 if (d_target_width ==
nullptr)
202 return new double(*d_target_width);
207 if (str_record_comment ==
nullptr)
210 return new TString(*str_record_comment);
215 if (i_system_status_id ==
nullptr)
218 return new int(*i_system_status_id);
260 static TObjArray*
GetRecords(
int period_number,
int run_number,
bool findPreviousRun =
false);
265 static TObjArray*
Search(
const TObjArray& search_conditions);
TDatime GetRecordDate()
get record date of the current record
int SetShiftLeaderId(TString *shift_leader_id)
set shift leader id of the current record
int SetSystemStatusId(int *system_status_id)
set system status id of the current record
int * GetSp41()
get sp 41 of the current record
int SetTypeId(int type_id)
set type id of the current record
int SetVkm2(int *vkm2)
set vkm2 of the current record
int * GetSystemStatusId()
get system status id of the current record
static int PrintAll()
print all records
int SetRunNumber(int *run_number)
set run number of the current record
int SetTarget(TString target)
set target of the current record
TString * GetShiftLeaderId()
get shift leader id of the current record
double * GetEnergy()
get energy of the current record
int * GetVkm2()
get vkm2 of the current record
int SetPeriodNumber(int *period_number)
set period number of the current record
int GetRecordId()
get record id of the current record
int SetDaqStatus(TString *daq_status)
set daq status of the current record
int SetTriggerId(int *trigger_id)
set trigger id of the current record
static TObjArray * GetRecords(int period_number, int run_number, bool findPreviousRun=false)
get array of ElogRecord-s for a given or a previous run from the database
int * GetRunNumber()
get run number of the current record
int SetTargetWidth(double *target_width)
set target width of the current record
TString * GetDaqStatus()
get daq status of the current record
TString GetBeam()
get beam of the current record
int SetSp57(int *sp_57)
set sp 57 of the current record
TString GetTarget()
get target of the current record
int SetRecordComment(TString *record_comment)
set record comment of the current record
static int DeleteRecord(int record_id)
delete record from the database
double * GetTargetWidth()
get target width of the current record
TString * GetRecordComment()
get record comment of the current record
int SetSp41(int *sp_41)
set sp 41 of the current record
int SetBeam(TString beam)
set beam of the current record
int GetTypeId()
get type id of the current record
int SetEnergy(double *energy)
set energy of the current record
static ElogRecord * GetRecord(int record_id)
get record from the database
static TObjArray * Search(const ElogSearchCondition &search_condition)
get ELOG records corresponding to the specified single condition
int * GetPeriodNumber()
get period number of the current record
int * GetTriggerId()
get trigger id of the current record
static int CheckRecordExists(int record_id)
check record exists in the database: 1- true, 0 - false, <0 - database operation error
void Print()
print information about current record
static ElogRecord * CreateRecord(TDatime record_date, TString *shift_leader_id, int type_id, int *period_number, int *run_number, int *trigger_id, TString *daq_status, int *sp_41, int *sp_57, int *vkm2, TString beam, double *energy, TString target, double *target_width, TString *record_comment, int *system_status_id)
add new record to the database
int SetRecordDate(TDatime record_date)
set record date of the current record
int * GetSp57()
get sp 57 of the current record