11 #include "boost/filesystem.hpp" 12 #include "boost/property_tree/ptree.hpp" 13 #include "boost/property_tree/json_parser.hpp" 14 #include "boost/optional.hpp" 19 #include "Alignment/OfflineValidation/macros/loopAndPlot.C" 25 namespace pt = boost::property_tree;
36 pt::read_json(
options.config, main_tree);
38 pt::ptree alignments = main_tree.get_child(
"alignments");
39 pt::ptree
validation = main_tree.get_child(
"validation");
41 TString filesAndLabels;
42 for (
const auto& childTree : alignments) {
49 std::cout << childTree.second.get<
string>(
"file") << std::endl;
50 std::cout << childTree.second.get<
string>(
"title") << std::endl;
52 "/DiMuonVertexValidation.root=" + childTree.second.get<
string>(
"title") +
",";
53 filesAndLabels +=
toAdd;
56 if (filesAndLabels.Length() > 0) {
57 filesAndLabels.Remove(filesAndLabels.Length() - 1);
60 std::cout <<
"filesAndLabels: " << filesAndLabels << std::endl;
62 loopAndPlot(filesAndLabels);
67 #ifndef DOXYGEN_SHOULD_SKIP_THIS
int merge(int argc, char *argv[])
int main(int argc, char *argv[])