JG ROOT Tools libraries  version 5.0 - august 2014
RGuiFitDecay Class Reference

#include <RGuiFitDecay.hh>

Inheritance diagram for RGuiFitDecay:
RGFitDecay RFitDecay RGFitBase1D RFitDataDecay RFitBase1D RFitBase1D RGHistoWindow RFitData1D RFitData1D RFitData1D RGFrameEvent RGHistoLimits RFitDataBase RFitDataBase RFitDataBase

Public Member Functions

 RGuiFitDecay (const TGWindow *parent, TH1 *hptr, TH1 *herr=NULL)
 
 RGuiFitDecay (const TGWindow *parent, TH1 *hptr, const RFitDataDecay &fit_data)
 
 RGuiFitDecay (const TGWindow *parent, TH1 *hptr, const Double_t x1, const Double_t x2)
 
 RGuiFitDecay (const TGWindow *parent, TH1 *hptr, TH1 *herr, const RFitDataDecay &fit_data)
 
 RGuiFitDecay (const TGWindow *parent, TH1 *hptr, TH1 *herr, const Double_t x1, const Double_t x2)
 
virtual ~RGuiFitDecay ()
 
 ClassDef (RGuiFitDecay, 0)
 
- Public Member Functions inherited from RGFitDecay
 RGFitDecay (const TGWindow *parent, TH1 *hptr, TH1 *herr=NULL)
 
 RGFitDecay (const TGWindow *parent, TH1 *hptr, const RFitDataDecay &fit_data)
 
 RGFitDecay (const TGWindow *parent, TH1 *hptr, const Double_t x1, const Double_t x2)
 
 RGFitDecay (const TGWindow *parent, TH1 *hptr, TH1 *herr, const RFitDataDecay &fit_data)
 
 RGFitDecay (const TGWindow *parent, TH1 *hptr, TH1 *herr, const Double_t x1, const Double_t x2)
 
virtual ~RGFitDecay ()
 
virtual void Init ()
 
virtual void ConstructFitData ()
 
virtual void ConstructOpts ()
 
virtual void ConstructTimes ()
 
virtual void ConstructBg ()
 
virtual void ConstructDecays ()
 
virtual void Request ()
 
virtual void SetControlWidth (const UInt_t w)
 
virtual void SetOptions (const UInt_t opts)
 
virtual void SetOption (const UInt_t opt, const bool b=true)
 
virtual UInt_t GetOptions () const
 
virtual bool GetOption (const UInt_t opt) const
 
virtual void SetBgType (const Int_t bg)
 
virtual void SetProdTime (const Double_t val)
 
virtual void SetDecayTime (const Double_t val)
 
virtual Int_t CheckTimes (const bool warn=false)
 
virtual void SetFitLimits (const Double_t x1, const Double_t x2)
 
virtual RFitData1DCreateFitData ()
 
virtual RFitData1DGetFitData ()
 
virtual void SetFitData (const RFitData1D *fit_data)
 
virtual void ResetFunctions ()
 
virtual void CalcFunctions (const bool bg=false)
 
virtual bool SaveFunctions (const string &fname="") const
 
virtual Int_t SelectedPoint (const Double_t x)
 
virtual Int_t GetPointType (const Int_t p)
 
virtual void RedrawPoints ()
 
virtual void AddPoint (const Double_t x, const bool select=true)
 
virtual void DeletePoint (const Int_t p)
 
virtual void PointMoved (const Int_t p)
 
virtual void PointSelected (const Int_t p)
 
virtual void PointUnselected (const Int_t p)
 
virtual void ParamUpdateAll ()
 
virtual void PointsToParam ()
 
virtual void PointsToParamTimes ()
 
virtual void PointsToWidget ()
 
virtual void PointsToWidgetTimes ()
 
virtual void WidgetsToParam ()
 
virtual void WidgetsToParamTimes ()
 
virtual void WidgetsToParamBg ()
 
virtual void WidgetsToParamDecays ()
 
virtual void WidgetsToPoint ()
 
virtual void WidgetsToPointTimes ()
 
virtual void ParamToWidget ()
 
virtual void ParamToWidgetTimes ()
 
virtual void ParamToWidgetBg ()
 
virtual void ParamToWidgetDecays ()
 
virtual void ParamToPoint ()
 
virtual void ParamToPointTimes ()
 
virtual void GuiUpdateOptions ()
 
virtual void GuiUpdateDisplay ()
 
virtual void GuiUpdateDisplayBg ()
 
virtual void GuiUpdateDisplayTimes ()
 
virtual void GuiUpdateDisplayDecays ()
 
virtual void GuiPreset ()
 
virtual void GuiFit ()
 
virtual void GuiDrawFct ()
 
virtual void OptFitDecaySet ()
 
virtual void OptFitProdSet ()
 
virtual void OptFitProdDecaySet ()
 
virtual void OptParHalflifeSet ()
 
virtual void OptParLambdaSet ()
 
virtual void OptParDecayRateSet ()
 
virtual void OptParNumberSet ()
 
virtual void OptParProdRateSet ()
 
virtual void OptErrToggled (Bool_t b)
 
virtual void OptEffToggled (Bool_t b)
 
virtual void OptSingleFiliationToggled (Bool_t b)
 
virtual void OptDoubleFiliationToggled (Bool_t b)
 
virtual void OptProdSecondToggled (Bool_t b)
 
virtual void OptProdThirdToggled (Bool_t b)
 
virtual void BgTypeSelected (Int_t bg)
 
virtual void BgPreset ()
 
virtual void ProdTimeChanged (Long_t n)
 
virtual void ProdTimeTextChanged (const char *str)
 
virtual void ProdTimeParamClicked ()
 
virtual void DecayTimeChanged (Long_t n)
 
virtual void DecayTimeTextChanged (const char *str)
 
virtual void DecayTimeParamClicked ()
 
 ClassDef (RGFitDecay, 0)
 
- Public Member Functions inherited from RFitDecay
 RFitDecay (TH1 *hptr, TH1 *herr=NULL)
 
 RFitDecay (TH1 *hptr, const RFitDataDecay &fit_data)
 
 RFitDecay (TH1 *hptr, TH1 *herr, const RFitDataDecay &fit_data)
 
 RFitDecay (const RFitDecay &original)
 
virtual ~RFitDecay ()
 
virtual void InitMode ()
 
virtual Int_t GetBgParNumber () const
 
virtual Int_t GetBgParIndex (const Int_t p)
 
virtual Int_t GetDecayParIndex (const Int_t p)
 
virtual Int_t GetProdParIndex (const Int_t p)
 
virtual Double_t GetStaticProdTime () const
 
virtual Double_t GetStaticDecayTime () const
 
virtual void SetEfficiency (const Int_t n, const Double_t val)
 
virtual Double_t GetStaticEfficiency (const Int_t n)
 
virtual void SetBgPar (const Int_t p, const Double_t val)
 
virtual void SetDecayPar (const Int_t n, const Double_t val)
 
virtual void SetProdPar (const Int_t n, const Double_t val)
 
virtual void SetHalfLife (const Int_t n, const Double_t val)
 
virtual void SetLambda (const Int_t n, const Double_t val)
 
virtual void SetDecayRate (const Int_t n, const Double_t val)
 
virtual void SetInitNumber (const Int_t n, const Double_t val)
 
virtual void SetProdRate (const Int_t n, const Double_t val)
 
virtual Double_t GetHalfLife (const Int_t n) const
 
virtual Double_t GetLambda (const Int_t n) const
 
virtual Double_t GetBgPar (const Int_t p) const
 
virtual Double_t GetDecayPar (const Int_t n) const
 
virtual Double_t GetProdPar (const Int_t n) const
 
virtual Double_t GetBgParError (const Int_t p) const
 
virtual Double_t GetDecayParError (const Int_t n) const
 
virtual Double_t GetProdParError (const Int_t n) const
 
virtual void FixBgParameter (const Int_t p, const bool b=true)
 
virtual void FixDecayParameter (const Int_t n, const bool b=true)
 
virtual void FixProdParameter (const Int_t n, const bool b=true)
 
virtual bool IsFixBgParameter (const Int_t p) const
 
virtual bool IsFixDecayParameter (const Int_t n) const
 
virtual bool IsFixProdParameter (const Int_t n) const
 
virtual void SetCalcAll ()
 
virtual void SetCalcNone ()
 
virtual void SetFunction ()
 
virtual void ScaleFunction (const Double_t s)
 
virtual void DrawDecay (const Int_t n, const Int_t fil, const bool bg=true, const char *opts="")
 
virtual void DrawBg (const char *opts="")
 
virtual void DrawFctResult (TVirtualPad *pad, const ROptionString &opts="")
 
virtual TH1 * GetDecayHisto (const char *name, const Int_t n, const Int_t fil, const bool bg=true)
 
virtual TH1 * GetBgHisto (const char *name)
 
virtual void Preset ()
 
virtual void Preset (const Double_t t0, const Double_t t1=0., const Double_t t2=0.)
 
virtual void PresetBg ()
 
virtual Double_t Fit (const char *opts="")
 
virtual string GetFitText () const
 
virtual Int_t LoadFitData (const string &fname)
 
 ClassDef (RFitDecay, 0)
 
- Public Member Functions inherited from RFitDataDecay
 RFitDataDecay ()
 
 RFitDataDecay (const RFitDataDecay &original)
 
RFitDataDecayoperator= (const RFitDataDecay &original)
 
virtual ~RFitDataDecay ()
 
virtual Int_t GetDecayNumber () const
 
virtual Int_t GetProdNumber () const
 
virtual Double_t GetProdTime () const
 
virtual Double_t GetDecayTime () const
 
virtual Int_t GetBgType () const
 
virtual Double_t GetEfficiency (const Int_t n) const
 
virtual Int_t SaveFitData (const string &fname) const
 
 ClassDef (RFitDataDecay, 0)
 
- Public Member Functions inherited from RFitData1D
 RFitData1D ()
 
 RFitData1D (const RFitData1D &original)
 
RFitData1Doperator= (const RFitData1D &original)
 
virtual ~RFitData1D ()
 
virtual void GetFitLimits (Double_t &x1, Double_t &x2) const
 
virtual Double_t GetFitXmin () const
 
virtual Double_t GetFitXmax () const
 
virtual void GetPlotLimits (Double_t &x1, Double_t &x2) const
 
virtual Double_t GetPlotXmin () const
 
virtual Double_t GetPlotXmax () const
 
virtual Bool_t IsLogX () const
 
virtual Bool_t IsLogY () const
 
 ClassDef (RFitData1D, 0)
 
- Public Member Functions inherited from RFitDataBase
 RFitDataBase ()
 
 RFitDataBase (const RFitDataBase &original)
 
RFitDataBaseoperator= (const RFitDataBase &original)
 
virtual ~RFitDataBase ()
 
virtual UInt_t GetFitOptions () const
 
virtual Int_t GetFitMode () const
 
virtual Int_t GetParNumber () const
 
virtual Int_t GetFixNumber () const
 
virtual Double_t GetParValue (const Int_t p) const
 
virtual Double_t GetParError (const Int_t p) const
 
virtual Double_t GetCovariance (const Int_t p, const Int_t q) const
 
virtual bool IsFixParameter (const Int_t p) const
 
virtual Int_t GetFitResult () const
 
virtual Double_t GetFitChi2 () const
 
virtual Int_t GetFitNDF () const
 
virtual Double_t GetFitFCN () const
 
virtual Double_t GetFitEDM () const
 
virtual Double_t GetFitErrDef () const
 
 ClassDef (RFitDataBase, 0)
 
- Public Member Functions inherited from RFitBase1D
 RFitBase1D ()
 
 RFitBase1D (TH1 *hptr, TH1 *herr=NULL)
 
 RFitBase1D (TH1 *hptr, const RFitData1D &fit_data)
 
 RFitBase1D (TH1 *hptr, TH1 *herr, const RFitData1D &fit_data)
 
 RFitBase1D (const RFitBase1D &original)
 
virtual ~RFitBase1D ()
 
virtual void Reset ()
 
virtual void SetParValue (const Int_t p, const Double_t val)
 
virtual string GetParName (const Int_t p) const
 
virtual void FixParameter (const Int_t p, const bool b=true)
 
TF1 * GetFitFunction ()
 
virtual void NormaliseFunction (const Double_t nor=1.)
 
virtual void DrawHisto (const Double_t yinf=0., const Double_t ysup=0.)
 
virtual void DrawFunction (const char *opts="")
 
virtual int CalcIntegral (double &val, double &err, const double x1, const double x2, const int npts=1000, const double frac=0.1)
 
virtual void DrawDifResult (TVirtualPad *pad, const ROptionString &opts="")
 
virtual void DrawFitResult (TVirtualPad *pad, const ROptionString &opts="")
 
virtual void FillFunctionHisto (TH1 *hptr)
 
virtual TH1 * GetFunctionHisto (const char *name)
 
virtual TH1 * GetDifferenceHisto (const char *name)
 
virtual TH1 * GetSqrtHisto (const char *name)
 
virtual TH1 * GetSqrtPosHisto (const char *name)
 
virtual TH1 * GetSqrtNegHisto (const char *name)
 
virtual Double_t Eval (const Double_t x)
 
virtual Double_t GetRandom ()
 
virtual TH1 * GetRandomHisto (const char *name, const Int_t n)
 
virtual void FillRandomHisto (TH1 *hptr, const Int_t n)
 
virtual bool PrintFit (const string &fname) const
 
virtual bool PrintFit (FILE *fptr=stdout) const
 
virtual bool WriteParam (const string &fname) const
 
virtual bool WriteParam (FILE *fptr=stdout) const
 
virtual bool WriteOutput (const string &fname) const
 
virtual bool WriteOutput (FILE *fptr=stdout) const
 
 ClassDef (RFitBase1D, 0)
 
- Public Member Functions inherited from RGFitBase1D
 RGFitBase1D (const TGWindow *parent, TH1 *hptr, TH1 *herr=NULL)
 
 RGFitBase1D (const TGWindow *parent, TH1 *hptr, const Double_t x1, const Double_t x2)
 
 RGFitBase1D (const TGWindow *parent, TH1 *hptr, TH1 *herr, const Double_t x1, const Double_t x2)
 
virtual ~RGFitBase1D ()
 
virtual void Construct ()
 
virtual void ConstructLimits ()
 
virtual void ConstructActions ()
 
virtual void Quit ()
 
virtual Int_t GetReturnValue ()
 
virtual TH1 * GetHistoPtr () const
 
virtual void Redraw ()
 
virtual void DrawPadHisto (const Double_t yinf=0., const Double_t ysup=0.)
 
virtual void SetPlotLimits (const Double_t x1, const Double_t x2)
 
virtual void SetFitMode (const Int_t mode)
 
virtual void GetDisplayMinMax (Double_t &min, Double_t &max) const
 
virtual void AutoScale () const
 
virtual void FitModeSelected (Int_t m)
 
virtual void PresetButton ()
 
virtual void FitButton ()
 
virtual void PresetFitButton ()
 
virtual void ViewButton ()
 
virtual void SaveButton ()
 
virtual void ParamButton ()
 
virtual void UpdateButton ()
 
virtual void FunctButton ()
 
virtual void DrawButton ()
 
virtual void DisplayButton ()
 
virtual void ClearButton ()
 
virtual void ResetButton ()
 
virtual void LoadButton ()
 
virtual void CancelButton ()
 
virtual void DoneButton ()
 
virtual void FitInfLimitChanged (Long_t n)
 
virtual void FitInfLimitTextChanged (const char *str)
 
virtual void FitSupLimitChanged (Long_t n)
 
virtual void FitSupLimitTextChanged (const char *str)
 
virtual void FitLimitsSet ()
 
virtual void FitLimitsToDisplay ()
 
 ClassDef (RGFitBase1D, 0)
 
- Public Member Functions inherited from RGHistoWindow
 RGHistoWindow (const TGWindow *main=NULL, TH1 *hptr=NULL, const string plot_opt="", const UInt_t opts=0, const bool construct=true, const bool autostart=true)
 
 RGHistoWindow (const RGHistoWindow &original)
 
RGHistoWindowoperator= (const RGHistoWindow &original)
 
virtual ~RGHistoWindow ()
 
virtual void MapSubwindows ()
 
virtual void RemapToolsFrame ()
 
virtual void UpdateWindowTitle ()
 
TGCompositeFrame * GetUpperFrame ()
 
TGHorizontalFrame * GetMiddleFrame ()
 
TGCompositeFrame * GetMiddleLeftFrame ()
 
TGHorizontalFrame * GetCenterFrame ()
 
TGCompositeFrame * GetUpperCanvasFrame ()
 
TGVerticalFrame * GetCanvasFrame ()
 
TGCompositeFrame * GetMiddleRightFrame ()
 
TGCompositeFrame * GetLowerFrame ()
 
TGVerticalFrame * GetToolsFrame ()
 
TGCompositeFrame * GetUpperToolsFrame ()
 
virtual void PadEvent (Int_t event, Int_t x, Int_t y, TObject *selected)
 
virtual void SetPositionNul ()
 
virtual void SetPositionHisto (const Double_t xh, const Double_t yh)
 
virtual void SetPositionXAxis (const Double_t xh)
 
virtual void SetPositionYAxis (const Double_t yh)
 
virtual void SetPositionZAxis (const Double_t zh)
 
virtual void XAxisChanged ()
 
virtual void YAxisChanged ()
 
virtual void ZAxisChanged ()
 
virtual void ArrowKeyLeft ()
 
virtual void ArrowKeyRight ()
 
virtual void ArrowKeyUp ()
 
virtual void ArrowKeyDown ()
 
virtual void ZoomInKey ()
 
virtual void ZoomOutKey ()
 
virtual void Reset ()
 
virtual Int_t SetHisto (TH1 *hptr, const bool reset=false)
 
virtual Int_t SetHisto (TH1 *hptr, const bool reset, const bool redraw)
 
virtual void PlotHisto ()
 
virtual void UpdateLimits ()
 
virtual bool SetXLog (const Bool_t b=kTRUE)
 
virtual bool SetYLog (const Bool_t b=kTRUE)
 
virtual bool SetZLog (const Bool_t b=kTRUE)
 
virtual void SetXFull (const Bool_t redraw)
 
virtual void SetYFull (const Bool_t redraw)
 
virtual void SetZFull (const Bool_t redraw)
 
virtual void SetXFull ()
 
virtual void SetYFull ()
 
virtual void SetZFull ()
 
virtual void LogXToggled (Bool_t b)
 
virtual void LogYToggled (Bool_t b)
 
virtual void LogZToggled (Bool_t b)
 
virtual void XValueChanged ()
 
virtual void YValueChanged ()
 
virtual void ZValueChanged ()
 
virtual void XFullButtonClicked ()
 
virtual void YFullButtonClicked ()
 
virtual void ZFullButtonClicked ()
 
virtual void UnzoomButtonClicked ()
 
virtual void AutoButtonClicked ()
 
virtual void AnglesChanged ()
 
 ClassDef (RGHistoWindow, 0)
 
- Public Member Functions inherited from RGFrameEvent
 RGFrameEvent (TVirtualPad *pad=gPad)
 
 RGFrameEvent (const RGFrameEvent &original)
 
RGFrameEventoperator= (const RGFrameEvent &original)
 
virtual ~RGFrameEvent ()
 
virtual void PadClosed ()
 
virtual void KeyPressed (const Int_t x, const Int_t y)
 
virtual void AltKeyPressed ()
 
virtual void CtrlKeyPressed ()
 
virtual void ShiftKeyPressed ()
 
virtual void ReturnKeyPressed ()
 
virtual void MouseButton1Double (const Double_t x, const Double_t y)
 
virtual void MouseButton1Locate (const Double_t x, const Double_t y)
 
virtual void MouseButton1Motion (const Double_t x, const Double_t y)
 
virtual void MouseButton2Double (const Double_t x, const Double_t y)
 
virtual void MouseButton2Locate (const Double_t x, const Double_t y)
 
virtual void MouseButton2Motion (const Double_t x, const Double_t y)
 
virtual void MouseButton3Up (const Double_t x, const Double_t y)
 
virtual void MouseButton3Down (const Double_t x, const Double_t y)
 
virtual void MouseButton3Double (const Double_t x, const Double_t y)
 
virtual void MouseButton3Locate (const Double_t x, const Double_t y)
 
virtual void MouseButton3Motion (const Double_t x, const Double_t y)
 
virtual void Locate (const Double_t x, const Double_t y)
 
 ClassDef (RGFrameEvent, 0)
 
- Public Member Functions inherited from RGHistoLimits
 RGHistoLimits (TH1 *hptr=NULL)
 
 RGHistoLimits (const RGHistoLimits &original)
 
RGHistoLimitsoperator= (const RGHistoLimits &original)
 
virtual void Affect (const RGHistoLimits &original)
 
virtual ~RGHistoLimits ()
 
virtual bool IsDataSet () const
 
virtual void Unzoom ()
 
 ClassDef (RGHistoLimits, 0)
 

Protected Member Functions

 RGuiFitDecay (const RGuiFitDecay &original)
 
- Protected Member Functions inherited from RGFitDecay
 RGFitDecay (const RGFitDecay &original)
 
- Protected Member Functions inherited from RFitDataDecay
virtual RFitDataDecayReadFitData (const string &fname)
 
- Protected Member Functions inherited from RFitData1D
virtual Int_t WriteData (FILE *fp) const
 
- Protected Member Functions inherited from RFitBase1D
virtual bool SetHisto (TH1 *hptr, TH1 *herr=NULL)
 
- Protected Member Functions inherited from RGFitBase1D
 RGFitBase1D (const RGFitBase1D &original)
 
virtual void AnyEvent (const Double_t x, const Double_t y)
 
virtual void MouseButton1Down (const Double_t x, const Double_t y)
 
virtual void MouseButton1Up (const Double_t x, const Double_t y)
 
virtual void MouseButton2Down (const Double_t x, const Double_t y)
 
virtual void MouseButton2Up (const Double_t x, const Double_t y)
 
virtual void MovePoint (const Int_t p, const Double_t x)
 
virtual void PointsToParamLimits ()
 
virtual void PointsToWidgetLimits ()
 
virtual void WidgetsToParamLimits ()
 
virtual void WidgetsToParamFitMode ()
 
virtual void WidgetsToPointLimits ()
 
virtual void ParamToWidgetLimits ()
 
virtual void ParamToWidgetFitMode ()
 
virtual void ParamToPointLimits ()
 
virtual void GuiTextView ()
 
virtual void GuiSaveFitData ()
 
virtual void GuiUpdate ()
 
virtual void GuiWriteParam ()
 
virtual void GuiWriteFct ()
 
virtual void GuiDisplayFct ()
 
virtual void GuiReset ()
 
virtual void GuiLoadFitData ()
 
- Protected Member Functions inherited from RGHistoWindow
void ClassInit ()
 
- Protected Member Functions inherited from RGHistoLimits
virtual void Set1DHisto (const TH1 *hptr)
 
virtual void Set2DHisto (const TH1 *hptr)
 
virtual void Set3DHisto (const TH1 *hptr)
 

Private Member Functions

 GObject (RGuiFitDecay)
 

Additional Inherited Members

- Static Public Member Functions inherited from RFitDecay
static Int_t GetStaticDecayNumber ()
 
static Int_t GetStaticProdNumber ()
 
static Int_t GetStaticBgType ()
 
static Int_t GetStaticBgParNumber ()
 
static Int_t GetBgParNumber (const Int_t bg)
 
static void SetBgLineAtt (const TAttLine att)
 
static void SetBgLineAtt (const Color_t c, const Style_t s, const Width_t w)
 
- Static Public Member Functions inherited from RFitBase1D
static bool Zero (const Double_t val)
 
static UInt_t GetStaticOptions ()
 
static bool GetStaticOption (const UInt_t opt)
 
static Int_t GetStaticParNumber ()
 
static void SetFctLineAtt (const TAttLine att)
 
static void SetFctLineAtt (const Color_t c, const Style_t s, const Width_t w)
 
- Static Public Attributes inherited from RGFitDecay
static TAttLine halflife_line_att = TAttLine ( 4, 1, 1 )
 Half-life preset line attributes.
 
static TAttLine phase_line_att = TAttLine ( 3, 1, 1 )
 Production and decay phases start point line attributes.
 
- Static Public Attributes inherited from RGFitBase1D
static TAttLine limit_line_att = TAttLine ( 2, 1, 1 )
 Fit limits display attributes.
 
static TAttLine select_line_att = TAttLine ( 6, 1, 3 )
 Selected line attributes.
 
static UInt_t canvas_width = 800
 Embedded canvas default width.
 
static UInt_t canvas_height = 700
 Embedded canvas default height.
 
- Static Public Attributes inherited from RGHistoWindow
static UInt_t canvas_width = 600
 Default canvas width.
 
static UInt_t canvas_height = 900
 Default canvas height.
 
- Static Protected Member Functions inherited from RFitData1D
static Int_t ReadData (FILE *fp, RFitData1D &fdata)
 
- Static Protected Member Functions inherited from RFitDataBase
static Int_t ReadData (FILE *fp, RFitDataBase &fdata)
 
- Protected Attributes inherited from RGFitDecay
TH1 * h_bg
 Pointer to result background histogram.
 
TH1 * h_dec0_pr
 Pointer to result histogram of component 0 (direct production)
 
TH1 * h_dec1_pr
 Pointer to result histogram of component 1 (direct production)
 
TH1 * h_dec1_f0
 Pointer to result histogram of component 1 (decay of component 0)
 
TH1 * h_dec2_pr
 Pointer to result histogram of component 2 (direct production)
 
TH1 * h_dec2_f1
 Pointer to result histogram of component 2 (decay of component 1)
 
TH1 * h_dec2_f0
 Pointer to result histogram of component 2 (decay of component 0 and 1)
 
TGHorizontalFrame * w_opt_frame
 Cadre des options de fit.
 
TGGroupFrame * w_opt_mode_frame
 Cadre du mode de fit.
 
TGRadioButton * w_fit_decay
 Bouton pour fit décroissance seule.
 
TGRadioButton * w_fit_prod
 Bouton pour fit production seule.
 
TGRadioButton * w_fit_prod_decay
 Bouton pour fit production et décroissance.
 
TGCheckButton * w_opt_err
 Indicateur option normalisation des erreurs.
 
TGCheckButton * w_opt_eff
 Indicateur option efficacité variable.
 
TGGroupFrame * w_opt_param_frame
 Cadre des options de paramètres.
 
TGRadioButton * w_opt_halflife
 Bouton paramètre durée de vie.
 
TGRadioButton * w_opt_lambda
 Bouton paramètre lambda.
 
TGRadioButton * w_opt_rate
 Bouton paramètre taux de décroissance à t0.
 
TGRadioButton * w_opt_number
 Bouton paramètre nombre de noyaux à t0.
 
TGRadioButton * w_opt_prod
 Bouton paramètre taux de production.
 
TGGroupFrame * w_fit_decay_frame
 Cadre des options composantes de décroissance.
 
TGCheckButton * w_opt_single_fil
 Indicateur option première filiation.
 
TGCheckButton * w_opt_double_fil
 Indicateur option seconde filiation.
 
TGCheckButton * w_opt_prod_second
 Indicateur option production directe second noyau.
 
TGCheckButton * w_opt_prod_third
 Indicateur option production directe trisième noyau.
 
TGGroupFrame * w_times_frame
 Cadre des phases de production/décroissance.
 
TGVerticalFrame * w_times_label
 Colonne des labels.
 
TGVerticalFrame * w_times_value
 Colonne des valeurs de paramètre.
 
TGVerticalFrame * w_times_fix
 Colonne des paramètres fixes.
 
TGVerticalFrame * w_times_param
 Colonne des temps comme paramètres.
 
TGLabel * w_tprod_label
 Label de widget.
 
TGNumberEntry * w_tprod_value
 Valeur début de phase de production.
 
TGCheckButton * w_tprod_fix
 Début de phase de production comme paramètre fixe.
 
TGCheckButton * w_tprod_param
 Début de phase de production comme paramètre de fit.
 
TGLabel * w_tdec_label
 Label de widget.
 
TGNumberEntry * w_tdec_value
 Valeur début de phase de décroissance.
 
TGCheckButton * w_tdec_fix
 Début de phase de décroissance comme paramètre fixe.
 
TGCheckButton * w_tdec_param
 Début de phase de décroissance comme paramètre de fit.
 
TGGroupFrame * w_bg_frame
 Cadre des paramètres de fond.
 
TGHorizontalFrame * w_bg_type_frame
 Ligne type de fond.
 
TGLabel * w_bg_type_label
 Label type de fond.
 
TGComboBox * w_bg_type_select
 Sélection type de fond.
 
TGHorizontalFrame * w_bg_par_frame
 Zone des paramètres fond.
 
TGVerticalFrame * w_bg_par_label_frame
 Cadre des labels.
 
TGVerticalFrame * w_bg_par_value_frame
 Cadre des valeurs.
 
TGVerticalFrame * w_bg_par_fix_frame
 Cadre des param. fix.
 
TGLabel * w_bg_par_label [2]
 Nom paramètre fond.
 
TGNumberEntry * w_bg_par_value [2]
 Valeur paramètre fond.
 
TGCheckButton * w_bg_par_fix [2]
 Fixe paramètre fond.
 
TGTextButton * w_bg_par_preset
 Bouton de précalcul.
 
TGGroupFrame * w_comp_frame [3]
 Cadre des paramètres des pics.
 
TGHorizontalFrame * w_comp_sub_frame [3]
 Cadre horizontal.
 
TGVerticalFrame * w_halflife_frame [3]
 Cadre pour paramètre de durée de vie / lambda.
 
TGLabel * w_halflife_label [3]
 Label pour paramètre de durée de vie / lambda.
 
TGNumberEntry * w_halflife_value [3]
 Valeur pour paramètre de durée de vie / lambda.
 
TGCheckButton * w_halflife_fix [3]
 Fixe le paramètre de durée de vie / lambda.
 
TGVerticalFrame * w_prod_frame [3]
 Cadre pour paramètre de production.
 
TGVerticalFrame * w_prod_sub_frame [3]
 Sous-cadre pour masquage du paramètre.
 
TGLabel * w_prod_label [3]
 Label pour paramètre de production.
 
TGNumberEntry * w_prod_value [3]
 Valeur pour paramètre de production.
 
TGCheckButton * w_prod_fix [3]
 Fixe le paramètre de production.
 
TGVerticalFrame * w_eff_frame [3]
 Cadre pour efficacité
 
TGVerticalFrame * w_eff_sub_frame [3]
 Sous-cadre pour masquage du paramètre.
 
TGLabel * w_eff_label [3]
 Label pour efficacité
 
TGNumberEntry * w_eff_value [3]
 Valeur pour efficacité
 
- Protected Attributes inherited from RFitDataDecay
Double_t time_prod
 Production start time (if not defined as parameter)
 
Double_t time_dec
 Deacy start time (if not defined as parameter)
 
Double_t rel_eff [3]
 Components relative detection efficiency.
 
Int_t decay_number
 Number of decay components.
 
Int_t prod_number
 Number of components with direct production.
 
UInt_t bg_type
 Background type.
 
- Protected Attributes inherited from RFitData1D
Double_t fit_xmin
 Fit limit.
 
Double_t fit_xmax
 Fit limit.
 
Double_t plot_xmin
 Plot limit.
 
Double_t plot_xmax
 Plot limit.
 
Bool_t plot_logx
 Log scale for plot.
 
Bool_t plot_logy
 Log scale for plot.
 
- Protected Attributes inherited from RFitDataBase
UInt_t fit_options
 Fit options.
 
Int_t fit_mode
 Fit mode (Chi2 or Log-likelyhood)
 
Int_t fit_result
 Fit result.
 
Double_t fit_chi2
 Chi2.
 
Int_t fit_ndf
 Number of degrees of freedom.
 
Double_t fit_fcn
 Minimized function value (FCN)
 
Double_t fit_edm
 Estimated distance to minimum.
 
Double_t fit_err_def
 Error matrix status.
 
Int_t par_number
 Number of fit parameters (total)
 
Double_t par_val [50]
 Parameters values.
 
Double_t par_err [50]
 Uncertainties values.
 
bool par_fix [50]
 Fix parameters.
 
Double_t par_cov [50][50]
 Covariance matrix.
 
- Protected Attributes inherited from RFitBase1D
TH1 * histo_ptr
 Pointeur sur l'histogramme à fitter.
 
TH1 * herr1_ptr
 Pointeur sur l'histogramme d'erreur négatif.
 
TH1 * herr2_ptr
 Pointeur sur l'histogramme d'erreur positif.
 
bool histo_err
 Indique si l'histo est fitté avec une erreur.
 
string par_name [50]
 tableau des noms de paramètres
 
Int_t ix_min
 Borne inférieure du fit en canaux de l'histogramme.
 
Int_t ix_max
 Borne supérieure du fit en canaux de l'histogramme.
 
Int_t nx_bin
 Nombre de bins de la zone de fit.
 
TF1 * fct_ptr
 Pointeur sur la fonction de fit.
 
- Protected Attributes inherited from RGFitBase1D
bool exit_flag
 End of request check.
 
bool constructed
 Check if interface is constructed.
 
Int_t return_value
 Interface return value.
 
const TGWindow * main_window
 Parent application main window.
 
Double_t init_x1
 Initial display lower limit.
 
Double_t init_x2
 Initial display upper limit.
 
Double_t select_distance
 Point selection distance (in pixel)
 
Int_t select_point
 Point at selection distance (-1 if no point)
 
bool move_lock
 Used to check if point is moving.
 
Int_t np_max
 Maximum number of preset points.
 
bool * pt_set
 Array of points defined.
 
bool * pt_pre
 Array of preset points.
 
double * pt_x
 Array of points positions.
 
TList obj_list
 List of objects to draw.
 
TH1 * h_fct
 Fit function histogram pointer.
 
TH1 * h_diff
 Difference histogram pointer.
 
TH1 * h_err_pos
 Function positive error (square root) histogram.
 
TH1 * h_err_neg
 Function negative error (square root) histogram.
 
bool inhibit_value_slot
 
TGGroupFrame * w_fit_limits_frame
 Fit zone frame.
 
TGHorizontalFrame * w_fit_limit
 Fit limits line.
 
TGLabel * w_fit_inf_label
 Lower limit label.
 
TGNumberEntry * w_fit_inf_value
 Lower limit value.
 
TGLabel * w_fit_sup_label
 Upper limit label.
 
TGNumberEntry * w_fit_sup_value
 Upper limit value.
 
TGTextButton * w_fit_limit_set
 Limits validation button.
 
TGTextButton * w_fit_limit_disp
 Button to set fit limits to display.
 
TGHorizontalFrame * w_buttons_frame
 Buttons frame.
 
TGGroupFrame * w_fit_but_group
 Group for fit buttons.
 
TGComboBox * w_fit_mode_select
 Fit mode selection.
 
TGTextButton * w_preset_button
 Full precalculation button.
 
TGTextButton * w_fit_button
 Fit button.
 
TGTextButton * w_set_fit_button
 Precalculation and fit button.
 
TGGroupFrame * w_param_but_group
 Group for parameters buttons.
 
TGTextButton * w_view_button
 Result display button.
 
TGTextButton * w_save_button
 Fit data save button.
 
TGTextButton * w_param_button
 Parameters save button.
 
TGTextButton * w_update_button
 Interface update button.
 
TGGroupFrame * w_funct_but_group
 Group for functions buttons.
 
TGTextButton * w_clear_button
 Clear fit histograms button.
 
TGTextButton * w_funct_button
 Save functions button.
 
TGTextButton * w_draw_button
 Plot fit histograms button.
 
TGTextButton * w_display_button
 Separated display button.
 
TGVerticalFrame * w_global_but_frame
 Frame for general buttons.
 
TGTextButton * w_reset_button
 Reset interface button.
 
TGTextButton * w_load_button
 Fit data read button.
 
TGTextButton * w_cancel_button
 Cancel button (close interface)
 
TGTextButton * w_done_button
 Done button (close interface)
 
- Protected Attributes inherited from RGHistoWindow
UInt_t options
 Window options.
 
bool limits_widgets
 Flag indicating if histogram limits widgets are created.
 
TCanvas * canvas_ptr
 Canvas pointer.
 
TH1 * histo_ptr
 Histogram pointer.
 
bool histo_copy
 Flag if the class works with a copy of the histogram.
 
string plot_mode
 ROOT options for histogram display.
 
bool inhibit_slot
 Prevents recursive calls.
 
TRootEmbeddedCanvas * w_canvas
 Pointer to embedded canvas.
 
TGCompositeFrame * w_upper_frame
 Upper base frame.
 
TGHorizontalFrame * w_middle_frame
 Middle base frame.
 
TGCompositeFrame * w_middle_left_frame
 Middle left frame.
 
TGHorizontalFrame * w_center_frame
 Middle center frame.
 
TGCompositeFrame * w_upper_canvas_frame
 Base frame on top of pad.
 
TGCompositeFrame * w_middle_right_frame
 Middle right frame.
 
TGCompositeFrame * w_lower_frame
 Lower base frame.
 
TGVerticalFrame * w_canvas_frame
 Canvas frame.
 
TGVSplitter * w_splitter
 Frames separator.
 
TGVerticalFrame * w_tools_frame
 Tools frame.
 
TGLabel * w_position_line
 Position information line.
 
TGCompositeFrame * w_upper_tools_frame
 Upper frame for additionnal widgets.
 
TGGroupFrame * w_limits_frame
 Frame for plot limits.
 
TGHorizontalFrame * w_axis_frame
 Sous-cadre des axes.
 
TGVerticalFrame * w_axis_name_frame
 Cadre labels des axes.
 
TGLabel * w_x_label
 Labels.
 
TGLabel * w_y_label
 Labels.
 
TGLabel * w_z_label
 Labels.
 
TGVerticalFrame * w_axis_log_frame
 Cadre boutons échelle log.
 
TGCheckButton * w_x_log_button
 Bouton échelle log.
 
TGCheckButton * w_y_log_button
 Bouton échelle log.
 
TGCheckButton * w_z_log_button
 Bouton échelle log.
 
TGVerticalFrame * w_axis_min_label
 Cadre labels valeurs min.
 
TGLabel * w_min_label [3]
 Labels.
 
TGVerticalFrame * w_axis_min_value
 Cadre valeurs min.
 
TGNumberEntry * w_x_min_entry
 Saisie valeur mini.
 
TGNumberEntry * w_y_min_entry
 Saisie valeur mini.
 
TGNumberEntry * w_z_min_entry
 Saisie valeur mini.
 
TGVerticalFrame * w_axis_max_label
 Cadre labels valeurs max.
 
TGLabel * w_max_label [3]
 Labels.
 
TGVerticalFrame * w_axis_max_value
 Cadre valeurs min.
 
TGNumberEntry * w_x_max_entry
 Saisie valeur maxi.
 
TGNumberEntry * w_y_max_entry
 Saisie valeur maxi.
 
TGNumberEntry * w_z_max_entry
 Saisie valeur maxi.
 
TGVerticalFrame * w_axis_full_frame
 Cadre boutons pleine échelle.
 
TGTextButton * w_x_full_button
 Bouton pleine échelle.
 
TGTextButton * w_y_full_button
 Bouton pleine échelle.
 
TGTextButton * w_z_full_button
 Bouton pleine échelle.
 
TGVerticalFrame * w_zoom_frame
 Cadre boutons zoom.
 
TGTextButton * w_unzoom_button
 Bouton unzoom.
 
TGTextButton * w_auto_button
 Bouton échelle automatique.
 
TGHorizontalFrame * w_angles_frame
 Cadre des angles.
 
TGNumberEntry * w_theta_entry
 Saisie de l'angle.
 
TGNumberEntry * w_phi_entry
 Saisie de l'angle.
 
- Protected Attributes inherited from RGFrameEvent
TVirtualPad * pad_ptr
 Pointer to pad where events are processed.
 
- Protected Attributes inherited from RGHistoLimits
Int_t dimension
 Histogram dimension.
 
Double_t lim_x_min
 Axis lower limit.
 
Double_t lim_x_max
 Axis upper limit.
 
Double_t lim_y_min
 Axis lower limit.
 
Double_t lim_y_max
 Axis upper limit.
 
Double_t lim_z_min
 Axis lower limit.
 
Double_t lim_z_max
 Axis upper limit.
 
Double_t log_x_min
 Lower limit for log scale.
 
Double_t log_y_min
 Lower limit for log scale.
 
Double_t log_z_min
 Lower limit for log scale.
 
bool allow_x_log
 Test if log scale allowed.
 
bool allow_y_log
 Test if log scale allowed.
 
bool allow_z_log
 Test if log scale allowed.
 
Double_t x_min
 Current display lower bound.
 
Double_t x_max
 Current display upper bound.
 
Double_t y_min
 Current display lower bound.
 
Double_t y_max
 Current display upper bound.
 
Double_t z_min
 Current display lower bound.
 
Double_t z_max
 Current display upper bound.
 
bool x_log
 Log scale status.
 
bool y_log
 Log scale status.
 
bool z_log
 Log scale status.
 
- Static Protected Attributes inherited from RGFitDecay
static UInt_t control_width = 500
 Default width for control zone of the interface.
 
- Static Protected Attributes inherited from RFitDecay
static UInt_t bg_type = RFitDecay::bgNone
 Type de fond (statique pour être vue dans la fonction de fit)
 
static UInt_t bg_par_number [3] = { 0, 1, 2 }
 Table du nombre de paramètres selon le type de fond.
 
static Int_t decay_number = 1
 Nombre de contributions (durée de vie)
 
static Int_t prod_number = 1
 Nombre de contributions (production directe)
 
static Int_t index_tprod = -1
 Index du paramètre de temps de début de production.
 
static Int_t index_tdec = -1
 Index du paramètre de temps de début de décroissance.
 
static Int_t index_prod [3] = { -1, -1, -1 }
 Index des productions (initiale ou taux)
 
static Int_t index_dec [3] = { -1, -1, -1 }
 Index des durées de vies.
 
static Int_t index_eff [3] = { -1, -1, -1 }
 Index des efficacités relatives de détection.
 
static Int_t index_bg [2] = { -1, -1 }
 Index des paramètres de fond dans la table des paramètres.
 
static bool calc_prod [3] = { true, true, true }
 Indique les composantes de production directe à calculer.
 
static bool calc_fil1 [3] = { true, true, true }
 Indique les composantes de première filiation.
 
static bool calc_fil2 [3] = { true, true, true }
 Indique les composantes de seconde filiation.
 
static bool calc_bg = true
 Indique s'il faut calculer le fond.
 
static Double_t time_prod = 0.
 Temps de début de production (hors paramètre)
 
static Double_t time_dec = 0.
 Temps de début de décroissance (hors paramètre)
 
static Double_t rel_eff [3] = { 1., 1., 1. }
 Efficacités relatives d'observation des composantes.
 
static TAttLine latt_dec [3]
 Attributs de lignes pour tracé des composantes de décroissance. More...
 
static TAttLine latt_bg = TAttLine ( 3, 1, 1 )
 Attributs de lignes pour tracé du fond.
 
- Static Protected Attributes inherited from RFitBase1D
static Double_t epsilon = 1.e-12
 Check for null values.
 
static UInt_t fit_options = 0
 Options pour le fit (statique pour être vue dans la fonction de fit)
 
static Int_t fit_mode = RFitModes::fitChi2
 Mode de fit (Chi2 ou Log-likelyhood)
 
static Int_t par_number = 0
 Nombre de paramètres pour le fit.
 
static Double_t histo_bin_x = 1.
 Largeur de bin de l'histogramme (pour calcul avec la surface comme paramètre)
 
static TAttLine latt_histo = TAttLine ( 1, 1, 2 )
 Attributs de lignes pour tracé de l'histogramme.
 
static TAttLine latt_error = TAttLine ( 17, 1, 0 )
 Attributs de lignes pour tracé de l'erreur.
 
static TAttFill fatt_error = TAttFill ( 17, 1000 )
 Attributs de remplissage pour tracé de l'erreur.
 
static TAttLine latt_fct = TAttLine ( 2, 1, 2 )
 Attributs de lignes pour tracé de la fonction globale.
 
static TAttLine latt_zero = TAttLine ( 4, 1, 2 )
 Attributs de lignes pour tracé central différences.
 
- Static Protected Attributes inherited from RGFitBase1D
static string file_dir = ""
 Output directory name.
 
static string file_root_file = "fit_funct.root"
 Output ROOT file.
 
static string file_param_file = "fit_param.txt"
 Output parameter file.
 
static string file_output_file = "fit_result.fit"
 Output result file.
 

Detailed Description

This class is a copy of the base class, but it can be used directly in a ROOT session, while the base class cannot due to virtual inheritance.

Constructor & Destructor Documentation

RGuiFitDecay::RGuiFitDecay ( const TGWindow *  main,
TH1 *  hptr,
TH1 *  herr = NULL 
)

Interface constructor: the interface is not started, in order to be able to preset options and data.

Parameters
mainmain window
hptrpointer to histogram to fit
herrpointer to uncertainty histogram (or NULL)
RGuiFitDecay::RGuiFitDecay ( const TGWindow *  main,
TH1 *  hptr,
const RFitDataDecay fit_data 
)

Interface constructor: the interface is not started, in order to be able to preset options and data.

Parameters
mainmain window
hptrpointer to histogram to fit
fit_datainitialisation data
RGuiFitDecay::RGuiFitDecay ( const TGWindow *  main,
TH1 *  hptr,
const Double_t  x1,
const Double_t  x2 
)

Interface constructor: the interface is not started, in order to be able to preset options and data.

Parameters
mainmain window
hptrpointer to histogram to fit
x1initial display lower limit
x2initial display upper limit
RGuiFitDecay::RGuiFitDecay ( const TGWindow *  main,
TH1 *  hptr,
TH1 *  herr,
const RFitDataDecay fit_data 
)

Interface constructor: the interface is not started, in order to be able to preset options and data.

Parameters
mainmain window
hptrpointer to histogram to fit
herrpointer to uncertainty histogram (or NULL)
fit_datainitialisation data
RGuiFitDecay::RGuiFitDecay ( const TGWindow *  main,
TH1 *  hptr,
TH1 *  herr,
const Double_t  x1,
const Double_t  x2 
)

Interface constructor: the interface is not started, in order to be able to preset options and data.

Parameters
mainmain window
hptrpointer to histogram to fit
herrpointer to uncertainty histogram (or NULL)
x1initial display lower limit
x2initial display upper limit
RGuiFitDecay::RGuiFitDecay ( const RGuiFitDecay original)
protected

Copy constructor: not implemented.

Parameters
originalobject to copy
RGuiFitDecay::~RGuiFitDecay ( )
virtual

Destructor.

Member Function Documentation

RGuiFitDecay::GObject ( RGuiFitDecay  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
RGuiFitDecay::ClassDef ( RGuiFitDecay  ,
 
)

For ROOT dictionary.


The documentation for this class was generated from the following files: