#include "ROOT/RFitPanel.hxx"
void fitpanel() {
auto xaxis = std::make_shared<RAxisConfig>(10, 0., 10.);
auto pHist = std::make_shared<RH1D>(*xaxis.get());
pHist->Fill(1);
pHist->Fill(2);
pHist->Fill(2);
pHist->Fill(3);
auto canvas = RCanvas::Create("Canvas Title");
canvas->Draw(pHist);
canvas->Show();
canvas->Update();
auto panel = std::make_shared<RFitPanel>("FitPanel Title");
RDirectory::Heap().Add("fitpanel", panel);
RDirectory::Heap().Add("firsthisto", pHist);
RDirectory::Heap().Add("firstaxis", xaxis);
panel->AssignCanvas(canvas);
panel->AssignHistogram(pHist);
canvas->AddPanel(panel);
}
- Date
- 2015-03-22
- Warning
- This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
- Author
- Axel Naumann axel@.nosp@m.cern.nosp@m..ch
Definition in file fitpanel.cxx.