Belle II Software
release-05-02-19
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
MonitoringObject.cc
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2010-2015 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Luka Santelj *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
11
#include <dqm/dataobjects/MonitoringObject.h>
12
13
#include <framework/utilities/KeyValuePrinter.h>
14
15
#include <iostream>
16
#include <sstream>
17
18
using namespace
std;
19
using namespace
Belle2
;
20
21
void
MonitoringObject::print()
const
22
{
23
24
KeyValuePrinter
printVar(
false
);
25
printVar.
put
(
"Name"
, GetName());
26
for
(
const
auto
& var : m_vars) {
27
printVar.
put
(var.first, var.second);
28
}
29
for
(
const
auto
& var : m_strVars) {
30
printVar.
put
(var.first, var.second);
31
}
32
33
KeyValuePrinter
printCanv(
false
);
34
for
(
const
auto
& canv : m_Canvases) {
35
printCanv.
put
(canv->GetName(), canv->GetTitle());
36
}
37
38
std::cout <<
"=== MonitoringObject ===\n"
;
39
std::cout << printVar.
string
();
40
std::cout <<
"\n List of canvases: \n"
;
41
std::cout << printCanv.
string
();
42
std::cout <<
"========================\n"
;
43
}
Belle2::KeyValuePrinter
create human-readable or JSON output for key value pairs.
Definition:
KeyValuePrinter.h:56
Belle2::KeyValuePrinter::put
void put(const std::string &key, const T &value)
Add one key-value pair.
Definition:
KeyValuePrinter.h:79
Belle2::KeyValuePrinter::string
std::string string() const
Return completed string.
Definition:
KeyValuePrinter.h:71
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
dqm
dataobjects
src
MonitoringObject.cc
Generated on Tue Jan 4 2022 02:55:15 for Belle II Software by
1.8.17