21#include "ROOT/RFitPanel.hxx"
29 auto xaxis = std::make_shared<RAxisConfig>(10, 0., 10.);
31 auto pHist = std::make_shared<RH1D>(*xaxis.get());
39 auto canvas = RCanvas::Create(
"Canvas Title");
45 auto panel = std::make_shared<RFitPanel>(
"FitPanel Title");
47 RDirectory::Heap().Add(
"fitpanel", panel);
48 RDirectory::Heap().Add(
"firsthisto", pHist);
49 RDirectory::Heap().Add(
"firstaxis", xaxis);
54 panel->AssignCanvas(canvas);
55 panel->AssignHistogram(pHist);
57 canvas->AddPanel(panel);