Belle II Software
release-05-01-25
basf2_mva_info.cc
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2016 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Thomas Keck *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
11
#include <iostream>
12
#include <vector>
13
14
#include <mva/utility/Utility.h>
15
16
namespace
po = boost::program_options;
17
using namespace
Belle2::MVA;
18
19
int
main
(
int
argc,
char
* argv[])
20
{
21
22
std::vector<std::string> filenames;
23
24
po::options_description description(
"Options"
);
25
description.add_options()
26
(
"help"
,
"print this message"
)
27
(
"identifiers"
, po::value<std::vector<std::string>>(&filenames)->multitoken(),
"Identifiers of the trained methods"
);
28
29
po::variables_map vm;
30
31
try
{
32
po::parsed_options parsed = po::command_line_parser(argc, argv).options(description).run();
33
po::store(parsed, vm);
34
35
if
(vm.count(
"help"
)) {
36
std::cout << description << std::endl;
37
return
1;
38
}
39
po::notify(vm);
40
}
catch
(po::error& err) {
41
std::cerr <<
"Error: "
<< err.what() <<
"\n"
;
42
return
1;
43
}
44
45
for
(
const
auto
& filename : filenames) {
46
std::cout <<
"Information about "
<<
filename
<< std::endl;
47
std::cout << Belle2::MVA::info(filename) << std::endl;
48
std::cout << std::endl;
49
}
50
return
0;
51
52
}
53
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:77
alignment.constraints_generator.filename
filename
File name.
Definition:
constraints_generator.py:224
mva
tools
basf2_mva_info.cc
Generated on Fri Nov 5 2021 03:55:55 for Belle II Software by
1.8.17