MonitoringObject is a basic object to hold data for the run-dependency monitoring Run summary TCanvases and monitoring variables.
More...
#include <MonitoringObject.h>
|
| MonitoringObject () |
| Constructor.
|
|
| MonitoringObject (const std::string &name) |
| Constructor with name (always use this)
|
|
void | addCanvas (TCanvas *canv) |
| Add Canvas to monitoring object. More...
|
|
const std::map< std::string, float > & | getVariables () |
| Get map of all float variables.
|
|
const std::map< std::string, float > & | getUpError () |
| Get map of all float variables upper errors.
|
|
const std::map< std::string, float > & | getLowError () |
| Get map of all float variables lower errors.
|
|
const std::vector< std::pair< std::string, std::string > > & | getStringVariables () |
| Get vector of all string variables.
|
|
TCanvas * | getCanvas (const std::string &name) |
| Get pointer to existing canvas with given name (NULL is returned if not existing)
|
|
const std::vector< TCanvas * > & | getListOfCanvases () |
| Get list of all canvases.
|
|
void | print () const |
| Print content of MonitoringObject.
|
|
void | setVariable (const std::string &var, float val, float upErr=-1., float dwErr=-1) |
| set value to float variable (new variable is made if not yet existing) More...
|
|
void | setVariable (const std::string &var, const std::string &val) |
| set value to string variable (new variable is made if not yet existing) More...
|
|
|
std::vector< TCanvas * > | m_Canvases |
| vector of all TCanvases
|
|
std::map< std::string, float > | m_vars |
| map of all float variables
|
|
std::map< std::string, float > | m_upErr |
| map of upper errors of variables
|
|
std::map< std::string, float > | m_dwErr |
| map of lower errors of variables
|
|
std::vector< std::pair< std::string, std::string > > | m_strVars |
| map of all string variables
|
|
MonitoringObject is a basic object to hold data for the run-dependency monitoring Run summary TCanvases and monitoring variables.
Definition at line 31 of file MonitoringObject.h.
◆ addCanvas()
void addCanvas |
( |
TCanvas * |
canv | ) |
|
|
inline |
Add Canvas to monitoring object.
- Parameters
-
canv | pointer to canvas to add |
Definition at line 48 of file MonitoringObject.h.
51 if (cc->GetName() == canv->GetName()) {
52 B2ERROR(
"Canvas with name " << canv->GetName() <<
" already in the " << fName <<
53 " MonitoringObject! Use different name (or call getCanvas(name) to access pointer to the existing TCanvas).");
std::vector< TCanvas * > m_Canvases
vector of all TCanvases
◆ setVariable() [1/2]
void setVariable |
( |
const std::string & |
var, |
|
|
const std::string & |
val |
|
) |
| |
|
inline |
set value to string variable (new variable is made if not yet existing)
- Parameters
-
var | variable name |
val | variable value |
Definition at line 150 of file MonitoringObject.h.
◆ setVariable() [2/2]
void setVariable |
( |
const std::string & |
var, |
|
|
float |
val, |
|
|
float |
upErr = -1. , |
|
|
float |
dwErr = -1 |
|
) |
| |
|
inline |
set value to float variable (new variable is made if not yet existing)
- Parameters
-
var | variable name |
val | variable value |
upErr | variable size of positive error |
dwErr | variable size of negative error (if not set, symmetric error with size upErr is used) |
Definition at line 124 of file MonitoringObject.h.
The documentation for this class was generated from the following files: