101 std::getline(ifs, header);
103 if (header.find(
"# Histogram bin counts") == std::string::npos) {
108 const std::regex re(
"\\.*\\) (.*) mm (.*) mm (.*) (.*) mm");
110 std::regex_search(header, match, re);
112 if ( match.size() != 5 ) {
114 "Error parsing header of file " +
filename_m);
117 rmin_m = getValue<double>(match[1].str());
118 double rmax = getValue<double>(match[2].str());
119 size_t nbins = getValue<size_t>(match[3].str());
120 binwidth_m = getValue<double>(match[4].str());