4#include <hipo4/reader.h>
5#include <iguana/algorithms/Validator.h>
7inline int TestValidator(
9 std::vector<std::string> bank_names,
10 std::string data_file,
12 std::string output_dir,
17 if(vdor_name ==
"" || bank_names.empty()) {
18 fmt::print(stderr,
"ERROR: need validator name and banks\n");
22 fmt::print(stderr,
"ERROR: need a data file for command 'validator'\n");
27 hipo::reader reader(data_file.c_str());
28 auto banks = reader.getBanks(bank_names);
32 std::filesystem::create_directories(output_dir);
37 vdor->SetOption(
"log", verbose ?
"trace" :
"info");
42 while(reader.next(banks) && (num_events == 0 || it_ev++ < num_events)) {
static algo_t Create(std::string const &name) noexcept(false)
Base class for all algorithm validators to inherit from.
void SetOutputDirectory(std::string_view output_dir)