35namespace Experimental {
 
   39   std::unique_ptr<RFitPanelModel> 
fModel;
 
   48   std::shared_ptr<ROOT::RWebWindow> 
fWindow;  
 
   68   void ProcessData(
unsigned connid, 
const std::string &arg);
 
   99   RFitPanel(
const std::string &title = 
"Fit panel");
 
  103   std::shared_ptr<ROOT::RWebWindow> 
GetWindow();
 
  116   void Show(
const std::string &
where = 
"");
 
 
RooAbsReal * _func
Pointer to original input function.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char cname
 
RFitPanel(const std::string &title="Fit panel")
Constructor.
 
TPad * GetDrawPad(TObject *obj, bool force=false)
Returns pad where histogram is drawn If canvas not exists, create new one.
 
void UpdateDataSet()
Update list of available data.
 
void UpdateFunctionsList()
Update list of available functions.
 
void SelectFunction(const std::string &funcid)
Select fit function.
 
void GetFunctionsFromSystem()
Looks for all the functions registered in the current ROOT session.
 
void ClearOnClose(const std::shared_ptr< void > &handle)
Set handle which will be cleared when connection is closed.
 
RFitPanelModel::EFitObjectType GetFitObjectType(TObject *obj)
Returns kind of object.
 
std::shared_ptr< RCanvas > fCanvas
! v7 canvas used to display results
 
TF1 * FindFunction(const std::string &funcid)
Search for existing functions, ownership still belongs to FitPanel or global lists.
 
std::string fCanvName
! v6 canvas name used to display fit, will be created if not exists
 
std::unique_ptr< RFitPanelModel > fModel
 
void Show(const std::string &where="")
show FitPanel in specified place
 
Color_t GetColor(const std::string &colorid)
Extract color from string Should be coded as #ff00ff string.
 
unsigned fConnId
! client connection id
 
std::string fPadName
! v6 pad name in the canvas, where object is (was) drawn
 
bool DoFit()
Perform fitting using current model settings Returns true if any action was done.
 
std::shared_ptr< ROOT::RWebWindow > fWindow
! configured display
 
TObject * MakeConfidenceLevels(TFitResult *res)
Create confidence levels drawing tab.
 
std::vector< TObject * > fObjects
! objects provided directly to panel for fitting
 
std::unique_ptr< TF1 > GetFitFunction(const std::string &funcid)
Creates new instance to make fitting.
 
void AssignHistogram(TH1 *hist)
Assign histogram to use with fit panel - without ownership.
 
TFitResult * FindFitResult(const std::string &funcid)
Creates new instance to make fitting.
 
TObject * GetSelectedObject(const std::string &objid)
Returns object based on it string id Searches either in gDirectory or in internal panel list.
 
void SendModel()
Send model object to the client.
 
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...
 
void DoPadUpdate(TPad *pad)
Mark pad modified and do update For web canvas set async mode first to avoid blocking here.
 
std::shared_ptr< RH1D > fFitHist
! v7 histogram for fitting
 
RFitPanelModel & model()
Return reference on model object Model created if was not exists before.
 
TF1 * copyTF1(TF1 *f)
Copies f into a new TF1 to be stored in the fitpanel with it's own ownership.
 
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 ProcessData(unsigned connid, const std::string &arg)
Process data from FitPanel OpenUI5-based FitPanel sends commands or status changes.
 
void AssignCanvas(const std::string &cname)
 
bool DoDraw()
Perform drawing using current model settings Returns true if any action was done.
 
void SelectObject(const std::string &objid)
Select object for fitting.
 
std::shared_ptr< ROOT::RWebWindow > GetWindow()
Returns RWebWindow instance, used to display FitPanel.
 
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