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

#include <ElogRecord.h>

Public Member Functions

virtual ~ElogRecord ()
 
int GetRecordId ()
 get record id of the current record
 
TDatime GetRecordDate ()
 get record date of the current record
 
TString * GetShiftLeaderId ()
 get shift leader id of the current record
 
int GetTypeId ()
 get type id of the current record
 
int * GetPeriodNumber ()
 get period number of the current record
 
int * GetRunNumber ()
 get run number of the current record
 
int * GetTriggerId ()
 get trigger id of the current record
 
TString * GetDaqStatus ()
 get daq status of the current record
 
int * GetSp41 ()
 get sp 41 of the current record
 
int * GetSp57 ()
 get sp 57 of the current record
 
int * GetVkm2 ()
 get vkm2 of the current record
 
TString GetBeam ()
 get beam of the current record
 
double * GetEnergy ()
 get energy of the current record
 
TString GetTarget ()
 get target of the current record
 
double * GetTargetWidth ()
 get target width of the current record
 
TString * GetRecordComment ()
 get record comment of the current record
 
int * GetSystemStatusId ()
 get system status id of the current record
 
int SetRecordDate (TDatime record_date)
 set record date of the current record
 
int SetShiftLeaderId (TString *shift_leader_id)
 set shift leader id of the current record
 
int SetTypeId (int type_id)
 set type id of the current record
 
int SetPeriodNumber (int *period_number)
 set period number of the current record
 
int SetRunNumber (int *run_number)
 set run number of the current record
 
int SetTriggerId (int *trigger_id)
 set trigger id of the current record
 
int SetDaqStatus (TString *daq_status)
 set daq status of the current record
 
int SetSp41 (int *sp_41)
 set sp 41 of the current record
 
int SetSp57 (int *sp_57)
 set sp 57 of the current record
 
int SetVkm2 (int *vkm2)
 set vkm2 of the current record
 
int SetBeam (TString beam)
 set beam of the current record
 
int SetEnergy (double *energy)
 set energy of the current record
 
int SetTarget (TString target)
 set target of the current record
 
int SetTargetWidth (double *target_width)
 set target width of the current record
 
int SetRecordComment (TString *record_comment)
 set record comment of the current record
 
int SetSystemStatusId (int *system_status_id)
 set system status id of the current record
 
void Print ()
 print information about current record
 
 ClassDef (ElogRecord, 1)
 
virtual ~ElogRecord ()
 
int GetRecordId ()
 get record id of the current record
 
TDatime GetRecordDate ()
 get record date of the current record
 
TString * GetShiftLeaderId ()
 get shift leader id of the current record
 
int GetTypeId ()
 get type id of the current record
 
int * GetPeriodNumber ()
 get period number of the current record
 
int * GetRunNumber ()
 get run number of the current record
 
int * GetTriggerId ()
 get trigger id of the current record
 
TString * GetDaqStatus ()
 get daq status of the current record
 
int * GetSp41 ()
 get sp 41 of the current record
 
int * GetSp57 ()
 get sp 57 of the current record
 
int * GetVkm2 ()
 get vkm2 of the current record
 
TString GetBeam ()
 get beam of the current record
 
double * GetEnergy ()
 get energy of the current record
 
TString GetTarget ()
 get target of the current record
 
double * GetTargetWidth ()
 get target width of the current record
 
TString * GetRecordComment ()
 get record comment of the current record
 
int * GetSystemStatusId ()
 get system status id of the current record
 
int SetRecordDate (TDatime record_date)
 set record date of the current record
 
int SetShiftLeaderId (TString *shift_leader_id)
 set shift leader id of the current record
 
int SetTypeId (int type_id)
 set type id of the current record
 
int SetPeriodNumber (int *period_number)
 set period number of the current record
 
int SetRunNumber (int *run_number)
 set run number of the current record
 
int SetTriggerId (int *trigger_id)
 set trigger id of the current record
 
int SetDaqStatus (TString *daq_status)
 set daq status of the current record
 
int SetSp41 (int *sp_41)
 set sp 41 of the current record
 
int SetSp57 (int *sp_57)
 set sp 57 of the current record
 
int SetVkm2 (int *vkm2)
 set vkm2 of the current record
 
int SetBeam (TString beam)
 set beam of the current record
 
int SetEnergy (double *energy)
 set energy of the current record
 
int SetTarget (TString target)
 set target of the current record
 
int SetTargetWidth (double *target_width)
 set target width of the current record
 
int SetRecordComment (TString *record_comment)
 set record comment of the current record
 
int SetSystemStatusId (int *system_status_id)
 set system status id of the current record
 
void Print ()
 print information about current record
 
 ClassDef (ElogRecord, 1)
 

Static Public Member Functions

static ElogRecordCreateRecord (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
 
static ElogRecordGetRecord (int record_id)
 get record from the database
 
static int CheckRecordExists (int record_id)
 check record exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int DeleteRecord (int record_id)
 delete record from the database
 
static int PrintAll ()
 print all records
 
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
 
static TObjArray * Search (const ElogSearchCondition &search_condition)
 get ELOG records corresponding to the specified single condition
 
static TObjArray * Search (const TObjArray &search_conditions)
 get ELOG records corresponding to the specified (vector) conditions
 
static ElogRecordCreateRecord (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
 
static ElogRecordGetRecord (int record_id)
 get record from the database
 
static int CheckRecordExists (int record_id)
 check record exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int DeleteRecord (int record_id)
 delete record from the database
 
static int PrintAll ()
 print all records
 
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
 
static TObjArray * Search (const ElogSearchCondition &search_condition)
 get ELOG records corresponding to the specified single condition
 
static TObjArray * Search (const TObjArray &search_conditions)
 get ELOG records corresponding to the specified (vector) conditions
 

Detailed Description

ElogRecord.h Class for the table: record_

Definition at line 19 of file ElogRecord.h.

Constructor & Destructor Documentation

◆ ~ElogRecord() [1/2]

ElogRecord::~ElogRecord ( )
virtual

Definition at line 57 of file ElogRecord.cxx.

◆ ~ElogRecord() [2/2]

virtual ElogRecord::~ElogRecord ( )
virtual

Member Function Documentation

◆ CheckRecordExists() [1/2]

int ElogRecord::CheckRecordExists ( int  record_id)
static

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

Definition at line 398 of file ElogRecord.cxx.

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

◆ CheckRecordExists() [2/2]

static int ElogRecord::CheckRecordExists ( int  record_id)
static

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

◆ ClassDef() [1/2]

ElogRecord::ClassDef ( ElogRecord  ,
 
)

◆ ClassDef() [2/2]

ElogRecord::ClassDef ( ElogRecord  ,
 
)

◆ CreateRecord() [1/2]

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

add new record to the database

Definition at line 88 of file ElogRecord.cxx.

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

◆ CreateRecord() [2/2]

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

add new record to the database

◆ DeleteRecord() [1/2]

int ElogRecord::DeleteRecord ( int  record_id)
static

delete record from the database

Definition at line 438 of file ElogRecord.cxx.

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

◆ DeleteRecord() [2/2]

static int ElogRecord::DeleteRecord ( int  record_id)
static

delete record from the database

◆ GetBeam() [1/2]

TString ElogRecord::GetBeam ( )
inline

get beam of the current record

Definition at line 185 of file ElogRecord.h.

Referenced by BmnMonitor::GetAlikeRunsByElog().

◆ GetBeam() [2/2]

TString ElogRecord::GetBeam ( )
inline

get beam of the current record

Definition at line 185 of file ElogRecord.h.

◆ GetDaqStatus() [1/2]

TString * ElogRecord::GetDaqStatus ( )
inline

get daq status of the current record

Definition at line 153 of file ElogRecord.h.

◆ GetDaqStatus() [2/2]

TString * ElogRecord::GetDaqStatus ( )
inline

get daq status of the current record

Definition at line 153 of file ElogRecord.h.

◆ GetEnergy() [1/2]

double * ElogRecord::GetEnergy ( )
inline

get energy of the current record

Definition at line 187 of file ElogRecord.h.

Referenced by BmnMonitor::GetAlikeRunsByElog().

◆ GetEnergy() [2/2]

double * ElogRecord::GetEnergy ( )
inline

get energy of the current record

Definition at line 187 of file ElogRecord.h.

◆ GetPeriodNumber() [1/2]

int * ElogRecord::GetPeriodNumber ( )
inline

get period number of the current record

Definition at line 129 of file ElogRecord.h.

◆ GetPeriodNumber() [2/2]

int * ElogRecord::GetPeriodNumber ( )
inline

get period number of the current record

Definition at line 129 of file ElogRecord.h.

◆ GetRecord() [1/2]

ElogRecord * ElogRecord::GetRecord ( int  record_id)
static

get record from the database

Definition at line 282 of file ElogRecord.cxx.

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

◆ GetRecord() [2/2]

static ElogRecord * ElogRecord::GetRecord ( int  record_id)
static

get record from the database

◆ GetRecordComment() [1/2]

TString * ElogRecord::GetRecordComment ( )
inline

get record comment of the current record

Definition at line 205 of file ElogRecord.h.

◆ GetRecordComment() [2/2]

TString * ElogRecord::GetRecordComment ( )
inline

get record comment of the current record

Definition at line 205 of file ElogRecord.h.

◆ GetRecordDate() [1/2]

TDatime ElogRecord::GetRecordDate ( )
inline

get record date of the current record

Definition at line 117 of file ElogRecord.h.

◆ GetRecordDate() [2/2]

TDatime ElogRecord::GetRecordDate ( )
inline

get record date of the current record

Definition at line 117 of file ElogRecord.h.

◆ GetRecordId() [1/2]

int ElogRecord::GetRecordId ( )
inline

get record id of the current record

Definition at line 115 of file ElogRecord.h.

◆ GetRecordId() [2/2]

int ElogRecord::GetRecordId ( )
inline

get record id of the current record

Definition at line 115 of file ElogRecord.h.

◆ GetRecords() [1/2]

TObjArray * ElogRecord::GetRecords ( int  period_number,
int  run_number,
bool  findPreviousRun = false 
)
static

get array of ElogRecord-s for a given or a previous run from the database

Definition at line 1211 of file ElogRecord.cxx.

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

Referenced by BmnMonitor::GetAlikeRunsByElog(), BmnTrackingQaOffline::GetTrigger(), BmnDataTriggerInfo::GetTrigger(), and BmnMscRaw2Digit::ParseTxtSpillLog().

◆ GetRecords() [2/2]

static TObjArray * ElogRecord::GetRecords ( int  period_number,
int  run_number,
bool  findPreviousRun = false 
)
static

get array of ElogRecord-s for a given or a previous run from the database

◆ GetRunNumber() [1/2]

int * ElogRecord::GetRunNumber ( )
inline

get run number of the current record

Definition at line 137 of file ElogRecord.h.

◆ GetRunNumber() [2/2]

int * ElogRecord::GetRunNumber ( )
inline

get run number of the current record

Definition at line 137 of file ElogRecord.h.

◆ GetShiftLeaderId() [1/2]

TString * ElogRecord::GetShiftLeaderId ( )
inline

get shift leader id of the current record

Definition at line 119 of file ElogRecord.h.

◆ GetShiftLeaderId() [2/2]

TString * ElogRecord::GetShiftLeaderId ( )
inline

get shift leader id of the current record

Definition at line 119 of file ElogRecord.h.

◆ GetSp41() [1/2]

int * ElogRecord::GetSp41 ( )
inline

get sp 41 of the current record

Definition at line 161 of file ElogRecord.h.

Referenced by BmnMonitor::GetAlikeRunsByElog().

◆ GetSp41() [2/2]

int * ElogRecord::GetSp41 ( )
inline

get sp 41 of the current record

Definition at line 161 of file ElogRecord.h.

◆ GetSp57() [1/2]

int * ElogRecord::GetSp57 ( )
inline

get sp 57 of the current record

Definition at line 169 of file ElogRecord.h.

◆ GetSp57() [2/2]

int * ElogRecord::GetSp57 ( )
inline

get sp 57 of the current record

Definition at line 169 of file ElogRecord.h.

◆ GetSystemStatusId() [1/2]

int * ElogRecord::GetSystemStatusId ( )
inline

get system status id of the current record

Definition at line 213 of file ElogRecord.h.

◆ GetSystemStatusId() [2/2]

int * ElogRecord::GetSystemStatusId ( )
inline

get system status id of the current record

Definition at line 213 of file ElogRecord.h.

◆ GetTarget() [1/2]

TString ElogRecord::GetTarget ( )
inline

get target of the current record

Definition at line 195 of file ElogRecord.h.

Referenced by BmnMonitor::GetAlikeRunsByElog().

◆ GetTarget() [2/2]

TString ElogRecord::GetTarget ( )
inline

get target of the current record

Definition at line 195 of file ElogRecord.h.

◆ GetTargetWidth() [1/2]

double * ElogRecord::GetTargetWidth ( )
inline

get target width of the current record

Definition at line 197 of file ElogRecord.h.

◆ GetTargetWidth() [2/2]

double * ElogRecord::GetTargetWidth ( )
inline

get target width of the current record

Definition at line 197 of file ElogRecord.h.

◆ GetTriggerId() [1/2]

int * ElogRecord::GetTriggerId ( )
inline

get trigger id of the current record

Definition at line 145 of file ElogRecord.h.

Referenced by BmnTrackingQaOffline::GetTrigger(), and BmnDataTriggerInfo::GetTrigger().

◆ GetTriggerId() [2/2]

int * ElogRecord::GetTriggerId ( )
inline

get trigger id of the current record

Definition at line 145 of file ElogRecord.h.

◆ GetTypeId() [1/2]

int ElogRecord::GetTypeId ( )
inline

get type id of the current record

Definition at line 127 of file ElogRecord.h.

◆ GetTypeId() [2/2]

int ElogRecord::GetTypeId ( )
inline

get type id of the current record

Definition at line 127 of file ElogRecord.h.

◆ GetVkm2() [1/2]

int * ElogRecord::GetVkm2 ( )
inline

get vkm2 of the current record

Definition at line 177 of file ElogRecord.h.

◆ GetVkm2() [2/2]

int * ElogRecord::GetVkm2 ( )
inline

get vkm2 of the current record

Definition at line 177 of file ElogRecord.h.

◆ Print() [1/2]

void ElogRecord::Print ( )

print information about current record

Definition at line 1186 of file ElogRecord.cxx.

◆ Print() [2/2]

void ElogRecord::Print ( )

print information about current record

◆ PrintAll() [1/2]

int ElogRecord::PrintAll ( )
static

print all records

Definition at line 468 of file ElogRecord.cxx.

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

◆ PrintAll() [2/2]

static int ElogRecord::PrintAll ( )
static

print all records

◆ Search() [1/4]

TObjArray * ElogRecord::Search ( const ElogSearchCondition search_condition)
static

get ELOG records corresponding to the specified single condition

Definition at line 1596 of file ElogRecord.cxx.

References Search().

Referenced by Search().

◆ Search() [2/4]

static TObjArray * ElogRecord::Search ( const ElogSearchCondition search_condition)
static

get ELOG records corresponding to the specified single condition

◆ Search() [3/4]

◆ Search() [4/4]

static TObjArray * ElogRecord::Search ( const TObjArray &  search_conditions)
static

get ELOG records corresponding to the specified (vector) conditions

◆ SetBeam() [1/2]

int ElogRecord::SetBeam ( TString  beam)

set beam of the current record

Definition at line 961 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetBeam() [2/2]

int ElogRecord::SetBeam ( TString  beam)

set beam of the current record

◆ SetDaqStatus() [1/2]

int ElogRecord::SetDaqStatus ( TString *  daq_status)

set daq status of the current record

Definition at line 801 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetDaqStatus() [2/2]

int ElogRecord::SetDaqStatus ( TString *  daq_status)

set daq status of the current record

◆ SetEnergy() [1/2]

int ElogRecord::SetEnergy ( double *  energy)

set energy of the current record

Definition at line 993 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetEnergy() [2/2]

int ElogRecord::SetEnergy ( double *  energy)

set energy of the current record

◆ SetPeriodNumber() [1/2]

int ElogRecord::SetPeriodNumber ( int *  period_number)

set period number of the current record

Definition at line 681 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetPeriodNumber() [2/2]

int ElogRecord::SetPeriodNumber ( int *  period_number)

set period number of the current record

◆ SetRecordComment() [1/2]

int ElogRecord::SetRecordComment ( TString *  record_comment)

set record comment of the current record

Definition at line 1105 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetRecordComment() [2/2]

int ElogRecord::SetRecordComment ( TString *  record_comment)

set record comment of the current record

◆ SetRecordDate() [1/2]

int ElogRecord::SetRecordDate ( TDatime  record_date)

set record date of the current record

Definition at line 577 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetRecordDate() [2/2]

int ElogRecord::SetRecordDate ( TDatime  record_date)

set record date of the current record

◆ SetRunNumber() [1/2]

int ElogRecord::SetRunNumber ( int *  run_number)

set run number of the current record

Definition at line 721 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetRunNumber() [2/2]

int ElogRecord::SetRunNumber ( int *  run_number)

set run number of the current record

◆ SetShiftLeaderId() [1/2]

int ElogRecord::SetShiftLeaderId ( TString *  shift_leader_id)

set shift leader id of the current record

Definition at line 609 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetShiftLeaderId() [2/2]

int ElogRecord::SetShiftLeaderId ( TString *  shift_leader_id)

set shift leader id of the current record

◆ SetSp41() [1/2]

int ElogRecord::SetSp41 ( int *  sp_41)

set sp 41 of the current record

Definition at line 841 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetSp41() [2/2]

int ElogRecord::SetSp41 ( int *  sp_41)

set sp 41 of the current record

◆ SetSp57() [1/2]

int ElogRecord::SetSp57 ( int *  sp_57)

set sp 57 of the current record

Definition at line 881 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetSp57() [2/2]

int ElogRecord::SetSp57 ( int *  sp_57)

set sp 57 of the current record

◆ SetSystemStatusId() [1/2]

int ElogRecord::SetSystemStatusId ( int *  system_status_id)

set system status id of the current record

Definition at line 1145 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetSystemStatusId() [2/2]

int ElogRecord::SetSystemStatusId ( int *  system_status_id)

set system status id of the current record

◆ SetTarget() [1/2]

int ElogRecord::SetTarget ( TString  target)

set target of the current record

Definition at line 1033 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetTarget() [2/2]

int ElogRecord::SetTarget ( TString  target)

set target of the current record

◆ SetTargetWidth() [1/2]

int ElogRecord::SetTargetWidth ( double *  target_width)

set target width of the current record

Definition at line 1065 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetTargetWidth() [2/2]

int ElogRecord::SetTargetWidth ( double *  target_width)

set target width of the current record

◆ SetTriggerId() [1/2]

int ElogRecord::SetTriggerId ( int *  trigger_id)

set trigger id of the current record

Definition at line 761 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetTriggerId() [2/2]

int ElogRecord::SetTriggerId ( int *  trigger_id)

set trigger id of the current record

◆ SetTypeId() [1/2]

int ElogRecord::SetTypeId ( int  type_id)

set type id of the current record

Definition at line 649 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetTypeId() [2/2]

int ElogRecord::SetTypeId ( int  type_id)

set type id of the current record

◆ SetVkm2() [1/2]

int ElogRecord::SetVkm2 ( int *  vkm2)

set vkm2 of the current record

Definition at line 921 of file ElogRecord.cxx.

References ElogConnection::GetSQLServer().

◆ SetVkm2() [2/2]

int ElogRecord::SetVkm2 ( int *  vkm2)

set vkm2 of the current record


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