JG ROOT Tools libraries  version 5.0 - august 2014
RGFitGaus2D.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file RGFitGaus2D.hh
3  *
4  * Include file for class RGFitGaus2D
5  */
6 //======================================================================
7 
8 #ifndef RG_FIT_GAUS_2D_HH
9 #define RG_FIT_GAUS_2D_HH
10 
11 #include "RFitGaus2D.hh"
12 #include "RGFitBase2D.hh"
13 
14 ///! Default width of control zone of the interface
15 #define RGFIT_GAUS2D_WIDTH 500
16 ///! Default height of control zone of the interface
17 #define RGFIT_GAUS2D_HEIGHT 700
18 
19 // include for points types.
20 #include "RGFitPeak.hh"
21 
22 
23 //======================================================================
24 /*! \class RGFitGaus2D
25  *
26  * Graphical interface for the RFitGaus2D class.
27  * See RGFitBase2D class for general fit interface features.
28  *
29  * It allows to define interactively the preset points:
30  * - 2 points for fit limits (corners)
31  * - 1 point for center of components
32  * - 2 points for sigma ellipse of components
33  *
34  * \note
35  * The class inherits 2 times from RFitBase (virtual inheritance).
36  * ROOT interpreter cannot manage this case, and the derived class
37  * RGuiFitDecay may be used in ROOT sessions.
38  */
39 class RGFitGaus2D : virtual public RFitGaus2D,
40  virtual public RGFitBase2D
41 {
42  //------------------------------------------------------------
43  /*! \object_doc{RGFitGaus2D} */
45  //------------------------------------------------------------
46 
47  friend class RGFitDisplayer2D;
48 
49  public:
50 
51  static TAttLine bg_line_att; ///< Background preset line attributes
52  static TAttLine ctr_line_att; ///< Peak center line attributes des centres
53  static TAttLine sig_line_att; ///< Peak width line attributes
54  static TAttMarker bg_marker_att; ///< Background preset marker attributes
55  static TAttMarker ctr_marker_att; ///< Peak center marker attributes
56  static TAttMarker sig_marker_att; ///< Peak width marker attributes
57 
58  protected:
59  static UInt_t control_width; ///< Default width for control zone of the interface
60  static UInt_t control_height; ///< Default height for control zone of the interface
61 
62  // variable pour saisie des points
63  Int_t np_bg; ///< Number of points for background preset
64 
65  TH2 * h_bg; ///< Pointer to result background histogram
66  TH2 * h_comp[RGAUS2D_MAX]; ///< Array of pointers to result components histograms
67 
68  // Widgets spécifiques
69  bool show_relative; ///< Indique s'il faut afficher les paramètres relatifs
70 
71  TGGroupFrame * w_opt_frame; ///< Cadre des options de fit
72  TGHorizontalFrame * w_opt_line; ///< Ligne des options de base
73  TGLabel * w_opt_number_label; ///< Label nombre de pics
74  TGNumberEntry * w_opt_number_value; ///< Valeur nombre de pics
75  TGCheckButton * w_show_relative; ///< Visualisation des paramètres relatifs
76 
77  TGHorizontalFrame * w_opt_check; ///< Cadres des différentes options (check-buttons)
78  TGCheckButton * w_opt_err; ///< Indicateur option normalisation des erreurs
79  TGCheckButton * w_opt_counts; ///< Indicateur option surface
80  TGCheckButton * w_opt_theta; ///< Indicateur option choix de paramètres
81  TGCheckButton * w_opt_common_sig; ///< Indicateur option sigma commun
82  TGCheckButton * w_opt_common_corr; ///< Indicateur option paramètre de corrélation commun
83 
84  TGGroupFrame * w_bg_frame; ///< Cadre des paramètres de fond
85  TGHorizontalFrame * w_bg_type_frame; ///< Ligne type de fond
86  TGLabel * w_bg_type_label; ///< Label type de fond
87  TGComboBox * w_bg_type_select; ///< Sélection type de fond
88  TGVerticalFrame * w_bg_xy1_vf; ///< Cadre point de présélection
89  TGNumberEntry * w_bg_x1_value; ///< Valeur X point 1 de précalcul du fond
90  TGNumberEntry * w_bg_y1_value; ///< Valeur Y point 1 de précalcul du fond
91  TGVerticalFrame * w_bg_dx_vf; ///< Cadre point dX de présélection
92  TGNumberEntry * w_bg_dx_value; ///< Valeur X point X1+dX de présélection
93  TGVerticalFrame * w_bg_dy_vf; ///< Cadre point dY de présélection
94  TGNumberEntry * w_bg_dy_value; ///< Valeur Y point Y1+dY de présélection
95  TGHorizontalFrame * w_bg_par_frame; ///< Zone des paramètres fond
96  TGVerticalFrame * w_bg_par_label_frame; ///< Cadre des labels
97  TGVerticalFrame * w_bg_par_value_frame; ///< Cadre des valeurs
98  TGVerticalFrame * w_bg_par_fix_frame; ///< Cadre des param. fix
99  TGLabel * w_bg_par_label[RGAUS2D_MAX_BG_PAR]; ///< Nom paramètre fond
100  TGNumberEntry * w_bg_par_value[RGAUS2D_MAX_BG_PAR]; ///< Valeur paramètre fond
101  TGCheckButton * w_bg_par_fix [RGAUS2D_MAX_BG_PAR]; ///< Fixe paramètre fond
102  TGTextButton * w_bg_par_preset; ///< Bouton de précalcul
103 
104  TGCanvas * w_comp_canvas; ///< Fenêtre pour paramètres des pics
105  TGVerticalFrame * w_comp_canvas_frame; ///< Cadre de la fenêtre
106 
107  TGGroupFrame * w_comp_frame [RGAUS2D_MAX]; ///< Cadre des paramètres des pics
108  TGHorizontalFrame * w_comp_sub_frame [RGAUS2D_MAX]; ///< Cadre horizontal
109 
110  TGVerticalFrame * w_comp_factor_frame [RGAUS2D_MAX]; ///< Cadre facteur (amplitude/surface)
111  TGLabel * w_comp_factor_label [RGAUS2D_MAX]; ///< Label
112  TGNumberEntry * w_comp_factor_value [RGAUS2D_MAX]; ///< Valeur
113  TGCheckButton * w_comp_factor_fix [RGAUS2D_MAX]; ///< Fix
114  TGHorizontalFrame * w_comp_factor_rel_hf [RGAUS2D_MAX]; ///< Cadre horizontal pour pic de référence
115  TGComboBox * w_comp_factor_rel [RGAUS2D_MAX]; ///< Pic de référence
116 
117  TGVerticalFrame * w_comp_ctr_frame [RGAUS2D_MAX]; ///< Cadre centre X et Y
118  TGLabel * w_comp_ctr_x_label [RGAUS2D_MAX]; ///< Label
119  TGNumberEntry * w_comp_ctr_x_value [RGAUS2D_MAX]; ///< Valeur
120  TGCheckButton * w_comp_ctr_x_fix [RGAUS2D_MAX]; ///< Fix
121  TGLabel * w_comp_ctr_y_label [RGAUS2D_MAX]; ///< Label
122  TGNumberEntry * w_comp_ctr_y_value [RGAUS2D_MAX]; ///< Valeur
123  TGCheckButton * w_comp_ctr_y_fix [RGAUS2D_MAX]; ///< Fix
124  TGHorizontalFrame * w_comp_ctr_rel_hf [RGAUS2D_MAX]; ///< Cadre horizontal pour pic de référence
125  TGComboBox * w_comp_ctr_rel [RGAUS2D_MAX]; ///< Pic de référence
126 
127  TGVerticalFrame * w_comp_sig_frame [RGAUS2D_MAX]; ///< Cadre sigma 1 et 2
128  TGLabel * w_comp_sig_1_label [RGAUS2D_MAX]; ///< Label
129  TGNumberEntry * w_comp_sig_1_value [RGAUS2D_MAX]; ///< Valeur
130  TGCheckButton * w_comp_sig_1_fix [RGAUS2D_MAX]; ///< Fix
131  TGLabel * w_comp_sig_2_label [RGAUS2D_MAX]; ///< Label
132  TGNumberEntry * w_comp_sig_2_value [RGAUS2D_MAX]; ///< Valeur
133  TGCheckButton * w_comp_sig_2_fix [RGAUS2D_MAX]; ///< Fix
134  TGHorizontalFrame * w_comp_sig_rel_hf [RGAUS2D_MAX]; ///< Cadre horizontal pour pic de référence
135  TGComboBox * w_comp_sig_rel [RGAUS2D_MAX]; ///< Pic de référence
136 
137  TGVerticalFrame * w_comp_correl_frame [RGAUS2D_MAX]; ///< Cadre paramètre de corrélation
138  TGLabel * w_comp_correl_label [RGAUS2D_MAX]; ///< Label
139  TGNumberEntry * w_comp_correl_value [RGAUS2D_MAX]; ///< Valeur
140  TGCheckButton * w_comp_correl_fix [RGAUS2D_MAX]; ///< Fix
141  TGHorizontalFrame * w_comp_correl_rel_hf [RGAUS2D_MAX]; ///< Cadre horizontal pour pic de référence
142  TGComboBox * w_comp_correl_rel [RGAUS2D_MAX]; ///< Pic de référence
143 
144  TGTextButton * w_comp_preset [RGAUS2D_MAX]; ///< Bouton de prédéfinition
145 
146  //----------------------------------------------------------
147  public:
148  // Constructeurs
149  RGFitGaus2D ( const TGWindow * parent, TH2 *hptr, TH2 * herr = NULL );
150  RGFitGaus2D ( const TGWindow * parent, TH2 *hptr, const RFitDataGaus2D & fit_data );
151  RGFitGaus2D ( const TGWindow * parent, TH2 *hptr, const Double_t x1, const Double_t x2,
152  const Double_t y1, const Double_t y2 );
153  RGFitGaus2D ( const TGWindow * parent, TH2 *hptr, TH2 * herr, const RFitDataGaus2D & fit_data );
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 );
156 
157  protected:
158  RGFitGaus2D ( const RGFitGaus2D & original );
159 
160  public:
161  // Destructeur
162  virtual ~RGFitGaus2D ( );
163 
164  protected:
165  void ClassInit ( );
166 
167  public:
168  //----------------------------------------------------------
169  // gestion de l'interface
170  virtual void Init ( );
171  virtual void ConstructFitData ( );
172  virtual void ConstructOpts ( );
173  virtual void ConstructBg ( );
174  virtual void ConstructComponents ( );
175 
176  virtual void Request ( );
177 
178  virtual void SetControlWidth ( const UInt_t w );
179 
180  // options (statiques pour pouvoir être vues dans la fonction de fit)
181  // elles sont redéfinies pour appeler explicitement les fonctions
182  // de la classe RFitGaus2D et non de RGGetPoints
183  virtual void SetOptions ( const UInt_t opts );
184  virtual void SetOption ( const UInt_t opt, const bool b = true );
185  virtual UInt_t GetOptions ( ) const;
186  virtual bool GetOption ( const UInt_t opt ) const;
187 
188  virtual void SetFitLimits ( const Double_t x1, const Double_t x2,
189  const Double_t y1, const Double_t y2 );
190 
191  //----------------------------------------------------------
192  // Surchage des fonctions de la classe RFitGaus2D
193  // (pour associer la mise à jour de l'interface graphique)
194  virtual void SetBgType ( const Int_t bg );
195 
196  virtual void PresetBg ( const Double_t x1, const Double_t y1, const Double_t dx, const Double_t dy );
197  virtual void PresetComponent ( const Int_t pk,
198  const Double_t cx, const Double_t cy,
199  const Double_t s1 = -1., const Double_t s2 = -1. );
200 
201  virtual RFitData2D * CreateFitData ( );
202  virtual RFitData2D * GetFitData ( );
203  virtual void SetFitData ( const RFitData2D * fit_data );
204 
205 
206  virtual void ResetFunctions ( );
207  virtual void CalcFunctions ( const bool bg = false );
208  virtual bool SaveFunctions ( const string &fname = "" ) const;
209 
210  //----------------------------------------------------------
211  // Fonctions liées à la saisie des points
212 
213  protected:
214  // Renvoit le point le plus proche (distance en pixels)
215  virtual Int_t SelectedPoint ( const Double_t x, const Double_t y );
216  virtual Int_t GetPointType ( const Int_t p );
217 
218  // Retrace les points saisis
219  virtual void RedrawPoints ( );
220 
221  virtual void AddPoint ( const Double_t x, const Double_t y, const bool select = true );
222  virtual void DeletePoint ( const Int_t p );
223 
224  virtual void PointMoved ( const Int_t p );
225  virtual void PointSelected ( const Int_t p );
226  virtual void PointUnselected ( const Int_t p );
227 
228  //----------------------------------------------------------
229  // Fonctions de mise à jour de l'interface
230 
231  // remise à jour de l'interface lorsque les paramètres de fit ont
232  // été perdus (appel à InitMode())
233  virtual void ParamUpdateAll ( );
234 
235  virtual void ResetComponents ( );
236  virtual void ResetComponent ( const Int_t pk = 0 );
237 
238  // points de saisie -> paramètres de fit (classe de base)
239  virtual void PointsToParam ( );
240  virtual void PointsToParamComponents ( );
241  virtual void PointsToParamComponent ( const Int_t pk = 0 );
242 
243  // points de saisie -> valeurs widgets
244  virtual void PointsToWidget ( );
245  virtual void PointsToWidgetBg ( );
246  virtual void PointsToWidgetComponents ( );
247  virtual void PointsToWidgetComponent ( const Int_t pk = 0 );
248 
249  // valeurs widgets -> paramètres de fit (classe de base)
250  virtual void WidgetsToParam ( );
251  virtual void WidgetsToParamBg ( );
252  virtual void WidgetsToParamComponents ( );
253  virtual void WidgetsToParamComponent ( const Int_t pk = 0 );
254 
255  // valeurs widgets -> points de saisie
256  virtual void WidgetsToPoint ( );
257  virtual void WidgetsToPointBg ( );
258  virtual void WidgetsToPointComponents ( );
259  virtual void WidgetsToPointComponent ( const Int_t pk = 0 );
260 
261  // paramètres de fit (classe de base) -> valeurs des widgets
262  virtual void ParamToWidget ( );
263  virtual void ParamToWidgetBg ( );
264  virtual void ParamToWidgetComponents ( );
265  virtual void ParamToWidgetComponent ( const Int_t pk = 0 );
266 
267  // paramètres de fit (classe de base) -> points de saisie
268  virtual void ParamToPoint ( );
269  virtual void ParamToPointComponents ( );
270  virtual void ParamToPointComponent ( const Int_t pk = 0 );
271 
272  //----------------------------------------------------------
273  // affichage des widgets
274  virtual void GuiUpdateOptions ( );
275  virtual void GuiUpdateDisplay ( );
276  virtual void GuiUpdateDisplayBg ( );
277  virtual void GuiUpdateDisplayComponents ( );
278 
279  //----------------------------------------------------------
280  // Fonctions globales de fit
281  virtual void GuiPreset ( );
282  virtual void GuiUpdate ( );
283  virtual void GuiDrawFct ( );
284 
285  //----------------------------------------------------------
286  // SLOTS
287  public:
288  virtual void ComponentsNumberChanged ( Long_t n );
289  virtual void ComponentsNumberTextChanged ( const char * str );
290 
291  virtual void ShowRelativeToggled ( Bool_t b );
292 
293  virtual void OptCountsToggled ( Bool_t b );
294  virtual void OptErrToggled ( Bool_t b );
295  virtual void OptModeThetaToggled ( Bool_t b );
296  virtual void CommonSigmaToggled ( Bool_t b );
297  virtual void CommonCorrelToggled ( Bool_t b );
298 
299  virtual void BgTypeSelected ( Int_t bg );
300  virtual void BgPreset ( );
301 
302  virtual void RelFactorSelected ( const Int_t sel );
303  virtual void RelCenterSelected ( const Int_t sel );
304  virtual void RelSigmaSelected ( const Int_t sel );
305 
306  virtual void FixParamClicked ( const Int_t pk );
307  virtual void FixSigma1Clicked ( const Int_t pk );
308  virtual void FixSigma2Clicked ( const Int_t pk );
309  virtual void FixCorrelClicked ( const Int_t pk );
310 
311  virtual void FactorValueTextChanged ( const char * str );
312  virtual void CenterValueTextChanged ( const char * str );
313  virtual void SigmaValueTextChanged ( const char * str );
314  virtual void CorrelValueTextChanged ( const char * str );
315 
316  virtual void ComponentPreset ( const Int_t pk );
317 
318  //------------------------------------------------------------
319  /*! For ROOT dictionary.*/
320  public:
322 };
323 
324 //----------------------------------------------------------------------
325 // Inline functions
326 #include "icc/RGFitGaus2D.icc"
327 
328 //======================================================================
329 #endif
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
ClassDef(RGFitGaus2D, 0)
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&#39;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
GObject(RGFitGaus2D)
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