|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
#include <UniDetectorParameter.h>
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 * > ¶meter_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 * > ¶meter_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 | |
Definition at line 22 of file UniDetectorParameter.h.
|
private |
Definition at line 22 of file UniDetectorParameter.cxx.
References blob_parameter_value, connectionDB, 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 CreateDetectorParameter(), CreateDetectorParameter(), CreateDetectorParameter(), CreateDetectorParameter(), GetDetectorParameter(), GetDetectorParameter(), ReadFile(), ReadObjectBinary(), ReadObjectJSON(), Search(), WriteFile(), WriteObjectBinary(), and WriteObjectJSON().
|
virtual |
Definition at line 51 of file UniDetectorParameter.cxx.
References blob_parameter_value, connectionDB, and ts_expiry_date.
|
private |
|
virtual |
|
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().
|
static |
|
static |
Definition at line 62 of file UniDetectorParameter.cxx.
References UniDetectorParameter(), TString::Format(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLStatement::SetBinary(), TSQLStatement::SetDatime(), TSQLStatement::SetInt(), TSQLStatement::SetNull(), TSQLStatement::SetString(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
Referenced by add_DCH_mapping(), add_GEM_AlgnShift(), add_GEM_constants(), add_GEM_local_mapping(), add_GEM_mapping(), add_GEM_pedestals(), add_lorShift(), add_Si_AlgnShift(), add_slewing_file_id(), add_Tof1_INL_new(), add_Tof1_mapping(), add_Tof1_mapping_New(), add_Tof701_INL(), add_Tof701_mapping(), add_TRIG_mapping(), CreateDetectorParameter(), CreateDetectorParameter(), move_field_2_parameter(), UniParser::ParseTxtNoise2Db(), put_parameter_value(), put_parameter_value_complex(), put_parameter_value_json(), WriteFile(), WriteObjectBinary(), and WriteObjectJSON().
|
static |
|
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().
|
static |
|
staticprotected |
Definition at line 778 of file UniDetectorParameter.cxx.
References UniDetectorParameter(), UniParameter::CheckAndGetParameterID(), TString::Format(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), TSQLStatement::NextIteration(), TSQLStatement::NextResultRow(), UniConnection::Open(), parameter_name, TSQLStatement::Process(), TSQLStatement::SetBinary(), TSQLStatement::SetInt(), TSQLStatement::SetString(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
staticprotected |
|
static |
Definition at line 870 of file UniDetectorParameter.cxx.
References UniDetectorParameter(), CreateDetectorParameter(), UniRunPeriod::GetFirstRunNumber(), UniRunPeriod::GetLastRunNumber(), i, and parameter_name.
|
static |
|
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().
|
static |
|
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().
|
static |
References parameter_name.
|
inline |
Definition at line 96 of file UniDetectorParameter.h.
References str_detector_name.
Referenced by compare_db(), copy_data_table2table(), and MoveParameter().
|
inline |
Definition at line 96 of file UniDetectorParameter.h.
References str_detector_name.
|
static |
Definition at line 165 of file UniDetectorParameter.cxx.
References UniDetectorParameter(), 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 BmnInnTrackerAlign::BmnInnTrackerAlign(), convert_current_2_voltage(), BmnGemStripHitMaker::createGemDetector(), BmnSiliconHitMaker::createSiliconDetector(), BmnVSPHitMaker::createVSPDetector(), dch_noise_hist(), get_lorShift(), get_parameter_alignment(), get_parameter_value(), get_parameter_value_complex(), get_parameter_value_inl(), get_parameter_value_json(), get_slewing_file_id(), BmnFillTrigInfoDst::GetT0SlewingFromDb(), BmnHodoRaw2Digit::LoadCalibration(), BmnScWallRaw2Digit::LoadCalibration(), move_field_2_run(), print_parameter(), read_tof1_inl(), read_Tof1_mapping(), ReadFile(), BmnGemRaw2Digit::ReadMap(), BmnDchRaw2Digit::ReadMapFromDB(), ReadObjectBinary(), ReadObjectJSON(), BmnTof1Raw2Digit::setRun(), and BmnTof701Raw2Digit::setRun().
|
static |
|
static |
Definition at line 969 of file UniDetectorParameter.cxx.
References UniDetectorParameter(), TString::Data(), TString::Format(), TSQLStatement::GetBinary(), TSQLStatement::GetDatime(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), TSQLStatement::GetString(), TSQLStatement::IsNull(), TSQLStatement::NextResultRow(), UniConnection::Open(), parameter_name, TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().
|
static |
| 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.
| void UniDetectorParameter::GetEnd | ( | int & | end_period, |
| int & | end_run ) |
|
inline |
Definition at line 104 of file UniDetectorParameter.h.
References i_end_period.
Referenced by copy_data_table2table(), and MoveParameter().
|
inline |
Definition at line 104 of file UniDetectorParameter.h.
References i_end_period.
|
inline |
Definition at line 106 of file UniDetectorParameter.h.
References i_end_run.
Referenced by copy_data_table2table(), MoveParameter(), and print_parameter_values().
|
inline |
Definition at line 106 of file UniDetectorParameter.h.
References i_end_run.
|
inline |
Definition at line 119 of file UniDetectorParameter.h.
References ts_expiry_date.
|
inline |
Definition at line 119 of file UniDetectorParameter.h.
References ts_expiry_date.
|
inline |
Definition at line 98 of file UniDetectorParameter.h.
References i_parameter_id.
|
inline |
Definition at line 98 of file UniDetectorParameter.h.
References i_parameter_id.
| 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().
| TString UniDetectorParameter::GetParameterName | ( | ) |
| 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().
| enumValueType UniDetectorParameter::GetParameterType | ( | ) |
|
inline |
Definition at line 110 of file UniDetectorParameter.h.
References blob_parameter_value, and sz_parameter_value.
Referenced by print_parameter_values().
|
inline |
Definition at line 110 of file UniDetectorParameter.h.
References blob_parameter_value, and sz_parameter_value.
|
inline |
Definition at line 117 of file UniDetectorParameter.h.
References sz_parameter_value.
|
inline |
Definition at line 117 of file UniDetectorParameter.h.
References sz_parameter_value.
| 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.
| void UniDetectorParameter::GetStart | ( | int & | start_period, |
| int & | start_run ) |
|
inline |
Definition at line 100 of file UniDetectorParameter.h.
References i_start_period.
Referenced by compare_db(), copy_data_table2table(), and MoveParameter().
|
inline |
Definition at line 100 of file UniDetectorParameter.h.
References i_start_period.
|
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().
|
inline |
Definition at line 102 of file UniDetectorParameter.h.
References i_start_run.
|
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().
|
protected |
Function returns row count added to the database.
References UndefinedType.
| UniValue * UniDetectorParameter::GetValue | ( | ) |
Definition at line 1129 of file UniDetectorParameter.cxx.
References CreateParameterValue(), GetParameterType(), GetUNC(), and UniValue::ReadValue().
| UniValue * UniDetectorParameter::GetValue | ( | ) |
| int UniDetectorParameter::GetValue | ( | vector< UniValue * > & | parameter_value | ) |
Definition at line 1109 of file UniDetectorParameter.cxx.
References CreateParameterValue(), GetParameterType(), UniValue::GetStorageSize(), GetUNC(), UniValue::ReadValue(), and sz_parameter_value.
Referenced by BmnInnTrackerAlign::BmnInnTrackerAlign(), convert_current_2_voltage(), BmnGemStripHitMaker::createGemDetector(), BmnSiliconHitMaker::createSiliconDetector(), BmnVSPHitMaker::createVSPDetector(), dch_noise_hist(), get_lorShift(), get_parameter_alignment(), get_parameter_value(), get_parameter_value_complex(), get_parameter_value_json(), get_slewing_file_id(), BmnFillTrigInfoDst::GetT0SlewingFromDb(), BmnHodoRaw2Digit::LoadCalibration(), BmnScWallRaw2Digit::LoadCalibration(), move_field_2_run(), print_parameter(), read_tof1_inl(), read_Tof1_mapping(), ReadFile(), BmnGemRaw2Digit::ReadMap(), BmnDchRaw2Digit::ReadMapFromDB(), ReadObjectBinary(), ReadObjectJSON(), BmnTof1Raw2Digit::setRun(), and BmnTof701Raw2Digit::setRun().
| int UniDetectorParameter::GetValue | ( | vector< UniValue * > & | parameter_value | ) |
|
inline |
Definition at line 94 of file UniDetectorParameter.h.
References i_value_id.
|
inline |
Definition at line 94 of file UniDetectorParameter.h.
References i_value_id.
|
inline |
Definition at line 108 of file UniDetectorParameter.h.
References i_value_key.
|
inline |
Definition at line 108 of file UniDetectorParameter.h.
References i_value_key.
| 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().
| void UniDetectorParameter::Print | ( | ) |
|
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().
|
static |
|
static |
Definition at line 1736 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().
|
static |
|
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().
|
static |
References parameter_name.
|
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.
|
static |
References parameter_name.
|
static |
Definition at line 1294 of file UniDetectorParameter.cxx.
References UniDetectorParameter(), TBufferJSON::ConvertFromJSON(), GetDetectorParameter(), GetValue(), parameter_name, and JsonValue::value.
|
static |
References parameter_name.
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().
|
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().
|
static |
| 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.
| int UniDetectorParameter::SetDetectorName | ( | TString | detector_name | ) |
| 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().
| int UniDetectorParameter::SetEnd | ( | int | end_period, |
| int | end_run ) |
| 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().
| int UniDetectorParameter::SetEndPeriod | ( | int | end_period | ) |
| 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().
| int UniDetectorParameter::SetEndRun | ( | int | end_run | ) |
| 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.
| int UniDetectorParameter::SetExpiryDate | ( | TDatime * | expiry_date | ) |
| 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().
| int UniDetectorParameter::SetParameterId | ( | int | parameter_id | ) |
| 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.
| int UniDetectorParameter::SetParameterValue | ( | unsigned char * | parameter_value, |
| Long_t | size_parameter_value ) |
| 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().
| int UniDetectorParameter::SetStart | ( | int | start_period, |
| int | start_run ) |
| 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().
| int UniDetectorParameter::SetStartPeriod | ( | int | start_period | ) |
| 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().
| int UniDetectorParameter::SetStartRun | ( | int | start_run | ) |
|
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().
|
protected |
| int UniDetectorParameter::SetValue | ( | UniValue * | parameter_value | ) |
Definition at line 1172 of file UniDetectorParameter.cxx.
References UniValue::GetStorageSize(), SetUNC(), and UniValue::WriteValue().
| int UniDetectorParameter::SetValue | ( | UniValue * | parameter_value | ) |
| int UniDetectorParameter::SetValue | ( | vector< UniValue * > | parameter_value | ) |
| int UniDetectorParameter::SetValue | ( | vector< UniValue * > | parameter_value | ) |
| 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().
| int UniDetectorParameter::SetValueKey | ( | int | value_key | ) |
|
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().
|
static |
References parameter_name.
|
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().
|
static |
References parameter_name.
|
static |
Definition at line 1262 of file UniDetectorParameter.cxx.
References UniDetectorParameter(), TBufferJSON::ConvertToJSON(), CreateDetectorParameter(), TString::Data(), parameter_name, and JsonValue::value.
|
static |
References parameter_name.
|
private |
Definition at line 46 of file UniDetectorParameter.h.
Referenced by UniDetectorParameter(), ~UniDetectorParameter(), GetParameterValue(), GetUNC(), Print(), SetParameterValue(), and SetUNC().
|
private |
Definition at line 27 of file UniDetectorParameter.h.
Referenced by UniDetectorParameter(), ~UniDetectorParameter(), GetUNC(), SetDetectorName(), SetEnd(), SetEndPeriod(), SetEndRun(), SetExpiryDate(), SetParameterId(), SetParameterValue(), SetStart(), SetStartPeriod(), SetStartRun(), SetUNC(), and SetValueKey().
|
private |
Definition at line 40 of file UniDetectorParameter.h.
Referenced by UniDetectorParameter(), GetEnd(), GetEndPeriod(), Print(), SetEnd(), SetEndPeriod(), and SetUNC().
|
private |
Definition at line 42 of file UniDetectorParameter.h.
Referenced by UniDetectorParameter(), GetEnd(), GetEndRun(), Print(), SetEnd(), SetEndRun(), and SetUNC().
|
private |
Definition at line 34 of file UniDetectorParameter.h.
Referenced by UniDetectorParameter(), GetParameterId(), GetParameterName(), GetParameterType(), GetUNC(), Print(), SetParameterId(), and SetUNC().
|
private |
Definition at line 36 of file UniDetectorParameter.h.
Referenced by UniDetectorParameter(), GetStart(), GetStartPeriod(), Print(), SetStart(), SetStartPeriod(), and SetUNC().
|
private |
Definition at line 38 of file UniDetectorParameter.h.
Referenced by UniDetectorParameter(), GetStart(), GetStartRun(), Print(), SetStart(), SetStartRun(), and SetUNC().
|
private |
Definition at line 30 of file UniDetectorParameter.h.
Referenced by UniDetectorParameter(), GetValueId(), Print(), SetDetectorName(), SetEnd(), SetEndPeriod(), SetEndRun(), SetExpiryDate(), SetParameterId(), SetParameterValue(), SetStart(), SetStartPeriod(), SetStartRun(), and SetValueKey().
|
private |
Definition at line 44 of file UniDetectorParameter.h.
Referenced by UniDetectorParameter(), GetValueKey(), Print(), SetUNC(), and SetValueKey().
|
private |
Definition at line 32 of file UniDetectorParameter.h.
Referenced by UniDetectorParameter(), GetDetectorName(), Print(), SetDetectorName(), and SetUNC().
|
private |
Definition at line 48 of file UniDetectorParameter.h.
Referenced by UniDetectorParameter(), GetParameterValue(), GetParameterValueSize(), GetValue(), Print(), SetParameterValue(), and SetUNC().
|
private |
Definition at line 50 of file UniDetectorParameter.h.
Referenced by UniDetectorParameter(), ~UniDetectorParameter(), GetExpiryDate(), Print(), and SetExpiryDate().