10#include <mva/utility/Utility.h>
14namespace po = boost::program_options;
16int main(
int argc,
char* argv[])
19 std::string identifier;
25 po::options_description description(
"Options");
26 description.add_options()
27 (
"help",
"print this message")
28 (
"identifier", po::value<std::string>(&identifier)->required(),
"Database identifier or weightfile")
29 (
"experiment", po::value<int>(&experiment),
"Experiment for which the weightfile should be valid")
30 (
"run", po::value<int>(&run),
"Run for which the weightfile should be valid")
31 (
"event", po::value<int>(&event),
"Experiment for which the weightfile should be valid");
35 po::parsed_options parsed = po::command_line_parser(argc, argv).options(description).run();
36 po::store(parsed, vm);
38 if (vm.count(
"help")) {
39 std::cout << description << std::endl;
43 }
catch (po::error& err) {
44 std::cerr <<
"Error: " << err.what() <<
"\n";
49 return (isAvailable) ? 0 : 1;
static bool available(const std::string &filename, int experiment=0, int run=0, int event=0)
Convenience function which checks if an experise is available.