52int main(
int argc,
char* argv[])
54 po::options_description
generic(
"options");
59 (
"help,h",
"produce help message")
60 (
"input-file,i",po::value<std::string>()->default_value(
"collisioncontext.root"),
"input file name")
61 (
"min-distance,d",po::value<int>()->default_value(4),
"min distance between IRs to consider as a problem")
62 (
"verbose,v",po::value<bool>()->default_value(
false),
"verbose output");
65 po::options_description cmdline;
68 po::store(po::command_line_parser(argc, argv).options(cmdline).run(), vm);
70 if (vm.count(
"help")) {
71 std::cout <<
generic <<
"\n";
77 }
catch (boost::program_options::error& e) {
78 std::cout <<
"Error: " << e.what() <<
"\n";
85 std::string input = vm[
"input-file"].as<std::string>();
87 TFile fin(input.c_str());
89 LOGP(fatal,
"could not open input file {}", input);
94 std::cout <<
"Could not get context\n";
97 report(context->getEventRecords(), vm[
"min-distance"].as<
int>(), vm[
"verbose"].as<
bool>());
void report(gsl::span< o2::InteractionTimeRecord > irs, int threshold, bool verbose)