10 #include <mva/utility/Utility.h>
14 namespace po = boost::program_options;
15 using namespace Belle2::MVA;
17 int main(
int argc,
char* argv[])
20 std::string identifier;
21 std::string db_identifier;
28 po::options_description description(
"Options");
29 description.add_options()
30 (
"help",
"print this message")
31 (
"identifier", po::value<std::string>(&identifier)->required(),
"Identifier produced by basf2_mva_teacher")
32 (
"db_identifier", po::value<std::string>(&db_identifier)->required(),
"New database identifier for the method")
33 (
"begin_experiment", po::value<int>(&exp1),
"First experiment for which the weightfile is valid")
34 (
"end_experiment", po::value<int>(&exp2),
"Last experiment for which the weightfile is valid")
35 (
"begin_run", po::value<int>(&run1),
"First run for which the weightfile is valid")
36 (
"end_run", po::value<int>(&run2),
"Last run for which the weightfile is valid");
40 po::parsed_options parsed = po::command_line_parser(argc, argv).options(description).run();
41 po::store(parsed, vm);
43 if (vm.count(
"help")) {
44 std::cout << description << std::endl;
48 }
catch (po::error& err) {
49 std::cerr <<
"Error: " << err.what() <<
"\n";
static void upload(const std::string &filename, const std::string &identifier, int exp1=0, int run1=0, int exp2=-1, int run2=-1)
Convenience function which uploads a given weightfile to the database.
int main(int argc, char **argv)
Run all tests.