9#include <dqm/core/MonitoringObject.h>
11#include <framework/utilities/KeyValuePrinter.h>
23 printVar.
put(
"Name", GetName());
24 for (
const auto& var :
m_vars) {
25 printVar.
put(var.first, var.second);
28 printVar.
put(var.first, var.second);
33 printCanv.
put(canv->GetName(), canv->GetTitle());
36 std::cout <<
"=== MonitoringObject ===\n";
37 std::cout << printVar.
string();
38 std::cout <<
"\n List of canvases: \n";
39 std::cout << printCanv.
string();
40 std::cout <<
"========================\n";
create human-readable or JSON output for key value pairs.
void put(const std::string &key, const T &value)
Add one key-value pair.
std::string string() const
Return completed string.
std::vector< TCanvas * > m_Canvases
vector of all TCanvases
std::map< std::string, float > m_vars
map of all float variables
void print() const
Print content of MonitoringObject.
std::vector< std::pair< std::string, std::string > > m_strVars
map of all string variables
Abstract base class for different kinds of events.