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

#include <UniDetectorParameter.h>

Collaboration diagram for UniDetectorParameter:

Public Member Functions

virtual ~UniDetectorParameter ()
int GetValueId ()
 get value id of the current detector parameter
TString GetDetectorName ()
 get detector name of the current detector parameter
int GetParameterId ()
 get parameter id of the current detector parameter
int GetStartPeriod ()
 get start period of the current detector parameter
int GetStartRun ()
 get start run of the current detector parameter
int GetEndPeriod ()
 get end period of the current detector parameter
int GetEndRun ()
 get end run of the current detector parameter
int GetValueKey ()
 get value key of the current detector parameter
unsigned char * GetParameterValue ()
 get parameter value of the current detector parameter
Long_t GetParameterValueSize ()
 get size of parameter value of the current detector parameter
TDatime * GetExpiryDate ()
 get expiry date of the current detector parameter
int SetDetectorName (TString detector_name)
 set detector name of the current detector parameter
int SetParameterId (int parameter_id)
 set parameter id of the current detector parameter
int SetStartPeriod (int start_period)
 set start period of the current detector parameter
int SetStartRun (int start_run)
 set start run of the current detector parameter
int SetEndPeriod (int end_period)
 set end period of the current detector parameter
int SetEndRun (int end_run)
 set end run of the current detector parameter
int SetValueKey (int value_key)
 set value key of the current detector parameter
int SetParameterValue (unsigned char *parameter_value, Long_t size_parameter_value)
 set parameter value of the current detector parameter
int SetExpiryDate (TDatime *expiry_date)
 set expiry date of the current detector parameter
void Print ()
 print information about current detector parameter
int GetValue (vector< UniValue * > &parameter_value)
 get value of detector parameter presented by an array
UniValue * GetValue ()
 get value of detector parameter presented by a single value
int SetValue (vector< UniValue * > parameter_value)
 set value to detector parameter presented by an array
int SetValue (UniValue *parameter_value)
 set value to detector parameter presented by a single value
TString GetParameterName ()
 get parameter name of the current parameter value
enumValueType GetParameterType ()
 get parameter type of the current parameter value
void GetStart (int &start_period, int &start_run)
 get start period and run of the current parameter value
void GetEnd (int &end_period, int &end_run)
 get end period and run of the current parameter value
int SetStart (int start_period, int start_run)
 set start period and run of the current parameter value
int SetEnd (int end_period, int end_run)
 set end period and run of the current parameter value
virtual ~UniDetectorParameter ()
int GetValueId ()
 get value id of the current detector parameter
TString GetDetectorName ()
 get detector name of the current detector parameter
int GetParameterId ()
 get parameter id of the current detector parameter
int GetStartPeriod ()
 get start period of the current detector parameter
int GetStartRun ()
 get start run of the current detector parameter
int GetEndPeriod ()
 get end period of the current detector parameter
int GetEndRun ()
 get end run of the current detector parameter
int GetValueKey ()
 get value key of the current detector parameter
unsigned char * GetParameterValue ()
 get parameter value of the current detector parameter
Long_t GetParameterValueSize ()
 get size of parameter value of the current detector parameter
TDatime * GetExpiryDate ()
 get expiry date of the current detector parameter
int SetDetectorName (TString detector_name)
 set detector name of the current detector parameter
int SetParameterId (int parameter_id)
 set parameter id of the current detector parameter
int SetStartPeriod (int start_period)
 set start period of the current detector parameter
int SetStartRun (int start_run)
 set start run of the current detector parameter
int SetEndPeriod (int end_period)
 set end period of the current detector parameter
int SetEndRun (int end_run)
 set end run of the current detector parameter
int SetValueKey (int value_key)
 set value key of the current detector parameter
int SetParameterValue (unsigned char *parameter_value, Long_t size_parameter_value)
 set parameter value of the current detector parameter
int SetExpiryDate (TDatime *expiry_date)
 set expiry date of the current detector parameter
void Print ()
 print information about current detector parameter
int GetValue (vector< UniValue * > &parameter_value)
 get value of detector parameter presented by an array
UniValue * GetValue ()
 get value of detector parameter presented by a single value
int SetValue (vector< UniValue * > parameter_value)
 set value to detector parameter presented by an array
int SetValue (UniValue *parameter_value)
 set value to detector parameter presented by a single value
TString GetParameterName ()
 get parameter name of the current parameter value
enumValueType GetParameterType ()
 get parameter type of the current parameter value
void GetStart (int &start_period, int &start_run)
 get start period and run of the current parameter value
void GetEnd (int &end_period, int &end_run)
 get end period and run of the current parameter value
int SetStart (int start_period, int start_run)
 set start period and run of the current parameter value
int SetEnd (int end_period, int end_run)
 set end period and run of the current parameter value

Static Public Member Functions

static UniDetectorParameter * CreateDetectorParameter (TString detector_name, int parameter_id, int start_period, int start_run, int end_period, int end_run, int value_key, unsigned char *parameter_value, Long_t size_parameter_value, TDatime *expiry_date)
 add new detector parameter to the database
static UniDetectorParameter * GetDetectorParameter (int value_id)
 get detector parameter from the database
static int CheckDetectorParameterExists (int value_id)
 check detector parameter exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteDetectorParameter (int value_id)
 delete detector parameter from the database
static int PrintAll ()
 print all detector parameters
static UniDetectorParameter * CreateDetectorParameter (TString detector_name, TString parameter_name, int start_period, int start_run, int end_period, int end_run, vector< UniValue * > parameter_value, int value_key=0)
 write detector parameter value presented by an array (integer value key is optional, default, 0)
static UniDetectorParameter * CreateDetectorParameter (TString detector_name, TString parameter_name, int start_period, int start_run, int end_period, int end_run, UniValue *parameter_value, int value_key=0)
 write detector parameter value presented by a single value (integer value key is optional, default, 0)
static UniDetectorParameter * GetDetectorParameter (TString detector_name, TString parameter_name, int period_number, int run_number, TDatime *usage_time=nullptr, int value_key=0)
 get detector parameter value (integer value key is optional, default, 0)
static int DeleteDetectorParameter (TString detector_name, TString parameter_name, int start_period, int start_run, int end_period, int end_run, TDatime *usage_time, int value_key=0)
 delete detector parameter value (integer value key is optional, default, 0)
static int WriteObjectBinary (const char *detector_name, const char *parameter_name, int start_period, int start_run, int end_period, int end_run, TObject *ptr_object)
 write ROOT object as a binary parameter to the Database from start run to end one
static int ReadObjectBinary (const char *detector_name, const char *parameter_name, int period_number, int run_number, TObject *&ptr_object)
 read ROOT object as a binary parameter from from the Database for the selected run
static int WriteObjectJSON (const char *detector_name, const char *parameter_name, int start_period, int start_run, int end_period, int end_run, TObject *ptr_object)
 write ROOT object as a JSON parameter to the Database from start run to end one
static int ReadObjectJSON (const char *detector_name, const char *parameter_name, int period_number, int run_number, TObject *&ptr_object)
 read ROOT object as a JSON parameter from from the Database for the selected run
static int WriteFile (const char *detector_name, const char *parameter_name, int start_period, int start_run, int end_period, int end_run, const char *file_path)
 write a whole file with parameter value (with given detector and parameter names) to the Database from start run to end one
static int ReadFile (const char *detector_name, const char *parameter_name, int period_number, int run_number, const char *file_path)
 read a whole file with parameter value (with given detector and parameter names) from the Database for the selected run
static TObjArray * Search (UniSearchCondition &search_condition)
 get parameters' values corresponding to the specified single condition and set owner for search_condition to kTRUE
static TObjArray * Search (TObjArray &search_conditions)
 get parameters' values corresponding to the specified (vector) conditions and set owner for search_condition to kTRUE
static int PrintAll (bool isNonExpiredOnly)
 print all detector parameters, except expired if the flag is true
static UniDetectorParameter * CreateDetectorParameter (TString detector_name, int parameter_id, int start_period, int start_run, int end_period, int end_run, int value_key, unsigned char *parameter_value, Long_t size_parameter_value, TDatime *expiry_date)
 add new detector parameter to the database
static UniDetectorParameter * GetDetectorParameter (int value_id)
 get detector parameter from the database
static int CheckDetectorParameterExists (int value_id)
 check detector parameter exists in the database: 1- true, 0 - false, <0 - database operation error
static int DeleteDetectorParameter (int value_id)
 delete detector parameter from the database
static int PrintAll ()
 print all detector parameters
static UniDetectorParameter * CreateDetectorParameter (TString detector_name, TString parameter_name, int start_period, int start_run, int end_period, int end_run, vector< UniValue * > parameter_value, int value_key=0)
 write detector parameter value presented by an array (integer value key is optional, default, 0)
static UniDetectorParameter * CreateDetectorParameter (TString detector_name, TString parameter_name, int start_period, int start_run, int end_period, int end_run, UniValue *parameter_value, int value_key=0)
 write detector parameter value presented by a single value (integer value key is optional, default, 0)
static UniDetectorParameter * GetDetectorParameter (TString detector_name, TString parameter_name, int period_number, int run_number, TDatime *usage_time=nullptr, int value_key=0)
 get detector parameter value (integer value key is optional, default, 0)
static int DeleteDetectorParameter (TString detector_name, TString parameter_name, int start_period, int start_run, int end_period, int end_run, TDatime *usage_time, int value_key=0)
 delete detector parameter value (integer value key is optional, default, 0)
static int WriteObjectBinary (const char *detector_name, const char *parameter_name, int start_period, int start_run, int end_period, int end_run, TObject *ptr_object)
 write ROOT object as a binary parameter to the Database from start run to end one
static int ReadObjectBinary (const char *detector_name, const char *parameter_name, int period_number, int run_number, TObject *&ptr_object)
 read ROOT object as a binary parameter from from the Database for the selected run
static int WriteObjectJSON (const char *detector_name, const char *parameter_name, int start_period, int start_run, int end_period, int end_run, TObject *ptr_object)
 write ROOT object as a JSON parameter to the Database from start run to end one
static int ReadObjectJSON (const char *detector_name, const char *parameter_name, int period_number, int run_number, TObject *&ptr_object)
 read ROOT object as a JSON parameter from from the Database for the selected run
static int WriteFile (const char *detector_name, const char *parameter_name, int start_period, int start_run, int end_period, int end_run, const char *file_path)
 write a whole file with parameter value (with given detector and parameter names) to the Database from start run to end one
static int ReadFile (const char *detector_name, const char *parameter_name, int period_number, int run_number, const char *file_path)
 read a whole file with parameter value (with given detector and parameter names) from the Database for the selected run
static TObjArray * Search (UniSearchCondition &search_condition)
 get parameters' values corresponding to the specified single condition and set owner for search_condition to kTRUE
static TObjArray * Search (TObjArray &search_conditions)
 get parameters' values corresponding to the specified (vector) conditions and set owner for search_condition to kTRUE
static int PrintAll (bool isNonExpiredOnly)
 print all detector parameters, except expired if the flag is true

Protected Member Functions

unsigned char * GetUNC (enumValueType enum_parameter_type=UndefinedType)
 Parse detector parameter's values and write them to the database: txtFile - path to the text file with parameter values separated by spaces or tabs, e.g.: "value1 value2..." if line is started with '#' symbol - it will be skipped (as comments) detector_name - detector corresponding to the parameter values parameter name - parameter filled by values start_period - start period of validity range for the parameter values start_run - start run of validity range for the parameter values end_period - end period of validity range for the parameter values end_run - end run of validity range for the parameter values.
int SetUNC (unsigned char *p_parameter_value, Long_t size_parameter_value)
unsigned char * GetUNC (enumValueType enum_parameter_type=UndefinedType)
 Parse detector parameter's values and write them to the database: txtFile - path to the text file with parameter values separated by spaces or tabs, e.g.: "value1 value2..." if line is started with '#' symbol - it will be skipped (as comments) detector_name - detector corresponding to the parameter values parameter name - parameter filled by values start_period - start period of validity range for the parameter values start_run - start run of validity range for the parameter values end_period - end period of validity range for the parameter values end_run - end run of validity range for the parameter values.
int SetUNC (unsigned char *p_parameter_value, Long_t size_parameter_value)

Static Protected Member Functions

static UniDetectorParameter * CreateDetectorParameter (TString detector_name, TString parameter_name, int start_period, int start_run, int end_period, int end_run, unsigned char *parameter_value, Long_t size_parameter_value, enumValueType enum_parameter_type, int value_key=0)
static UniDetectorParameter * CreateDetectorParameter (TString detector_name, TString parameter_name, int start_period, int start_run, int end_period, int end_run, unsigned char *parameter_value, Long_t size_parameter_value, enumValueType enum_parameter_type, int value_key=0)

Private Member Functions

 UniDetectorParameter (UniConnection *db_connect, int value_id, TString detector_name, int parameter_id, int start_period, int start_run, int end_period, int end_run, int value_key, unsigned char *parameter_value, Long_t size_parameter_value, TDatime *expiry_date)
 UniDetectorParameter (UniConnection *db_connect, int value_id, TString detector_name, int parameter_id, int start_period, int start_run, int end_period, int end_run, int value_key, unsigned char *parameter_value, Long_t size_parameter_value, TDatime *expiry_date)

Private Attributes

UniConnection * connectionDB
 connection to the database
int i_value_id
 value id
TString str_detector_name
 detector name
int i_parameter_id
 parameter id
int i_start_period
 start period
int i_start_run
 start run
int i_end_period
 end period
int i_end_run
 end run
int i_value_key
 value key
unsigned char * blob_parameter_value
 parameter value
Long_t sz_parameter_value
 size of parameter value
TDatime * ts_expiry_date
 expiry date

Detailed Description

Definition at line 22 of file UniDetectorParameter.h.

Constructor & Destructor Documentation

◆ UniDetectorParameter() [1/2]

UniDetectorParameter::UniDetectorParameter ( UniConnection * db_connect,
int value_id,
TString detector_name,
int parameter_id,
int start_period,
int start_run,
int end_period,
int end_run,
int value_key,
unsigned char * parameter_value,
Long_t size_parameter_value,
TDatime * expiry_date )
private

◆ ~UniDetectorParameter() [1/2]

UniDetectorParameter::~UniDetectorParameter ( )
virtual

Definition at line 51 of file UniDetectorParameter.cxx.

References blob_parameter_value, connectionDB, and ts_expiry_date.

◆ UniDetectorParameter() [2/2]

UniDetectorParameter::UniDetectorParameter ( UniConnection * db_connect,
int value_id,
TString detector_name,
int parameter_id,
int start_period,
int start_run,
int end_period,
int end_run,
int value_key,
unsigned char * parameter_value,
Long_t size_parameter_value,
TDatime * expiry_date )
private

◆ ~UniDetectorParameter() [2/2]

virtual UniDetectorParameter::~UniDetectorParameter ( )
virtual

Member Function Documentation

◆ CheckDetectorParameterExists() [1/2]

int UniDetectorParameter::CheckDetectorParameterExists ( int value_id)
static

Definition at line 235 of file UniDetectorParameter.cxx.

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

Here is the call graph for this function:

◆ CheckDetectorParameterExists() [2/2]

int UniDetectorParameter::CheckDetectorParameterExists ( int value_id)
static

◆ CreateDetectorParameter() [1/8]

UniDetectorParameter * UniDetectorParameter::CreateDetectorParameter ( TString detector_name,
int parameter_id,
int start_period,
int start_run,
int end_period,
int end_run,
int value_key,
unsigned char * parameter_value,
Long_t size_parameter_value,
TDatime * expiry_date )
static

◆ CreateDetectorParameter() [2/8]

UniDetectorParameter * UniDetectorParameter::CreateDetectorParameter ( TString detector_name,
int parameter_id,
int start_period,
int start_run,
int end_period,
int end_run,
int value_key,
unsigned char * parameter_value,
Long_t size_parameter_value,
TDatime * expiry_date )
static

References UniDetectorParameter().

Here is the call graph for this function:

◆ CreateDetectorParameter() [3/8]

UniDetectorParameter * UniDetectorParameter::CreateDetectorParameter ( TString detector_name,
TString parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
UniValue * parameter_value,
int value_key = 0 )
static

Definition at line 926 of file UniDetectorParameter.cxx.

References UniDetectorParameter(), CreateDetectorParameter(), UniRunPeriod::GetFirstRunNumber(), UniRunPeriod::GetLastRunNumber(), UniValue::GetStorageSize(), UniValue::GetType(), parameter_name, and UniValue::WriteValue().

Here is the call graph for this function:

◆ CreateDetectorParameter() [4/8]

UniDetectorParameter * UniDetectorParameter::CreateDetectorParameter ( TString detector_name,
TString parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
UniValue * parameter_value,
int value_key = 0 )
static

References UniDetectorParameter(), and parameter_name.

Here is the call graph for this function:

◆ CreateDetectorParameter() [5/8]

UniDetectorParameter * UniDetectorParameter::CreateDetectorParameter ( TString detector_name,
TString parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
unsigned char * parameter_value,
Long_t size_parameter_value,
enumValueType enum_parameter_type,
int value_key = 0 )
staticprotected

◆ CreateDetectorParameter() [6/8]

UniDetectorParameter * UniDetectorParameter::CreateDetectorParameter ( TString detector_name,
TString parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
unsigned char * parameter_value,
Long_t size_parameter_value,
enumValueType enum_parameter_type,
int value_key = 0 )
staticprotected

References UniDetectorParameter(), and parameter_name.

Here is the call graph for this function:

◆ CreateDetectorParameter() [7/8]

UniDetectorParameter * UniDetectorParameter::CreateDetectorParameter ( TString detector_name,
TString parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
vector< UniValue * > parameter_value,
int value_key = 0 )
static

Definition at line 870 of file UniDetectorParameter.cxx.

References UniDetectorParameter(), CreateDetectorParameter(), UniRunPeriod::GetFirstRunNumber(), UniRunPeriod::GetLastRunNumber(), i, and parameter_name.

Here is the call graph for this function:

◆ CreateDetectorParameter() [8/8]

UniDetectorParameter * UniDetectorParameter::CreateDetectorParameter ( TString detector_name,
TString parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
vector< UniValue * > parameter_value,
int value_key = 0 )
static

References UniDetectorParameter(), and parameter_name.

Here is the call graph for this function:

◆ DeleteDetectorParameter() [1/4]

int UniDetectorParameter::DeleteDetectorParameter ( int value_id)
static

Definition at line 275 of file UniDetectorParameter.cxx.

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

Referenced by delete_parameter_value(), delete_Tof1_INL(), and delete_Tof1_mapping().

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

◆ DeleteDetectorParameter() [2/4]

int UniDetectorParameter::DeleteDetectorParameter ( int value_id)
static

◆ DeleteDetectorParameter() [3/4]

int UniDetectorParameter::DeleteDetectorParameter ( TString detector_name,
TString parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
TDatime * usage_time,
int value_key = 0 )
static

Definition at line 1048 of file UniDetectorParameter.cxx.

References TDatime::Convert(), TSQLStatement::GetNumAffectedRows(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), UniConnection::Open(), parameter_name, TSQLStatement::Process(), TSQLStatement::SetDatime(), TSQLStatement::SetInt(), TSQLStatement::SetString(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ DeleteDetectorParameter() [4/4]

int UniDetectorParameter::DeleteDetectorParameter ( TString detector_name,
TString parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
TDatime * usage_time,
int value_key = 0 )
static

References parameter_name.

◆ GetDetectorName() [1/2]

TString UniDetectorParameter::GetDetectorName ( )
inline

Definition at line 96 of file UniDetectorParameter.h.

References str_detector_name.

Referenced by compare_db(), copy_data_table2table(), and MoveParameter().

Here is the caller graph for this function:

◆ GetDetectorName() [2/2]

TString UniDetectorParameter::GetDetectorName ( )
inline

Definition at line 96 of file UniDetectorParameter.h.

References str_detector_name.

◆ GetDetectorParameter() [1/4]

UniDetectorParameter * UniDetectorParameter::GetDetectorParameter ( int value_id)
static

◆ GetDetectorParameter() [2/4]

UniDetectorParameter * UniDetectorParameter::GetDetectorParameter ( int value_id)
static

References UniDetectorParameter().

Here is the call graph for this function:

◆ GetDetectorParameter() [3/4]

UniDetectorParameter * UniDetectorParameter::GetDetectorParameter ( TString detector_name,
TString parameter_name,
int period_number,
int run_number,
TDatime * usage_time = nullptr,
int value_key = 0 )
static

◆ GetDetectorParameter() [4/4]

UniDetectorParameter * UniDetectorParameter::GetDetectorParameter ( TString detector_name,
TString parameter_name,
int period_number,
int run_number,
TDatime * usage_time = nullptr,
int value_key = 0 )
static

References UniDetectorParameter(), and parameter_name.

Here is the call graph for this function:

◆ GetEnd() [1/2]

void UniDetectorParameter::GetEnd ( int & end_period,
int & end_run )

Definition at line 1657 of file UniDetectorParameter.cxx.

References i_end_period, and i_end_run.

◆ GetEnd() [2/2]

void UniDetectorParameter::GetEnd ( int & end_period,
int & end_run )

◆ GetEndPeriod() [1/2]

int UniDetectorParameter::GetEndPeriod ( )
inline

Definition at line 104 of file UniDetectorParameter.h.

References i_end_period.

Referenced by copy_data_table2table(), and MoveParameter().

Here is the caller graph for this function:

◆ GetEndPeriod() [2/2]

int UniDetectorParameter::GetEndPeriod ( )
inline

Definition at line 104 of file UniDetectorParameter.h.

References i_end_period.

◆ GetEndRun() [1/2]

int UniDetectorParameter::GetEndRun ( )
inline

Definition at line 106 of file UniDetectorParameter.h.

References i_end_run.

Referenced by copy_data_table2table(), MoveParameter(), and print_parameter_values().

Here is the caller graph for this function:

◆ GetEndRun() [2/2]

int UniDetectorParameter::GetEndRun ( )
inline

Definition at line 106 of file UniDetectorParameter.h.

References i_end_run.

◆ GetExpiryDate() [1/2]

TDatime * UniDetectorParameter::GetExpiryDate ( )
inline

Definition at line 119 of file UniDetectorParameter.h.

References ts_expiry_date.

◆ GetExpiryDate() [2/2]

TDatime * UniDetectorParameter::GetExpiryDate ( )
inline

Definition at line 119 of file UniDetectorParameter.h.

References ts_expiry_date.

◆ GetParameterId() [1/2]

int UniDetectorParameter::GetParameterId ( )
inline

Definition at line 98 of file UniDetectorParameter.h.

References i_parameter_id.

◆ GetParameterId() [2/2]

int UniDetectorParameter::GetParameterId ( )
inline

Definition at line 98 of file UniDetectorParameter.h.

References i_parameter_id.

◆ GetParameterName() [1/2]

TString UniDetectorParameter::GetParameterName ( )

Definition at line 1618 of file UniDetectorParameter.cxx.

References UniParameter::GetParameter(), UniParameter::GetParameterName(), and i_parameter_id.

Referenced by compare_db(), copy_data_table2table(), LoadTofDBParameters(), MoveParameter(), and print_parameter_values().

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

◆ GetParameterName() [2/2]

TString UniDetectorParameter::GetParameterName ( )

◆ GetParameterType() [1/2]

enumValueType UniDetectorParameter::GetParameterType ( )

Definition at line 1633 of file UniDetectorParameter.cxx.

References UniParameter::GetParameter(), UniParameter::GetParameterType(), i_parameter_id, and UndefinedType.

Referenced by compare_db(), copy_data_table2table(), GetValue(), and GetValue().

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

◆ GetParameterType() [2/2]

enumValueType UniDetectorParameter::GetParameterType ( )

◆ GetParameterValue() [1/2]

unsigned char * UniDetectorParameter::GetParameterValue ( )
inline

Definition at line 110 of file UniDetectorParameter.h.

References blob_parameter_value, and sz_parameter_value.

Referenced by print_parameter_values().

Here is the caller graph for this function:

◆ GetParameterValue() [2/2]

unsigned char * UniDetectorParameter::GetParameterValue ( )
inline

Definition at line 110 of file UniDetectorParameter.h.

References blob_parameter_value, and sz_parameter_value.

◆ GetParameterValueSize() [1/2]

Long_t UniDetectorParameter::GetParameterValueSize ( )
inline

Definition at line 117 of file UniDetectorParameter.h.

References sz_parameter_value.

◆ GetParameterValueSize() [2/2]

Long_t UniDetectorParameter::GetParameterValueSize ( )
inline

Definition at line 117 of file UniDetectorParameter.h.

References sz_parameter_value.

◆ GetStart() [1/2]

void UniDetectorParameter::GetStart ( int & start_period,
int & start_run )

Definition at line 1648 of file UniDetectorParameter.cxx.

References i_start_period, and i_start_run.

◆ GetStart() [2/2]

void UniDetectorParameter::GetStart ( int & start_period,
int & start_run )

◆ GetStartPeriod() [1/2]

int UniDetectorParameter::GetStartPeriod ( )
inline

Definition at line 100 of file UniDetectorParameter.h.

References i_start_period.

Referenced by compare_db(), copy_data_table2table(), and MoveParameter().

Here is the caller graph for this function:

◆ GetStartPeriod() [2/2]

int UniDetectorParameter::GetStartPeriod ( )
inline

Definition at line 100 of file UniDetectorParameter.h.

References i_start_period.

◆ GetStartRun() [1/2]

int UniDetectorParameter::GetStartRun ( )
inline

Definition at line 102 of file UniDetectorParameter.h.

References i_start_run.

Referenced by compare_db(), copy_data_table2table(), MoveParameter(), and print_parameter_values().

Here is the caller graph for this function:

◆ GetStartRun() [2/2]

int UniDetectorParameter::GetStartRun ( )
inline

Definition at line 102 of file UniDetectorParameter.h.

References i_start_run.

◆ GetUNC() [1/2]

unsigned char * UniDetectorParameter::GetUNC ( enumValueType enum_parameter_type = UndefinedType)
protected

Function returns row count added to the database.

Definition at line 685 of file UniDetectorParameter.cxx.

References blob_parameter_value, connectionDB, TString::Format(), TSQLStatement::GetInt(), TSQLStatement::GetString(), i_parameter_id, TSQLStatement::NextResultRow(), parameter_name, TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Referenced by GetValue(), and GetValue().

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

◆ GetUNC() [2/2]

unsigned char * UniDetectorParameter::GetUNC ( enumValueType enum_parameter_type = UndefinedType)
protected

Function returns row count added to the database.

References UndefinedType.

◆ GetValue() [1/4]

UniValue * UniDetectorParameter::GetValue ( )

Definition at line 1129 of file UniDetectorParameter.cxx.

References CreateParameterValue(), GetParameterType(), GetUNC(), and UniValue::ReadValue().

Here is the call graph for this function:

◆ GetValue() [2/4]

UniValue * UniDetectorParameter::GetValue ( )

◆ GetValue() [3/4]

◆ GetValue() [4/4]

int UniDetectorParameter::GetValue ( vector< UniValue * > & parameter_value)

◆ GetValueId() [1/2]

int UniDetectorParameter::GetValueId ( )
inline

Definition at line 94 of file UniDetectorParameter.h.

References i_value_id.

◆ GetValueId() [2/2]

int UniDetectorParameter::GetValueId ( )
inline

Definition at line 94 of file UniDetectorParameter.h.

References i_value_id.

◆ GetValueKey() [1/2]

int UniDetectorParameter::GetValueKey ( )
inline

Definition at line 108 of file UniDetectorParameter.h.

References i_value_key.

◆ GetValueKey() [2/2]

int UniDetectorParameter::GetValueKey ( )
inline

Definition at line 108 of file UniDetectorParameter.h.

References i_value_key.

◆ Print() [1/2]

void UniDetectorParameter::Print ( )

Definition at line 670 of file UniDetectorParameter.cxx.

References blob_parameter_value, i_end_period, i_end_run, i_parameter_id, i_start_period, i_start_run, i_value_id, i_value_key, str_detector_name, sz_parameter_value, and ts_expiry_date.

Referenced by selecting_parameters().

Here is the caller graph for this function:

◆ Print() [2/2]

void UniDetectorParameter::Print ( )

◆ PrintAll() [1/4]

int UniDetectorParameter::PrintAll ( )
static

Definition at line 305 of file UniDetectorParameter.cxx.

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

Referenced by print_parameter_values().

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

◆ PrintAll() [2/4]

int UniDetectorParameter::PrintAll ( )
static

◆ PrintAll() [3/4]

int UniDetectorParameter::PrintAll ( bool isNonExpiredOnly)
static

◆ PrintAll() [4/4]

int UniDetectorParameter::PrintAll ( bool isNonExpiredOnly)
static

◆ ReadFile() [1/2]

int UniDetectorParameter::ReadFile ( const char * detector_name,
const char * parameter_name,
int period_number,
int run_number,
const char * file_path )
static

Definition at line 1383 of file UniDetectorParameter.cxx.

References UniDetectorParameter(), GetDetectorParameter(), GetValue(), parameter_name, BinaryValue::size, and BinaryValue::value.

Referenced by BmnInnTrackerAlign::BmnInnTrackerAlign(), and get_parameter_value_file().

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

◆ ReadFile() [2/2]

int UniDetectorParameter::ReadFile ( const char * detector_name,
const char * parameter_name,
int period_number,
int run_number,
const char * file_path )
static

References parameter_name.

◆ ReadObjectBinary() [1/2]

int UniDetectorParameter::ReadObjectBinary ( const char * detector_name,
const char * parameter_name,
int period_number,
int run_number,
TObject *& ptr_object )
static

Definition at line 1236 of file UniDetectorParameter.cxx.

References UniDetectorParameter(), TObject::Class(), GetDetectorParameter(), GetValue(), TBuffer::kRead, parameter_name, TBufferFile::ReadObject(), BinaryValue::size, and BinaryValue::value.

Here is the call graph for this function:

◆ ReadObjectBinary() [2/2]

int UniDetectorParameter::ReadObjectBinary ( const char * detector_name,
const char * parameter_name,
int period_number,
int run_number,
TObject *& ptr_object )
static

References parameter_name.

◆ ReadObjectJSON() [1/2]

int UniDetectorParameter::ReadObjectJSON ( const char * detector_name,
const char * parameter_name,
int period_number,
int run_number,
TObject *& ptr_object )
static

Definition at line 1294 of file UniDetectorParameter.cxx.

References UniDetectorParameter(), TBufferJSON::ConvertFromJSON(), GetDetectorParameter(), GetValue(), parameter_name, and JsonValue::value.

Here is the call graph for this function:

◆ ReadObjectJSON() [2/2]

int UniDetectorParameter::ReadObjectJSON ( const char * detector_name,
const char * parameter_name,
int period_number,
int run_number,
TObject *& ptr_object )
static

References parameter_name.

◆ Search() [1/4]

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

Definition at line 1430 of file UniDetectorParameter.cxx.

References UniDetectorParameter(), TObjArray::Add(), TDatime::AsSQLString(), UniSearchCondition::columnDetectorName, UniSearchCondition::columnEndPeriod, UniSearchCondition::columnEndRun, UniSearchCondition::columnParameterName, UniSearchCondition::columnStartPeriod, UniSearchCondition::columnStartRun, UniSearchCondition::conditionEqual, UniSearchCondition::conditionGreater, UniSearchCondition::conditionGreaterOrEqual, UniSearchCondition::conditionLess, UniSearchCondition::conditionLessOrEqual, UniSearchCondition::conditionLike, UniSearchCondition::conditionNotEqual, UniSearchCondition::conditionNotNull, UniSearchCondition::conditionNull, TString::Data(), TString::Format(), TSQLStatement::GetBinary(), UniSearchCondition::GetColumn(), UniSearchCondition::GetCondition(), TSQLStatement::GetDatime(), UniSearchCondition::GetDatimeValue(), 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 * UniDetectorParameter::Search ( TObjArray & search_conditions)
static

◆ Search() [3/4]

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

Definition at line 1609 of file UniDetectorParameter.cxx.

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

Referenced by compare_db(), copy_data_table2table(), LoadTofDBParameters(), MoveParameter(), print_parameter_values(), Search(), and selecting_parameters().

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

◆ Search() [4/4]

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

◆ SetDetectorName() [1/2]

int UniDetectorParameter::SetDetectorName ( TString detector_name)

Definition at line 369 of file UniDetectorParameter.cxx.

References connectionDB, TString::Format(), i_value_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and str_detector_name.

Here is the call graph for this function:

◆ SetDetectorName() [2/2]

int UniDetectorParameter::SetDetectorName ( TString detector_name)

◆ SetEnd() [1/2]

int UniDetectorParameter::SetEnd ( int end_period,
int end_run )

Definition at line 1701 of file UniDetectorParameter.cxx.

References connectionDB, TString::Format(), i_end_period, i_end_run, i_value_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ SetEnd() [2/2]

int UniDetectorParameter::SetEnd ( int end_period,
int end_run )

◆ SetEndPeriod() [1/2]

int UniDetectorParameter::SetEndPeriod ( int end_period)

Definition at line 497 of file UniDetectorParameter.cxx.

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

Here is the call graph for this function:

◆ SetEndPeriod() [2/2]

int UniDetectorParameter::SetEndPeriod ( int end_period)

◆ SetEndRun() [1/2]

int UniDetectorParameter::SetEndRun ( int end_run)

Definition at line 529 of file UniDetectorParameter.cxx.

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

Here is the call graph for this function:

◆ SetEndRun() [2/2]

int UniDetectorParameter::SetEndRun ( int end_run)

◆ SetExpiryDate() [1/2]

int UniDetectorParameter::SetExpiryDate ( TDatime * expiry_date)

Definition at line 629 of file UniDetectorParameter.cxx.

References connectionDB, TString::Format(), i_value_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetDatime(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), TSQLServer::Statement(), and ts_expiry_date.

Here is the call graph for this function:

◆ SetExpiryDate() [2/2]

int UniDetectorParameter::SetExpiryDate ( TDatime * expiry_date)

◆ SetParameterId() [1/2]

int UniDetectorParameter::SetParameterId ( int parameter_id)

Definition at line 401 of file UniDetectorParameter.cxx.

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

Here is the call graph for this function:

◆ SetParameterId() [2/2]

int UniDetectorParameter::SetParameterId ( int parameter_id)

◆ SetParameterValue() [1/2]

int UniDetectorParameter::SetParameterValue ( unsigned char * parameter_value,
Long_t size_parameter_value )

Definition at line 593 of file UniDetectorParameter.cxx.

References blob_parameter_value, connectionDB, TString::Format(), i_value_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetBinary(), TSQLStatement::SetInt(), TSQLServer::Statement(), and sz_parameter_value.

Here is the call graph for this function:

◆ SetParameterValue() [2/2]

int UniDetectorParameter::SetParameterValue ( unsigned char * parameter_value,
Long_t size_parameter_value )

◆ SetStart() [1/2]

int UniDetectorParameter::SetStart ( int start_period,
int start_run )

Definition at line 1666 of file UniDetectorParameter.cxx.

References connectionDB, TString::Format(), i_start_period, i_start_run, i_value_id, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetInt(), and TSQLServer::Statement().

Here is the call graph for this function:

◆ SetStart() [2/2]

int UniDetectorParameter::SetStart ( int start_period,
int start_run )

◆ SetStartPeriod() [1/2]

int UniDetectorParameter::SetStartPeriod ( int start_period)

Definition at line 433 of file UniDetectorParameter.cxx.

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

Here is the call graph for this function:

◆ SetStartPeriod() [2/2]

int UniDetectorParameter::SetStartPeriod ( int start_period)

◆ SetStartRun() [1/2]

int UniDetectorParameter::SetStartRun ( int start_run)

Definition at line 465 of file UniDetectorParameter.cxx.

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

Here is the call graph for this function:

◆ SetStartRun() [2/2]

int UniDetectorParameter::SetStartRun ( int start_run)

◆ SetUNC() [1/2]

int UniDetectorParameter::SetUNC ( unsigned char * p_parameter_value,
Long_t size_parameter_value )
protected

Definition at line 735 of file UniDetectorParameter.cxx.

References blob_parameter_value, connectionDB, TString::Format(), i_end_period, i_end_run, i_parameter_id, i_start_period, i_start_run, i_value_key, TSQLStatement::NextIteration(), TSQLStatement::Process(), TSQLStatement::SetBinary(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), str_detector_name, and sz_parameter_value.

Referenced by SetValue(), and SetValue().

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

◆ SetUNC() [2/2]

int UniDetectorParameter::SetUNC ( unsigned char * p_parameter_value,
Long_t size_parameter_value )
protected

◆ SetValue() [1/4]

int UniDetectorParameter::SetValue ( UniValue * parameter_value)

Definition at line 1172 of file UniDetectorParameter.cxx.

References UniValue::GetStorageSize(), SetUNC(), and UniValue::WriteValue().

Here is the call graph for this function:

◆ SetValue() [2/4]

int UniDetectorParameter::SetValue ( UniValue * parameter_value)

◆ SetValue() [3/4]

int UniDetectorParameter::SetValue ( vector< UniValue * > parameter_value)

Definition at line 1142 of file UniDetectorParameter.cxx.

References i, and SetUNC().

Here is the call graph for this function:

◆ SetValue() [4/4]

int UniDetectorParameter::SetValue ( vector< UniValue * > parameter_value)

◆ SetValueKey() [1/2]

int UniDetectorParameter::SetValueKey ( int value_key)

Definition at line 561 of file UniDetectorParameter.cxx.

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

Here is the call graph for this function:

◆ SetValueKey() [2/2]

int UniDetectorParameter::SetValueKey ( int value_key)

◆ WriteFile() [1/2]

int UniDetectorParameter::WriteFile ( const char * detector_name,
const char * parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
const char * file_path )
static

Definition at line 1320 of file UniDetectorParameter.cxx.

References UniDetectorParameter(), CreateDetectorParameter(), TString::Data(), parameter_name, BinaryValue::size, and BinaryValue::value.

Referenced by put_parameter_value_file().

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

◆ WriteFile() [2/2]

int UniDetectorParameter::WriteFile ( const char * detector_name,
const char * parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
const char * file_path )
static

References parameter_name.

◆ WriteObjectBinary() [1/2]

int UniDetectorParameter::WriteObjectBinary ( const char * detector_name,
const char * parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
TObject * ptr_object )
static

Definition at line 1194 of file UniDetectorParameter.cxx.

References UniDetectorParameter(), TBuffer::Buffer(), CreateDetectorParameter(), TBuffer::kWrite, TBuffer::Length(), parameter_name, BinaryValue::size, BinaryValue::value, and TBufferIO::WriteObject().

Here is the call graph for this function:

◆ WriteObjectBinary() [2/2]

int UniDetectorParameter::WriteObjectBinary ( const char * detector_name,
const char * parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
TObject * ptr_object )
static

References parameter_name.

◆ WriteObjectJSON() [1/2]

int UniDetectorParameter::WriteObjectJSON ( const char * detector_name,
const char * parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
TObject * ptr_object )
static

Definition at line 1262 of file UniDetectorParameter.cxx.

References UniDetectorParameter(), TBufferJSON::ConvertToJSON(), CreateDetectorParameter(), TString::Data(), parameter_name, and JsonValue::value.

Here is the call graph for this function:

◆ WriteObjectJSON() [2/2]

int UniDetectorParameter::WriteObjectJSON ( const char * detector_name,
const char * parameter_name,
int start_period,
int start_run,
int end_period,
int end_run,
TObject * ptr_object )
static

References parameter_name.

Member Data Documentation

◆ blob_parameter_value

unsigned char * UniDetectorParameter::blob_parameter_value
private

◆ connectionDB

◆ i_end_period

int UniDetectorParameter::i_end_period
private

◆ i_end_run

int UniDetectorParameter::i_end_run
private

◆ i_parameter_id

int UniDetectorParameter::i_parameter_id
private

◆ i_start_period

int UniDetectorParameter::i_start_period
private

◆ i_start_run

int UniDetectorParameter::i_start_run
private

◆ i_value_id

◆ i_value_key

int UniDetectorParameter::i_value_key
private

Definition at line 44 of file UniDetectorParameter.h.

Referenced by UniDetectorParameter(), GetValueKey(), Print(), SetUNC(), and SetValueKey().

◆ str_detector_name

TString UniDetectorParameter::str_detector_name
private

◆ sz_parameter_value

Long_t UniDetectorParameter::sz_parameter_value
private

◆ ts_expiry_date

TDatime * UniDetectorParameter::ts_expiry_date
private

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