// helper class to make summary PDF #include #include #include #include using namespace std; #include #include #include #include #include #include #include #include #include // #include class PDFOutputGenerator { public: PDFOutputGenerator() { output_canvas = new TCanvas("c_pdf", "", 800, 600); // needs to exist so that we can save image to disk } void GenerateOutput(TDirectory *root_dir, string basedir); private: void collect_hists(TDirectory *the_dir, vector &hists); TCanvas *output_canvas; };