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

#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 * > &parameter_value)
 get value of detector parameter presented by an array
 
UniValueGetValue ()
 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
 
UniValueGetValue ()
 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 UniDetectorParameterCreateDetectorParameter (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 UniDetectorParameterGetDetectorParameter (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 UniDetectorParameterCreateDetectorParameter (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 UniDetectorParameterCreateDetectorParameter (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 UniDetectorParameterGetDetectorParameter (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 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 int ReadFile (const char *detector_name, const char *parameter_name, int period_number, int run_number, const char *file_path)
 
static TObjArray * Search (UniSearchCondition &search_condition)
 
static TObjArray * Search (TObjArray &search_conditions)
 
static UniDetectorParameterCreateDetectorParameter (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 UniDetectorParameterGetDetectorParameter (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 UniDetectorParameterCreateDetectorParameter (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 UniDetectorParameterCreateDetectorParameter (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 UniDetectorParameterGetDetectorParameter (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 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 int ReadFile (const char *detector_name, const char *parameter_name, int period_number, int run_number, const char *file_path)
 
static TObjArray * Search (UniSearchCondition &search_condition)
 
static TObjArray * Search (TObjArray &search_conditions)
 

Protected Member Functions

unsigned char * GetUNC (enumValueType enum_parameter_type=UndefinedType)
 
int SetUNC (unsigned char *p_parameter_value, Long_t size_parameter_value)
 
 ClassDef (UniDetectorParameter, 1)
 
unsigned char * GetUNC (enumValueType enum_parameter_type=UndefinedType)
 
int SetUNC (unsigned char *p_parameter_value, Long_t size_parameter_value)
 
 ClassDef (UniDetectorParameter, 1)
 

Static Protected Member Functions

static UniDetectorParameterCreateDetectorParameter (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 UniDetectorParameterCreateDetectorParameter (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)
 

Detailed Description

Definition at line 22 of file UniDetectorParameter.h.

Constructor & Destructor Documentation

◆ ~UniDetectorParameter() [1/2]

UniDetectorParameter::~UniDetectorParameter ( )
virtual

Definition at line 49 of file UniDetectorParameter.cxx.

◆ ~UniDetectorParameter() [2/2]

virtual UniDetectorParameter::~UniDetectorParameter ( )
virtual

Member Function Documentation

◆ CheckDetectorParameterExists() [1/2]

int UniDetectorParameter::CheckDetectorParameterExists ( int  value_id)
static

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

Definition at line 233 of file UniDetectorParameter.cxx.

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

◆ CheckDetectorParameterExists() [2/2]

static int UniDetectorParameter::CheckDetectorParameterExists ( int  value_id)
static

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

◆ ClassDef() [1/2]

UniDetectorParameter::ClassDef ( UniDetectorParameter  ,
 
)
protected

◆ ClassDef() [2/2]

UniDetectorParameter::ClassDef ( UniDetectorParameter  ,
 
)
protected

◆ 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

add new detector parameter to the database

Definition at line 60 of file UniDetectorParameter.cxx.

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

Referenced by CreateDetectorParameter(), CreateDetectorParameter(), UniParser::ParseTxtNoise2Db(), and WriteFile().

◆ CreateDetectorParameter() [2/8]

static 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

add new detector parameter to the database

◆ 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

write detector parameter value presented by a single value (integer value key is optional, default, 0)

Definition at line 924 of file UniDetectorParameter.cxx.

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

◆ CreateDetectorParameter() [4/8]

static 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

write detector parameter value presented by a single value (integer value key is optional, default, 0)

◆ 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]

static 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() [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

write detector parameter value presented by an array (integer value key is optional, default, 0)

Definition at line 868 of file UniDetectorParameter.cxx.

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

◆ CreateDetectorParameter() [8/8]

static 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

write detector parameter value presented by an array (integer value key is optional, default, 0)

◆ DeleteDetectorParameter() [1/4]

int UniDetectorParameter::DeleteDetectorParameter ( int  value_id)
static

delete detector parameter from the database

Definition at line 273 of file UniDetectorParameter.cxx.

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

Referenced by delete_Tof1_INL(), and delete_Tof1_mapping().

◆ DeleteDetectorParameter() [2/4]

static int UniDetectorParameter::DeleteDetectorParameter ( int  value_id)
static

delete detector parameter from the database

◆ 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

delete detector parameter value (integer value key is optional, default, 0)

Definition at line 1046 of file UniDetectorParameter.cxx.

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

◆ DeleteDetectorParameter() [4/4]

static 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

delete detector parameter value (integer value key is optional, default, 0)

◆ GetDetectorName() [1/2]

TString UniDetectorParameter::GetDetectorName ( )
inline

get detector name of the current detector parameter

Definition at line 96 of file UniDetectorParameter.h.

◆ GetDetectorName() [2/2]

TString UniDetectorParameter::GetDetectorName ( )
inline

get detector name of the current detector parameter

Definition at line 96 of file UniDetectorParameter.h.

◆ GetDetectorParameter() [1/4]

UniDetectorParameter * UniDetectorParameter::GetDetectorParameter ( int  value_id)
static

◆ GetDetectorParameter() [2/4]

static UniDetectorParameter * UniDetectorParameter::GetDetectorParameter ( int  value_id)
static

get detector parameter from the database

◆ 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

get detector parameter value (integer value key is optional, default, 0)

Definition at line 967 of file UniDetectorParameter.cxx.

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

◆ GetDetectorParameter() [4/4]

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

get detector parameter value (integer value key is optional, default, 0)

◆ GetEnd() [1/2]

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

get end period and run of the current parameter value

Definition at line 1530 of file UniDetectorParameter.cxx.

◆ GetEnd() [2/2]

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

get end period and run of the current parameter value

◆ GetEndPeriod() [1/2]

int UniDetectorParameter::GetEndPeriod ( )
inline

get end period of the current detector parameter

Definition at line 104 of file UniDetectorParameter.h.

◆ GetEndPeriod() [2/2]

int UniDetectorParameter::GetEndPeriod ( )
inline

get end period of the current detector parameter

Definition at line 104 of file UniDetectorParameter.h.

◆ GetEndRun() [1/2]

int UniDetectorParameter::GetEndRun ( )
inline

get end run of the current detector parameter

Definition at line 106 of file UniDetectorParameter.h.

◆ GetEndRun() [2/2]

int UniDetectorParameter::GetEndRun ( )
inline

get end run of the current detector parameter

Definition at line 106 of file UniDetectorParameter.h.

◆ GetExpiryDate() [1/2]

TDatime * UniDetectorParameter::GetExpiryDate ( )
inline

get expiry date of the current detector parameter

Definition at line 119 of file UniDetectorParameter.h.

◆ GetExpiryDate() [2/2]

TDatime * UniDetectorParameter::GetExpiryDate ( )
inline

get expiry date of the current detector parameter

Definition at line 119 of file UniDetectorParameter.h.

◆ GetParameterId() [1/2]

int UniDetectorParameter::GetParameterId ( )
inline

get parameter id of the current detector parameter

Definition at line 98 of file UniDetectorParameter.h.

◆ GetParameterId() [2/2]

int UniDetectorParameter::GetParameterId ( )
inline

get parameter id of the current detector parameter

Definition at line 98 of file UniDetectorParameter.h.

◆ GetParameterName() [1/2]

TString UniDetectorParameter::GetParameterName ( )

get parameter name of the current parameter value

Definition at line 1491 of file UniDetectorParameter.cxx.

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

◆ GetParameterName() [2/2]

TString UniDetectorParameter::GetParameterName ( )

get parameter name of the current parameter value

◆ GetParameterType() [1/2]

enumValueType UniDetectorParameter::GetParameterType ( )

get parameter type of the current parameter value

Definition at line 1506 of file UniDetectorParameter.cxx.

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

Referenced by GetValue(), and GetValue().

◆ GetParameterType() [2/2]

enumValueType UniDetectorParameter::GetParameterType ( )

get parameter type of the current parameter value

◆ GetParameterValue() [1/2]

unsigned char * UniDetectorParameter::GetParameterValue ( )
inline

get parameter value of the current detector parameter

Definition at line 110 of file UniDetectorParameter.h.

◆ GetParameterValue() [2/2]

unsigned char * UniDetectorParameter::GetParameterValue ( )
inline

get parameter value of the current detector parameter

Definition at line 110 of file UniDetectorParameter.h.

◆ GetParameterValueSize() [1/2]

Long_t UniDetectorParameter::GetParameterValueSize ( )
inline

get size of parameter value of the current detector parameter

Definition at line 117 of file UniDetectorParameter.h.

◆ GetParameterValueSize() [2/2]

Long_t UniDetectorParameter::GetParameterValueSize ( )
inline

get size of parameter value of the current detector parameter

Definition at line 117 of file UniDetectorParameter.h.

◆ GetStart() [1/2]

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

get start period and run of the current parameter value

Definition at line 1521 of file UniDetectorParameter.cxx.

◆ GetStart() [2/2]

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

get start period and run of the current parameter value

◆ GetStartPeriod() [1/2]

int UniDetectorParameter::GetStartPeriod ( )
inline

get start period of the current detector parameter

Definition at line 100 of file UniDetectorParameter.h.

◆ GetStartPeriod() [2/2]

int UniDetectorParameter::GetStartPeriod ( )
inline

get start period of the current detector parameter

Definition at line 100 of file UniDetectorParameter.h.

◆ GetStartRun() [1/2]

int UniDetectorParameter::GetStartRun ( )
inline

get start run of the current detector parameter

Definition at line 102 of file UniDetectorParameter.h.

◆ GetStartRun() [2/2]

int UniDetectorParameter::GetStartRun ( )
inline

get start run of the current detector parameter

Definition at line 102 of file UniDetectorParameter.h.

◆ GetUNC() [1/2]

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

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. Function returns row count added to the database.

Definition at line 683 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

Referenced by GetValue(), and GetValue().

◆ GetUNC() [2/2]

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

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. Function returns row count added to the database.

◆ GetValue() [1/4]

UniValue * UniDetectorParameter::GetValue ( )

get value of detector parameter presented by a single value

Definition at line 1127 of file UniDetectorParameter.cxx.

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

◆ GetValue() [2/4]

UniValue * UniDetectorParameter::GetValue ( )

get value of detector parameter presented by a single value

◆ GetValue() [3/4]

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

◆ GetValue() [4/4]

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

get value of detector parameter presented by an array

◆ GetValueId() [1/2]

int UniDetectorParameter::GetValueId ( )
inline

get value id of the current detector parameter

Definition at line 94 of file UniDetectorParameter.h.

◆ GetValueId() [2/2]

int UniDetectorParameter::GetValueId ( )
inline

get value id of the current detector parameter

Definition at line 94 of file UniDetectorParameter.h.

◆ GetValueKey() [1/2]

int UniDetectorParameter::GetValueKey ( )
inline

get value key of the current detector parameter

Definition at line 108 of file UniDetectorParameter.h.

◆ GetValueKey() [2/2]

int UniDetectorParameter::GetValueKey ( )
inline

get value key of the current detector parameter

Definition at line 108 of file UniDetectorParameter.h.

◆ Print() [1/2]

void UniDetectorParameter::Print ( )

print information about current detector parameter

Definition at line 668 of file UniDetectorParameter.cxx.

◆ Print() [2/2]

void UniDetectorParameter::Print ( )

print information about current detector parameter

◆ PrintAll() [1/2]

int UniDetectorParameter::PrintAll ( )
static

print all detector parameters

Definition at line 303 of file UniDetectorParameter.cxx.

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

◆ PrintAll() [2/2]

static int UniDetectorParameter::PrintAll ( )
static

print all detector parameters

◆ 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

read a whole file with parameter value (with given detector and parameter names) from the Database for the selected run

Definition at line 1256 of file UniDetectorParameter.cxx.

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

Referenced by BmnInnTrackerAlign::BmnInnTrackerAlign().

◆ ReadFile() [2/2]

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

read a whole file with parameter value (with given detector and parameter names) from the Database for the selected run

◆ Search() [1/4]

◆ Search() [2/4]

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

get parameters' values corresponding to the specified (vector) conditions and set owner for search_condition to kTRUE

◆ Search() [3/4]

TObjArray * UniDetectorParameter::Search ( UniSearchCondition search_condition)
static

get parameters' values corresponding to the specified single condition and set owner for search_condition to kTRUE

Definition at line 1482 of file UniDetectorParameter.cxx.

References Search().

Referenced by Search().

◆ Search() [4/4]

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

get parameters' values corresponding to the specified single condition and set owner for search_condition to kTRUE

◆ SetDetectorName() [1/2]

int UniDetectorParameter::SetDetectorName ( TString  detector_name)

set detector name of the current detector parameter

Definition at line 367 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

◆ SetDetectorName() [2/2]

int UniDetectorParameter::SetDetectorName ( TString  detector_name)

set detector name of the current detector parameter

◆ SetEnd() [1/2]

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

set end period and run of the current parameter value

Definition at line 1574 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

◆ SetEnd() [2/2]

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

set end period and run of the current parameter value

◆ SetEndPeriod() [1/2]

int UniDetectorParameter::SetEndPeriod ( int  end_period)

set end period of the current detector parameter

Definition at line 495 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

◆ SetEndPeriod() [2/2]

int UniDetectorParameter::SetEndPeriod ( int  end_period)

set end period of the current detector parameter

◆ SetEndRun() [1/2]

int UniDetectorParameter::SetEndRun ( int  end_run)

set end run of the current detector parameter

Definition at line 527 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

◆ SetEndRun() [2/2]

int UniDetectorParameter::SetEndRun ( int  end_run)

set end run of the current detector parameter

◆ SetExpiryDate() [1/2]

int UniDetectorParameter::SetExpiryDate ( TDatime *  expiry_date)

set expiry date of the current detector parameter

Definition at line 627 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

◆ SetExpiryDate() [2/2]

int UniDetectorParameter::SetExpiryDate ( TDatime *  expiry_date)

set expiry date of the current detector parameter

◆ SetParameterId() [1/2]

int UniDetectorParameter::SetParameterId ( int  parameter_id)

set parameter id of the current detector parameter

Definition at line 399 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

◆ SetParameterId() [2/2]

int UniDetectorParameter::SetParameterId ( int  parameter_id)

set parameter id of the current detector parameter

◆ SetParameterValue() [1/2]

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

set parameter value of the current detector parameter

Definition at line 591 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

◆ SetParameterValue() [2/2]

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

set parameter value of the current detector parameter

◆ SetStart() [1/2]

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

set start period and run of the current parameter value

Definition at line 1539 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

◆ SetStart() [2/2]

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

set start period and run of the current parameter value

◆ SetStartPeriod() [1/2]

int UniDetectorParameter::SetStartPeriod ( int  start_period)

set start period of the current detector parameter

Definition at line 431 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

◆ SetStartPeriod() [2/2]

int UniDetectorParameter::SetStartPeriod ( int  start_period)

set start period of the current detector parameter

◆ SetStartRun() [1/2]

int UniDetectorParameter::SetStartRun ( int  start_run)

set start run of the current detector parameter

Definition at line 463 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

◆ SetStartRun() [2/2]

int UniDetectorParameter::SetStartRun ( int  start_run)

set start run of the current detector parameter

◆ SetUNC() [1/2]

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

Definition at line 733 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

Referenced by SetValue(), and SetValue().

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

set value to detector parameter presented by a single value

Definition at line 1170 of file UniDetectorParameter.cxx.

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

◆ SetValue() [2/4]

int UniDetectorParameter::SetValue ( UniValue parameter_value)

set value to detector parameter presented by a single value

◆ SetValue() [3/4]

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

set value to detector parameter presented by an array

Definition at line 1140 of file UniDetectorParameter.cxx.

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

◆ SetValue() [4/4]

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

set value to detector parameter presented by an array

◆ SetValueKey() [1/2]

int UniDetectorParameter::SetValueKey ( int  value_key)

set value key of the current detector parameter

Definition at line 559 of file UniDetectorParameter.cxx.

References UniConnection::GetSQLServer().

◆ SetValueKey() [2/2]

int UniDetectorParameter::SetValueKey ( int  value_key)

set value key of the current detector parameter

◆ 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

write a whole file with parameter value (with given detector and parameter names) to the Database from start run to end one

Definition at line 1193 of file UniDetectorParameter.cxx.

References CreateDetectorParameter(), BinaryValue::size, and BinaryValue::value.

◆ WriteFile() [2/2]

static 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

write a whole file with parameter value (with given detector and parameter names) to the Database from start run to end one


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