CMS 3D CMS Logo

Macros | Functions
TEcnaGui.cc File Reference
#include "CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEcnaGui.h"
#include <cstdlib>

Go to the source code of this file.

Macros

#define DEST
 
#define MGRA
 

Functions

 ClassImp (TEcnaGui) TEcnaGui
 

Macro Definition Documentation

#define DEST
#define MGRA

Function Documentation

ClassImp ( TEcnaGui  )

Definition at line 14 of file TEcnaGui.cc.

References gather_cfg::cout.

19 {
20  //destructor
21 
22 #define DEST
23 #ifdef DEST
24  // std::cout << "TEcnaGui> Entering destructor" << std::endl;
25  // std::cout << " fCnew = " << fCnew << ", fCdelete = " << fCdelete << std::endl;
26 
27  //.... general variables
28  //if ( fHistos != 0 ) {delete fHistos; fCdelete++;}
29 
30  //if ( fCnaParHistos != 0 ) {delete fCnaParHistos; fCdelete++;}
31  //if ( fCnaParPaths != 0 ) {delete fCnaParPaths; fCdelete++;}
32  //if ( fEcalNumbering != 0 ) {delete fEcalNumbering; fCdelete++;}
33  //if ( fEcal != 0 ) {delete fEcal; fCdelete++;}
34 
35  //.... general frames
36 
37  if ( fLayoutGeneral != 0 ) {delete fLayoutGeneral; fCdelete++;}
38  if ( fLayoutBottLeft != 0 ) {delete fLayoutBottLeft; fCdelete++;}
39  if ( fLayoutBottRight != 0 ) {delete fLayoutBottRight; fCdelete++;}
40  if ( fLayoutTopLeft != 0 ) {delete fLayoutTopLeft; fCdelete++;}
41  if ( fLayoutTopRight != 0 ) {delete fLayoutTopRight; fCdelete++;}
42  if ( fLayoutCenterYLeft != 0 ) {delete fLayoutCenterYLeft; fCdelete++;}
43  if ( fLayoutCenterYRight != 0 ) {delete fLayoutCenterYRight; fCdelete++;}
44  if ( fLayoutCenterXTop != 0 ) {delete fLayoutCenterXTop; fCdelete++;}
45 
46  if ( fVoidFrame != 0 ) {delete fVoidFrame; fCdelete++;}
47 
48  //..... specific frames + buttons + menus
49 
50  //++++++++++++++++++++++++++++++ Horizontal frame Analysis + First requested evt number + Run number
51  if ( fAnaNorsRunFrame != 0 ) {delete fAnaNorsRunFrame; fCdelete++;}
52  if ( fLayoutAnaNorsRunFrame != 0 ) {delete fLayoutAnaNorsRunFrame; fCdelete++;}
53 
54  //--------------------------------- Sub-Frame Analysis Name (Button+Entry Field)
55  if ( fAnaFrame != 0 ) {delete fAnaFrame; fCdelete++;}
56  if ( fAnaBut != 0 ) {delete fAnaBut; fCdelete++;}
57  if ( fLayoutAnaBut != 0 ) {delete fLayoutAnaBut; fCdelete++;}
58  if ( fEntryAnaNumber != 0 ) {delete fEntryAnaNumber; fCdelete++;}
59  if ( fAnaText != 0 ) {fAnaText->Delete(); fCdelete++;}
60  if ( fLayoutAnaField != 0 ) {delete fLayoutAnaField; fCdelete++;}
61 
62  //------------------- subframe first requested evt number
63  if ( fFevFrame != 0 ) {delete fFevFrame; fCdelete++;}
64  if ( fFevBut != 0 ) {delete fFevBut; fCdelete++;}
65  if ( fLayoutFevBut != 0 ) {delete fLayoutFevBut; fCdelete++;}
66  if ( fEntryFevNumber != 0 ) {delete fEntryFevNumber; fCdelete++;}
67  if ( fFevText != 0 ) {fFevText->Delete(); fCdelete++;}
68  if ( fLayoutFevFieldText != 0 ) {delete fLayoutFevFieldText; fCdelete++;}
69  if ( fLayoutFevFieldFrame != 0 ) {delete fLayoutFevFieldFrame; fCdelete++;}
70 
71  //-------------------------------- Sub-Frame Run number (Button+Entry Field)
72  if ( fRunFrame != 0 ) {delete fRunFrame; fCdelete++;}
73  if ( fRunBut != 0 ) {delete fRunBut; fCdelete++;}
74  if ( fLayoutRunBut != 0 ) {delete fLayoutRunBut; fCdelete++;}
75  if ( fEntryRunNumber != 0 ) {delete fEntryRunNumber; fCdelete++;}
76  if ( fRunText != 0 ) {fRunText->Delete(); fCdelete++;}
77  if ( fLayoutRunField != 0 ) {delete fLayoutRunField; fCdelete++;}
78 
79  //+++++++++++++++++++++++++++++ Horizontal frame Nb Of Samples + last requested events + Clean + Submit
80  if ( fFevLevStexFrame != 0 ) {delete fFevLevStexFrame; fCdelete++;}
81  if ( fLayoutFevLevStexFrame != 0 ) {delete fLayoutFevLevStexFrame; fCdelete++;}
82 
83  //------------------- Sub-Frame Nb of Required Samples (Button+Entry Field)
84  if ( fNorsFrame != 0 ) {delete fNorsFrame; fCdelete++;}
85  if ( fNorsBut != 0 ) {delete fNorsBut; fCdelete++;}
86  if ( fLayoutNorsBut != 0 ) {delete fLayoutNorsBut; fCdelete++;}
87  if ( fEntryNorsNumber != 0 ) {delete fEntryNorsNumber; fCdelete++;}
88  if ( fNorsText != 0 ) {fNorsText->Delete(); fCdelete++;}
89  if ( fLayoutNorsField != 0 ) {delete fLayoutNorsField; fCdelete++;}
90 
91  //------------------- subframe last requested evt number
92  if ( fLevFrame != 0 ) {delete fLevFrame; fCdelete++;}
93  if ( fLevBut != 0 ) {delete fLevBut; fCdelete++;}
94  if ( fLayoutLevBut != 0 ) {delete fLayoutLevBut; fCdelete++;}
95  if ( fEntryLevNumber != 0 ) {delete fEntryLevNumber; fCdelete++;}
96  if ( fLevText != 0 ) {fLevText->Delete(); fCdelete++;}
97  if ( fLayoutLevFieldText != 0 ) {delete fLayoutLevFieldText; fCdelete++;}
98  if ( fLayoutLevFieldFrame != 0 ) {delete fLayoutLevFieldFrame; fCdelete++;}
99 
100  //................................ Menu for Clean
101  if ( fMenuClean != 0 ) {delete fMenuClean; fCdelete++;}
102  if ( fMenuBarClean != 0 ) {fMenuBarClean->Delete(); fCdelete++;}
103  //................................ Menu for Submit jobs on batch system
104  if ( fMenuSubmit != 0 ) {delete fMenuSubmit; fCdelete++;}
105  if ( fMenuBarSubmit != 0 ) {fMenuBarSubmit->Delete(); fCdelete++;}
106 
107  //+++++++++++++++++++++++++++++++++++++++++++++++++ Horizontal Frame:Stex number + NbOfReqEvts
108  if ( fCompStRqFrame != 0 ) {delete fCompStRqFrame; fCdelete++;}
109  if ( fLayoutCompStRqFrame != 0 ) {delete fLayoutCompStRqFrame; fCdelete++;}
110 
111  //------------------- subframe stex number
112  if ( fStexFrame != 0 ) {delete fStexFrame; fCdelete++;}
113  if ( fStexBut != 0 ) {delete fStexBut; fCdelete++;}
114  if ( fLayoutStexBut != 0 ) {delete fLayoutStexBut; fCdelete++;}
115  if ( fEntryStexNumber != 0 ) {delete fEntryStexNumber; fCdelete++;}
116  if ( fStexText != 0 ) {fStexText->Delete(); fCdelete++;}
117  if ( fLayoutStexFieldText != 0 ) {delete fLayoutStexFieldText; fCdelete++;}
118  if ( fLayoutStexFieldFrame != 0 ) {delete fLayoutStexFieldFrame; fCdelete++;}
119 
120  //------------------- subframe number of requested evts
121  if ( fRevFrame != 0 ) {delete fRevFrame; fCdelete++;}
122  if ( fRevBut != 0 ) {delete fRevBut; fCdelete++;}
123  if ( fLayoutRevBut != 0 ) {delete fLayoutRevBut; fCdelete++;}
124  if ( fEntryRevNumber != 0 ) {delete fEntryRevNumber; fCdelete++;}
125  if ( fRevText != 0 ) {fRevText->Delete(); fCdelete++;}
126  if ( fLayoutRevFieldText != 0 ) {delete fLayoutRevFieldText; fCdelete++;}
127  if ( fLayoutRevFieldFrame != 0 ) {delete fLayoutRevFieldFrame; fCdelete++;}
128 
129  //+++++++++++++++++++++++ Horizontal Frame StexStin numbering + Nb Samp for calc + Calculations
130  if ( fCompStnbFrame != 0 ) {delete fCompStnbFrame; fCdelete++;}
131  if ( fLayoutCompStnbFrame != 0 ) {delete fLayoutCompStnbFrame; fCdelete++;}
132 
133  //............................ Stex Stin Numbering view (Button)
134  if ( fButStexNb != 0 ) {delete fButStexNb; fCdelete++;}
135  if ( fLayoutStexNbBut != 0 ) {delete fLayoutStexNbBut; fCdelete++;}
136  //------------------- subframe NbSampForCalc
137  if ( fNbSampForCalcFrame != 0 ) {delete fNbSampForCalcFrame; fCdelete++;}
138  if ( fNbSampForCalcBut != 0 ) {delete fNbSampForCalcBut; fCdelete++;}
139  if ( fLayoutNbSampForCalcBut != 0 ) {delete fLayoutNbSampForCalcBut; fCdelete++;}
140  if ( fEntryNbSampForCalcNumber != 0 ) {delete fEntryNbSampForCalcNumber; fCdelete++;}
141  if ( fNbSampForCalcText != 0 ) {fNbSampForCalcText->Delete(); fCdelete++;}
142  if ( fLayoutNbSampForCalcFieldText != 0 ) {delete fLayoutNbSampForCalcFieldText; fCdelete++;}
143  if ( fLayoutNbSampForCalcFieldFrame != 0 ) {delete fLayoutNbSampForCalcFieldFrame; fCdelete++;}
144  //................................ Menus for CALCULATIONS
145  if ( fMenuComput != 0 ) {delete fMenuComput; fCdelete++;}
146  if ( fMenuBarComput != 0 ) {fMenuBarComput->Delete(); fCdelete++;}
147 
148  //+++++++++++++++++++++++++++++++++++++++++++ Frame for quantities relative to the Stex
149  if ( fStexUpFrame != 0 ) {delete fStexUpFrame; fCdelete++;}
150 
151  //................................ Menus+Ymin+Ymax for the Stex ............................
152 
153  //...................................... Nb of evts in the data
154 
155  if ( fVmmD_NOE_ChNbFrame != 0 ) {delete fVmmD_NOE_ChNbFrame; fCdelete++;}
156 
157  if ( fVmaxD_NOE_ChNbFrame != 0 ) {delete fVmaxD_NOE_ChNbFrame; fCdelete++;}
158  if ( fVmaxD_NOE_ChNbBut != 0 ) {delete fVmaxD_NOE_ChNbBut; fCdelete++;}
159  if ( fLayoutVmaxD_NOE_ChNbBut != 0 ) {delete fLayoutVmaxD_NOE_ChNbBut; fCdelete++;}
160  if ( fEntryVmaxD_NOE_ChNbNumber != 0 ) {delete fEntryVmaxD_NOE_ChNbNumber; fCdelete++;}
161  if ( fVmaxD_NOE_ChNbText != 0 ) {fVmaxD_NOE_ChNbText->Delete(); fCdelete++;}
162  if ( fLayoutVmaxD_NOE_ChNbFieldText != 0 ) {delete fLayoutVmaxD_NOE_ChNbFieldText; fCdelete++;}
163  if ( fLayoutVmaxD_NOE_ChNbFrame != 0 ) {delete fLayoutVmaxD_NOE_ChNbFrame; fCdelete++;}
164 
165  if ( fVminD_NOE_ChNbFrame != 0 ) {delete fVminD_NOE_ChNbFrame; fCdelete++;}
166  if ( fVminD_NOE_ChNbBut != 0 ) {delete fVminD_NOE_ChNbBut; fCdelete++;}
167  if ( fLayoutVminD_NOE_ChNbBut != 0 ) {delete fLayoutVminD_NOE_ChNbBut; fCdelete++;}
168  if ( fEntryVminD_NOE_ChNbNumber != 0 ) {delete fEntryVminD_NOE_ChNbNumber; fCdelete++;}
169  if ( fVminD_NOE_ChNbText != 0 ) {fVminD_NOE_ChNbText->Delete(); fCdelete++;}
170  if ( fLayoutVminD_NOE_ChNbFieldText != 0 ) {delete fLayoutVminD_NOE_ChNbFieldText; fCdelete++;}
171  if ( fLayoutVminD_NOE_ChNbFrame != 0 ) {delete fLayoutVminD_NOE_ChNbFrame; fCdelete++;}
172 
173  if ( fMenuD_NOE_ChNb != 0 ) {delete fMenuD_NOE_ChNb; fCdelete++;}
174  if ( fMenuBarD_NOE_ChNb != 0 ) {fMenuBarD_NOE_ChNb->Delete(); fCdelete++;}
175  if ( fVminD_NOE_ChNbText != 0 ) {fVminD_NOE_ChNbText->Delete(); fCdelete++;}
176 
177  if ( fLayoutVmmD_NOE_ChNbFrame != 0 ) {delete fLayoutVmmD_NOE_ChNbFrame; fCdelete++;}
178 
179  //---------------------------------------------------
180  if ( fVmmD_Ped_ChNbFrame != 0 ) {delete fVmmD_Ped_ChNbFrame; fCdelete++;}
181 
182  if ( fVmaxD_Ped_ChNbFrame != 0 ) {delete fVmaxD_Ped_ChNbFrame; fCdelete++;}
183  if ( fVmaxD_Ped_ChNbBut != 0 ) {delete fVmaxD_Ped_ChNbBut; fCdelete++;}
184  if ( fLayoutVmaxD_Ped_ChNbBut != 0 ) {delete fLayoutVmaxD_Ped_ChNbBut; fCdelete++;}
185  if ( fVmaxD_Ped_ChNbText != 0 ) {fVmaxD_Ped_ChNbText->Delete(); fCdelete++;}
186  if ( fEntryVmaxD_Ped_ChNbNumber != 0 ) {delete fEntryVmaxD_Ped_ChNbNumber; fCdelete++;}
187  if ( fLayoutVmaxD_Ped_ChNbFieldText != 0 ) {delete fLayoutVmaxD_Ped_ChNbFieldText; fCdelete++;}
188  if ( fLayoutVmaxD_Ped_ChNbFrame != 0 ) {delete fLayoutVmaxD_Ped_ChNbFrame; fCdelete++;}
189 
190  if ( fVminD_Ped_ChNbFrame != 0 ) {delete fVminD_Ped_ChNbFrame; fCdelete++;}
191  if ( fVminD_Ped_ChNbBut != 0 ) {delete fVminD_Ped_ChNbBut; fCdelete++;}
192  if ( fLayoutVminD_Ped_ChNbBut != 0 ) {delete fLayoutVminD_Ped_ChNbBut; fCdelete++;}
193  if ( fVminD_Ped_ChNbText != 0 ) {fVminD_Ped_ChNbText->Delete(); fCdelete++;}
194  if ( fEntryVminD_Ped_ChNbNumber != 0 ) {delete fEntryVminD_Ped_ChNbNumber; fCdelete++;}
195  if ( fLayoutVminD_Ped_ChNbFieldText != 0 ) {delete fLayoutVminD_Ped_ChNbFieldText; fCdelete++;}
196  if ( fLayoutVminD_Ped_ChNbFrame != 0 ) {delete fLayoutVminD_Ped_ChNbFrame; fCdelete++;}
197 
198  if ( fMenuD_Ped_ChNb != 0 ) {delete fMenuD_Ped_ChNb; fCdelete++;}
199  if ( fMenuBarD_Ped_ChNb != 0 ) {fMenuBarD_Ped_ChNb->Delete(); fCdelete++;}
200  if ( fLayoutMenuBarD_Ped_ChNb != 0 ) {delete fLayoutMenuBarD_Ped_ChNb; fCdelete++;}
201 
202  if ( fLayoutVmmD_Ped_ChNbFrame != 0 ) {delete fLayoutVmmD_Ped_ChNbFrame; fCdelete++;}
203 
204  //----------------------------------------------------
205  if ( fVmmD_TNo_ChNbFrame != 0 ) {delete fVmmD_TNo_ChNbFrame; fCdelete++;}
206 
207  if ( fVmaxD_TNo_ChNbFrame != 0 ) {delete fVmaxD_TNo_ChNbFrame; fCdelete++;}
208  if ( fVmaxD_TNo_ChNbBut != 0 ) {delete fVmaxD_TNo_ChNbBut; fCdelete++;}
209  if ( fLayoutVmaxD_TNo_ChNbBut != 0 ) {delete fLayoutVmaxD_TNo_ChNbBut; fCdelete++;}
210  if ( fVmaxD_TNo_ChNbText != 0 ) {fVmaxD_TNo_ChNbText->Delete(); fCdelete++;}
211  if ( fEntryVmaxD_TNo_ChNbNumber != 0 ) {delete fEntryVmaxD_TNo_ChNbNumber; fCdelete++;}
212  if ( fLayoutVmaxD_TNo_ChNbFieldText != 0 ) {delete fLayoutVmaxD_TNo_ChNbFieldText; fCdelete++;}
213  if ( fLayoutVmaxD_TNo_ChNbFrame != 0 ) {delete fLayoutVmaxD_TNo_ChNbFrame; fCdelete++;}
214 
215  if ( fVminD_TNo_ChNbFrame != 0 ) {delete fVminD_TNo_ChNbFrame; fCdelete++;}
216  if ( fVminD_TNo_ChNbBut != 0 ) {delete fVminD_TNo_ChNbBut; fCdelete++;}
217  if ( fLayoutVminD_TNo_ChNbBut != 0 ) {delete fLayoutVminD_TNo_ChNbBut; fCdelete++;}
218  if ( fVminD_TNo_ChNbText != 0 ) {fVminD_TNo_ChNbText->Delete(); fCdelete++;}
219  if ( fEntryVminD_TNo_ChNbNumber != 0 ) {delete fEntryVminD_TNo_ChNbNumber; fCdelete++;}
220  if ( fLayoutVminD_TNo_ChNbFieldText != 0 ) {delete fLayoutVminD_TNo_ChNbFieldText; fCdelete++;}
221  if ( fLayoutVminD_TNo_ChNbFrame != 0 ) {delete fLayoutVminD_TNo_ChNbFrame; fCdelete++;}
222 
223  if ( fMenuD_TNo_ChNb != 0 ) {delete fMenuD_TNo_ChNb; fCdelete++;}
224  if ( fMenuBarD_TNo_ChNb != 0 ) {fMenuBarD_TNo_ChNb->Delete(); fCdelete++;}
225  if ( fLayoutMenuBarD_TNo_ChNb != 0 ) {delete fLayoutMenuBarD_TNo_ChNb; fCdelete++;}
226 
227  if ( fLayoutVmmD_TNo_ChNbFrame != 0 ) {delete fLayoutVmmD_TNo_ChNbFrame; fCdelete++;}
228 
229  //-----------------------------------------------------------
230  if ( fVmmD_MCs_ChNbFrame != 0 ) {delete fVmmD_MCs_ChNbFrame; fCdelete++;}
231 
232  if ( fVmaxD_MCs_ChNbFrame != 0 ) {delete fVmaxD_MCs_ChNbFrame; fCdelete++;}
233  if ( fVmaxD_MCs_ChNbBut != 0 ) {delete fVmaxD_MCs_ChNbBut; fCdelete++;}
234  if ( fLayoutVmaxD_MCs_ChNbBut != 0 ) {delete fLayoutVmaxD_MCs_ChNbBut; fCdelete++;}
235  if ( fVmaxD_MCs_ChNbText != 0 ) {fVmaxD_MCs_ChNbText->Delete(); fCdelete++;}
236  if ( fEntryVmaxD_MCs_ChNbNumber != 0 ) {delete fEntryVmaxD_MCs_ChNbNumber; fCdelete++;}
237  if ( fLayoutVmaxD_MCs_ChNbFieldText != 0 ) {delete fLayoutVmaxD_MCs_ChNbFieldText; fCdelete++;}
238  if ( fLayoutVmaxD_MCs_ChNbFrame != 0 ) {delete fLayoutVmaxD_MCs_ChNbFrame; fCdelete++;}
239 
240  if ( fVminD_MCs_ChNbFrame != 0 ) {delete fVminD_MCs_ChNbFrame; fCdelete++;}
241  if ( fVminD_MCs_ChNbBut != 0 ) {delete fVminD_MCs_ChNbBut; fCdelete++;}
242  if ( fLayoutVminD_MCs_ChNbBut != 0 ) {delete fLayoutVminD_MCs_ChNbBut; fCdelete++;}
243  if ( fVminD_MCs_ChNbText != 0 ) {fVminD_MCs_ChNbText->Delete(); fCdelete++;}
244  if ( fEntryVminD_MCs_ChNbNumber != 0 ) {delete fEntryVminD_MCs_ChNbNumber; fCdelete++;}
245  if ( fLayoutVminD_MCs_ChNbFieldText != 0 ) {delete fLayoutVminD_MCs_ChNbFieldText; fCdelete++;}
246  if ( fLayoutVminD_MCs_ChNbFrame != 0 ) {delete fLayoutVminD_MCs_ChNbFrame; fCdelete++;}
247 
248  if ( fMenuD_MCs_ChNb != 0 ) {delete fMenuD_MCs_ChNb; fCdelete++;}
249  if ( fMenuBarD_MCs_ChNb != 0 ) {fMenuBarD_MCs_ChNb->Delete(); fCdelete++;}
250  if ( fLayoutMenuBarD_MCs_ChNb != 0 ) {delete fLayoutMenuBarD_MCs_ChNb; fCdelete++;}
251 
252  if ( fLayoutVmmD_MCs_ChNbFrame != 0 ) {delete fLayoutVmmD_MCs_ChNbFrame; fCdelete++;}
253 
254  //............................................... Frame Sig + Menus Sig
255  if ( fStexHozFrame != 0 ) {delete fStexHozFrame; fCdelete++;}
256 
257  //-------------------------------------------------------------
258  if ( fVmmD_LFN_ChNbFrame != 0 ) {delete fVmmD_LFN_ChNbFrame; fCdelete++;}
259 
260  if ( fVmaxD_LFN_ChNbFrame != 0 ) {delete fVmaxD_LFN_ChNbFrame; fCdelete++;}
261  if ( fVmaxD_LFN_ChNbBut != 0 ) {delete fVmaxD_LFN_ChNbBut; fCdelete++;}
262  if ( fLayoutVmaxD_LFN_ChNbBut != 0 ) {delete fLayoutVmaxD_LFN_ChNbBut; fCdelete++;}
263  if ( fVmaxD_LFN_ChNbText != 0 ) {fVmaxD_LFN_ChNbText->Delete(); fCdelete++;}
264  if ( fEntryVmaxD_LFN_ChNbNumber != 0 ) {delete fEntryVmaxD_LFN_ChNbNumber; fCdelete++;}
265  if ( fLayoutVmaxD_LFN_ChNbFieldText != 0 ) {delete fLayoutVmaxD_LFN_ChNbFieldText; fCdelete++;}
266  if ( fLayoutVmaxD_LFN_ChNbFrame != 0 ) {delete fLayoutVmaxD_LFN_ChNbFrame; fCdelete++;}
267 
268  if ( fVminD_LFN_ChNbFrame != 0 ) {delete fVminD_LFN_ChNbFrame; fCdelete++;}
269  if ( fVminD_LFN_ChNbBut != 0 ) {delete fVminD_LFN_ChNbBut; fCdelete++;}
270  if ( fLayoutVminD_LFN_ChNbBut != 0 ) {delete fLayoutVminD_LFN_ChNbBut; fCdelete++;}
271  if ( fVminD_LFN_ChNbText != 0 ) {fVminD_LFN_ChNbText->Delete(); fCdelete++;}
272  if ( fEntryVminD_LFN_ChNbNumber != 0 ) {delete fEntryVminD_LFN_ChNbNumber; fCdelete++;}
273  if ( fLayoutVminD_LFN_ChNbFieldText != 0 ) {delete fLayoutVminD_LFN_ChNbFieldText; fCdelete++;}
274  if ( fLayoutVminD_LFN_ChNbFrame != 0 ) {delete fLayoutVminD_LFN_ChNbFrame; fCdelete++;}
275 
276  if ( fMenuD_LFN_ChNb != 0 ) {delete fMenuD_LFN_ChNb; fCdelete++;}
277  if ( fMenuBarD_LFN_ChNb != 0 ) {fMenuBarD_LFN_ChNb->Delete(); fCdelete++;}
278  if ( fLayoutMenuBarD_LFN_ChNb != 0 ) {delete fLayoutMenuBarD_LFN_ChNb; fCdelete++;}
279 
280  if ( fLayoutVmmD_LFN_ChNbFrame != 0 ) {delete fLayoutVmmD_LFN_ChNbFrame; fCdelete++;}
281 
282  //-------------------------------------------------------------
283  if ( fVmmD_HFN_ChNbFrame != 0 ) {delete fVmmD_HFN_ChNbFrame; fCdelete++;}
284 
285  if ( fVmaxD_HFN_ChNbFrame != 0 ) {delete fVmaxD_HFN_ChNbFrame; fCdelete++;}
286  if ( fVmaxD_HFN_ChNbBut != 0 ) {delete fVmaxD_HFN_ChNbBut; fCdelete++;}
287  if ( fLayoutVmaxD_HFN_ChNbBut != 0 ) {delete fLayoutVmaxD_HFN_ChNbBut; fCdelete++;}
288  if ( fVmaxD_HFN_ChNbText != 0 ) {fVmaxD_HFN_ChNbText->Delete(); fCdelete++;}
289  if ( fEntryVmaxD_HFN_ChNbNumber != 0 ) {delete fEntryVmaxD_HFN_ChNbNumber; fCdelete++;}
290  if ( fLayoutVmaxD_HFN_ChNbFieldText != 0 ) {delete fLayoutVmaxD_HFN_ChNbFieldText; fCdelete++;}
291  if ( fLayoutVmaxD_HFN_ChNbFrame != 0 ) {delete fLayoutVmaxD_HFN_ChNbFrame; fCdelete++;}
292 
293  if ( fVminD_HFN_ChNbFrame != 0 ) {delete fVminD_HFN_ChNbFrame; fCdelete++;}
294  if ( fVminD_HFN_ChNbBut != 0 ) {delete fVminD_HFN_ChNbBut; fCdelete++;}
295  if ( fLayoutVminD_HFN_ChNbBut != 0 ) {delete fLayoutVminD_HFN_ChNbBut; fCdelete++;}
296  if ( fVminD_HFN_ChNbText != 0 ) {fVminD_HFN_ChNbText->Delete(); fCdelete++;}
297  if ( fEntryVminD_HFN_ChNbNumber != 0 ) {delete fEntryVminD_HFN_ChNbNumber; fCdelete++;}
298  if ( fLayoutVminD_HFN_ChNbFieldText != 0 ) {delete fLayoutVminD_HFN_ChNbFieldText; fCdelete++;}
299  if ( fLayoutVminD_HFN_ChNbFrame != 0 ) {delete fLayoutVminD_HFN_ChNbFrame; fCdelete++;}
300 
301  if ( fMenuD_HFN_ChNb != 0 ) {delete fMenuD_HFN_ChNb; fCdelete++;}
302  if ( fMenuBarD_HFN_ChNb != 0 ) {fMenuBarD_HFN_ChNb->Delete(); fCdelete++;}
303  if ( fLayoutMenuBarD_HFN_ChNb != 0 ) {delete fLayoutMenuBarD_HFN_ChNb; fCdelete++;}
304 
305  if ( fLayoutVmmD_HFN_ChNbFrame != 0 ) {delete fLayoutVmmD_HFN_ChNbFrame; fCdelete++;}
306 
307  //-------------------------------------------------------------
308  if ( fVmmD_SCs_ChNbFrame != 0 ) {delete fVmmD_SCs_ChNbFrame; fCdelete++;}
309 
310  if ( fVmaxD_SCs_ChNbFrame != 0 ) {delete fVmaxD_SCs_ChNbFrame; fCdelete++;}
311  if ( fVmaxD_SCs_ChNbBut != 0 ) {delete fVmaxD_SCs_ChNbBut; fCdelete++;}
312  if ( fLayoutVmaxD_SCs_ChNbBut != 0 ) {delete fLayoutVmaxD_SCs_ChNbBut; fCdelete++;}
313  if ( fVmaxD_SCs_ChNbText != 0 ) {fVmaxD_SCs_ChNbText->Delete(); fCdelete++;}
314  if ( fEntryVmaxD_SCs_ChNbNumber != 0 ) {delete fEntryVmaxD_SCs_ChNbNumber; fCdelete++;}
315  if ( fLayoutVmaxD_SCs_ChNbFieldText != 0 ) {delete fLayoutVmaxD_SCs_ChNbFieldText; fCdelete++;}
316  if ( fLayoutVmaxD_SCs_ChNbFrame != 0 ) {delete fLayoutVmaxD_SCs_ChNbFrame; fCdelete++;}
317 
318  if ( fVminD_SCs_ChNbFrame != 0 ) {delete fVminD_SCs_ChNbFrame; fCdelete++;}
319  if ( fVminD_SCs_ChNbBut != 0 ) {delete fVminD_SCs_ChNbBut; fCdelete++;}
320  if ( fLayoutVminD_SCs_ChNbBut != 0 ) {delete fLayoutVminD_SCs_ChNbBut; fCdelete++;}
321  if ( fVminD_SCs_ChNbText != 0 ) {fVminD_SCs_ChNbText->Delete(); fCdelete++;}
322  if ( fEntryVminD_SCs_ChNbNumber != 0 ) {delete fEntryVminD_SCs_ChNbNumber; fCdelete++;}
323  if ( fLayoutVminD_SCs_ChNbFieldText != 0 ) {delete fLayoutVminD_SCs_ChNbFieldText; fCdelete++;}
324  if ( fLayoutVminD_SCs_ChNbFrame != 0 ) {delete fLayoutVminD_SCs_ChNbFrame; fCdelete++;}
325 
326  if ( fMenuD_SCs_ChNb != 0 ) {delete fMenuD_SCs_ChNb; fCdelete++;}
327  if ( fMenuBarD_SCs_ChNb != 0 ) {fMenuBarD_SCs_ChNb->Delete(); fCdelete++;}
328  if ( fLayoutMenuBarD_SCs_ChNb != 0 ) {delete fLayoutMenuBarD_SCs_ChNb; fCdelete++;}
329 
330  if ( fLayoutVmmD_SCs_ChNbFrame != 0 ) {delete fLayoutVmmD_SCs_ChNbFrame; fCdelete++;}
331  //-------------------------------------------------------------
332  if ( fLayoutStexHozFrame != 0 ) {delete fLayoutStexHozFrame; fCdelete++;}
333 
334  //----------------------------------------------------------------------------------------------
335 
336  //...................................... Covariances between Stins
337  if ( fVmmLHFccFrame != 0 ) {delete fVmmLHFccFrame; fCdelete++;}
338 
339  if ( fVmaxLHFccFrame != 0 ) {delete fVmaxLHFccFrame; fCdelete++;}
340  if ( fVmaxLHFccBut != 0 ) {delete fVmaxLHFccBut; fCdelete++;}
341  if ( fLayoutVmaxLHFccBut != 0 ) {delete fLayoutVmaxLHFccBut; fCdelete++;}
342  if ( fVmaxLHFccText != 0 ) {fVmaxLHFccText->Delete(); fCdelete++;}
343  if ( fEntryVmaxLHFccNumber != 0 ) {delete fEntryVmaxLHFccNumber; fCdelete++;}
344  if ( fLayoutVmaxLHFccFieldText != 0 ) {delete fLayoutVmaxLHFccFieldText; fCdelete++;}
345  if ( fLayoutVmaxLHFccFrame != 0 ) {delete fLayoutVmaxLHFccFrame; fCdelete++;}
346 
347  if ( fVminLHFccFrame != 0 ) {delete fVminLHFccFrame; fCdelete++;}
348  if ( fVminLHFccBut != 0 ) {delete fVminLHFccBut; fCdelete++;}
349  if ( fLayoutVminLHFccBut != 0 ) {delete fLayoutVminLHFccBut; fCdelete++;}
350  if ( fVminLHFccText != 0 ) {fVminLHFccText->Delete(); fCdelete++;}
351  if ( fEntryVminLHFccNumber != 0 ) {delete fEntryVminLHFccNumber; fCdelete++;}
352  if ( fLayoutVminLHFccFieldText != 0 ) {delete fLayoutVminLHFccFieldText; fCdelete++;}
353  if ( fLayoutVminLHFccFrame != 0 ) {delete fLayoutVminLHFccFrame; fCdelete++;}
354 
355  if ( fMenuLHFcc != 0 ) {delete fMenuLHFcc; fCdelete++;}
356  if ( fMenuBarLHFcc != 0 ) {fMenuBarLHFcc->Delete(); fCdelete++;}
357  if ( fLayoutMenuBarLHFcc != 0 ) {delete fLayoutMenuBarLHFcc; fCdelete++;}
358 
359  if ( fLayoutVmmLHFccFrame != 0 ) {delete fLayoutVmmLHFccFrame; fCdelete++;}
360 
361  //...................................... Low Freq Cor(c,c') for each pair of Stins
362  if ( fVmmLFccMosFrame != 0 ) {delete fVmmLFccMosFrame; fCdelete++;}
363 
364  if ( fVmaxLFccMosFrame != 0 ) {delete fVmaxLFccMosFrame; fCdelete++;}
365  if ( fVmaxLFccMosBut != 0 ) {delete fVmaxLFccMosBut; fCdelete++;}
366  if ( fLayoutVmaxLFccMosBut != 0 ) {delete fLayoutVmaxLFccMosBut; fCdelete++;}
367  if ( fVmaxLFccMosText != 0 ) {fVmaxLFccMosText->Delete(); fCdelete++;}
368  if ( fEntryVmaxLFccMosNumber != 0 ) {delete fEntryVmaxLFccMosNumber; fCdelete++;}
369  if ( fLayoutVmaxLFccMosFieldText != 0 ) {delete fLayoutVmaxLFccMosFieldText; fCdelete++;}
370  if ( fLayoutVmaxLFccMosFrame != 0 ) {delete fLayoutVmaxLFccMosFrame; fCdelete++;}
371 
372  if ( fVminLFccMosFrame != 0 ) {delete fVminLFccMosFrame; fCdelete++;}
373  if ( fVminLFccMosBut != 0 ) {delete fVminLFccMosBut; fCdelete++;}
374  if ( fLayoutVminLFccMosBut != 0 ) {delete fLayoutVminLFccMosBut; fCdelete++;}
375  if ( fVminLFccMosText != 0 ) {fVminLFccMosText->Delete(); fCdelete++;}
376  if ( fEntryVminLFccMosNumber != 0 ) {delete fEntryVminLFccMosNumber; fCdelete++;}
377  if ( fLayoutVminLFccMosFieldText != 0 ) {delete fLayoutVminLFccMosFieldText; fCdelete++;}
378  if ( fLayoutVminLFccMosFrame != 0 ) {delete fLayoutVminLFccMosFrame; fCdelete++;}
379 
380  if ( fMenuLFccMos != 0 ) {delete fMenuLFccMos; fCdelete++;}
381  if ( fMenuBarLFccMos != 0 ) {fMenuBarLFccMos->Delete(); fCdelete++;}
382  if ( fLayoutMenuBarLFccMos != 0 ) {delete fLayoutMenuBarLFccMos; fCdelete++;}
383 
384  if ( fLayoutVmmLFccMosFrame != 0 ) {delete fLayoutVmmLFccMosFrame; fCdelete++;}
385 
386  //...................................... High Freq Cor(c,c') for each pair of Stins
387  if ( fVmmHFccMosFrame != 0 ) {delete fVmmHFccMosFrame; fCdelete++;}
388 
389  if ( fVmaxHFccMosFrame != 0 ) {delete fVmaxHFccMosFrame; fCdelete++;}
390  if ( fVmaxHFccMosBut != 0 ) {delete fVmaxHFccMosBut; fCdelete++;}
391  if ( fLayoutVmaxHFccMosBut != 0 ) {delete fLayoutVmaxHFccMosBut; fCdelete++;}
392  if ( fVmaxHFccMosText != 0 ) {fVmaxHFccMosText->Delete(); fCdelete++;}
393  if ( fEntryVmaxHFccMosNumber != 0 ) {delete fEntryVmaxHFccMosNumber; fCdelete++;}
394  if ( fLayoutVmaxHFccMosFieldText != 0 ) {delete fLayoutVmaxHFccMosFieldText; fCdelete++;}
395  if ( fLayoutVmaxHFccMosFrame != 0 ) {delete fLayoutVmaxHFccMosFrame; fCdelete++;}
396 
397  if ( fVminHFccMosFrame != 0 ) {delete fVminHFccMosFrame; fCdelete++;}
398  if ( fVminHFccMosBut != 0 ) {delete fVminHFccMosBut; fCdelete++;}
399  if ( fLayoutVminHFccMosBut != 0 ) {delete fLayoutVminHFccMosBut; fCdelete++;}
400  if ( fVminHFccMosText != 0 ) {fVminHFccMosText->Delete(); fCdelete++;}
401  if ( fEntryVminHFccMosNumber != 0 ) {delete fEntryVminHFccMosNumber; fCdelete++;}
402  if ( fLayoutVminHFccMosFieldText != 0 ) {delete fLayoutVminHFccMosFieldText; fCdelete++;}
403  if ( fLayoutVminHFccMosFrame != 0 ) {delete fLayoutVminHFccMosFrame; fCdelete++;}
404 
405  if ( fMenuHFccMos != 0 ) {delete fMenuHFccMos; fCdelete++;}
406  if ( fMenuBarHFccMos != 0 ) {fMenuBarHFccMos->Delete(); fCdelete++;}
407  if ( fLayoutMenuBarHFccMos != 0 ) {delete fLayoutMenuBarHFccMos; fCdelete++;}
408 
409  if ( fLayoutVmmHFccMosFrame != 0 ) {delete fLayoutVmmHFccMosFrame; fCdelete++;}
410 
411  if ( fLayoutStexUpFrame != 0 ) {delete fLayoutStexUpFrame; fCdelete++;}
412 
413  //+++++++++++++++++++++++++++++++++++++++++ Horizontal frame Stin_A + Stin_B
414  if ( fStinSpFrame != 0 ) {delete fStinSpFrame; fCdelete++;}
415 
416  //----------------------------------- SubFrame Stin_A (Button + EntryField)
417  if ( fTxSubFrame != 0 ) {delete fTxSubFrame; fCdelete++;}
418 
419  if ( fStinAFrame != 0 ) {delete fStinAFrame; fCdelete++;}
420  if ( fStinABut != 0 ) {delete fStinABut; fCdelete++;}
421  if ( fLayoutStinABut != 0 ) {delete fLayoutStinABut; fCdelete++;}
422  if ( fEntryStinANumber != 0 ) {delete fEntryStinANumber; fCdelete++;}
423  if ( fStinAText != 0 ) {fStinAText->Delete(); fCdelete++;}
424  if ( fLayoutStinAField != 0 ) {delete fLayoutStinAField; fCdelete++;}
425 
426  //............................ Stin Crystal Numbering view (Button)
427  if ( fButChNb != 0 ) {delete fButChNb; fCdelete++;}
428  if ( fLayoutChNbBut != 0 ) {delete fLayoutChNbBut; fCdelete++;}
429 
430  //............................ Menus Stin_A
431  if ( fMenuCorssAll != 0 ) {delete fMenuCorssAll; fCdelete++;}
432  if ( fMenuBarCorssAll != 0 ) {fMenuBarCorssAll->Delete(); fCdelete++;}
433 
434  //if ( fMenuCovssAll != 0 ) {delete fMenuCovssAll; fCdelete++;}
435  //if ( fMenuBarCovssAll != 0 ) {fMenuBarCovssAll->Delete(); fCdelete++;}
436 
437  if ( fLayoutTxSubFrame != 0 ) {delete fLayoutTxSubFrame; fCdelete++;}
438 
439  //----------------------------------- SubFrame Stin_B (Button + EntryField)
440 
441  if ( fTySubFrame != 0 ) {delete fTySubFrame; fCdelete++;}
442 
443  if ( fStinBFrame != 0 ) {delete fStinBFrame; fCdelete++;}
444  if ( fStinBBut != 0 ) {delete fStinBBut; fCdelete++;}
445  if ( fLayoutStinBBut != 0 ) {delete fLayoutStinBBut; fCdelete++;}
446  if ( fEntryStinBNumber != 0 ) {delete fEntryStinBNumber; fCdelete++;}
447  if ( fStinBText != 0 ) {fStinBText->Delete(); fCdelete++;}
448  if ( fLayoutStinBField != 0 ) {delete fLayoutStinBField; fCdelete++;}
449 
450  if ( fLayoutTySubFrame != 0 ) {delete fLayoutTySubFrame; fCdelete++;}
451 
452  if ( fLayoutStinSpFrame != 0 ) {delete fLayoutStinSpFrame; fCdelete++;}
453 
454  //.................................. Menus for Horizontal frame (Stin_A + Stin_B)
455 
456  if ( fMenuLFCorcc != 0 ) {delete fMenuLFCorcc; fCdelete++;}
457  if ( fMenuBarLFCorcc != 0 ) {fMenuBarLFCorcc->Delete(); fCdelete++;}
458 
459  if ( fMenuHFCorcc != 0 ) {delete fMenuHFCorcc; fCdelete++;}
460  if ( fMenuBarHFCorcc != 0 ) {fMenuBarHFCorcc->Delete(); fCdelete++;}
461 
462  //++++++++++++++++++++++++ Horizontal frame channel number (Stin_A crystal number) + sample number
463  if ( fChSpFrame != 0 ) {delete fChSpFrame; fCdelete++;}
464 
465  //------------------------------------- SubFrame Channel (Button + EntryField)
466 
467  if ( fChSubFrame != 0 ) {delete fChSubFrame; fCdelete++;}
468 
469  if ( fChanFrame != 0 ) {delete fChanFrame; fCdelete++;}
470  if ( fChanBut != 0 ) {delete fChanBut; fCdelete++;}
471  if ( fLayoutChanBut != 0 ) {delete fLayoutChanBut; fCdelete++;}
472  if ( fEntryChanNumber != 0 ) {delete fEntryChanNumber; fCdelete++;}
473  if ( fChanText != 0 ) {fChanText->Delete(); fCdelete++;}
474  if ( fLayoutChanField != 0 ) {delete fLayoutChanField; fCdelete++;}
475 
476  //................................ Menus Stin_A crystal number
477  if ( fMenuCorss != 0 ) {delete fMenuCorss; fCdelete++;}
478  if ( fMenuBarCorss != 0 ) {fMenuBarCorss->Delete(); fCdelete++;}
479 
480  if ( fMenuCovss != 0 ) {delete fMenuCovss; fCdelete++;}
481  if ( fMenuBarCovss != 0 ) {fMenuBarCovss->Delete(); fCdelete++;}
482 
483  if ( fMenuD_MSp_SpNb != 0 ) {delete fMenuD_MSp_SpNb; fCdelete++;}
484  if ( fMenuBarD_MSp_SpNb != 0 ) {fMenuBarD_MSp_SpNb->Delete(); fCdelete++;}
485  if ( fMenuD_MSp_SpDs != 0 ) {delete fMenuD_MSp_SpDs; fCdelete++;}
486  if ( fMenuBarD_MSp_SpDs != 0 ) {fMenuBarD_MSp_SpDs->Delete(); fCdelete++;}
487 
488  if ( fMenuD_SSp_SpNb != 0 ) {delete fMenuD_SSp_SpNb; fCdelete++;}
489  if ( fMenuBarD_SSp_SpNb != 0 ) {fMenuBarD_SSp_SpNb->Delete(); fCdelete++;}
490  if ( fMenuD_SSp_SpDs != 0 ) {delete fMenuD_SSp_SpDs; fCdelete++;}
491  if ( fMenuBarD_SSp_SpDs != 0 ) {fMenuBarD_SSp_SpDs->Delete(); fCdelete++;}
492 
493  if ( fLayoutChSubFrame != 0 ) {delete fLayoutChSubFrame; fCdelete++;}
494 
495  //------------------------------------ SubFrame Sample (Button + EntryField)
496  if ( fSpSubFrame != 0 ) {delete fSpSubFrame; fCdelete++;}
497  if ( fSampFrame != 0 ) {delete fSampFrame; fCdelete++;}
498  if ( fSampBut != 0 ) {delete fSampBut; fCdelete++;}
499  if ( fLayoutSampBut != 0 ) {delete fLayoutSampBut; fCdelete++;}
500  if ( fEntrySampNumber != 0 ) {delete fEntrySampNumber; fCdelete++;}
501  if ( fSampText != 0 ) {fSampText->Delete(); fCdelete++;}
502  if ( fLayoutSampField != 0 ) {delete fLayoutSampField; fCdelete++;}
503  if ( fLayoutSpSubFrame != 0 ) {delete fLayoutSpSubFrame; fCdelete++;}
504 
505  //................................ Menus Sample number
506 
507  // (no menu in this SubFrame)
508 
509  if ( fLayoutChSpFrame != 0 ) {delete fLayoutChSpFrame; fCdelete++;}
510 
511  //++++++++++++++++++++++++++++++++++++ Menu Event Distribution
512  if ( fMenuAdcProj != 0 ) {delete fMenuAdcProj; fCdelete++;}
513  if ( fMenuBarAdcProj != 0 ) {fMenuBarAdcProj->Delete(); fCdelete++;}
514  if ( fLayoutMenuBarAdcProj != 0 ) {delete fLayoutMenuBarAdcProj; fCdelete++;}
515 
516  //++++++++++++++++++++++++++++++++++++ Frame: Run List (Rul) (Button + EntryField)
517  if ( fRulFrame != 0 ) {delete fRulFrame; fCdelete++;}
518  if ( fRulBut != 0 ) {delete fRulBut; fCdelete++;}
519  if ( fLayoutRulBut != 0 ) {delete fLayoutRulBut; fCdelete++;}
520  if ( fEntryRulNumber != 0 ) {delete fEntryRulNumber; fCdelete++;}
521  if ( fRulText != 0 ) {fRulText->Delete(); fCdelete++;}
522  if ( fLayoutRulFieldText != 0 ) {delete fLayoutRulFieldText; fCdelete++;}
523  if ( fLayoutRulFieldFrame != 0 ) {delete fLayoutRulFieldFrame; fCdelete++;}
524 
525  //................................ Menus for time evolution
526  if ( fMenuHistory != 0 ) {delete fMenuHistory; fCdelete++;}
527  if ( fMenuBarHistory != 0 ) {fMenuBarHistory->Delete(); fCdelete++;}
528 
529  //++++++++++++++++++++++++++++++++++++ LinLog Frame
530  if ( fLinLogFrame != 0 ) {delete fLinLogFrame; fCdelete++;}
531 
532  //---------------------------------- Lin/Log X
533  if ( fButLogx != 0 ) {delete fButLogx; fCdelete++;}
534  if ( fLayoutLogxBut != 0 ) {delete fLayoutLogxBut; fCdelete++;}
535  //---------------------------------- Lin/Log Y
536  if ( fButLogy != 0 ) {delete fButLogy; fCdelete++;}
537  if ( fLayoutLogyBut != 0 ) {delete fLayoutLogyBut; fCdelete++;}
538  //---------------------------------- Proj Y
539  if ( fButProjy != 0 ) {delete fButProjy; fCdelete++;}
540  if ( fLayoutProjyBut != 0 ) {delete fLayoutProjyBut; fCdelete++;}
541 
542  //++++++++++++++++++++++++++++++++++++ Frame: General Title (Gent) (Button + EntryField)
543  if ( fGentFrame != 0 ) {delete fGentFrame; fCdelete++;}
544  if ( fGentBut != 0 ) {delete fGentBut; fCdelete++;}
545  if ( fLayoutGentBut != 0 ) {delete fLayoutGentBut; fCdelete++;}
546  if ( fEntryGentNumber != 0 ) {delete fEntryGentNumber; fCdelete++;}
547  if ( fGentText != 0 ) {fGentText->Delete(); fCdelete++;}
548  if ( fLayoutGentFieldText != 0 ) {delete fLayoutGentFieldText; fCdelete++;}
549  if ( fLayoutGentFieldFrame != 0 ) {delete fLayoutGentFieldFrame; fCdelete++;}
550 
551  //++++++++++++++++++++++++++++++++++++ Color + EXIT BUTTON
552  if ( fColorExitFrame != 0 ) {delete fColorExitFrame; fCdelete++;}
553  if ( fLayoutColorExitFrame != 0 ) {delete fLayoutColorExitFrame; fCdelete++;}
554 
555  //---------------------------------- Color Palette
556  if ( fButColPal != 0 ) {delete fButColPal; fCdelete++;}
557  if ( fLayoutColPalBut != 0 ) {delete fLayoutColPalBut; fCdelete++;}
558  //---------------------------------- Exit
559  if ( fButExit != 0 ) {delete fButExit; fCdelete++;}
560  if ( fLayoutExitBut != 0 ) {delete fLayoutExitBut; fCdelete++;}
561 
562  //++++++++++++++++++++++++++++++++++++ Last Frame
563  if ( fLastFrame != 0 ) {delete fLastFrame; fCdelete++;}
564 
565  //--------------------------------- Clone Last Canvas (Button)
566  if ( fButClone != 0 ) {delete fButClone; fCdelete++;}
567  if ( fLayoutCloneBut != 0 ) {delete fLayoutCloneBut; fCdelete++;}
568 
569  //--------------------------------- Root version (Button)
570  if ( fButRoot != 0 ) {delete fButRoot; fCdelete++;}
571  if ( fLayoutRootBut != 0 ) {delete fLayoutRootBut; fCdelete++;}
572 
573  //--------------------------------- Help (Button)
574  if ( fButHelp != 0 ) {delete fButHelp; fCdelete++;}
575  if ( fLayoutHelpBut != 0 ) {delete fLayoutHelpBut; fCdelete++;}
576 
577  //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
578 
579  if ( fCnew != fCdelete )
580  {
581  std::cout << "*TEcnaGui> WRONG MANAGEMENT OF ALLOCATIONS: fCnew = "
582  << fCnew << ", fCdelete = " << fCdelete << std::endl;
583  }
584  else
585  {
586  //std::cout << "*TEcnaGui> BRAVO! GOOD MANAGEMENT OF ALLOCATIONS: fCnew = "
587  // << fCnew << ", fCdelete = " << fCdelete << std::endl;
588  }
589 
590 #endif // DEST
591 
592 #define MGRA
593 #ifndef MGRA
594  if ( fCnewRoot != fCdeleteRoot )
595  {
596  std::cout << "*TEcnaGui> WRONG MANAGEMENT OF ROOT ALLOCATIONS: fCnewRoot = "
597  << fCnewRoot << ", fCdeleteRoot = " << fCdeleteRoot << std::endl;
598  }
599  else
600  {
601  std::cout << "*TEcnaGui> BRAVO! GOOD MANAGEMENT OF ROOT ALLOCATIONS:"
602  << " fCnewRoot = " << fCnewRoot <<", fCdeleteRoot = "
603  << fCdeleteRoot << std::endl;
604  }
605 #endif // MGRA
606 
607  // std::cout << "TEcnaGui> Leaving destructor" << std::endl;
608  // std::cout << " fCnew = " << fCnew << ", fCdelete = " << fCdelete << std::endl;
609 
610  // std::cout << "[Info Management] CLASS: TEcnaGui. DESTROY OBJECT: this = " << this << std::endl;
611 
612 }