Iguana
1.2.0
Implementation Guardian of Analysis Algorithms
Loading...
Searching...
No Matches
TestInfo.h
1
#pragma once
2
#include <fmt/format.h>
3
#include <hipo4/reader.h>
4
5
inline
int
TestInfo(std::string data_file)
6
{
7
8
if
(data_file ==
""
) {
9
fmt::print(stderr,
"ERROR: need a data file for command 'info'\n"
);
10
return
1;
11
}
12
13
// open the HIPO file
14
hipo::reader reader(data_file.c_str());
15
16
// print file info
17
fmt::println(
"num_events {}"
, reader.getEntries());
18
19
return
0;
20
}
iguana_v1.2.0
src
iguana
tests
include
TestInfo.h
Generated by
1.16.1