8 #ifndef RG_FIT_GAUS_2D_HH
9 #define RG_FIT_GAUS_2D_HH
15 #define RGFIT_GAUS2D_WIDTH 500
17 #define RGFIT_GAUS2D_HEIGHT 700
149 RGFitGaus2D (
const TGWindow * parent, TH2 *hptr, TH2 * herr = NULL );
151 RGFitGaus2D (
const TGWindow * parent, TH2 *hptr,
const Double_t x1,
const Double_t x2,
152 const Double_t y1,
const Double_t y2 );
154 RGFitGaus2D (
const TGWindow * parent, TH2 *hptr, TH2 * herr,
const Double_t x1,
const Double_t x2,
155 const Double_t y1,
const Double_t y2 );
170 virtual void Init ( );
183 virtual void SetOptions (
const UInt_t opts );
184 virtual void SetOption (
const UInt_t opt,
const bool b =
true );
186 virtual bool GetOption (
const UInt_t opt )
const;
188 virtual void SetFitLimits (
const Double_t x1,
const Double_t x2,
189 const Double_t y1,
const Double_t y2 );
194 virtual void SetBgType (
const Int_t bg );
196 virtual void PresetBg (
const Double_t x1,
const Double_t y1,
const Double_t dx,
const Double_t dy );
198 const Double_t cx,
const Double_t cy,
199 const Double_t s1 = -1.,
const Double_t s2 = -1. );
208 virtual bool SaveFunctions (
const string &fname =
"" )
const;
215 virtual Int_t
SelectedPoint (
const Double_t x,
const Double_t y );
221 virtual void AddPoint (
const Double_t x,
const Double_t y,
const bool select =
true );
virtual void ParamToWidget()
Definition: RGFitGaus2D.cpp:3346
virtual void ComponentsNumberTextChanged(const char *str)
Definition: RGFitGaus2D.cpp:3820
virtual void PointsToWidget()
Definition: RGFitGaus2D.cpp:2962
TGVerticalFrame * w_comp_factor_frame[5]
Cadre facteur (amplitude/surface)
Definition: RGFitGaus2D.hh:110
TGCheckButton * w_comp_sig_1_fix[5]
Fix.
Definition: RGFitGaus2D.hh:130
static UInt_t control_width
Default width for control zone of the interface.
Definition: RGFitGaus2D.hh:59
virtual void PointsToWidgetComponent(const Int_t pk=0)
Definition: RGFitGaus2D.cpp:3016
virtual void WidgetsToPointComponent(const Int_t pk=0)
Definition: RGFitGaus2D.cpp:3275
virtual void WidgetsToPointComponents()
Definition: RGFitGaus2D.cpp:3264
virtual void ParamToWidgetComponent(const Int_t pk=0)
Definition: RGFitGaus2D.cpp:3392
virtual void RelSigmaSelected(const Int_t sel)
Definition: RGFitGaus2D.cpp:4222
static TAttMarker sig_marker_att
Peak width marker attributes.
Definition: RGFitGaus2D.hh:56
TGTextButton * w_comp_preset[5]
Bouton de prédéfinition.
Definition: RGFitGaus2D.hh:144
virtual void SetBgType(const Int_t bg)
Definition: RGFitGaus2D.icc:49
virtual void DeletePoint(const Int_t p)
Definition: RGFitGaus2D.cpp:2302
virtual void WidgetsToParamBg()
Definition: RGFitGaus2D.cpp:3152
TGCheckButton * w_opt_err
Indicateur option normalisation des erreurs.
Definition: RGFitGaus2D.hh:78
TGCheckButton * w_comp_ctr_x_fix[5]
Fix.
Definition: RGFitGaus2D.hh:120
virtual void PointsToParamComponent(const Int_t pk=0)
Definition: RGFitGaus2D.cpp:2875
TGLabel * w_comp_correl_label[5]
Label.
Definition: RGFitGaus2D.hh:138
TGTextButton * w_bg_par_preset
Bouton de précalcul.
Definition: RGFitGaus2D.hh:102
virtual void PointsToWidgetBg()
Definition: RGFitGaus2D.cpp:2973
virtual void PresetComponent(const Int_t pk, const Double_t cx, const Double_t cy, const Double_t s1=-1., const Double_t s2=-1.)
Definition: RGFitGaus2D.cpp:1522
TGHorizontalFrame * w_comp_factor_rel_hf[5]
Cadre horizontal pour pic de référence.
Definition: RGFitGaus2D.hh:114
virtual void ResetFunctions()
Definition: RGFitGaus2D.cpp:2662
TGHorizontalFrame * w_comp_ctr_rel_hf[5]
Cadre horizontal pour pic de référence.
Definition: RGFitGaus2D.hh:124
TGNumberEntry * w_opt_number_value
Valeur nombre de pics.
Definition: RGFitGaus2D.hh:74
TGVerticalFrame * w_bg_dx_vf
Cadre point dX de présélection.
Definition: RGFitGaus2D.hh:91
virtual void FixParamClicked(const Int_t pk)
Definition: RGFitGaus2D.cpp:4264
TGHorizontalFrame * w_comp_sub_frame[5]
Cadre horizontal.
Definition: RGFitGaus2D.hh:108
virtual void GuiUpdate()
Definition: RGFitGaus2D.cpp:3779
virtual void PresetBg(const Double_t x1, const Double_t y1, const Double_t dx, const Double_t dy)
Definition: RGFitGaus2D.cpp:1466
virtual void OptCountsToggled(Bool_t b)
Definition: RGFitGaus2D.cpp:3872
Definition: RGFitGaus2D.hh:39
virtual void SigmaValueTextChanged(const char *str)
Definition: RGFitGaus2D.cpp:4428
virtual void BgPreset()
Definition: RGFitGaus2D.cpp:4096
virtual void GuiUpdateOptions()
Definition: RGFitGaus2D.cpp:3524
#define RGAUS2D_MAX
Nombre maxi de pics.
Definition: RFitDataGaus2D.hh:17
virtual void ParamToPointComponent(const Int_t pk=0)
Definition: RGFitGaus2D.cpp:3481
virtual void WidgetsToPoint()
Definition: RGFitGaus2D.cpp:3228
TGLabel * w_comp_ctr_y_label[5]
Label.
Definition: RGFitGaus2D.hh:121
virtual void WidgetsToPointBg()
Definition: RGFitGaus2D.cpp:3239
virtual void ResetComponent(const Int_t pk=0)
Definition: RGFitGaus2D.cpp:2805
virtual void ResetComponents()
Definition: RGFitGaus2D.cpp:2789
TGCheckButton * w_comp_correl_fix[5]
Fix.
Definition: RGFitGaus2D.hh:140
virtual void ConstructFitData()
Definition: RGFitGaus2D.cpp:402
TGVerticalFrame * w_comp_correl_frame[5]
Cadre paramètre de corrélation.
Definition: RGFitGaus2D.hh:137
TGLabel * w_comp_factor_label[5]
Label.
Definition: RGFitGaus2D.hh:111
TGNumberEntry * w_bg_dy_value
Valeur Y point Y1+dY de présélection.
Definition: RGFitGaus2D.hh:94
virtual void GuiDrawFct()
Definition: RGFitGaus2D.cpp:3792
virtual void PointSelected(const Int_t p)
Definition: RGFitGaus2D.cpp:2506
virtual void FactorValueTextChanged(const char *str)
Definition: RGFitGaus2D.cpp:4394
TGHorizontalFrame * w_bg_type_frame
Ligne type de fond.
Definition: RGFitGaus2D.hh:85
virtual RFitData2D * CreateFitData()
Definition: RGFitGaus2D.cpp:1560
virtual void PointMoved(const Int_t p)
Definition: RGFitGaus2D.cpp:2352
#define RGAUS2D_MAX_BG_PAR
Nombre maxi de paramètres du fond.
Definition: RFitDataGaus2D.hh:20
virtual void PointsToParam()
Definition: RGFitGaus2D.cpp:2852
TGLabel * w_comp_sig_1_label[5]
Label.
Definition: RGFitGaus2D.hh:128
virtual void BgTypeSelected(Int_t bg)
Definition: RGFitGaus2D.cpp:4037
TGCheckButton * w_opt_theta
Indicateur option choix de paramètres.
Definition: RGFitGaus2D.hh:80
TGVerticalFrame * w_comp_ctr_frame[5]
Cadre centre X et Y.
Definition: RGFitGaus2D.hh:117
virtual bool SaveFunctions(const string &fname="") const
Definition: RGFitGaus2D.cpp:2721
TGComboBox * w_comp_sig_rel[5]
Pic de référence.
Definition: RGFitGaus2D.hh:135
Definition: RGFitDisplayer2D.hh:21
virtual void OptModeThetaToggled(Bool_t b)
Definition: RGFitGaus2D.cpp:3897
TGComboBox * w_comp_ctr_rel[5]
Pic de référence.
Definition: RGFitGaus2D.hh:125
virtual void ComponentsNumberChanged(Long_t n)
Definition: RGFitGaus2D.cpp:3812
static TAttLine sig_line_att
Peak width line attributes.
Definition: RGFitGaus2D.hh:53
virtual void SetOptions(const UInt_t opts)
Definition: RGFitGaus2D.icc:11
virtual void GuiPreset()
Definition: RGFitGaus2D.cpp:3763
virtual UInt_t GetOptions() const
Definition: RGFitGaus2D.icc:23
TGComboBox * w_comp_correl_rel[5]
Pic de référence.
Definition: RGFitGaus2D.hh:142
virtual void WidgetsToParamComponents()
Definition: RGFitGaus2D.cpp:3166
virtual void SetFitLimits(const Double_t x1, const Double_t x2, const Double_t y1, const Double_t y2)
Definition: RGFitGaus2D.icc:40
static TAttMarker bg_marker_att
Background preset marker attributes.
Definition: RGFitGaus2D.hh:54
TGVerticalFrame * w_bg_par_fix_frame
Cadre des param. fix.
Definition: RGFitGaus2D.hh:98
virtual void ConstructComponents()
Definition: RGFitGaus2D.cpp:848
Definition: RFitGaus2D.hh:109
TGVerticalFrame * w_bg_dy_vf
Cadre point dY de présélection.
Definition: RGFitGaus2D.hh:93
TGLabel * w_bg_par_label[3]
Nom paramètre fond.
Definition: RGFitGaus2D.hh:99
TGVerticalFrame * w_bg_xy1_vf
Cadre point de présélection.
Definition: RGFitGaus2D.hh:88
TGHorizontalFrame * w_comp_correl_rel_hf[5]
Cadre horizontal pour pic de référence.
Definition: RGFitGaus2D.hh:141
virtual void GuiUpdateDisplayComponents()
Definition: RGFitGaus2D.cpp:3679
TGCanvas * w_comp_canvas
Fenêtre pour paramètres des pics.
Definition: RGFitGaus2D.hh:104
TGGroupFrame * w_bg_frame
Cadre des paramètres de fond.
Definition: RGFitGaus2D.hh:84
TGHorizontalFrame * w_opt_line
Ligne des options de base.
Definition: RGFitGaus2D.hh:72
TGCheckButton * w_comp_factor_fix[5]
Fix.
Definition: RGFitGaus2D.hh:113
virtual void ParamToWidgetComponents()
Definition: RGFitGaus2D.cpp:3380
static TAttMarker ctr_marker_att
Peak center marker attributes.
Definition: RGFitGaus2D.hh:55
RGFitGaus2D(const TGWindow *parent, TH2 *hptr, TH2 *herr=NULL)
Definition: RGFitGaus2D.cpp:36
virtual void PointsToWidgetComponents()
Definition: RGFitGaus2D.cpp:3004
TGNumberEntry * w_bg_par_value[3]
Valeur paramètre fond.
Definition: RGFitGaus2D.hh:100
Definition: RFitDataGaus2D.hh:30
virtual RFitData2D * GetFitData()
Definition: RGFitGaus2D.cpp:1573
TGHorizontalFrame * w_bg_par_frame
Zone des paramètres fond.
Definition: RGFitGaus2D.hh:95
virtual void CenterValueTextChanged(const char *str)
Definition: RGFitGaus2D.cpp:4410
virtual void ConstructBg()
Definition: RGFitGaus2D.cpp:578
virtual void FixCorrelClicked(const Int_t pk)
Definition: RGFitGaus2D.cpp:4328
TGVerticalFrame * w_comp_canvas_frame
Cadre de la fenêtre.
Definition: RGFitGaus2D.hh:105
TGNumberEntry * w_comp_ctr_x_value[5]
Valeur.
Definition: RGFitGaus2D.hh:119
virtual void Request()
Definition: RGFitGaus2D.cpp:1366
TGCheckButton * w_opt_counts
Indicateur option surface.
Definition: RGFitGaus2D.hh:79
void ClassInit()
Definition: RGFitGaus2D.cpp:279
TGCheckButton * w_opt_common_corr
Indicateur option paramètre de corrélation commun.
Definition: RGFitGaus2D.hh:82
TGNumberEntry * w_comp_factor_value[5]
Valeur.
Definition: RGFitGaus2D.hh:112
TGLabel * w_bg_type_label
Label type de fond.
Definition: RGFitGaus2D.hh:86
virtual void GuiUpdateDisplayBg()
Definition: RGFitGaus2D.cpp:3582
TGNumberEntry * w_bg_y1_value
Valeur Y point 1 de précalcul du fond.
Definition: RGFitGaus2D.hh:90
virtual void RedrawPoints()
Definition: RGFitGaus2D.cpp:1795
virtual void PointsToParamComponents()
Definition: RGFitGaus2D.cpp:2863
virtual Int_t GetPointType(const Int_t p)
Definition: RGFitGaus2D.cpp:1759
static TAttLine bg_line_att
Background preset line attributes.
Definition: RGFitGaus2D.hh:51
virtual void FixSigma2Clicked(const Int_t pk)
Definition: RGFitGaus2D.cpp:4305
virtual void CorrelValueTextChanged(const char *str)
Definition: RGFitGaus2D.cpp:4446
virtual ~RGFitGaus2D()
Definition: RGFitGaus2D.cpp:262
TGCheckButton * w_bg_par_fix[3]
Fixe paramètre fond.
Definition: RGFitGaus2D.hh:101
virtual void ComponentPreset(const Int_t pk)
Definition: RGFitGaus2D.cpp:4351
TGComboBox * w_comp_factor_rel[5]
Pic de référence.
Definition: RGFitGaus2D.hh:115
TGNumberEntry * w_comp_ctr_y_value[5]
Valeur.
Definition: RGFitGaus2D.hh:122
virtual void CalcFunctions(const bool bg=false)
Definition: RGFitGaus2D.cpp:2683
virtual void ParamToPointComponents()
Definition: RGFitGaus2D.cpp:3469
virtual Int_t SelectedPoint(const Double_t x, const Double_t y)
Definition: RGFitGaus2D.cpp:1671
virtual void WidgetsToParam()
Definition: RGFitGaus2D.cpp:3139
virtual void WidgetsToParamComponent(const Int_t pk=0)
Definition: RGFitGaus2D.cpp:3178
virtual void ParamUpdateAll()
Definition: RGFitGaus2D.cpp:2780
TGCheckButton * w_opt_common_sig
Indicateur option sigma commun.
Definition: RGFitGaus2D.hh:81
TGNumberEntry * w_bg_x1_value
Valeur X point 1 de précalcul du fond.
Definition: RGFitGaus2D.hh:89
TGHorizontalFrame * w_opt_check
Cadres des différentes options (check-buttons)
Definition: RGFitGaus2D.hh:77
virtual void RelFactorSelected(const Int_t sel)
Definition: RGFitGaus2D.cpp:4160
TGHorizontalFrame * w_comp_sig_rel_hf[5]
Cadre horizontal pour pic de référence.
Definition: RGFitGaus2D.hh:134
TGLabel * w_comp_ctr_x_label[5]
Label.
Definition: RGFitGaus2D.hh:118
Definition: RGFitBase2D.hh:60
TH2 * h_bg
Pointer to result background histogram.
Definition: RGFitGaus2D.hh:65
virtual void ShowRelativeToggled(Bool_t b)
Definition: RGFitGaus2D.cpp:3859
virtual void AddPoint(const Double_t x, const Double_t y, const bool select=true)
Definition: RGFitGaus2D.cpp:2133
bool show_relative
Indique s'il faut afficher les paramètres relatifs.
Definition: RGFitGaus2D.hh:69
virtual void CommonCorrelToggled(Bool_t b)
Definition: RGFitGaus2D.cpp:3984
static UInt_t control_height
Default height for control zone of the interface.
Definition: RGFitGaus2D.hh:60
TGGroupFrame * w_opt_frame
Cadre des options de fit.
Definition: RGFitGaus2D.hh:71
TGLabel * w_comp_sig_2_label[5]
Label.
Definition: RGFitGaus2D.hh:131
virtual void ParamToWidgetBg()
Definition: RGFitGaus2D.cpp:3359
virtual void Init()
Definition: RGFitGaus2D.cpp:380
virtual void ConstructOpts()
Definition: RGFitGaus2D.cpp:448
virtual bool GetOption(const UInt_t opt) const
Definition: RGFitGaus2D.icc:29
TGComboBox * w_bg_type_select
Sélection type de fond.
Definition: RGFitGaus2D.hh:87
TGVerticalFrame * w_bg_par_value_frame
Cadre des valeurs.
Definition: RGFitGaus2D.hh:97
Int_t np_bg
Number of points for background preset.
Definition: RGFitGaus2D.hh:63
TGNumberEntry * w_comp_correl_value[5]
Valeur.
Definition: RGFitGaus2D.hh:139
TGLabel * w_opt_number_label
Label nombre de pics.
Definition: RGFitGaus2D.hh:73
TGGroupFrame * w_comp_frame[5]
Cadre des paramètres des pics.
Definition: RGFitGaus2D.hh:107
TGCheckButton * w_comp_sig_2_fix[5]
Fix.
Definition: RGFitGaus2D.hh:133
static TAttLine ctr_line_att
Peak center line attributes des centres.
Definition: RGFitGaus2D.hh:52
TGNumberEntry * w_comp_sig_1_value[5]
Valeur.
Definition: RGFitGaus2D.hh:129
virtual void OptErrToggled(Bool_t b)
Definition: RGFitGaus2D.cpp:3885
virtual void PointUnselected(const Int_t p)
Definition: RGFitGaus2D.cpp:2583
TGCheckButton * w_show_relative
Visualisation des paramètres relatifs.
Definition: RGFitGaus2D.hh:75
virtual void SetOption(const UInt_t opt, const bool b=true)
Definition: RGFitGaus2D.icc:18
TGCheckButton * w_comp_ctr_y_fix[5]
Fix.
Definition: RGFitGaus2D.hh:123
Definition: RFitData2D.hh:22
virtual void SetControlWidth(const UInt_t w)
Definition: RGFitGaus2D.icc:55
virtual void CommonSigmaToggled(Bool_t b)
Definition: RGFitGaus2D.cpp:3915
TGVerticalFrame * w_comp_sig_frame[5]
Cadre sigma 1 et 2.
Definition: RGFitGaus2D.hh:127
TGNumberEntry * w_comp_sig_2_value[5]
Valeur.
Definition: RGFitGaus2D.hh:132
virtual void SetFitData(const RFitData2D *fit_data)
Definition: RGFitGaus2D.cpp:1605
TH2 * h_comp[5]
Array of pointers to result components histograms.
Definition: RGFitGaus2D.hh:66
virtual void RelCenterSelected(const Int_t sel)
Definition: RGFitGaus2D.cpp:4189
TGNumberEntry * w_bg_dx_value
Valeur X point X1+dX de présélection.
Definition: RGFitGaus2D.hh:92
virtual void ParamToPoint()
Definition: RGFitGaus2D.cpp:3458
TGVerticalFrame * w_bg_par_label_frame
Cadre des labels.
Definition: RGFitGaus2D.hh:96
virtual void GuiUpdateDisplay()
Definition: RGFitGaus2D.cpp:3565
virtual void FixSigma1Clicked(const Int_t pk)
Definition: RGFitGaus2D.cpp:4282