JG ROOT Tools libraries  version 5.0 - august 2014
RGFitPeak.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file RGFitPeak.hh
3  *
4  * Include file for class RGFitPeak
5  */
6 //======================================================================
7 
8 #ifndef RG_FIT_PEAK_HH
9 #define RG_FIT_PEAK_HH
10 
11 #include "RFitPeak.hh"
12 #include "RGFitBase1D.hh"
13 
14 ///! Default width of control zone of the interface
15 #define RGFIT_PEAK_WIDTH 600
16 
17 // New point type for the fit.
18 namespace RGFitPointType
19 {
20  /*! Background preset point type.*/
21  static const int bgDef = 1;
22 
23  /*! Peak center point type.*/
24  static const int peakCenter = 2;
25 
26  /*! Peak width point type.*/
27  static const int peakSigma = 3;
28 
29  /*! Peak tail point type.*/
30  static const int peakTail = 4;
31 }
32 
33 //======================================================================
34 /*! \class RGFitPeak
35  *
36  * Graphical interface for the RFitPeak class.
37  * See RGFitBase1D class for general fit interface features.
38  *
39  * It allows to define interactively the preset points:
40  * - 2 points for fit limits (corners)
41  * - 1 or 2 points for background preset (if needed)
42  * - 1 point for center of peaks
43  * - 1 points for sigma of peaks
44  *
45  * \note
46  * The class inherits 2 times from RFitBase (virtual inheritance).
47  * ROOT interpreter cannot manage this case, and the derived class
48  * RGuiFitDecay may be used in ROOT sessions.
49  */
50 class RGFitPeak : virtual public RFitPeak,
51  virtual public RGFitBase1D
52 {
53  //------------------------------------------------------------
54  /*! \object_doc{RGFitPeak} */
56  //------------------------------------------------------------
57 
58  friend class RGFitDisplayer1D;
59 
60  public:
61 
62  static TAttLine bg_line_att; ///< Background preset line attributes
63  static TAttLine peak_ctr_line_att; ///< Peak center line attributes
64  static TAttLine peak_sig_line_att; ///< Peak width line attributes
65  static TAttLine peak_tail_line_att; ///< Peak tail line attributes
66 
67  protected:
68  static UInt_t control_width; ///< Default width for control zone of the interface
69 
70  // variable pour saisie des points
71  Int_t np_bg; ///< Number of points for background preset
72 
73  TH1 * h_bg; ///< Pointer to result background histogram
74  TH1 * h_peak[RPEAK_MAX]; ///< Array of pointers to result peaks histograms
75  TH1 * h_gaus[RPEAK_MAX]; ///< Array of pointers to result Gauss peaks components histograms
76  TH1 * h_tail[RPEAK_MAX]; ///< Array of pointers to result tail peaks components histograms
77 
78  // Widgets spécifiques
79  bool show_relative; ///< Indique s'il faut afficher les paramètres relatifs
80 
81  TGGroupFrame * w_opt_frame; ///< Cadre des options de fit
82  TGHorizontalFrame * w_opt_line; ///< Ligne des options de base
83  TGLabel * w_opt_number_label; ///< Label nombre de pics
84  TGNumberEntry * w_opt_number_value; ///< Valeur nombre de pics
85  TGCheckButton * w_show_relative; ///< Visualisation des paramètres relatifs
86 
87  TGHorizontalFrame * w_opt_check; ///< Cadres des différentes options (check-buttons)
88  TGVerticalFrame * w_opt_check1; ///< 1ere colonne d'options
89  TGVerticalFrame * w_opt_check2; ///< 2e colonne d'options
90  TGVerticalFrame * w_opt_check3; ///< 3e colonne d'options
91  TGCheckButton * w_opt_surf; ///< Indicateur option surface
92  TGCheckButton * w_opt_tail; ///< Indicateur option traîne
93  TGCheckButton * w_opt_err; ///< Indicateur option normalisation des erreurs
94  TGCheckButton * w_opt_common_sig; ///< Indicateur option sigma commun
95  TGCheckButton * w_opt_common_tail; ///< Indicateur option traîne commune
96  TGCheckButton * w_opt_common_ratio; ///< Indicateur option rapport commun
97 
98  TGGroupFrame * w_bg_frame; ///< Cadre des paramètres de fond
99  TGHorizontalFrame * w_bg_type_frame; ///< Ligne type de fond
100  TGLabel * w_bg_type_label; ///< Label type de fond
101  TGComboBox * w_bg_type_select; ///< Sélection type de fond
102  TGNumberEntry * w_bg_x1_value; ///< Valeur point 1 de précalcul du fond
103  TGNumberEntry * w_bg_x2_value; ///< Valeur point 2 de précalcul du fond
104  TGHorizontalFrame * w_bg_par_frame; ///< Zone des paramètres fond
105  TGVerticalFrame * w_bg_par_label_frame; ///< Cadre des labels
106  TGVerticalFrame * w_bg_par_value_frame; ///< Cadre des valeurs
107  TGVerticalFrame * w_bg_par_fix_frame; ///< Cadre des param. fix
108  TGLabel * w_bg_par_label[RPEAK_MAX_BG_PAR]; ///< Nom paramètre fond
109  TGNumberEntry * w_bg_par_value[RPEAK_MAX_BG_PAR]; ///< Valeur paramètre fond
110  TGCheckButton * w_bg_par_fix [RPEAK_MAX_BG_PAR]; ///< Fixe paramètre fond
111  TGTextButton * w_bg_par_preset; ///< Bouton de précalcul
112 
113  TGCanvas * w_peaks_canvas; ///< Fenêtre pour paramètres des pics
114  TGVerticalFrame * w_peaks_canvas_frame; ///< Cadre de la fenêtre
115 
116  TGGroupFrame * w_peaks_frame [RPEAK_MAX]; ///< Cadre des paramètres des pics
117  TGHorizontalFrame * w_peaks_sub_frame [RPEAK_MAX]; ///< Cadre horizontal
118 
119  TGVerticalFrame * w_peaks_factor_frame [RPEAK_MAX]; ///< Cadre facteur (amplitude/surface)
120  TGLabel * w_peaks_factor_label [RPEAK_MAX]; ///< Label
121  TGNumberEntry * w_peaks_factor_value [RPEAK_MAX]; ///< Valeur
122  TGCheckButton * w_peaks_factor_fix [RPEAK_MAX]; ///< Fix
123  TGHorizontalFrame * w_peaks_factor_rel_hf [RPEAK_MAX]; ///< Cadre horizontal pour pic de référence
124  TGComboBox * w_peaks_factor_rel [RPEAK_MAX]; ///< Pic de référence
125 
126  TGVerticalFrame * w_peaks_center_frame [RPEAK_MAX]; ///< Cadre centre
127  TGLabel * w_peaks_center_label [RPEAK_MAX]; ///< Label
128  TGNumberEntry * w_peaks_center_value [RPEAK_MAX]; ///< Valeur
129  TGCheckButton * w_peaks_center_fix [RPEAK_MAX]; ///< Fix
130  TGHorizontalFrame * w_peaks_center_rel_hf [RPEAK_MAX]; ///< Cadre horizontal pour pic de référence
131  TGComboBox * w_peaks_center_rel [RPEAK_MAX]; ///< Pic de référence
132 
133  TGVerticalFrame * w_peaks_sigma_frame [RPEAK_MAX]; ///< Cadre sigma
134  TGLabel * w_peaks_sigma_label [RPEAK_MAX]; ///< Label
135  TGNumberEntry * w_peaks_sigma_value [RPEAK_MAX]; ///< Valeur
136  TGCheckButton * w_peaks_sigma_fix [RPEAK_MAX]; ///< Fix
137  TGHorizontalFrame * w_peaks_sigma_rel_hf [RPEAK_MAX]; ///< Cadre horizontal pour pic de référence
138  TGComboBox * w_peaks_sigma_rel [RPEAK_MAX]; ///< Pic de référence
139 
140  TGVerticalFrame * w_peaks_tail_frame [RPEAK_MAX]; ///< Cadre taille de traîne
141  TGLabel * w_peaks_tail_label [RPEAK_MAX]; ///< Label
142  TGNumberEntry * w_peaks_tail_value [RPEAK_MAX]; ///< Valeur
143  TGCheckButton * w_peaks_tail_fix [RPEAK_MAX]; ///< Fix
144  TGHorizontalFrame * w_peaks_tail_rel_hf [RPEAK_MAX]; ///< Cadre horizontal pour pic de référence
145  TGComboBox * w_peaks_tail_rel [RPEAK_MAX]; ///< Pic de référence
146 
147  TGVerticalFrame * w_peaks_ratio_frame [RPEAK_MAX]; ///< Cadre rapport de traîne
148  TGLabel * w_peaks_ratio_label [RPEAK_MAX]; ///< Label
149  TGNumberEntry * w_peaks_ratio_value [RPEAK_MAX]; ///< Valeur
150  TGCheckButton * w_peaks_ratio_fix [RPEAK_MAX]; ///< Fix
151  TGHorizontalFrame * w_peaks_ratio_rel_hf [RPEAK_MAX]; ///< Cadre horizontal pour pic de référence
152  TGComboBox * w_peaks_ratio_rel [RPEAK_MAX]; ///< Pic de référence
153 
154  TGTextButton * w_peak_preset [RPEAK_MAX]; ///< Bouton de prédéfinition
155 
156  //----------------------------------------------------------
157  public:
158  // Constructeurs
159  RGFitPeak ( const TGWindow * parent, TH1 *hptr, TH1 * herr = NULL );
160  RGFitPeak ( const TGWindow * parent, TH1 *hptr, const RFitDataPeak & fit_data );
161  RGFitPeak ( const TGWindow * parent, TH1 *hptr, const Double_t x1, const Double_t x2 );
162  RGFitPeak ( const TGWindow * parent, TH1 *hptr, TH1 * herr, const RFitDataPeak & fit_data );
163  RGFitPeak ( const TGWindow * parent, TH1 *hptr, TH1 * herr, const Double_t x1, const Double_t x2 );
164 
165  protected:
166  RGFitPeak ( const RGFitPeak & original );
167 
168  public:
169  // Destructeur
170  virtual ~RGFitPeak ( );
171 
172  //----------------------------------------------------------
173  // gestion de l'interface
174  virtual void Init ( );
175  virtual void ConstructFitData ( );
176  virtual void ConstructOpts ( );
177  virtual void ConstructBg ( );
178  virtual void ConstructPeaks ( );
179 
180  virtual void Request ( );
181 
182  virtual void SetControlWidth ( const UInt_t w );
183 
184  // options (statiques pour pouvoir être vues dans la fonction de fit)
185  // elles sont redéfinies pour appeler explicitement les fonctions
186  // de la classe RFitPeak et non de RGGetPoints
187  virtual void SetOptions ( const UInt_t opts );
188  virtual void SetOption ( const UInt_t opt, const bool b = true );
189  virtual UInt_t GetOptions ( ) const;
190  virtual bool GetOption ( const UInt_t opt ) const;
191 
192  virtual void SetFitLimits ( const Double_t x1, const Double_t x2 );
193 
194  //----------------------------------------------------------
195  // Surchage des fonctions de la classe RFitPeak
196  // (pour associer la mise à jour de l'interface graphique)
197  virtual void SetBgType ( const Int_t bg );
198 
199  virtual void PresetBg ( const Double_t x1, const Double_t x2 = 0. );
200  virtual void PresetPeak ( const Int_t pk, const Double_t ctr, const Double_t sig = -1. );
201 
202  virtual RFitData1D * CreateFitData ( );
203  virtual RFitData1D * GetFitData ( );
204  virtual void SetFitData ( const RFitData1D * fit_data );
205 
206 
207  virtual void ResetFunctions ( );
208  virtual void CalcFunctions ( const bool bg = false );
209  virtual bool SaveFunctions ( const string &fname = "" ) const;
210 
211  //----------------------------------------------------------
212  // Fonctions liées à la saisie des points
213 
214  protected:
215  // Renvoit le point le plus proche (distance en pixels)
216  virtual Int_t SelectedPoint ( const Double_t x );
217  virtual Int_t GetPointType ( const Int_t p );
218 
219  // Retrace les points saisis
220  virtual void RedrawPoints ( );
221 
222  virtual void AddPoint ( const Double_t x, const bool select = true );
223  virtual void DeletePoint ( const Int_t p );
224 
225  virtual void PointMoved ( const Int_t p );
226  virtual void PointSelected ( const Int_t p );
227  virtual void PointUnselected ( const Int_t p );
228 
229  //----------------------------------------------------------
230  // Fonctions de mise à jour de l'interface
231 
232  // remise à jour de l'interface lorsque les paramètres de fit ont
233  // été perdus (appel à InitMode())
234  virtual void ParamUpdateAll ( );
235 
236  // points de saisie -> paramètres de fit (classe de base)
237  virtual void PointsToParam ( );
238  virtual void PointsToParamPeaks ( );
239  virtual void PointsToParamPeak ( const Int_t pk = 0 );
240 
241  // points de saisie -> valeurs widgets
242  virtual void PointsToWidget ( );
243  virtual void PointsToWidgetBg ( );
244  virtual void PointsToWidgetPeaks ( );
245  virtual void PointsToWidgetPeak ( const Int_t pk = 0 );
246 
247  // valeurs widgets -> paramètres de fit (classe de base)
248  virtual void WidgetsToParam ( );
249  virtual void WidgetsToParamBg ( );
250  virtual void WidgetsToParamPeaks ( );
251  virtual void WidgetsToParamPeak ( const Int_t pk = 0 );
252 
253  // valeurs widgets -> points de saisie
254  virtual void WidgetsToPoint ( );
255  virtual void WidgetsToPointBg ( );
256  virtual void WidgetsToPointPeaks ( );
257  virtual void WidgetsToPointPeak ( const Int_t pk = 0 );
258 
259  // paramètres de fit (classe de base) -> valeurs des widgets
260  virtual void ParamToWidget ( );
261  virtual void ParamToWidgetBg ( );
262  virtual void ParamToWidgetPeaks ( );
263  virtual void ParamToWidgetPeak ( const Int_t pk = 0 );
264 
265  // paramètres de fit (classe de base) -> points de saisie
266  virtual void ParamToPoint ( );
267  virtual void ParamToPointPeaks ( );
268  virtual void ParamToPointPeak ( const Int_t pk = 0 );
269 
270  //----------------------------------------------------------
271  // affichage des widgets
272  virtual void GuiUpdateOptions ( );
273  virtual void GuiUpdateDisplay ( );
274  virtual void GuiUpdateDisplayBg ( );
275  virtual void GuiUpdateDisplayPeaks ( );
276 
277  //----------------------------------------------------------
278  // Fonctions globales de fit
279  virtual void GuiPreset ( );
280  virtual void GuiUpdate ( );
281  virtual void GuiDrawFct ( );
282 
283  //----------------------------------------------------------
284  // SLOTS
285  public:
286  virtual void PeaksNumberChanged ( Long_t n );
287  virtual void PeaksNumberTextChanged ( const char * str );
288 
289  virtual void ShowRelativeToggled ( Bool_t b );
290 
291  virtual void OptSurfToggled ( Bool_t b );
292  virtual void OptTailToggled ( Bool_t b );
293  virtual void OptErrToggled ( Bool_t b );
294 
295  virtual void CommonSigmaToggled ( Bool_t b );
296  virtual void CommonTailToggled ( Bool_t b );
297  virtual void CommonRatioToggled ( 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  virtual void RelTailSelected ( const Int_t sel );
306  virtual void RelRatioSelected ( const Int_t sel );
307 
308  virtual void FixSigmaClicked ( const Int_t pk );
309  virtual void FixTailClicked ( const Int_t pk );
310  virtual void FixRatioClicked ( const Int_t pk );
311 
312  virtual void FactorValueTextChanged ( const char * str );
313  virtual void CenterValueTextChanged ( const char * str );
314  virtual void SigmaValueTextChanged ( const char * str );
315  virtual void TailValueTextChanged ( const char * str );
316  virtual void RatioValueTextChanged ( const char * str );
317 
318  virtual void PeakPreset ( const Int_t pk );
319 
320  //------------------------------------------------------------
321  /*! For ROOT dictionary.*/
322  public:
323  ClassDef(RGFitPeak,0);
324 };
325 
326 //----------------------------------------------------------------------
327 // Inline functions
328 #include "icc/RGFitPeak.icc"
329 
330 //======================================================================
331 #endif
TGCheckButton * w_show_relative
Visualisation des paramètres relatifs.
Definition: RGFitPeak.hh:85
TGHorizontalFrame * w_peaks_center_rel_hf[10]
Cadre horizontal pour pic de référence.
Definition: RGFitPeak.hh:130
virtual void PresetPeak(const Int_t pk, const Double_t ctr, const Double_t sig=-1.)
Definition: RGFitPeak.cpp:1290
Definition: RGFitDisplayer1D.hh:21
virtual void FixRatioClicked(const Int_t pk)
Definition: RGFitPeak.cpp:3760
virtual void PeaksNumberTextChanged(const char *str)
Definition: RGFitPeak.cpp:3114
virtual void RedrawPoints()
Definition: RGFitPeak.cpp:1534
virtual bool SaveFunctions(const string &fname="") const
Definition: RGFitPeak.cpp:2183
TGVerticalFrame * w_peaks_ratio_frame[10]
Cadre rapport de traîne
Definition: RGFitPeak.hh:147
virtual Int_t SelectedPoint(const Double_t x)
Definition: RGFitPeak.cpp:1420
ClassDef(RGFitPeak, 0)
virtual void PeakPreset(const Int_t pk)
Definition: RGFitPeak.cpp:3783
virtual void ParamToWidgetPeaks()
Definition: RGFitPeak.cpp:2634
virtual void WidgetsToPointPeaks()
Definition: RGFitPeak.cpp:2529
virtual void PointSelected(const Int_t p)
Definition: RGFitPeak.cpp:2008
TGHorizontalFrame * w_peaks_factor_rel_hf[10]
Cadre horizontal pour pic de référence.
Definition: RGFitPeak.hh:123
TGTextButton * w_bg_par_preset
Bouton de précalcul.
Definition: RGFitPeak.hh:111
TGCheckButton * w_bg_par_fix[4]
Fixe paramètre fond.
Definition: RGFitPeak.hh:110
virtual void SetControlWidth(const UInt_t w)
Definition: RGFitPeak.icc:52
virtual void GuiUpdateDisplayPeaks()
Definition: RGFitPeak.cpp:2930
virtual void ShowRelativeToggled(Bool_t b)
Definition: RGFitPeak.cpp:3157
static const int peakCenter
Definition: RGFitPeak.hh:24
static const int peakSigma
Definition: RGFitPeak.hh:27
TGLabel * w_peaks_sigma_label[10]
Label.
Definition: RGFitPeak.hh:134
TGHorizontalFrame * w_bg_par_frame
Zone des paramètres fond.
Definition: RGFitPeak.hh:104
TGHorizontalFrame * w_peaks_sub_frame[10]
Cadre horizontal.
Definition: RGFitPeak.hh:117
virtual void Init()
Definition: RGFitPeak.cpp:215
virtual void OptSurfToggled(Bool_t b)
Definition: RGFitPeak.cpp:3170
virtual void WidgetsToParamPeaks()
Definition: RGFitPeak.cpp:2437
Definition: RGFitBase1D.hh:67
TGCheckButton * w_peaks_tail_fix[10]
Fix.
Definition: RGFitPeak.hh:143
virtual void ConstructFitData()
Definition: RGFitPeak.cpp:244
virtual void PointsToWidget()
Definition: RGFitPeak.cpp:2309
TGLabel * w_peaks_factor_label[10]
Label.
Definition: RGFitPeak.hh:120
TGCheckButton * w_opt_tail
Indicateur option traîne
Definition: RGFitPeak.hh:92
TGNumberEntry * w_peaks_tail_value[10]
Valeur.
Definition: RGFitPeak.hh:142
virtual void ParamUpdateAll()
Definition: RGFitPeak.cpp:2246
TGVerticalFrame * w_peaks_factor_frame[10]
Cadre facteur (amplitude/surface)
Definition: RGFitPeak.hh:119
GObject(RGFitPeak)
virtual void PointMoved(const Int_t p)
Definition: RGFitPeak.cpp:1815
TGCheckButton * w_peaks_sigma_fix[10]
Fix.
Definition: RGFitPeak.hh:136
virtual void PointsToWidgetPeaks()
Definition: RGFitPeak.cpp:2326
virtual void GuiUpdateDisplay()
Definition: RGFitPeak.cpp:2804
virtual void OptErrToggled(Bool_t b)
Definition: RGFitPeak.cpp:3207
virtual void RelFactorSelected(const Int_t sel)
Definition: RGFitPeak.cpp:3537
TGVerticalFrame * w_bg_par_fix_frame
Cadre des param. fix.
Definition: RGFitPeak.hh:107
RGFitPeak(const TGWindow *parent, TH1 *hptr, TH1 *herr=NULL)
Definition: RGFitPeak.cpp:33
static TAttLine peak_ctr_line_att
Peak center line attributes.
Definition: RGFitPeak.hh:63
virtual void ParamToPointPeak(const Int_t pk=0)
Definition: RGFitPeak.cpp:2746
TH1 * h_gaus[10]
Array of pointers to result Gauss peaks components histograms.
Definition: RGFitPeak.hh:75
TGCheckButton * w_opt_common_ratio
Indicateur option rapport commun.
Definition: RGFitPeak.hh:96
virtual void PointsToParam()
Definition: RGFitPeak.cpp:2262
virtual void CommonRatioToggled(Bool_t b)
Definition: RGFitPeak.cpp:3397
TGHorizontalFrame * w_opt_line
Ligne des options de base.
Definition: RGFitPeak.hh:82
virtual void ConstructOpts()
Definition: RGFitPeak.cpp:289
TH1 * h_bg
Pointer to result background histogram.
Definition: RGFitPeak.hh:73
TGNumberEntry * w_bg_x2_value
Valeur point 2 de précalcul du fond.
Definition: RGFitPeak.hh:103
static const int peakTail
Definition: RGFitPeak.hh:30
virtual void SigmaValueTextChanged(const char *str)
Definition: RGFitPeak.cpp:3858
virtual void WidgetsToParamBg()
Definition: RGFitPeak.cpp:2425
TGHorizontalFrame * w_peaks_ratio_rel_hf[10]
Cadre horizontal pour pic de référence.
Definition: RGFitPeak.hh:151
TGVerticalFrame * w_opt_check2
2e colonne d&#39;options
Definition: RGFitPeak.hh:89
static TAttLine peak_sig_line_att
Peak width line attributes.
Definition: RGFitPeak.hh:64
virtual void BgTypeSelected(Int_t bg)
Definition: RGFitPeak.cpp:3470
TGGroupFrame * w_peaks_frame[10]
Cadre des paramètres des pics.
Definition: RGFitPeak.hh:116
TGVerticalFrame * w_peaks_canvas_frame
Cadre de la fenêtre.
Definition: RGFitPeak.hh:114
virtual void SetFitLimits(const Double_t x1, const Double_t x2)
Definition: RGFitPeak.icc:38
virtual void ConstructPeaks()
Definition: RGFitPeak.cpp:632
Definition: RFitPeak.hh:112
TGVerticalFrame * w_peaks_sigma_frame[10]
Cadre sigma.
Definition: RGFitPeak.hh:133
virtual void PresetBg(const Double_t x1, const Double_t x2=0.)
Definition: RGFitPeak.cpp:1261
TGCheckButton * w_peaks_factor_fix[10]
Fix.
Definition: RGFitPeak.hh:122
virtual void RelTailSelected(const Int_t sel)
Definition: RGFitPeak.cpp:3638
virtual void RelCenterSelected(const Int_t sel)
Definition: RGFitPeak.cpp:3566
virtual void ConstructBg()
Definition: RGFitPeak.cpp:447
TGNumberEntry * w_peaks_center_value[10]
Valeur.
Definition: RGFitPeak.hh:128
virtual void DeletePoint(const Int_t p)
Definition: RGFitPeak.cpp:1747
virtual void SetOptions(const UInt_t opts)
Definition: RGFitPeak.icc:11
virtual void BgPreset()
Definition: RGFitPeak.cpp:3503
TGLabel * w_peaks_tail_label[10]
Label.
Definition: RGFitPeak.hh:141
virtual void GuiUpdate()
Definition: RGFitPeak.cpp:3026
#define RPEAK_MAX_BG_PAR
Nombre maxi de paramètres du fond.
Definition: RFitDataPeak.hh:18
virtual void SetFitData(const RFitData1D *fit_data)
Definition: RGFitPeak.cpp:1373
TGComboBox * w_peaks_tail_rel[10]
Pic de référence.
Definition: RGFitPeak.hh:145
Definition: RFitDataPeak.hh:28
virtual void SetOption(const UInt_t opt, const bool b=true)
Definition: RGFitPeak.icc:18
TGCheckButton * w_opt_surf
Indicateur option surface.
Definition: RGFitPeak.hh:91
virtual RFitData1D * GetFitData()
Definition: RGFitPeak.cpp:1349
TGHorizontalFrame * w_peaks_tail_rel_hf[10]
Cadre horizontal pour pic de référence.
Definition: RGFitPeak.hh:144
virtual void GuiUpdateOptions()
Definition: RGFitPeak.cpp:2773
TGVerticalFrame * w_peaks_tail_frame[10]
Cadre taille de traîne
Definition: RGFitPeak.hh:140
TGLabel * w_bg_type_label
Label type de fond.
Definition: RGFitPeak.hh:100
TGVerticalFrame * w_bg_par_label_frame
Cadre des labels.
Definition: RGFitPeak.hh:105
TGLabel * w_peaks_ratio_label[10]
Label.
Definition: RGFitPeak.hh:148
TGLabel * w_peaks_center_label[10]
Label.
Definition: RGFitPeak.hh:127
static TAttLine peak_tail_line_att
Peak tail line attributes.
Definition: RGFitPeak.hh:65
Definition: RGFitPeak.hh:50
TGNumberEntry * w_peaks_ratio_value[10]
Valeur.
Definition: RGFitPeak.hh:149
TGCheckButton * w_opt_common_sig
Indicateur option sigma commun.
Definition: RGFitPeak.hh:94
virtual void RatioValueTextChanged(const char *str)
Definition: RGFitPeak.cpp:3892
virtual void ParamToWidgetPeak(const Int_t pk=0)
Definition: RGFitPeak.cpp:2644
Definition: RFitData1D.hh:21
TGVerticalFrame * w_opt_check3
3e colonne d&#39;options
Definition: RGFitPeak.hh:90
TGNumberEntry * w_bg_x1_value
Valeur point 1 de précalcul du fond.
Definition: RGFitPeak.hh:102
static UInt_t control_width
Default width for control zone of the interface.
Definition: RGFitPeak.hh:68
TGNumberEntry * w_peaks_sigma_value[10]
Valeur.
Definition: RGFitPeak.hh:135
TGNumberEntry * w_bg_par_value[4]
Valeur paramètre fond.
Definition: RGFitPeak.hh:109
virtual void PointsToWidgetPeak(const Int_t pk=0)
Definition: RGFitPeak.cpp:2335
virtual void GuiDrawFct()
Definition: RGFitPeak.cpp:3054
virtual void ParamToPoint()
Definition: RGFitPeak.cpp:2727
virtual void ParamToWidget()
Definition: RGFitPeak.cpp:2589
TGNumberEntry * w_opt_number_value
Valeur nombre de pics.
Definition: RGFitPeak.hh:84
TGVerticalFrame * w_bg_par_value_frame
Cadre des valeurs.
Definition: RGFitPeak.hh:106
TGComboBox * w_peaks_center_rel[10]
Pic de référence.
Definition: RGFitPeak.hh:131
virtual void RelSigmaSelected(const Int_t sel)
Definition: RGFitPeak.cpp:3599
virtual void CommonSigmaToggled(Bool_t b)
Definition: RGFitPeak.cpp:3219
TGCheckButton * w_opt_err
Indicateur option normalisation des erreurs.
Definition: RGFitPeak.hh:93
virtual bool GetOption(const UInt_t opt) const
Definition: RGFitPeak.icc:29
virtual void Request()
Definition: RGFitPeak.cpp:1158
TGHorizontalFrame * w_opt_check
Cadres des différentes options (check-buttons)
Definition: RGFitPeak.hh:87
TGGroupFrame * w_bg_frame
Cadre des paramètres de fond.
Definition: RGFitPeak.hh:98
virtual void ResetFunctions()
Definition: RGFitPeak.cpp:2113
virtual void WidgetsToPointBg()
Definition: RGFitPeak.cpp:2521
virtual void CommonTailToggled(Bool_t b)
Definition: RGFitPeak.cpp:3307
virtual void WidgetsToPointPeak(const Int_t pk=0)
Definition: RGFitPeak.cpp:2538
TGCanvas * w_peaks_canvas
Fenêtre pour paramètres des pics.
Definition: RGFitPeak.hh:113
virtual UInt_t GetOptions() const
Definition: RGFitPeak.icc:23
virtual void GuiPreset()
Definition: RGFitPeak.cpp:3012
static TAttLine bg_line_att
Background preset line attributes.
Definition: RGFitPeak.hh:62
TGHorizontalFrame * w_bg_type_frame
Ligne type de fond.
Definition: RGFitPeak.hh:99
TGNumberEntry * w_peaks_factor_value[10]
Valeur.
Definition: RGFitPeak.hh:121
virtual ~RGFitPeak()
Definition: RGFitPeak.cpp:198
virtual Int_t GetPointType(const Int_t p)
Definition: RGFitPeak.cpp:1492
virtual void WidgetsToParam()
Definition: RGFitPeak.cpp:2414
virtual void AddPoint(const Double_t x, const bool select=true)
Definition: RGFitPeak.cpp:1646
TGComboBox * w_peaks_ratio_rel[10]
Pic de référence.
Definition: RGFitPeak.hh:152
virtual void FixSigmaClicked(const Int_t pk)
Definition: RGFitPeak.cpp:3715
virtual void GuiUpdateDisplayBg()
Definition: RGFitPeak.cpp:2819
virtual void ParamToPointPeaks()
Definition: RGFitPeak.cpp:2736
TGLabel * w_bg_par_label[4]
Nom paramètre fond.
Definition: RGFitPeak.hh:108
virtual void ParamToWidgetBg()
Definition: RGFitPeak.cpp:2615
TH1 * h_tail[10]
Array of pointers to result tail peaks components histograms.
Definition: RGFitPeak.hh:76
TGCheckButton * w_peaks_ratio_fix[10]
Fix.
Definition: RGFitPeak.hh:150
TGTextButton * w_peak_preset[10]
Bouton de prédéfinition.
Definition: RGFitPeak.hh:154
virtual void WidgetsToPoint()
Definition: RGFitPeak.cpp:2512
TGGroupFrame * w_opt_frame
Cadre des options de fit.
Definition: RGFitPeak.hh:81
virtual void OptTailToggled(Bool_t b)
Definition: RGFitPeak.cpp:3183
virtual void PointUnselected(const Int_t p)
Definition: RGFitPeak.cpp:2055
TGHorizontalFrame * w_peaks_sigma_rel_hf[10]
Cadre horizontal pour pic de référence.
Definition: RGFitPeak.hh:137
static const int bgDef
Definition: RGFitPeak.hh:21
virtual void CenterValueTextChanged(const char *str)
Definition: RGFitPeak.cpp:3840
TH1 * h_peak[10]
Array of pointers to result peaks histograms.
Definition: RGFitPeak.hh:74
bool show_relative
Indique s&#39;il faut afficher les paramètres relatifs.
Definition: RGFitPeak.hh:79
virtual void PointsToWidgetBg()
Definition: RGFitPeak.cpp:2318
virtual RFitData1D * CreateFitData()
Definition: RGFitPeak.cpp:1336
virtual void WidgetsToParamPeak(const Int_t pk=0)
Definition: RGFitPeak.cpp:2447
virtual void RelRatioSelected(const Int_t sel)
Definition: RGFitPeak.cpp:3677
TGComboBox * w_peaks_factor_rel[10]
Pic de référence.
Definition: RGFitPeak.hh:124
virtual void FixTailClicked(const Int_t pk)
Definition: RGFitPeak.cpp:3736
TGLabel * w_opt_number_label
Label nombre de pics.
Definition: RGFitPeak.hh:83
virtual void PointsToParamPeak(const Int_t pk=0)
Definition: RGFitPeak.cpp:2281
TGVerticalFrame * w_peaks_center_frame[10]
Cadre centre.
Definition: RGFitPeak.hh:126
virtual void FactorValueTextChanged(const char *str)
Definition: RGFitPeak.cpp:3824
virtual void PointsToParamPeaks()
Definition: RGFitPeak.cpp:2271
virtual void SetBgType(const Int_t bg)
Definition: RGFitPeak.icc:46
#define RPEAK_MAX
Nombre maxi de pics.
Definition: RFitDataPeak.hh:15
TGCheckButton * w_peaks_center_fix[10]
Fix.
Definition: RGFitPeak.hh:129
TGComboBox * w_bg_type_select
Sélection type de fond.
Definition: RGFitPeak.hh:101
TGVerticalFrame * w_opt_check1
1ere colonne d&#39;options
Definition: RGFitPeak.hh:88
virtual void TailValueTextChanged(const char *str)
Definition: RGFitPeak.cpp:3876
TGComboBox * w_peaks_sigma_rel[10]
Pic de référence.
Definition: RGFitPeak.hh:138
virtual void CalcFunctions(const bool bg=false)
Definition: RGFitPeak.cpp:2138
TGCheckButton * w_opt_common_tail
Indicateur option traîne commune.
Definition: RGFitPeak.hh:95
virtual void PeaksNumberChanged(Long_t n)
Definition: RGFitPeak.cpp:3106
Int_t np_bg
Number of points for background preset.
Definition: RGFitPeak.hh:71