#include "ROOT/RFitPanel.hxx"
void fitpanel0() {
RAxisConfig xaxis(10, 0., 10.);
auto pHist = std::make_shared<RH1D>(xaxis);
pHist->Fill(1);
pHist->Fill(2);
pHist->Fill(2);
pHist->Fill(3);
auto panel = std::make_shared<RFitPanel>("FitPanel Title");
panel->Show();
}
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->Show();
canvas->Update();
auto panel = std::make_shared<RFitPanel>("FitPanel Title");
panel->UseCanvas(canvas);
canvas->AddPanel(panel);
}
static TDirectory & Heap()
Dedicated, process-wide TDirectory.
void Add(std::string_view name, const std::shared_ptr< T > &ptr)
Add an existing object (rather a shared_ptr to it) to the TDirectory.
- 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.