10#include <mva/utility/Utility.h>
13namespace po = boost::program_options;
15int main(
int argc,
char* argv[])
18 std::string identifier;
19 std::string db_identifier;
25 po::options_description description(
"Options");
26 description.add_options()
27 (
"help",
"print this message")
28 (
"identifier", po::value<std::string>(&identifier)->required(),
"Identifier produced by basf2_mva_teacher")
29 (
"db_identifier", po::value<std::string>(&db_identifier)->required(),
"Database identifier")
30 (
"experiment", po::value<int>(&experiment),
"Experiment for which the weightfile should be valid")
31 (
"run", po::value<int>(&run),
"Run for which the weightfile should be valid")
32 (
"event", po::value<int>(&event),
"Experiment for which the weightfile should be valid");
36 po::parsed_options parsed = po::command_line_parser(argc, argv).options(description).run();
37 po::store(parsed, vm);
39 if (vm.count(
"help")) {
40 std::cout << description << std::endl;
44 }
catch (po::error& err) {
45 std::cerr <<
"Error: " << err.what() <<
"\n";
static void download(const std::string &identifier, const std::string &filename, int experiment=0, int run=0, int event=0)
Convenience function which downloads a given weightfile from the database.