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

#include <TangoData.h>

Public Types

enum  enumConditions {
  conditionLess , conditionLessOrEqual , conditionEqual , conditionNotEqual ,
  conditionGreater , conditionGreaterOrEqual , conditionLike , conditionNull ,
  conditionNotNull , conditionLess , conditionLessOrEqual , conditionEqual ,
  conditionNotEqual , conditionGreater , conditionGreaterOrEqual , conditionLike ,
  conditionNull , conditionNotNull
}
 
enum  enumConditions {
  conditionLess , conditionLessOrEqual , conditionEqual , conditionNotEqual ,
  conditionGreater , conditionGreaterOrEqual , conditionLike , conditionNull ,
  conditionNotNull , conditionLess , conditionLessOrEqual , conditionEqual ,
  conditionNotEqual , conditionGreater , conditionGreaterOrEqual , conditionLike ,
  conditionNull , conditionNotNull
}
 

Public Member Functions

 TangoData (const char *start_date, const char *end_date, const char *system_name, const char *parameter_name, const char *member_name="", int verbose=0)
 
virtual ~TangoData ()
 
TObjArray * GetTangoData ()
 
TString GetStartDate ()
 
TString GetEndDate ()
 
TString GetSystemName ()
 
TString GetParameterName ()
 
TString GetMemberName ()
 
TString GetUserName ()
 
void SetUserName (TString user_name)
 
TString GetFullName ()
 
void PrintTangoDataConsole ()
 
void PrintTangoDataSurface (const char *y_axis="tango parameter")
 
int PrintTangoDataMultiGraph (const char *y_axis="parameter", bool is3D=false)
 
std::vector< double > GetAverageTangoData ()
 
TObjArray * SearchTangoIntervals (enumConditions condition=conditionEqual, bool value=true, std::vector< int > *mapChannel=nullptr)
 
void PrintTangoIntervalConsole (TObjArray *tango_intervals, TString channel_name="Channel", bool isShowOnlyExists=false)
 
 TangoData (const char *start_date, const char *end_date, const char *system_name, const char *parameter_name, const char *member_name="", int verbose=0)
 
virtual ~TangoData ()
 
TObjArray * GetTangoData ()
 
TString GetStartDate ()
 
TString GetEndDate ()
 
TString GetSystemName ()
 
TString GetParameterName ()
 
TString GetMemberName ()
 
TString GetUserName ()
 
void SetUserName (TString user_name)
 
TString GetFullName ()
 
void PrintTangoDataConsole ()
 
void PrintTangoDataSurface (const char *y_axis="tango parameter")
 
int PrintTangoDataMultiGraph (const char *y_axis="parameter", bool is3D=false)
 
std::vector< double > GetAverageTangoData ()
 
TObjArray * SearchTangoIntervals (enumConditions condition=conditionEqual, bool value=true, std::vector< int > *mapChannel=nullptr)
 
void PrintTangoIntervalConsole (TObjArray *tango_intervals, TString channel_name="Channel", bool isShowOnlyExists=false)
 

Static Public Member Functions

static void PrintTangoArrayConsole (std::vector< TangoData * > vecTangoData)
 
static int PrintTangoArrayMultiGraph (std::vector< TangoData * > vecTangoData, const char *y_axis="parameter", bool is3D=false)
 
static void PrintTangoArrayConsole (std::vector< TangoData * > vecTangoData)
 
static int PrintTangoArrayMultiGraph (std::vector< TangoData * > vecTangoData, const char *y_axis="parameter", bool is3D=false)
 

Detailed Description

Definition at line 72 of file TangoData.h.

Member Enumeration Documentation

◆ enumConditions [1/2]

Enumerator
conditionLess 
conditionLessOrEqual 
conditionEqual 
conditionNotEqual 
conditionGreater 
conditionGreaterOrEqual 
conditionLike 
conditionNull 
conditionNotNull 
conditionLess 
conditionLessOrEqual 
conditionEqual 
conditionNotEqual 
conditionGreater 
conditionGreaterOrEqual 
conditionLike 
conditionNull 
conditionNotNull 

Definition at line 75 of file TangoData.h.

◆ enumConditions [2/2]

Enumerator
conditionLess 
conditionLessOrEqual 
conditionEqual 
conditionNotEqual 
conditionGreater 
conditionGreaterOrEqual 
conditionLike 
conditionNull 
conditionNotNull 
conditionLess 
conditionLessOrEqual 
conditionEqual 
conditionNotEqual 
conditionGreater 
conditionGreaterOrEqual 
conditionLike 
conditionNull 
conditionNotNull 

Definition at line 75 of file TangoData.h.

Constructor & Destructor Documentation

◆ TangoData() [1/2]

TangoData::TangoData ( const char *  start_date,
const char *  end_date,
const char *  system_name,
const char *  parameter_name,
const char *  member_name = "",
int  verbose = 0 
)

Single Constructor: fill Tango data array according to the given parameters Tango database connection is defined in the 'tango_db_settings.h' file Parameters: system_name - name of the system (e.g. ""magnet, "zdc" or "gem") parameter_name - name of hardware parameter stored in Tango (e.g. "uset" for ZDC or "u" for GEM) start_date - time from which to start reading the parameter, format: "YYYY-MM-DD HH:MM:SS" (e.g. "2015-03-13 23:00:00") end_date - end time of reading the parameter, the same format (e.g. "2015-03-13 24:00:00")

TangoData CLASS IMPLEMENTATION Single Constructor: fill Tango data array according to the given parameters Tango database connection is defined in the 'tango_db_settings.h' file Parameters: system_name - name of the system (e.g. "zdc" or "gem") parameter_name - name of hardware parameter stored in Tango (e.g. "uset" for ZDC or "u" for GEM) date_start - time from which to start reading the parameter, format: "YYYY-MM-DD HH:MM:SS" (e.g. "2015-03-13 23:00:00") date_end - end time of reading the parameter, the same format (e.g. "2015-03-13 24:00:00")

Definition at line 70 of file TangoData.cxx.

◆ ~TangoData() [1/2]

TangoData::~TangoData ( )
virtual

Definition at line 94 of file TangoData.cxx.

◆ TangoData() [2/2]

TangoData::TangoData ( const char *  start_date,
const char *  end_date,
const char *  system_name,
const char *  parameter_name,
const char *  member_name = "",
int  verbose = 0 
)

Single Constructor: fill Tango data array according to the given parameters Tango database connection is defined in the 'tango_db_settings.h' file Parameters: system_name - name of the system (e.g. ""magnet, "zdc" or "gem") parameter_name - name of hardware parameter stored in Tango (e.g. "uset" for ZDC or "u" for GEM) start_date - time from which to start reading the parameter, format: "YYYY-MM-DD HH:MM:SS" (e.g. "2015-03-13 23:00:00") end_date - end time of reading the parameter, the same format (e.g. "2015-03-13 24:00:00")

◆ ~TangoData() [2/2]

virtual TangoData::~TangoData ( )
virtual

Member Function Documentation

◆ GetAverageTangoData() [1/2]

vector< double > TangoData::GetAverageTangoData ( )

◆ GetAverageTangoData() [2/2]

std::vector< double > TangoData::GetAverageTangoData ( )

◆ GetEndDate() [1/2]

TString TangoData::GetEndDate ( )
inline

Definition at line 108 of file TangoData.h.

◆ GetEndDate() [2/2]

TString TangoData::GetEndDate ( )
inline

Definition at line 108 of file TangoData.h.

◆ GetFullName() [1/2]

TString TangoData::GetFullName ( )

Definition at line 102 of file TangoData.cxx.

Referenced by PrintTangoArrayMultiGraph().

◆ GetFullName() [2/2]

TString TangoData::GetFullName ( )

◆ GetMemberName() [1/2]

TString TangoData::GetMemberName ( )
inline

Definition at line 111 of file TangoData.h.

◆ GetMemberName() [2/2]

TString TangoData::GetMemberName ( )
inline

Definition at line 111 of file TangoData.h.

◆ GetParameterName() [1/2]

TString TangoData::GetParameterName ( )
inline

Definition at line 110 of file TangoData.h.

◆ GetParameterName() [2/2]

TString TangoData::GetParameterName ( )
inline

Definition at line 110 of file TangoData.h.

◆ GetStartDate() [1/2]

TString TangoData::GetStartDate ( )
inline

Definition at line 107 of file TangoData.h.

◆ GetStartDate() [2/2]

TString TangoData::GetStartDate ( )
inline

Definition at line 107 of file TangoData.h.

◆ GetSystemName() [1/2]

TString TangoData::GetSystemName ( )
inline

Definition at line 109 of file TangoData.h.

◆ GetSystemName() [2/2]

TString TangoData::GetSystemName ( )
inline

Definition at line 109 of file TangoData.h.

◆ GetTangoData() [1/2]

TObjArray * TangoData::GetTangoData ( )
inline

Definition at line 105 of file TangoData.h.

◆ GetTangoData() [2/2]

TObjArray * TangoData::GetTangoData ( )
inline

Definition at line 105 of file TangoData.h.

◆ GetUserName() [1/2]

TString TangoData::GetUserName ( )
inline

Definition at line 112 of file TangoData.h.

◆ GetUserName() [2/2]

TString TangoData::GetUserName ( )
inline

Definition at line 112 of file TangoData.h.

◆ PrintTangoArrayConsole() [1/2]

void TangoData::PrintTangoArrayConsole ( std::vector< TangoData * >  vecTangoData)
static

Definition at line 368 of file TangoData.cxx.

◆ PrintTangoArrayConsole() [2/2]

static void TangoData::PrintTangoArrayConsole ( std::vector< TangoData * >  vecTangoData)
static

◆ PrintTangoArrayMultiGraph() [1/2]

int TangoData::PrintTangoArrayMultiGraph ( std::vector< TangoData * >  vecTangoData,
const char *  y_axis = "parameter",
bool  is3D = false 
)
static

Definition at line 516 of file TangoData.cxx.

References GetFullName(), and i.

◆ PrintTangoArrayMultiGraph() [2/2]

static int TangoData::PrintTangoArrayMultiGraph ( std::vector< TangoData * >  vecTangoData,
const char *  y_axis = "parameter",
bool  is3D = false 
)
static

◆ PrintTangoDataConsole() [1/2]

void TangoData::PrintTangoDataConsole ( )

◆ PrintTangoDataConsole() [2/2]

void TangoData::PrintTangoDataConsole ( )

◆ PrintTangoDataMultiGraph() [1/2]

int TangoData::PrintTangoDataMultiGraph ( const char *  y_axis = "parameter",
bool  is3D = false 
)

◆ PrintTangoDataMultiGraph() [2/2]

int TangoData::PrintTangoDataMultiGraph ( const char *  y_axis = "parameter",
bool  is3D = false 
)

◆ PrintTangoDataSurface() [1/2]

void TangoData::PrintTangoDataSurface ( const char *  y_axis = "tango parameter")

◆ PrintTangoDataSurface() [2/2]

void TangoData::PrintTangoDataSurface ( const char *  y_axis = "tango parameter")

◆ PrintTangoIntervalConsole() [1/2]

void TangoData::PrintTangoIntervalConsole ( TObjArray *  tango_intervals,
TString  channel_name = "Channel",
bool  isShowOnlyExists = false 
)

Function displays (in console) time intervals obtained from Tango for a defined condition Parameters: tango_intervals - TObjArray with TObjArray objects containing TangoTimeInterval objects obtained from 'SearchTangoIntervals' function channel_name - name of the dimension to display on the screen, default: Channel isShowOnlyExists - if true, print only intervals which satisfy the condition (skip empty intervals)

Definition at line 856 of file TangoData.cxx.

References TangoTimeInterval::end_time, i, and TangoTimeInterval::start_time.

◆ PrintTangoIntervalConsole() [2/2]

void TangoData::PrintTangoIntervalConsole ( TObjArray *  tango_intervals,
TString  channel_name = "Channel",
bool  isShowOnlyExists = false 
)

Function displays (in console) time intervals obtained from Tango for a defined condition Parameters: tango_intervals - TObjArray with TObjArray objects containing TangoTimeInterval objects obtained from 'SearchTangoIntervals' function channel_name - name of the dimension to display on the screen, default: Channel isShowOnlyExists - if true, print only intervals which satisfy the condition (skip empty intervals)

◆ SearchTangoIntervals() [1/2]

TObjArray * TangoData::SearchTangoIntervals ( enumConditions  condition = conditionEqual,
bool  value = true,
std::vector< int > *  mapChannel = nullptr 
)

Function SearchTangoIntervals gets time intervals for defined condition on the parameter NOTE: now it works only if channel count is constant during given time period Parameters: condition - condition of time interval sampling, default: conditionEqual (the possible list is presented above in 'enumConditions') value - boolean value for the condition with which the comparison is performed, default: true mapChannel - vector of integer values (map) to change the order of result TObjArray-s in the common result array, if, for example, channels go in a different sequence; nullptr - if not used Returns common TObjArray with TObjArray objects containing TangoTimeInterval (i.e. conditionally TObjArray<TObjArray<TangoTimeInterval*>>), If there are no intervals found, it returns an empty TObjArray with zero elements In case of errors it returns nullptr

Definition at line 689 of file TangoData.cxx.

References Add(), TangoTimeParameter::bool_parameter_value, conditionEqual, conditionGreater, conditionGreaterOrEqual, conditionLess, conditionLessOrEqual, conditionNotEqual, and i.

◆ SearchTangoIntervals() [2/2]

TObjArray * TangoData::SearchTangoIntervals ( enumConditions  condition = conditionEqual,
bool  value = true,
std::vector< int > *  mapChannel = nullptr 
)

Function SearchTangoIntervals gets time intervals for defined condition on the parameter NOTE: now it works only if channel count is constant during given time period Parameters: condition - condition of time interval sampling, default: conditionEqual (the possible list is presented above in 'enumConditions') value - boolean value for the condition with which the comparison is performed, default: true mapChannel - vector of integer values (map) to change the order of result TObjArray-s in the common result array, if, for example, channels go in a different sequence; nullptr - if not used Returns common TObjArray with TObjArray objects containing TangoTimeInterval (i.e. conditionally TObjArray<TObjArray<TangoTimeInterval*>>), If there are no intervals found, it returns an empty TObjArray with zero elements In case of errors it returns nullptr

◆ SetUserName() [1/2]

void TangoData::SetUserName ( TString  user_name)
inline

Definition at line 113 of file TangoData.h.

◆ SetUserName() [2/2]

void TangoData::SetUserName ( TString  user_name)
inline

Definition at line 113 of file TangoData.h.


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