Belle II Software
release-08-00-10
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
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
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
e
f
g
n
p
s
v
z
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
Typedefs
Macros
basf2_mva_info.cc
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
9
#include <iostream>
10
#include <vector>
11
12
#include <mva/utility/Utility.h>
13
14
namespace
po = boost::program_options;
15
using namespace
Belle2::MVA;
16
17
int
main
(
int
argc,
char
* argv[])
18
{
19
20
std::vector<std::string> filenames;
21
22
po::options_description description(
"Options"
);
23
description.add_options()
24
(
"help"
,
"print this message"
)
25
(
"identifiers"
, po::value<std::vector<std::string>>(&filenames)->multitoken(),
"Identifiers of the trained methods"
);
26
27
po::variables_map vm;
28
29
try
{
30
po::parsed_options parsed = po::command_line_parser(argc, argv).options(description).run();
31
po::store(parsed, vm);
32
33
if
(vm.count(
"help"
)) {
34
std::cout << description << std::endl;
35
return
1;
36
}
37
po::notify(vm);
38
}
catch
(po::error& err) {
39
std::cerr <<
"Error: "
<< err.what() <<
"\n"
;
40
return
1;
41
}
42
43
for
(
const
auto
& filename : filenames) {
44
std::cout <<
"Information about "
<< filename << std::endl;
45
std::cout <<
Belle2::MVA::Utility::info
(filename) << std::endl;
46
std::cout << std::endl;
47
}
48
return
0;
49
50
}
51
Belle2::MVA::Utility::info
static std::string info(const std::string &filename)
Print information about the classifier stored in the given weightfile.
Definition:
Utility.cc:98
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:91
mva
tools
basf2_mva_info.cc
Generated on Fri Aug 9 2024 00:59:27 for Belle II Software by
1.9.1