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
DQMFileMetaData.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/DQMFileMetaData.h>
12
13
14
#include <framework/utilities/HTML.h>
15
#include <framework/utilities/KeyValuePrinter.h>
16
17
//#include <nlohmann/json.hpp>
18
19
#include <iostream>
20
21
using namespace
std;
22
using namespace
Belle2
;
23
24
DQMFileMetaData::DQMFileMetaData() :
25
m_nEvents(0), m_experiment(0), m_run(0), m_date(
""
), m_release(
""
), m_procID(
""
), m_rtype(
""
), m_isMC(false),
26
m_databaseGlobalTag(
""
)
27
{
28
}
29
30
31
void
DQMFileMetaData::Print
(Option_t* option)
const
32
{
33
34
const
bool
all = (option && option == std::string(
"all"
));
35
KeyValuePrinter
printer(
false
);
36
printer.
put
(
"nEvents"
,
m_nEvents
);
37
printer.
put
(
"Experiment"
,
m_experiment
);
38
printer.
put
(
"Run"
,
m_run
);
39
40
if
(all) {
41
printer.
put
(
"run type"
,
m_rtype
);
42
printer.
put
(
"run date"
,
m_date
);
43
printer.
put
(
"processing"
,
m_procID
);
44
printer.
put
(
"release"
,
m_release
);
45
printer.
put
(
"isMC"
,
m_isMC
);
46
printer.
put
(
"globalTag"
,
m_databaseGlobalTag
);
47
}
48
std::cout <<
"=== DQMFileMetaData ===\n"
;
49
std::cout << printer.
string
();
50
std::cout <<
"=======================\n"
;
51
}
Belle2::KeyValuePrinter
create human-readable or JSON output for key value pairs.
Definition:
KeyValuePrinter.h:56
Belle2::DQMFileMetaData::m_procID
std::string m_procID
processing ID
Definition:
DQMFileMetaData.h:148
Belle2::DQMFileMetaData::m_experiment
int m_experiment
experiment number.
Definition:
DQMFileMetaData.h:140
Belle2::DQMFileMetaData::Print
virtual void Print(Option_t *option="") const override
Print the content of the meta data object.
Definition:
DQMFileMetaData.cc:31
Belle2::KeyValuePrinter::put
void put(const std::string &key, const T &value)
Add one key-value pair.
Definition:
KeyValuePrinter.h:79
Belle2::DQMFileMetaData::m_isMC
bool m_isMC
Is it generated or real data?.
Definition:
DQMFileMetaData.h:152
Belle2::DQMFileMetaData::m_nEvents
unsigned int m_nEvents
Number of events.
Definition:
DQMFileMetaData.h:138
Belle2::DQMFileMetaData::m_release
std::string m_release
Software release version.
Definition:
DQMFileMetaData.h:146
Belle2::KeyValuePrinter::string
std::string string() const
Return completed string.
Definition:
KeyValuePrinter.h:71
Belle2::DQMFileMetaData::m_run
int m_run
run number.
Definition:
DQMFileMetaData.h:142
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::DQMFileMetaData::m_date
std::string m_date
run date and time (UTC).
Definition:
DQMFileMetaData.h:144
Belle2::DQMFileMetaData::m_rtype
std::string m_rtype
run type (physics, cosmics, etc.)
Definition:
DQMFileMetaData.h:150
Belle2::DQMFileMetaData::m_databaseGlobalTag
std::string m_databaseGlobalTag
Global tag in the database used for production of this file.
Definition:
DQMFileMetaData.h:154
dqm
dataobjects
src
DQMFileMetaData.cc
Generated on Tue Jan 4 2022 02:55:15 for Belle II Software by
1.8.17