35namespace Experimental {
39 std::unique_ptr<RFitPanelModel>
fModel;
68 void ProcessData(
unsigned connid,
const std::string &arg);
97 RFitPanel(
const std::string &title =
"Fit panel");
114 void Show(
const std::string &where =
"");
web-based FitPanel prototype.
void Show(const std::string &where="")
show FitPanel in specified place
bool DoFit()
Perform fitting using current model settings Returns true if any action was done.
void AssignHistogram(TH1 *hist)
Assign histogram to use with fit panel - without ownership.
std::unique_ptr< TF1 > GetFitFunction(const std::string &funcid)
Creates new instance to make fitting.
void SelectFunction(const std::string &funcid)
Select fit function.
RFitPanelModel::EFitObjectType GetFitObjectType(TObject *obj)
Returns kind of object.
std::shared_ptr< RCanvas > fCanvas
! v7 canvas used to display results
void SendModel()
Send model object to the client.
std::shared_ptr< RWebWindow > fWindow
! configured display
std::string fCanvName
! v6 canvas name used to display fit, will be created if not exists
void GetFunctionsFromSystem()
Looks for all the functions registered in the current ROOT session.
std::unique_ptr< RFitPanelModel > fModel
unsigned fConnId
! client connection id
int UpdateModel(const std::string &json)
Update fit model returns -1 if JSON fails return 0 if nothing large changed return 1 if important sel...
TF1 * copyTF1(TF1 *f)
Copies f into a new TF1 to be stored in the fitpanel with it's own ownership.
TPad * GetDrawPad(TObject *obj, bool force=false)
Returns pad where histogram is drawn If canvas not exists, create new one.
std::shared_ptr< RWebWindow > GetWindow()
Returns RWebWindow instance, used to display FitPanel.
void SelectObject(const std::string &objid)
Select object for fitting.
std::string fPadName
! v6 pad name in the canvas, where object is (was) drawn
TObject * GetSelectedObject(const std::string &objid)
Returns object based on it string id Searches either in gDirectory or in internal panel list.
std::vector< TObject * > fObjects
! objects provided directly to panel for fitting
bool DoDraw()
Perform drawing using current model settings Returns true if any action was done.
Color_t GetColor(const std::string &colorid)
Extract color from string Should be coded as #ff00ff string.
void UpdateFunctionsList()
Update list of available functions.
RFitPanelModel & model()
Return reference on model object Model created if was not exists before.
std::shared_ptr< RH1D > fFitHist
! v7 histogram for fitting
TObject * MakeConfidenceLevels(TFitResult *res)
Create confidence levels drawing tab.
TF1 * FindFunction(const std::string &funcid)
Search for existing functions, ownership still belongs to FitPanel or global lists.
void ProcessData(unsigned connid, const std::string &arg)
Process data from FitPanel OpenUI5-based FitPanel sends commands or status changes.
TFitResult * FindFitResult(const std::string &funcid)
Creates new instance to make fitting.
void UpdateDataSet()
Update list of available data.
std::vector< std::unique_ptr< TF1 > > fSystemFuncs
! local copy of all internal system funcs
std::list< FitRes > fPrevRes
! all previous functions used for fitting
void AssignCanvas(const std::string &cname)
Provides an indirection to the TFitResult class and with a semantics identical to a TFitResult pointe...
Extends the ROOT::Fit::Result class with a TNamed inheritance providing easy possibility for I/O.
TH1 is the base class of all histogram classes in ROOT.
Mother of all ROOT objects.
The most important graphics class in the ROOT system.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Data structure for the fit panel.
std::unique_ptr< TF1 > func