BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
UniRun Class Reference

UniRun.h Class for the table: run_. More...

#include <UniRun.h>

Collaboration diagram for UniRun:

Public Member Functions

virtual ~UniRun ()
int GetPeriodNumber ()
 get period number of the current run
int GetRunNumber ()
 get run number of the current run
int GetRunType ()
 get run type of the current run
TDatime GetStartDatetime ()
 get start datetime of the current run
TDatime * GetEndDatetime ()
 get end datetime of the current run
TString GetBeamParticle ()
 get beam particle of the current run
TString GetTargetParticle ()
 get target particle of the current run
double * GetEnergy ()
 get energy of the current run
double * GetFieldVoltage ()
 get field voltage of the current run
int * GetEventCount ()
 get event count of the current run
int GetRunQuality ()
 get run quality of the current run
int SetPeriodNumber (int period_number)
 set period number of the current run
int SetRunNumber (int run_number)
 set run number of the current run
int SetRunType (int run_type)
 set run type of the current run
int SetStartDatetime (TDatime start_datetime)
 set start datetime of the current run
int SetEndDatetime (TDatime *end_datetime)
 set end datetime of the current run
int SetBeamParticle (TString beam_particle)
 set beam particle of the current run
int SetTargetParticle (TString target_particle)
 set target particle of the current run
int SetEnergy (double *energy)
 set energy of the current run
int SetFieldVoltage (double *field_voltage)
 set field voltage of the current run
int SetEventCount (int *event_count)
 set event count of the current run
int SetRunQuality (int run_quality)
 set run quality of the current run
void Print ()
 print information about current run
TObjArray * GetRawFiles ()
 get array of raw files (UniRawFile*) corresponding to the run (return nullptr if an error occured)
virtual ~UniRun ()
int GetPeriodNumber ()
 get period number of the current run
int GetRunNumber ()
 get run number of the current run
int GetRunType ()
 get run type of the current run
TDatime GetStartDatetime ()
 get start datetime of the current run
TDatime * GetEndDatetime ()
 get end datetime of the current run
TString GetBeamParticle ()
 get beam particle of the current run
TString GetTargetParticle ()
 get target particle of the current run
double * GetEnergy ()
 get energy of the current run
double * GetFieldVoltage ()
 get field voltage of the current run
int * GetEventCount ()
 get event count of the current run
int GetRunQuality ()
 get run quality of the current run
int SetPeriodNumber (int period_number)
 set period number of the current run
int SetRunNumber (int run_number)
 set run number of the current run
int SetRunType (int run_type)
 set run type of the current run
int SetStartDatetime (TDatime start_datetime)
 set start datetime of the current run
int SetEndDatetime (TDatime *end_datetime)
 set end datetime of the current run
int SetBeamParticle (TString beam_particle)
 set beam particle of the current run
int SetTargetParticle (TString target_particle)
 set target particle of the current run
int SetEnergy (double *energy)
 set energy of the current run
int SetFieldVoltage (double *field_voltage)
 set field voltage of the current run
int SetEventCount (int *event_count)
 set event count of the current run
int SetRunQuality (int run_quality)
 set run quality of the current run
void Print ()
 print information about current run
TObjArray * GetRawFiles ()
 get array of raw files (UniRawFile*) corresponding to the run (return nullptr if an error occured)

Static Public Member Functions

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
static UniRun * GetRun (int period_number, int run_number)
 get run from the database
static int CheckRunExists (int period_number, int run_number)
 check run exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteRun (int period_number, int run_number)
 delete run from the database
static int PrintAll ()
 print all runs
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
static int GetRunNumbers (UniqueRunNumber *&run_numbers)
 get all numbers of stored runs in the Database
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, below (period:run) in another case: for the latest run in the database ATTENTION: changes the input period and run numbers to the correspoding ones of the previous run with the field voltage
static TObjArray * Search (UniSearchCondition &search_condition)
 get runs corresponding to the specified single condition and set owner for search_condition to kTRUE
static TObjArray * Search (TObjArray &search_conditions)
 get runs corresponding to the specified (vector) conditions and set owner for search_condition to kTRUE
static UniRun * GetRun (int &period_number, int &run_number, bool usePrevRunIfMissing)
 get run from the database with the given period and run numbers if usePrevRunIfMissing is true then find and get the previous (existing) run in case the given run is absent ATTENTION: changes the input period and run numbers to ones of the found run (if usePrevRunIfMissing is true)
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_number < 1 or run_number < 1
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
static UniRun * GetRun (int period_number, int run_number)
 get run from the database
static int CheckRunExists (int period_number, int run_number)
 check run exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteRun (int period_number, int run_number)
 delete run from the database
static int PrintAll ()
 print all runs
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
static int GetRunNumbers (UniqueRunNumber *&run_numbers)
 get all numbers of stored runs in the Database
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, below (period:run) in another case: for the latest run in the database ATTENTION: changes the input period and run numbers to the correspoding ones of the previous run with the field voltage
static TObjArray * Search (UniSearchCondition &search_condition)
 get runs corresponding to the specified single condition and set owner for search_condition to kTRUE
static TObjArray * Search (TObjArray &search_conditions)
 get runs corresponding to the specified (vector) conditions and set owner for search_condition to kTRUE
static UniRun * GetRun (int &period_number, int &run_number, bool usePrevRunIfMissing)
 get run from the database with the given period and run numbers if usePrevRunIfMissing is true then find and get the previous (existing) run in case the given run is absent ATTENTION: changes the input period and run numbers to ones of the found run (if usePrevRunIfMissing is true)
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_number < 1 or run_number < 1

Private Member Functions

 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)
 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)

Private Attributes

UniConnection * connectionDB
 connection to the database
int i_period_number
 period number
int i_run_number
 run number
int i_run_type
 run type
TDatime ts_start_datetime
 start datetime
TDatime * ts_end_datetime
 end datetime
TString str_beam_particle
 beam particle
TString str_target_particle
 target particle
double * d_energy
 energy
double * d_field_voltage
 field voltage
int * i_event_count
 event count
int i_run_quality
 run quality

Detailed Description

Definition at line 20 of file UniRun.h.

Constructor & Destructor Documentation

◆ UniRun() [1/2]

UniRun::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 )
private

Definition at line 18 of file UniRun.cxx.

References connectionDB, d_energy, d_field_voltage, i_event_count, i_period_number, i_run_number, i_run_quality, i_run_type, str_beam_particle, str_target_particle, ts_end_datetime, and ts_start_datetime.

Referenced by CreateRun(), FindPreviousRun(), GetRun(), GetRun(), and Search().

Here is the caller graph for this function:

◆ ~UniRun() [1/2]

UniRun::~UniRun ( )
virtual

Definition at line 47 of file UniRun.cxx.

References connectionDB, d_energy, d_field_voltage, i_event_count, and ts_end_datetime.

◆ UniRun() [2/2]

UniRun::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 )
private

◆ ~UniRun() [2/2]

virtual UniRun::~UniRun ( )
virtual

Member Function Documentation

◆ CheckRunExists() [1/2]

int UniRun::CheckRunExists ( int period_number,
int run_number )
static

Definition at line 241 of file UniRun.cxx.

References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Referenced by create_fictitious_run(), remove_odd_runs(), and remove_runs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckRunExists() [2/2]

int UniRun::CheckRunExists ( int period_number,
int run_number )
static

◆ CreateRun() [1/2]

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

Definition at line 62 of file UniRun.cxx.

References UniRun(), TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetDatime(), TSQLStatement::SetDouble(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), TSQLStatement::SetString(), and TSQLServer::Statement().

Referenced by BmnOnlineDecoder::AddRun2DB(), and create_fictitious_run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateRun() [2/2]

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

References UniRun().

Here is the call graph for this function:

◆ DeleteRun() [1/2]

int UniRun::DeleteRun ( int period_number,
int run_number )
static

Definition at line 281 of file UniRun.cxx.

References TString::Format(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Referenced by remove_odd_runs(), remove_raw_files(), and remove_runs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeleteRun() [2/2]

int UniRun::DeleteRun ( int period_number,
int run_number )
static

◆ FindPreviousFieldVoltage() [1/2]

double UniRun::FindPreviousFieldVoltage ( int & period_number,
int & run_number )
static

Definition at line 908 of file UniRun.cxx.

References TString::Format(), TSQLStatement::GetDouble(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Referenced by run_reco_bmn(), run_reco_bmn(), and run_reco_bmn().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindPreviousFieldVoltage() [2/2]

double UniRun::FindPreviousFieldVoltage ( int & period_number,
int & run_number )
static

◆ FindPreviousRun() [1/2]

int UniRun::FindPreviousRun ( int & period_number,
int & run_number )
static

Definition at line 1187 of file UniRun.cxx.

References TString::Format(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Referenced by GetRun(), and prerun_create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindPreviousRun() [2/2]

int UniRun::FindPreviousRun ( int & period_number,
int & run_number )
static

References UniRun().

Here is the call graph for this function:

◆ GetBeamParticle() [1/2]

◆ GetBeamParticle() [2/2]

TString UniRun::GetBeamParticle ( )
inline

Definition at line 109 of file UniRun.h.

References str_beam_particle.

◆ GetEndDatetime() [1/2]

TDatime * UniRun::GetEndDatetime ( )
inline

Definition at line 101 of file UniRun.h.

References ts_end_datetime.

Referenced by BmnOnlineDecoder::AddRun2DB(), check_event_and_time(), GatherStatusBlocksFromDigis(), BmnFillDstTask::Init(), BmnMscRaw2Digit::ParseTxtSpillLog(), run_beam_info(), TangoData::SetRunRangeDates(), show_avg_field(), show_field_graph(), show_run_stats(), Spill(), tango_gem_trip(), tango_gem_u(), and write_avg_field_db().

Here is the caller graph for this function:

◆ GetEndDatetime() [2/2]

TDatime * UniRun::GetEndDatetime ( )
inline

Definition at line 101 of file UniRun.h.

References ts_end_datetime.

◆ GetEnergy() [1/2]

double * UniRun::GetEnergy ( )
inline

Definition at line 113 of file UniRun.h.

References d_energy.

Referenced by BmnRunInfo::BmnRunInfo(), BmnDataSelector(), compare_uniconda_elog(), BmnSRCTriggersCheck::Exec(), BmnMonitor::GetAlikeRunsByElog(), BmnFillDstTask::Init(), run_reco_bmn(), SRC_EventCounter(), update_run_metadata_from_elog(), and BmnMonitor::UpdateRuns().

Here is the caller graph for this function:

◆ GetEnergy() [2/2]

double * UniRun::GetEnergy ( )
inline

Definition at line 113 of file UniRun.h.

References d_energy.

◆ GetEventCount() [1/2]

int * UniRun::GetEventCount ( )
inline

Definition at line 129 of file UniRun.h.

References i_event_count.

Referenced by BmnRunInfo::BmnRunInfo(), BmnOnlineDecoder::AddRun2DB(), check_event_and_time(), check_event_count(), show_run_stats(), and SRC_EventCounter().

Here is the caller graph for this function:

◆ GetEventCount() [2/2]

int * UniRun::GetEventCount ( )
inline

Definition at line 129 of file UniRun.h.

References i_event_count.

◆ GetFieldVoltage() [1/2]

◆ GetFieldVoltage() [2/2]

double * UniRun::GetFieldVoltage ( )
inline

Definition at line 121 of file UniRun.h.

References d_field_voltage.

◆ GetPeriodNumber() [1/2]

int UniRun::GetPeriodNumber ( )
inline

Definition at line 93 of file UniRun.h.

References i_period_number.

Referenced by BmnRunInfo::BmnRunInfo(), and selecting_runs().

Here is the caller graph for this function:

◆ GetPeriodNumber() [2/2]

int UniRun::GetPeriodNumber ( )
inline

Definition at line 93 of file UniRun.h.

References i_period_number.

◆ GetRawFiles() [1/2]

TObjArray * UniRun::GetRawFiles ( )

Definition at line 798 of file UniRun.cxx.

References UniRawFile::GetRawFiles(), i_period_number, and i_run_number.

Referenced by check_db_paths_exist(), check_event_and_time(), BmnMetadataDecoder::SetDigiDirectory(), and show_raw_stats().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetRawFiles() [2/2]

TObjArray * UniRun::GetRawFiles ( )

◆ GetRun() [1/4]

UniRun * UniRun::GetRun ( int & period_number,
int & run_number,
bool usePrevRunIfMissing )
static

Definition at line 1166 of file UniRun.cxx.

References UniRun(), FindPreviousRun(), and GetRun().

Here is the call graph for this function:

◆ GetRun() [2/4]

UniRun * UniRun::GetRun ( int & period_number,
int & run_number,
bool usePrevRunIfMissing )
static

References UniRun().

Here is the call graph for this function:

◆ GetRun() [3/4]

UniRun * UniRun::GetRun ( int period_number,
int run_number )
static

Definition at line 161 of file UniRun.cxx.

References UniRun(), TString::Format(), TSQLStatement::GetDatime(), TSQLStatement::GetDouble(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Referenced by BmnEfficiency::BmnEfficiency(), BmnEfficiency::BmnEfficiency(), BmnZDCRaw2Digit::BmnZDCRaw2Digit(), BmnOnlineDecoder::AddRun2DB(), BmnDataSelector(), check_db_paths_exist(), check_event_and_time(), check_event_count(), compare_avg_field(), compare_uniconda_elog(), convert_current_2_voltage(), BmnMassSpectrumAnal::createFilelist(), BmnTriggerEfficiencyRun7::createFilelist(), BmnQaMonitor::CreateInfoLists(), del_files_not_in_db(), BmnTrackingQaOffline::DoAnalisys(), BmnLambdaEmbeddingQa::DoDrawEventsWithEmbeddedSignals(), BmnLambdaEmbedding::Embedding(), eventdisplay(), BmnSRCTriggersCheck::Exec(), GatherStatusBlocksFromDigis(), BmnMonitor::GetAlikeRunsByUniDB(), GetRun(), BmnFillDstTask::Init(), BmnGlobalAlignment::Init(), BmnQaOffline::Init(), BmnTwoParticleDecay::Init(), move_field_2_parameter(), move_field_2_run(), offlineQA(), BmnMscRaw2Digit::ParseTxtSpillLog(), BmnEfficiencyTools::Process(), run8_reco_bmn(), run_beam_info(), run_reco_bmn(), run_reco_bmn(), run_reco_bmn(), run_reco_bmn(), run_reco_bmn(), run_reco_src(), BmnMetadataDecoder::SetDigiDirectory(), TangoData::SetRunRangeDates(), bmn::online::ReconstructionProcessor::SetupExperimentalRun(), show_avg_field(), show_field_graph(), show_raw_stats(), show_run_stats(), Spill(), SRC_EventCounter(), tango_gem_trip(), tango_gem_u(), update_run_metadata_from_elog(), write_avg_field_db(), and write_checksum_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetRun() [4/4]

UniRun * UniRun::GetRun ( int period_number,
int run_number )
static

References UniRun().

Here is the call graph for this function:

◆ GetRunNumber() [1/2]

int UniRun::GetRunNumber ( )
inline

Definition at line 95 of file UniRun.h.

References i_run_number.

Referenced by BmnRunInfo::BmnRunInfo(), BmnMonitor::GetAlikeRunsByElog(), selecting_runs(), and BmnMonitor::UpdateRuns().

Here is the caller graph for this function:

◆ GetRunNumber() [2/2]

int UniRun::GetRunNumber ( )
inline

Definition at line 95 of file UniRun.h.

References i_run_number.

◆ GetRunNumbers() [1/4]

int UniRun::GetRunNumbers ( UniqueRunNumber *& run_numbers)
static
Parameters
[out]run_numberspairs (period number+run numbers) of all runs
Returns
size of 'run_numbers' array. if size < 0, return value corresponds to error number

Definition at line 857 of file UniRun.cxx.

References TString::Format(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), i, TSQLStatement::NextResultRow(), UniConnection::Open(), UniqueRunNumber::period_number, TSQLStatement::Process(), UniqueRunNumber::run_number, TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ GetRunNumbers() [2/4]

int UniRun::GetRunNumbers ( UniqueRunNumber *& run_numbers)
static
Parameters
[out]run_numberspairs (period number+run numbers) of all runs
Returns
size of 'run_numbers' array. if size < 0, return value corresponds to error number

◆ GetRunNumbers() [3/4]

int UniRun::GetRunNumbers ( UniqueRunNumber *& run_numbers,
int start_period,
int start_run = 0,
int end_period = -1,
int end_run = -1 )
static
Parameters
[in]start_periodstart period number for selected run numbers' range
[in]start_runstart run number for selected run numbers' range (default, 0 means "from the first run of the start period")
[in]end_periodend period number for selected run numbers' range (default, -1 means "end_period = start_period")
[in]end_runend run number for selected run numbers' range (default, -1 means "up to the last run of the end period")
[out]run_numberspairs (period number+run numbers) of existing runs for a selected range (from start to end)
Returns
size of 'run_numbers' array. if size < 0, return value corresponds to error number

Definition at line 804 of file UniRun.cxx.

References TString::Format(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), i, TSQLStatement::NextResultRow(), UniConnection::Open(), UniqueRunNumber::period_number, TSQLStatement::Process(), UniqueRunNumber::run_number, TSQLServer::Statement(), and TSQLStatement::StoreResult().

Referenced by check_event_and_time(), compare_avg_field(), compare_uniconda_elog(), convert_current_2_voltage(), dch_noise_hist(), move_field_2_parameter(), move_field_2_run(), print_parameter(), TangoData::SetRunRangeDates(), show_avg_field(), show_raw_stats(), show_run_stats(), update_run_metadata_from_elog(), and write_avg_field_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetRunNumbers() [4/4]

int UniRun::GetRunNumbers ( UniqueRunNumber *& run_numbers,
int start_period,
int start_run = 0,
int end_period = -1,
int end_run = -1 )
static
Parameters
[in]start_periodstart period number for selected run numbers' range
[in]start_runstart run number for selected run numbers' range (default, 0 means "from the first run of the start period")
[in]end_periodend period number for selected run numbers' range (default, -1 means "end_period = start_period")
[in]end_runend run number for selected run numbers' range (default, -1 means "up to the last run of the end period")
[out]run_numberspairs (period number+run numbers) of existing runs for a selected range (from start to end)
Returns
size of 'run_numbers' array. if size < 0, return value corresponds to error number

◆ GetRunQuality() [1/2]

int UniRun::GetRunQuality ( )
inline

Definition at line 137 of file UniRun.h.

References i_run_quality.

◆ GetRunQuality() [2/2]

int UniRun::GetRunQuality ( )
inline

Definition at line 137 of file UniRun.h.

References i_run_quality.

◆ GetRunType() [1/2]

int UniRun::GetRunType ( )
inline

Definition at line 97 of file UniRun.h.

References i_run_type.

Referenced by compare_uniconda_elog(), and update_run_metadata_from_elog().

Here is the caller graph for this function:

◆ GetRunType() [2/2]

int UniRun::GetRunType ( )
inline

Definition at line 97 of file UniRun.h.

References i_run_type.

◆ GetStartDatetime() [1/2]

TDatime UniRun::GetStartDatetime ( )
inline

◆ GetStartDatetime() [2/2]

TDatime UniRun::GetStartDatetime ( )
inline

Definition at line 99 of file UniRun.h.

References ts_start_datetime.

◆ GetTargetParticle() [1/2]

◆ GetTargetParticle() [2/2]

TString UniRun::GetTargetParticle ( )
inline

Definition at line 111 of file UniRun.h.

References str_target_particle.

◆ Print() [1/2]

void UniRun::Print ( )

Definition at line 781 of file UniRun.cxx.

References d_energy, d_field_voltage, TString::Format(), i_event_count, i_period_number, i_run_number, i_run_quality, i_run_type, str_beam_particle, str_target_particle, ts_end_datetime, and ts_start_datetime.

Here is the call graph for this function:

◆ Print() [2/2]

void UniRun::Print ( )

◆ PrintAll() [1/2]

int UniRun::PrintAll ( )
static

◆ PrintAll() [2/2]

int UniRun::PrintAll ( )
static

◆ Search() [1/4]

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

Definition at line 955 of file UniRun.cxx.

References UniRun(), TObjArray::Add(), TDatime::AsSQLString(), UniSearchCondition::columnBeamParticle, UniSearchCondition::columnEndDateTime, UniSearchCondition::columnEnergy, UniSearchCondition::columnEventCount, UniSearchCondition::columnFieldVoltage, UniSearchCondition::columnPeriodNumber, UniSearchCondition::columnRunNumber, UniSearchCondition::columnStartDatetime, UniSearchCondition::columnTargetParticle, UniSearchCondition::conditionEqual, UniSearchCondition::conditionGreater, UniSearchCondition::conditionGreaterOrEqual, UniSearchCondition::conditionLess, UniSearchCondition::conditionLessOrEqual, UniSearchCondition::conditionLike, UniSearchCondition::conditionNotEqual, UniSearchCondition::conditionNotNull, UniSearchCondition::conditionNull, TString::Data(), TString::Format(), UniSearchCondition::GetColumn(), UniSearchCondition::GetCondition(), TSQLStatement::GetDatime(), UniSearchCondition::GetDatimeValue(), TSQLStatement::GetDouble(), UniSearchCondition::GetDoubleValue(), TSQLStatement::GetInt(), UniSearchCondition::GetIntValue(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), UniSearchCondition::GetStringValue(), UniSearchCondition::GetUIntValue(), UniSearchCondition::GetValueType(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TCollection::SetOwner(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Here is the call graph for this function:

◆ Search() [2/4]

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

◆ Search() [3/4]

TObjArray * UniRun::Search ( UniSearchCondition & search_condition)
static

Definition at line 1155 of file UniRun.cxx.

References TObjArray::Add(), and Search().

Referenced by BmnMonitor::GetAlikeRunsByElog(), BmnMonitor::GetAlikeRunsByUniDB(), run_beam_info(), Search(), selecting_runs(), and Spill().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Search() [4/4]

TObjArray * UniRun::Search ( UniSearchCondition & search_condition)
static

◆ SetBeamParticle() [1/2]

int UniRun::SetBeamParticle ( TString beam_particle)

Definition at line 558 of file UniRun.cxx.

References connectionDB, TString::Format(), i_period_number, i_run_number, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_beam_particle.

Referenced by update_run_metadata_from_elog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetBeamParticle() [2/2]

int UniRun::SetBeamParticle ( TString beam_particle)

◆ SetEndDatetime() [1/2]

int UniRun::SetEndDatetime ( TDatime * end_datetime)

Definition at line 517 of file UniRun.cxx.

References connectionDB, TString::Format(), i_period_number, i_run_number, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetDatime(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), TSQLServer::Statement(), and ts_end_datetime.

Referenced by BmnOnlineDecoder::AddRun2DB().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetEndDatetime() [2/2]

int UniRun::SetEndDatetime ( TDatime * end_datetime)

◆ SetEnergy() [1/2]

int UniRun::SetEnergy ( double * energy)

Definition at line 624 of file UniRun.cxx.

References connectionDB, d_energy, TString::Format(), i_period_number, i_run_number, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetDouble(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), and TSQLServer::Statement().

Referenced by update_run_metadata_from_elog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetEnergy() [2/2]

int UniRun::SetEnergy ( double * energy)

◆ SetEventCount() [1/2]

int UniRun::SetEventCount ( int * event_count)

Definition at line 706 of file UniRun.cxx.

References connectionDB, TString::Format(), i_event_count, i_period_number, i_run_number, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), and TSQLServer::Statement().

Referenced by BmnOnlineDecoder::AddRun2DB().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetEventCount() [2/2]

int UniRun::SetEventCount ( int * event_count)

◆ SetFieldVoltage() [1/2]

int UniRun::SetFieldVoltage ( double * field_voltage)

Definition at line 665 of file UniRun.cxx.

References connectionDB, d_field_voltage, TString::Format(), i_period_number, i_run_number, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetDouble(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), and TSQLServer::Statement().

Referenced by convert_current_2_voltage(), move_field_2_run(), update_run_metadata_from_elog(), and write_avg_field_db().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetFieldVoltage() [2/2]

int UniRun::SetFieldVoltage ( double * field_voltage)

◆ SetPeriodNumber() [1/2]

int UniRun::SetPeriodNumber ( int period_number)

Definition at line 385 of file UniRun.cxx.

References connectionDB, TString::Format(), i_period_number, i_run_number, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ SetPeriodNumber() [2/2]

int UniRun::SetPeriodNumber ( int period_number)

◆ SetRunNumber() [1/2]

int UniRun::SetRunNumber ( int run_number)

Definition at line 418 of file UniRun.cxx.

References connectionDB, TString::Format(), i_period_number, i_run_number, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ SetRunNumber() [2/2]

int UniRun::SetRunNumber ( int run_number)

◆ SetRunQuality() [1/2]

int UniRun::SetRunQuality ( int run_quality)

Definition at line 747 of file UniRun.cxx.

References connectionDB, TString::Format(), i_period_number, i_run_number, i_run_quality, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ SetRunQuality() [2/2]

int UniRun::SetRunQuality ( int run_quality)

◆ SetRunType() [1/2]

int UniRun::SetRunType ( int run_type)

Definition at line 451 of file UniRun.cxx.

References connectionDB, TString::Format(), i_period_number, i_run_number, i_run_type, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Referenced by compare_uniconda_elog(), and update_run_metadata_from_elog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetRunType() [2/2]

int UniRun::SetRunType ( int run_type)

◆ SetStartDatetime() [1/2]

int UniRun::SetStartDatetime ( TDatime start_datetime)

Definition at line 484 of file UniRun.cxx.

References connectionDB, TString::Format(), i_period_number, i_run_number, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetDatime(), TSQLStatement::SetInt(), TSQLServer::Statement(), and ts_start_datetime.

Referenced by BmnOnlineDecoder::AddRun2DB().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetStartDatetime() [2/2]

int UniRun::SetStartDatetime ( TDatime start_datetime)

◆ SetTargetParticle() [1/2]

int UniRun::SetTargetParticle ( TString target_particle)

Definition at line 591 of file UniRun.cxx.

References connectionDB, TString::Format(), i_period_number, i_run_number, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_target_particle.

Referenced by update_run_metadata_from_elog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetTargetParticle() [2/2]

int UniRun::SetTargetParticle ( TString target_particle)

Member Data Documentation

◆ connectionDB

◆ d_energy

double * UniRun::d_energy
private

Definition at line 42 of file UniRun.h.

Referenced by UniRun(), ~UniRun(), GetEnergy(), Print(), and SetEnergy().

◆ d_field_voltage

double * UniRun::d_field_voltage
private

Definition at line 44 of file UniRun.h.

Referenced by UniRun(), ~UniRun(), GetFieldVoltage(), Print(), and SetFieldVoltage().

◆ i_event_count

int * UniRun::i_event_count
private

Definition at line 46 of file UniRun.h.

Referenced by UniRun(), ~UniRun(), GetEventCount(), Print(), and SetEventCount().

◆ i_period_number

◆ i_run_number

◆ i_run_quality

int UniRun::i_run_quality
private

Definition at line 48 of file UniRun.h.

Referenced by UniRun(), GetRunQuality(), Print(), and SetRunQuality().

◆ i_run_type

int UniRun::i_run_type
private

Definition at line 32 of file UniRun.h.

Referenced by UniRun(), GetRunType(), Print(), and SetRunType().

◆ str_beam_particle

TString UniRun::str_beam_particle
private

Definition at line 38 of file UniRun.h.

Referenced by UniRun(), GetBeamParticle(), Print(), and SetBeamParticle().

◆ str_target_particle

TString UniRun::str_target_particle
private

Definition at line 40 of file UniRun.h.

Referenced by UniRun(), GetTargetParticle(), Print(), and SetTargetParticle().

◆ ts_end_datetime

TDatime * UniRun::ts_end_datetime
private

Definition at line 36 of file UniRun.h.

Referenced by UniRun(), ~UniRun(), GetEndDatetime(), Print(), and SetEndDatetime().

◆ ts_start_datetime

TDatime UniRun::ts_start_datetime
private

Definition at line 34 of file UniRun.h.

Referenced by UniRun(), GetStartDatetime(), Print(), and SetStartDatetime().


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