28 ptree qa, ideal, check;
31 read_json(qaFile.c_str(), qa);
33 catch (json_parser_error& error) {
38 read_json(idealFile.c_str(), ideal);
40 catch (json_parser_error& error) {
47 write_json(checkFile.c_str(), check);
49 catch (json_parser_error& error) {
57 map<string, Double_t> mymap;
61 for (map<string, Double_t>::const_iterator it = mymap.begin(); it != mymap.end(); it++) {
62 map<string, Double_t>::value_type
v = *it;
64 boost::optional<Double_t> vmin = ideal.get_optional<Double_t>(
v.first +
".min");
65 boost::optional<Double_t> vmax = ideal.get_optional<Double_t>(
v.first +
".max");
71 out.put(
v.first, -1.f);
76 if (
v.second >= vmin &&
v.second <= vmax) {
78 out.put(
v.first, 1.f);
82 out.put(
v.first, 0.f);