CMS 3D CMS Logo

Defines | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/src/TEcnaGui.cc File Reference

#include "CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEcnaGui.h"
#include <cstdlib>

Go to the source code of this file.

Defines

#define DEST
#define MGRA

Functions

 ClassImp (TEcnaGui) TEcnaGui

Define Documentation

#define DEST
#define MGRA

Function Documentation

ClassImp ( TEcnaGui  )

Definition at line 14 of file TEcnaGui.cc.

References gather_cfg::cout.

{
  //destructor

#define DEST
#ifdef DEST
  // cout << "TEcnaGui> Entering destructor" << endl;
  // cout << "            fCnew = " << fCnew << ", fCdelete = " << fCdelete << endl;
 
  //.... general variables 
  //if ( fHistos             != 0 ) {delete fHistos;             fCdelete++;}

  //if ( fCnaParHistos       != 0 ) {delete fCnaParHistos;       fCdelete++;}
  //if ( fCnaParPaths        != 0 ) {delete fCnaParPaths;        fCdelete++;}
  //if ( fEcalNumbering      != 0 ) {delete fEcalNumbering;      fCdelete++;}
  //if ( fEcal               != 0 ) {delete fEcal;               fCdelete++;}

  //.... general frames

  if ( fLayoutGeneral      != 0 ) {delete fLayoutGeneral;      fCdelete++;}
  if ( fLayoutBottLeft     != 0 ) {delete fLayoutBottLeft;     fCdelete++;}
  if ( fLayoutBottRight    != 0 ) {delete fLayoutBottRight;    fCdelete++;}
  if ( fLayoutTopLeft      != 0 ) {delete fLayoutTopLeft;      fCdelete++;}
  if ( fLayoutTopRight     != 0 ) {delete fLayoutTopRight;     fCdelete++;}
  if ( fLayoutCenterYLeft  != 0 ) {delete fLayoutCenterYLeft;  fCdelete++;}
  if ( fLayoutCenterYRight != 0 ) {delete fLayoutCenterYRight; fCdelete++;}
  if ( fLayoutCenterXTop   != 0 ) {delete fLayoutCenterXTop;   fCdelete++;}

  if ( fVoidFrame          != 0 ) {delete fVoidFrame;          fCdelete++;}

  //..... specific frames + buttons + menus

  //++++++++++++++++++++++++++++++ Horizontal frame Analysis + First requested evt number + Run number
  if ( fAnaNorsRunFrame       != 0 ) {delete fAnaNorsRunFrame;       fCdelete++;}
  if ( fLayoutAnaNorsRunFrame != 0 ) {delete fLayoutAnaNorsRunFrame; fCdelete++;}

  //--------------------------------- Sub-Frame Analysis Name (Button+Entry Field)
  if ( fAnaFrame       != 0 ) {delete fAnaFrame;       fCdelete++;}
  if ( fAnaBut         != 0 ) {delete fAnaBut;         fCdelete++;}
  if ( fLayoutAnaBut   != 0 ) {delete fLayoutAnaBut;   fCdelete++;}
  if ( fEntryAnaNumber != 0 ) {delete fEntryAnaNumber; fCdelete++;}
  if ( fAnaText        != 0 ) {fAnaText->Delete();     fCdelete++;}
  if ( fLayoutAnaField != 0 ) {delete fLayoutAnaField; fCdelete++;}

  //------------------- subframe first requested evt number
  if ( fFevFrame            != 0 ) {delete fFevFrame;            fCdelete++;}
  if ( fFevBut              != 0 ) {delete fFevBut;              fCdelete++;}
  if ( fLayoutFevBut        != 0 ) {delete fLayoutFevBut;        fCdelete++;}
  if ( fEntryFevNumber      != 0 ) {delete fEntryFevNumber;      fCdelete++;}
  if ( fFevText             != 0 ) {fFevText->Delete();          fCdelete++;}  
  if ( fLayoutFevFieldText  != 0 ) {delete fLayoutFevFieldText;  fCdelete++;}
  if ( fLayoutFevFieldFrame != 0 ) {delete fLayoutFevFieldFrame; fCdelete++;}

  //-------------------------------- Sub-Frame Run number (Button+Entry Field)  
  if ( fRunFrame       != 0 ) {delete fRunFrame;           fCdelete++;}
  if ( fRunBut         != 0 ) {delete fRunBut;             fCdelete++;}
  if ( fLayoutRunBut   != 0 ) {delete fLayoutRunBut;       fCdelete++;}
  if ( fEntryRunNumber != 0 ) {delete fEntryRunNumber;     fCdelete++;}
  if ( fRunText        != 0 ) {fRunText->Delete();         fCdelete++;}
  if ( fLayoutRunField != 0 ) {delete fLayoutRunField;     fCdelete++;}

  //+++++++++++++++++++++++++++++ Horizontal frame Nb Of Samples + last requested events + Clean + Submit
  if ( fFevLevStexFrame       != 0 ) {delete fFevLevStexFrame;       fCdelete++;}
  if ( fLayoutFevLevStexFrame != 0 ) {delete fLayoutFevLevStexFrame; fCdelete++;}

  //------------------- Sub-Frame Nb of Required Samples (Button+Entry Field)
  if ( fNorsFrame          != 0 ) {delete fNorsFrame;          fCdelete++;}
  if ( fNorsBut            != 0 ) {delete fNorsBut;            fCdelete++;}
  if ( fLayoutNorsBut      != 0 ) {delete fLayoutNorsBut;      fCdelete++;}
  if ( fEntryNorsNumber    != 0 ) {delete fEntryNorsNumber;    fCdelete++;}
  if ( fNorsText           != 0 ) {fNorsText->Delete();        fCdelete++;}
  if ( fLayoutNorsField    != 0 ) {delete fLayoutNorsField;    fCdelete++;}

  //------------------- subframe last requested evt number
  if ( fLevFrame            != 0 ) {delete fLevFrame;            fCdelete++;}
  if ( fLevBut              != 0 ) {delete fLevBut;              fCdelete++;}
  if ( fLayoutLevBut        != 0 ) {delete fLayoutLevBut;        fCdelete++;}
  if ( fEntryLevNumber      != 0 ) {delete fEntryLevNumber;      fCdelete++;}
  if ( fLevText             != 0 ) {fLevText->Delete();          fCdelete++;}
  if ( fLayoutLevFieldText  != 0 ) {delete fLayoutLevFieldText;  fCdelete++;}
  if ( fLayoutLevFieldFrame != 0 ) {delete fLayoutLevFieldFrame; fCdelete++;}

  //................................ Menu for Clean
  if ( fMenuClean          != 0 ) {delete fMenuClean;          fCdelete++;}
  if ( fMenuBarClean       != 0 ) {fMenuBarClean->Delete();    fCdelete++;}
  //................................ Menu for Submit jobs on batch system
  if ( fMenuSubmit         != 0 ) {delete fMenuSubmit;         fCdelete++;}
  if ( fMenuBarSubmit      != 0 ) {fMenuBarSubmit->Delete();   fCdelete++;}

  //+++++++++++++++++++++++++++++++++++++++++++++++++  Horizontal Frame:Stex number + NbOfReqEvts
  if ( fCompStRqFrame       != 0 ) {delete fCompStRqFrame;       fCdelete++;}
  if ( fLayoutCompStRqFrame != 0 ) {delete fLayoutCompStRqFrame; fCdelete++;}

  //------------------- subframe stex number
  if ( fStexFrame            != 0 ) {delete fStexFrame;            fCdelete++;}
  if ( fStexBut              != 0 ) {delete fStexBut;              fCdelete++;}
  if ( fLayoutStexBut        != 0 ) {delete fLayoutStexBut;        fCdelete++;}
  if ( fEntryStexNumber      != 0 ) {delete fEntryStexNumber;      fCdelete++;}
  if ( fStexText             != 0 ) {fStexText->Delete();          fCdelete++;}  
  if ( fLayoutStexFieldText  != 0 ) {delete fLayoutStexFieldText;  fCdelete++;}
  if ( fLayoutStexFieldFrame != 0 ) {delete fLayoutStexFieldFrame; fCdelete++;}

  //------------------- subframe number of requested evts
  if ( fRevFrame            != 0 ) {delete fRevFrame;            fCdelete++;}
  if ( fRevBut              != 0 ) {delete fRevBut;              fCdelete++;}
  if ( fLayoutRevBut        != 0 ) {delete fLayoutRevBut;        fCdelete++;}
  if ( fEntryRevNumber      != 0 ) {delete fEntryRevNumber;      fCdelete++;}
  if ( fRevText             != 0 ) {fRevText->Delete();          fCdelete++;}
  if ( fLayoutRevFieldText  != 0 ) {delete fLayoutRevFieldText;  fCdelete++;}
  if ( fLayoutRevFieldFrame != 0 ) {delete fLayoutRevFieldFrame; fCdelete++;}

  //+++++++++++++++++++++++  Horizontal Frame StexStin numbering + Nb Samp for calc + Calculations
  if ( fCompStnbFrame       != 0 ) {delete fCompStnbFrame;       fCdelete++;}
  if ( fLayoutCompStnbFrame != 0 ) {delete fLayoutCompStnbFrame; fCdelete++;}

  //............................ Stex Stin Numbering view (Button)
  if ( fButStexNb           != 0 ) {delete fButStexNb;           fCdelete++;}
  if ( fLayoutStexNbBut     != 0 ) {delete fLayoutStexNbBut;     fCdelete++;}
  //------------------- subframe NbSampForCalc
  if ( fNbSampForCalcFrame            != 0 ) {delete fNbSampForCalcFrame;            fCdelete++;}
  if ( fNbSampForCalcBut              != 0 ) {delete fNbSampForCalcBut;              fCdelete++;}
  if ( fLayoutNbSampForCalcBut        != 0 ) {delete fLayoutNbSampForCalcBut;        fCdelete++;}
  if ( fEntryNbSampForCalcNumber      != 0 ) {delete fEntryNbSampForCalcNumber;      fCdelete++;}
  if ( fNbSampForCalcText             != 0 ) {fNbSampForCalcText->Delete();          fCdelete++;}  
  if ( fLayoutNbSampForCalcFieldText  != 0 ) {delete fLayoutNbSampForCalcFieldText;  fCdelete++;}
  if ( fLayoutNbSampForCalcFieldFrame != 0 ) {delete fLayoutNbSampForCalcFieldFrame; fCdelete++;}
  //................................ Menus for CALCULATIONS
  if ( fMenuComput          != 0 ) {delete fMenuComput;          fCdelete++;}
  if ( fMenuBarComput       != 0 ) {fMenuBarComput->Delete();    fCdelete++;}

  //+++++++++++++++++++++++++++++++++++++++++++ Frame for quantities relative to the Stex 
  if ( fStexUpFrame          != 0 ) {delete fStexUpFrame;          fCdelete++;}

  //................................ Menus+Ymin+Ymax for the Stex ............................

  //...................................... Nb of evts in the data

  if ( fVmmD_NOE_ChNbFrame            != 0 ) {delete fVmmD_NOE_ChNbFrame;            fCdelete++;}

  if ( fVmaxD_NOE_ChNbFrame           != 0 ) {delete fVmaxD_NOE_ChNbFrame;           fCdelete++;}
  if ( fVmaxD_NOE_ChNbBut             != 0 ) {delete fVmaxD_NOE_ChNbBut;             fCdelete++;}
  if ( fLayoutVmaxD_NOE_ChNbBut       != 0 ) {delete fLayoutVmaxD_NOE_ChNbBut;       fCdelete++;}
  if ( fEntryVmaxD_NOE_ChNbNumber     != 0 ) {delete fEntryVmaxD_NOE_ChNbNumber;     fCdelete++;}
  if ( fVmaxD_NOE_ChNbText            != 0 ) {fVmaxD_NOE_ChNbText->Delete();         fCdelete++;}
  if ( fLayoutVmaxD_NOE_ChNbFieldText != 0 ) {delete fLayoutVmaxD_NOE_ChNbFieldText; fCdelete++;}
  if ( fLayoutVmaxD_NOE_ChNbFrame     != 0 ) {delete fLayoutVmaxD_NOE_ChNbFrame;     fCdelete++;}

  if ( fVminD_NOE_ChNbFrame           != 0 ) {delete fVminD_NOE_ChNbFrame;           fCdelete++;}
  if ( fVminD_NOE_ChNbBut             != 0 ) {delete fVminD_NOE_ChNbBut;             fCdelete++;}
  if ( fLayoutVminD_NOE_ChNbBut       != 0 ) {delete fLayoutVminD_NOE_ChNbBut;       fCdelete++;}
  if ( fEntryVminD_NOE_ChNbNumber     != 0 ) {delete fEntryVminD_NOE_ChNbNumber;     fCdelete++;}
  if ( fVminD_NOE_ChNbText            != 0 ) {fVminD_NOE_ChNbText->Delete();         fCdelete++;}
  if ( fLayoutVminD_NOE_ChNbFieldText != 0 ) {delete fLayoutVminD_NOE_ChNbFieldText; fCdelete++;}
  if ( fLayoutVminD_NOE_ChNbFrame     != 0 ) {delete fLayoutVminD_NOE_ChNbFrame;     fCdelete++;}

  if ( fMenuD_NOE_ChNb                != 0 ) {delete fMenuD_NOE_ChNb;                fCdelete++;}
  if ( fMenuBarD_NOE_ChNb             != 0 ) {fMenuBarD_NOE_ChNb->Delete();          fCdelete++;}
  if ( fVminD_NOE_ChNbText            != 0 ) {fVminD_NOE_ChNbText->Delete();         fCdelete++;}

  if ( fLayoutVmmD_NOE_ChNbFrame      != 0 ) {delete fLayoutVmmD_NOE_ChNbFrame;      fCdelete++;}

  //---------------------------------------------------
  if ( fVmmD_Ped_ChNbFrame            != 0 ) {delete fVmmD_Ped_ChNbFrame;            fCdelete++;}

  if ( fVmaxD_Ped_ChNbFrame           != 0 ) {delete fVmaxD_Ped_ChNbFrame;           fCdelete++;}
  if ( fVmaxD_Ped_ChNbBut             != 0 ) {delete fVmaxD_Ped_ChNbBut;             fCdelete++;}
  if ( fLayoutVmaxD_Ped_ChNbBut       != 0 ) {delete fLayoutVmaxD_Ped_ChNbBut;       fCdelete++;}
  if ( fVmaxD_Ped_ChNbText            != 0 ) {fVmaxD_Ped_ChNbText->Delete();         fCdelete++;}
  if ( fEntryVmaxD_Ped_ChNbNumber     != 0 ) {delete fEntryVmaxD_Ped_ChNbNumber;     fCdelete++;}
  if ( fLayoutVmaxD_Ped_ChNbFieldText != 0 ) {delete fLayoutVmaxD_Ped_ChNbFieldText; fCdelete++;}
  if ( fLayoutVmaxD_Ped_ChNbFrame     != 0 ) {delete fLayoutVmaxD_Ped_ChNbFrame;     fCdelete++;}

  if ( fVminD_Ped_ChNbFrame           != 0 ) {delete fVminD_Ped_ChNbFrame;           fCdelete++;}
  if ( fVminD_Ped_ChNbBut             != 0 ) {delete fVminD_Ped_ChNbBut;             fCdelete++;}
  if ( fLayoutVminD_Ped_ChNbBut       != 0 ) {delete fLayoutVminD_Ped_ChNbBut;       fCdelete++;}
  if ( fVminD_Ped_ChNbText            != 0 ) {fVminD_Ped_ChNbText->Delete();         fCdelete++;}
  if ( fEntryVminD_Ped_ChNbNumber     != 0 ) {delete fEntryVminD_Ped_ChNbNumber;     fCdelete++;}
  if ( fLayoutVminD_Ped_ChNbFieldText != 0 ) {delete fLayoutVminD_Ped_ChNbFieldText; fCdelete++;}
  if ( fLayoutVminD_Ped_ChNbFrame     != 0 ) {delete fLayoutVminD_Ped_ChNbFrame;     fCdelete++;}

  if ( fMenuD_Ped_ChNb                != 0 ) {delete fMenuD_Ped_ChNb;                fCdelete++;}
  if ( fMenuBarD_Ped_ChNb             != 0 ) {fMenuBarD_Ped_ChNb->Delete();          fCdelete++;}
  if ( fLayoutMenuBarD_Ped_ChNb       != 0 ) {delete fLayoutMenuBarD_Ped_ChNb;       fCdelete++;}

  if ( fLayoutVmmD_Ped_ChNbFrame      != 0 ) {delete fLayoutVmmD_Ped_ChNbFrame;      fCdelete++;}

  //----------------------------------------------------
  if ( fVmmD_TNo_ChNbFrame            != 0 ) {delete fVmmD_TNo_ChNbFrame;            fCdelete++;}

  if ( fVmaxD_TNo_ChNbFrame           != 0 ) {delete fVmaxD_TNo_ChNbFrame;           fCdelete++;}
  if ( fVmaxD_TNo_ChNbBut             != 0 ) {delete fVmaxD_TNo_ChNbBut;             fCdelete++;}
  if ( fLayoutVmaxD_TNo_ChNbBut       != 0 ) {delete fLayoutVmaxD_TNo_ChNbBut;       fCdelete++;}
  if ( fVmaxD_TNo_ChNbText            != 0 ) {fVmaxD_TNo_ChNbText->Delete();         fCdelete++;}
  if ( fEntryVmaxD_TNo_ChNbNumber     != 0 ) {delete fEntryVmaxD_TNo_ChNbNumber;     fCdelete++;}
  if ( fLayoutVmaxD_TNo_ChNbFieldText != 0 ) {delete fLayoutVmaxD_TNo_ChNbFieldText; fCdelete++;}
  if ( fLayoutVmaxD_TNo_ChNbFrame     != 0 ) {delete fLayoutVmaxD_TNo_ChNbFrame;     fCdelete++;}
 
  if ( fVminD_TNo_ChNbFrame           != 0 ) {delete fVminD_TNo_ChNbFrame;           fCdelete++;}
  if ( fVminD_TNo_ChNbBut             != 0 ) {delete fVminD_TNo_ChNbBut;             fCdelete++;}
  if ( fLayoutVminD_TNo_ChNbBut       != 0 ) {delete fLayoutVminD_TNo_ChNbBut;       fCdelete++;}
  if ( fVminD_TNo_ChNbText            != 0 ) {fVminD_TNo_ChNbText->Delete();         fCdelete++;}
  if ( fEntryVminD_TNo_ChNbNumber     != 0 ) {delete fEntryVminD_TNo_ChNbNumber;     fCdelete++;}
  if ( fLayoutVminD_TNo_ChNbFieldText != 0 ) {delete fLayoutVminD_TNo_ChNbFieldText; fCdelete++;}
  if ( fLayoutVminD_TNo_ChNbFrame     != 0 ) {delete fLayoutVminD_TNo_ChNbFrame;     fCdelete++;}
 
  if ( fMenuD_TNo_ChNb                != 0 ) {delete fMenuD_TNo_ChNb;                fCdelete++;}
  if ( fMenuBarD_TNo_ChNb             != 0 ) {fMenuBarD_TNo_ChNb->Delete();          fCdelete++;}
  if ( fLayoutMenuBarD_TNo_ChNb       != 0 ) {delete fLayoutMenuBarD_TNo_ChNb;       fCdelete++;}

  if ( fLayoutVmmD_TNo_ChNbFrame      != 0 ) {delete fLayoutVmmD_TNo_ChNbFrame;      fCdelete++;}

  //-----------------------------------------------------------
  if ( fVmmD_MCs_ChNbFrame            != 0 ) {delete fVmmD_MCs_ChNbFrame;            fCdelete++;}

  if ( fVmaxD_MCs_ChNbFrame           != 0 ) {delete fVmaxD_MCs_ChNbFrame;           fCdelete++;}
  if ( fVmaxD_MCs_ChNbBut             != 0 ) {delete fVmaxD_MCs_ChNbBut;             fCdelete++;}
  if ( fLayoutVmaxD_MCs_ChNbBut       != 0 ) {delete fLayoutVmaxD_MCs_ChNbBut;       fCdelete++;}
  if ( fVmaxD_MCs_ChNbText            != 0 ) {fVmaxD_MCs_ChNbText->Delete();         fCdelete++;}
  if ( fEntryVmaxD_MCs_ChNbNumber     != 0 ) {delete fEntryVmaxD_MCs_ChNbNumber;     fCdelete++;}
  if ( fLayoutVmaxD_MCs_ChNbFieldText != 0 ) {delete fLayoutVmaxD_MCs_ChNbFieldText; fCdelete++;}
  if ( fLayoutVmaxD_MCs_ChNbFrame     != 0 ) {delete fLayoutVmaxD_MCs_ChNbFrame;     fCdelete++;}

  if ( fVminD_MCs_ChNbFrame           != 0 ) {delete fVminD_MCs_ChNbFrame;           fCdelete++;}
  if ( fVminD_MCs_ChNbBut             != 0 ) {delete fVminD_MCs_ChNbBut;             fCdelete++;}
  if ( fLayoutVminD_MCs_ChNbBut       != 0 ) {delete fLayoutVminD_MCs_ChNbBut;       fCdelete++;}
  if ( fVminD_MCs_ChNbText            != 0 ) {fVminD_MCs_ChNbText->Delete();         fCdelete++;}
  if ( fEntryVminD_MCs_ChNbNumber     != 0 ) {delete fEntryVminD_MCs_ChNbNumber;     fCdelete++;}
  if ( fLayoutVminD_MCs_ChNbFieldText != 0 ) {delete fLayoutVminD_MCs_ChNbFieldText; fCdelete++;}
  if ( fLayoutVminD_MCs_ChNbFrame     != 0 ) {delete fLayoutVminD_MCs_ChNbFrame;     fCdelete++;}

  if ( fMenuD_MCs_ChNb                != 0 ) {delete fMenuD_MCs_ChNb;                fCdelete++;}
  if ( fMenuBarD_MCs_ChNb             != 0 ) {fMenuBarD_MCs_ChNb->Delete();          fCdelete++;}
  if ( fLayoutMenuBarD_MCs_ChNb       != 0 ) {delete fLayoutMenuBarD_MCs_ChNb;       fCdelete++;}

  if ( fLayoutVmmD_MCs_ChNbFrame      != 0 ) {delete fLayoutVmmD_MCs_ChNbFrame;      fCdelete++;}
  
  //............................................... Frame Sig + Menus Sig
  if ( fStexHozFrame         != 0 ) {delete fStexHozFrame;         fCdelete++;}

  //------------------------------------------------------------- 
  if ( fVmmD_LFN_ChNbFrame            != 0 ) {delete fVmmD_LFN_ChNbFrame;            fCdelete++;}

  if ( fVmaxD_LFN_ChNbFrame           != 0 ) {delete fVmaxD_LFN_ChNbFrame;           fCdelete++;}
  if ( fVmaxD_LFN_ChNbBut             != 0 ) {delete fVmaxD_LFN_ChNbBut;             fCdelete++;}
  if ( fLayoutVmaxD_LFN_ChNbBut       != 0 ) {delete fLayoutVmaxD_LFN_ChNbBut;       fCdelete++;}
  if ( fVmaxD_LFN_ChNbText            != 0 ) {fVmaxD_LFN_ChNbText->Delete();         fCdelete++;}
  if ( fEntryVmaxD_LFN_ChNbNumber     != 0 ) {delete fEntryVmaxD_LFN_ChNbNumber;     fCdelete++;}
  if ( fLayoutVmaxD_LFN_ChNbFieldText != 0 ) {delete fLayoutVmaxD_LFN_ChNbFieldText; fCdelete++;}
  if ( fLayoutVmaxD_LFN_ChNbFrame     != 0 ) {delete fLayoutVmaxD_LFN_ChNbFrame;     fCdelete++;}

  if ( fVminD_LFN_ChNbFrame           != 0 ) {delete fVminD_LFN_ChNbFrame;           fCdelete++;}
  if ( fVminD_LFN_ChNbBut             != 0 ) {delete fVminD_LFN_ChNbBut;             fCdelete++;}
  if ( fLayoutVminD_LFN_ChNbBut       != 0 ) {delete fLayoutVminD_LFN_ChNbBut;       fCdelete++;}
  if ( fVminD_LFN_ChNbText            != 0 ) {fVminD_LFN_ChNbText->Delete();         fCdelete++;}
  if ( fEntryVminD_LFN_ChNbNumber     != 0 ) {delete fEntryVminD_LFN_ChNbNumber;     fCdelete++;}
  if ( fLayoutVminD_LFN_ChNbFieldText != 0 ) {delete fLayoutVminD_LFN_ChNbFieldText; fCdelete++;}
  if ( fLayoutVminD_LFN_ChNbFrame     != 0 ) {delete fLayoutVminD_LFN_ChNbFrame;     fCdelete++;}

  if ( fMenuD_LFN_ChNb                != 0 ) {delete fMenuD_LFN_ChNb;                fCdelete++;}
  if ( fMenuBarD_LFN_ChNb             != 0 ) {fMenuBarD_LFN_ChNb->Delete();          fCdelete++;}
  if ( fLayoutMenuBarD_LFN_ChNb       != 0 ) {delete fLayoutMenuBarD_LFN_ChNb;       fCdelete++;}

  if ( fLayoutVmmD_LFN_ChNbFrame      != 0 ) {delete fLayoutVmmD_LFN_ChNbFrame;      fCdelete++;}

  //-------------------------------------------------------------
  if ( fVmmD_HFN_ChNbFrame            != 0 ) {delete fVmmD_HFN_ChNbFrame;            fCdelete++;}

  if ( fVmaxD_HFN_ChNbFrame           != 0 ) {delete fVmaxD_HFN_ChNbFrame;           fCdelete++;}
  if ( fVmaxD_HFN_ChNbBut             != 0 ) {delete fVmaxD_HFN_ChNbBut;             fCdelete++;}
  if ( fLayoutVmaxD_HFN_ChNbBut       != 0 ) {delete fLayoutVmaxD_HFN_ChNbBut;       fCdelete++;}
  if ( fVmaxD_HFN_ChNbText            != 0 ) {fVmaxD_HFN_ChNbText->Delete();         fCdelete++;}
  if ( fEntryVmaxD_HFN_ChNbNumber     != 0 ) {delete fEntryVmaxD_HFN_ChNbNumber;     fCdelete++;}
  if ( fLayoutVmaxD_HFN_ChNbFieldText != 0 ) {delete fLayoutVmaxD_HFN_ChNbFieldText; fCdelete++;}
  if ( fLayoutVmaxD_HFN_ChNbFrame     != 0 ) {delete fLayoutVmaxD_HFN_ChNbFrame;     fCdelete++;}

  if ( fVminD_HFN_ChNbFrame           != 0 ) {delete fVminD_HFN_ChNbFrame;           fCdelete++;}
  if ( fVminD_HFN_ChNbBut             != 0 ) {delete fVminD_HFN_ChNbBut;             fCdelete++;}
  if ( fLayoutVminD_HFN_ChNbBut       != 0 ) {delete fLayoutVminD_HFN_ChNbBut;       fCdelete++;}
  if ( fVminD_HFN_ChNbText            != 0 ) {fVminD_HFN_ChNbText->Delete();         fCdelete++;}
  if ( fEntryVminD_HFN_ChNbNumber     != 0 ) {delete fEntryVminD_HFN_ChNbNumber;     fCdelete++;}
  if ( fLayoutVminD_HFN_ChNbFieldText != 0 ) {delete fLayoutVminD_HFN_ChNbFieldText; fCdelete++;}
  if ( fLayoutVminD_HFN_ChNbFrame     != 0 ) {delete fLayoutVminD_HFN_ChNbFrame;     fCdelete++;}

  if ( fMenuD_HFN_ChNb                != 0 ) {delete fMenuD_HFN_ChNb;                fCdelete++;}
  if ( fMenuBarD_HFN_ChNb             != 0 ) {fMenuBarD_HFN_ChNb->Delete();          fCdelete++;}
  if ( fLayoutMenuBarD_HFN_ChNb       != 0 ) {delete fLayoutMenuBarD_HFN_ChNb;       fCdelete++;}

  if ( fLayoutVmmD_HFN_ChNbFrame      != 0 ) {delete fLayoutVmmD_HFN_ChNbFrame;      fCdelete++;}

  //-------------------------------------------------------------
  if ( fVmmD_SCs_ChNbFrame            != 0 ) {delete fVmmD_SCs_ChNbFrame;            fCdelete++;}

  if ( fVmaxD_SCs_ChNbFrame           != 0 ) {delete fVmaxD_SCs_ChNbFrame;           fCdelete++;}
  if ( fVmaxD_SCs_ChNbBut             != 0 ) {delete fVmaxD_SCs_ChNbBut;             fCdelete++;}
  if ( fLayoutVmaxD_SCs_ChNbBut       != 0 ) {delete fLayoutVmaxD_SCs_ChNbBut;       fCdelete++;}
  if ( fVmaxD_SCs_ChNbText            != 0 ) {fVmaxD_SCs_ChNbText->Delete();         fCdelete++;}
  if ( fEntryVmaxD_SCs_ChNbNumber     != 0 ) {delete fEntryVmaxD_SCs_ChNbNumber;     fCdelete++;}
  if ( fLayoutVmaxD_SCs_ChNbFieldText != 0 ) {delete fLayoutVmaxD_SCs_ChNbFieldText; fCdelete++;}
  if ( fLayoutVmaxD_SCs_ChNbFrame     != 0 ) {delete fLayoutVmaxD_SCs_ChNbFrame;     fCdelete++;}

  if ( fVminD_SCs_ChNbFrame           != 0 ) {delete fVminD_SCs_ChNbFrame;           fCdelete++;}
  if ( fVminD_SCs_ChNbBut             != 0 ) {delete fVminD_SCs_ChNbBut;             fCdelete++;}
  if ( fLayoutVminD_SCs_ChNbBut       != 0 ) {delete fLayoutVminD_SCs_ChNbBut;       fCdelete++;}
  if ( fVminD_SCs_ChNbText            != 0 ) {fVminD_SCs_ChNbText->Delete();         fCdelete++;}
  if ( fEntryVminD_SCs_ChNbNumber     != 0 ) {delete fEntryVminD_SCs_ChNbNumber;     fCdelete++;}
  if ( fLayoutVminD_SCs_ChNbFieldText != 0 ) {delete fLayoutVminD_SCs_ChNbFieldText; fCdelete++;}
  if ( fLayoutVminD_SCs_ChNbFrame     != 0 ) {delete fLayoutVminD_SCs_ChNbFrame;     fCdelete++;}

  if ( fMenuD_SCs_ChNb                != 0 ) {delete fMenuD_SCs_ChNb;                fCdelete++;}
  if ( fMenuBarD_SCs_ChNb             != 0 ) {fMenuBarD_SCs_ChNb->Delete();          fCdelete++;}
  if ( fLayoutMenuBarD_SCs_ChNb       != 0 ) {delete fLayoutMenuBarD_SCs_ChNb;       fCdelete++;}

  if ( fLayoutVmmD_SCs_ChNbFrame      != 0 ) {delete fLayoutVmmD_SCs_ChNbFrame;      fCdelete++;}
  //-------------------------------------------------------------
  if ( fLayoutStexHozFrame          != 0 ) {delete fLayoutStexHozFrame;          fCdelete++;}

  //----------------------------------------------------------------------------------------------

  //...................................... Covariances between Stins
  if ( fVmmLHFccFrame            != 0 ) {delete fVmmLHFccFrame;            fCdelete++;}

  if ( fVmaxLHFccFrame           != 0 ) {delete fVmaxLHFccFrame;           fCdelete++;}
  if ( fVmaxLHFccBut             != 0 ) {delete fVmaxLHFccBut;             fCdelete++;}
  if ( fLayoutVmaxLHFccBut       != 0 ) {delete fLayoutVmaxLHFccBut;       fCdelete++;}
  if ( fVmaxLHFccText            != 0 ) {fVmaxLHFccText->Delete();         fCdelete++;}
  if ( fEntryVmaxLHFccNumber     != 0 ) {delete fEntryVmaxLHFccNumber;     fCdelete++;}
  if ( fLayoutVmaxLHFccFieldText != 0 ) {delete fLayoutVmaxLHFccFieldText; fCdelete++;}
  if ( fLayoutVmaxLHFccFrame     != 0 ) {delete fLayoutVmaxLHFccFrame;     fCdelete++;}

  if ( fVminLHFccFrame           != 0 ) {delete fVminLHFccFrame;           fCdelete++;}
  if ( fVminLHFccBut             != 0 ) {delete fVminLHFccBut;             fCdelete++;}
  if ( fLayoutVminLHFccBut       != 0 ) {delete fLayoutVminLHFccBut;       fCdelete++;}
  if ( fVminLHFccText            != 0 ) {fVminLHFccText->Delete();         fCdelete++;}
  if ( fEntryVminLHFccNumber     != 0 ) {delete fEntryVminLHFccNumber;     fCdelete++;}
  if ( fLayoutVminLHFccFieldText != 0 ) {delete fLayoutVminLHFccFieldText; fCdelete++;}
  if ( fLayoutVminLHFccFrame     != 0 ) {delete fLayoutVminLHFccFrame;     fCdelete++;}

  if ( fMenuLHFcc             != 0 ) {delete fMenuLHFcc;             fCdelete++;}
  if ( fMenuBarLHFcc          != 0 ) {fMenuBarLHFcc->Delete();       fCdelete++;}
  if ( fLayoutMenuBarLHFcc    != 0 ) {delete fLayoutMenuBarLHFcc;    fCdelete++;}

  if ( fLayoutVmmLHFccFrame      != 0 ) {delete fLayoutVmmLHFccFrame;      fCdelete++;}

  //...................................... Low Freq Cor(c,c') for each pair of Stins  
  if ( fVmmLFccMosFrame            != 0 ) {delete fVmmLFccMosFrame;            fCdelete++;}

  if ( fVmaxLFccMosFrame           != 0 ) {delete fVmaxLFccMosFrame;           fCdelete++;}
  if ( fVmaxLFccMosBut             != 0 ) {delete fVmaxLFccMosBut;             fCdelete++;}
  if ( fLayoutVmaxLFccMosBut       != 0 ) {delete fLayoutVmaxLFccMosBut;       fCdelete++;}
  if ( fVmaxLFccMosText            != 0 ) {fVmaxLFccMosText->Delete();         fCdelete++;}
  if ( fEntryVmaxLFccMosNumber     != 0 ) {delete fEntryVmaxLFccMosNumber;     fCdelete++;}
  if ( fLayoutVmaxLFccMosFieldText != 0 ) {delete fLayoutVmaxLFccMosFieldText; fCdelete++;}
  if ( fLayoutVmaxLFccMosFrame     != 0 ) {delete fLayoutVmaxLFccMosFrame;     fCdelete++;}

  if ( fVminLFccMosFrame           != 0 ) {delete fVminLFccMosFrame;           fCdelete++;}
  if ( fVminLFccMosBut             != 0 ) {delete fVminLFccMosBut;             fCdelete++;}
  if ( fLayoutVminLFccMosBut       != 0 ) {delete fLayoutVminLFccMosBut;       fCdelete++;}
  if ( fVminLFccMosText            != 0 ) {fVminLFccMosText->Delete();         fCdelete++;}
  if ( fEntryVminLFccMosNumber     != 0 ) {delete fEntryVminLFccMosNumber;     fCdelete++;}
  if ( fLayoutVminLFccMosFieldText != 0 ) {delete fLayoutVminLFccMosFieldText; fCdelete++;}
  if ( fLayoutVminLFccMosFrame     != 0 ) {delete fLayoutVminLFccMosFrame;     fCdelete++;}

  if ( fMenuLFccMos                  != 0 ) {delete fMenuLFccMos;                  fCdelete++;}
  if ( fMenuBarLFccMos               != 0 ) {fMenuBarLFccMos->Delete();            fCdelete++;}
  if ( fLayoutMenuBarLFccMos         != 0 ) {delete fLayoutMenuBarLFccMos;         fCdelete++;}

  if ( fLayoutVmmLFccMosFrame      != 0 ) {delete fLayoutVmmLFccMosFrame;      fCdelete++;}

  //...................................... High Freq Cor(c,c') for each pair of Stins  
  if ( fVmmHFccMosFrame            != 0 ) {delete fVmmHFccMosFrame;            fCdelete++;}

  if ( fVmaxHFccMosFrame           != 0 ) {delete fVmaxHFccMosFrame;           fCdelete++;}
  if ( fVmaxHFccMosBut             != 0 ) {delete fVmaxHFccMosBut;             fCdelete++;}
  if ( fLayoutVmaxHFccMosBut       != 0 ) {delete fLayoutVmaxHFccMosBut;       fCdelete++;}
  if ( fVmaxHFccMosText            != 0 ) {fVmaxHFccMosText->Delete();         fCdelete++;}
  if ( fEntryVmaxHFccMosNumber     != 0 ) {delete fEntryVmaxHFccMosNumber;     fCdelete++;}
  if ( fLayoutVmaxHFccMosFieldText != 0 ) {delete fLayoutVmaxHFccMosFieldText; fCdelete++;}
  if ( fLayoutVmaxHFccMosFrame     != 0 ) {delete fLayoutVmaxHFccMosFrame;     fCdelete++;}

  if ( fVminHFccMosFrame           != 0 ) {delete fVminHFccMosFrame;           fCdelete++;}
  if ( fVminHFccMosBut             != 0 ) {delete fVminHFccMosBut;             fCdelete++;}
  if ( fLayoutVminHFccMosBut       != 0 ) {delete fLayoutVminHFccMosBut;       fCdelete++;}
  if ( fVminHFccMosText            != 0 ) {fVminHFccMosText->Delete();         fCdelete++;}
  if ( fEntryVminHFccMosNumber     != 0 ) {delete fEntryVminHFccMosNumber;     fCdelete++;}
  if ( fLayoutVminHFccMosFieldText != 0 ) {delete fLayoutVminHFccMosFieldText; fCdelete++;}
  if ( fLayoutVminHFccMosFrame     != 0 ) {delete fLayoutVminHFccMosFrame;     fCdelete++;}

  if ( fMenuHFccMos                != 0 ) {delete fMenuHFccMos;                fCdelete++;}
  if ( fMenuBarHFccMos             != 0 ) {fMenuBarHFccMos->Delete();          fCdelete++;}
  if ( fLayoutMenuBarHFccMos       != 0 ) {delete fLayoutMenuBarHFccMos;       fCdelete++;}

  if ( fLayoutVmmHFccMosFrame      != 0 ) {delete fLayoutVmmHFccMosFrame;      fCdelete++;}

  if ( fLayoutStexUpFrame          != 0 ) {delete fLayoutStexUpFrame;          fCdelete++;}

  //+++++++++++++++++++++++++++++++++++++++++ Horizontal frame Stin_A + Stin_B
  if ( fStinSpFrame       != 0 ) {delete fStinSpFrame;         fCdelete++;}
  
  //----------------------------------- SubFrame Stin_A (Button + EntryField)
  if ( fTxSubFrame        != 0 ) {delete fTxSubFrame;          fCdelete++;}

  if ( fStinAFrame        != 0 ) {delete fStinAFrame;          fCdelete++;}
  if ( fStinABut          != 0 ) {delete fStinABut;            fCdelete++;}
  if ( fLayoutStinABut    != 0 ) {delete fLayoutStinABut;      fCdelete++;} 
  if ( fEntryStinANumber  != 0 ) {delete fEntryStinANumber;    fCdelete++;}
  if ( fStinAText         != 0 ) {fStinAText->Delete();        fCdelete++;} 
  if ( fLayoutStinAField  != 0 ) {delete fLayoutStinAField;    fCdelete++;} 

  //............................ Stin Crystal Numbering view (Button)
  if ( fButChNb          != 0 ) {delete fButChNb;            fCdelete++;}
  if ( fLayoutChNbBut    != 0 ) {delete fLayoutChNbBut;      fCdelete++;} 

  //............................ Menus Stin_A
  if ( fMenuCorssAll     != 0 ) {delete fMenuCorssAll;       fCdelete++;}
  if ( fMenuBarCorssAll  != 0 ) {fMenuBarCorssAll->Delete(); fCdelete++;}

  //if ( fMenuCovssAll     != 0 ) {delete fMenuCovssAll;       fCdelete++;}
  //if ( fMenuBarCovssAll  != 0 ) {fMenuBarCovssAll->Delete(); fCdelete++;}

  if ( fLayoutTxSubFrame != 0 ) {delete fLayoutTxSubFrame;   fCdelete++;}

  //----------------------------------- SubFrame Stin_B (Button + EntryField)

  if ( fTySubFrame        != 0 ) {delete fTySubFrame;        fCdelete++;}

  if ( fStinBFrame        != 0 ) {delete fStinBFrame;        fCdelete++;}
  if ( fStinBBut          != 0 ) {delete fStinBBut;          fCdelete++;}
  if ( fLayoutStinBBut    != 0 ) {delete fLayoutStinBBut;    fCdelete++;}
  if ( fEntryStinBNumber  != 0 ) {delete fEntryStinBNumber;  fCdelete++;}
  if ( fStinBText         != 0 ) {fStinBText->Delete();      fCdelete++;}
  if ( fLayoutStinBField  != 0 ) {delete fLayoutStinBField;  fCdelete++;}

  if ( fLayoutTySubFrame  != 0 ) {delete fLayoutTySubFrame;  fCdelete++;}

  if ( fLayoutStinSpFrame != 0 ) {delete fLayoutStinSpFrame; fCdelete++;}

  //.................................. Menus for Horizontal frame (Stin_A + Stin_B)

  if ( fMenuLFCorcc     != 0 ) {delete fMenuLFCorcc;        fCdelete++;}
  if ( fMenuBarLFCorcc  != 0 ) {fMenuBarLFCorcc->Delete();  fCdelete++;}

  if ( fMenuHFCorcc     != 0 ) {delete fMenuHFCorcc;        fCdelete++;}
  if ( fMenuBarHFCorcc  != 0 ) {fMenuBarHFCorcc->Delete();  fCdelete++;}

  //++++++++++++++++++++++++ Horizontal frame channel number (Stin_A crystal number) + sample number
  if ( fChSpFrame        != 0 ) {delete fChSpFrame;         fCdelete++;}

  //------------------------------------- SubFrame Channel (Button + EntryField)

  if ( fChSubFrame       != 0 ) {delete fChSubFrame;        fCdelete++;}

  if ( fChanFrame        != 0 ) {delete fChanFrame;         fCdelete++;}
  if ( fChanBut          != 0 ) {delete fChanBut;           fCdelete++;}
  if ( fLayoutChanBut    != 0 ) {delete fLayoutChanBut;     fCdelete++;}
  if ( fEntryChanNumber  != 0 ) {delete fEntryChanNumber;   fCdelete++;}
  if ( fChanText         != 0 ) {fChanText->Delete();       fCdelete++;}
  if ( fLayoutChanField  != 0 ) {delete fLayoutChanField;   fCdelete++;}

  //................................ Menus Stin_A crystal number
  if ( fMenuCorss        != 0 ) {delete fMenuCorss;         fCdelete++;}
  if ( fMenuBarCorss     != 0 ) {fMenuBarCorss->Delete();   fCdelete++;}

  if ( fMenuCovss        != 0 ) {delete fMenuCovss;         fCdelete++;}
  if ( fMenuBarCovss     != 0 ) {fMenuBarCovss->Delete();   fCdelete++;}

  if ( fMenuD_MSp_SpNb    != 0 ) {delete fMenuD_MSp_SpNb;       fCdelete++;}
  if ( fMenuBarD_MSp_SpNb != 0 ) {fMenuBarD_MSp_SpNb->Delete(); fCdelete++;}
  if ( fMenuD_MSp_SpDs    != 0 ) {delete fMenuD_MSp_SpDs;       fCdelete++;}
  if ( fMenuBarD_MSp_SpDs != 0 ) {fMenuBarD_MSp_SpDs->Delete(); fCdelete++;}

  if ( fMenuD_SSp_SpNb    != 0 ) {delete fMenuD_SSp_SpNb;       fCdelete++;}
  if ( fMenuBarD_SSp_SpNb != 0 ) {fMenuBarD_SSp_SpNb->Delete(); fCdelete++;}
  if ( fMenuD_SSp_SpDs    != 0 ) {delete fMenuD_SSp_SpDs;       fCdelete++;}
  if ( fMenuBarD_SSp_SpDs != 0 ) {fMenuBarD_SSp_SpDs->Delete(); fCdelete++;}

  if ( fLayoutChSubFrame != 0 ) {delete fLayoutChSubFrame;  fCdelete++;}

  //------------------------------------ SubFrame Sample (Button + EntryField)
  if ( fSpSubFrame       != 0 ) {delete fSpSubFrame;        fCdelete++;}
  if ( fSampFrame        != 0 ) {delete fSampFrame;         fCdelete++;}
  if ( fSampBut          != 0 ) {delete fSampBut;           fCdelete++;}
  if ( fLayoutSampBut    != 0 ) {delete fLayoutSampBut;     fCdelete++;}
  if ( fEntrySampNumber  != 0 ) {delete fEntrySampNumber;   fCdelete++;}
  if ( fSampText         != 0 ) {fSampText->Delete();       fCdelete++;}
  if ( fLayoutSampField  != 0 ) {delete fLayoutSampField;   fCdelete++;}
  if ( fLayoutSpSubFrame != 0 ) {delete fLayoutSpSubFrame;  fCdelete++;}

  //................................ Menus Sample number

  //     (no menu in this SubFrame)

  if ( fLayoutChSpFrame  != 0 ) {delete fLayoutChSpFrame;   fCdelete++;}

  //++++++++++++++++++++++++++++++++++++ Menu Event Distribution
  if ( fMenuAdcProj            != 0 ) {delete fMenuAdcProj;            fCdelete++;}
  if ( fMenuBarAdcProj         != 0 ) {fMenuBarAdcProj->Delete();      fCdelete++;}
  if ( fLayoutMenuBarAdcProj   != 0 ) {delete fLayoutMenuBarAdcProj;   fCdelete++;}

  //++++++++++++++++++++++++++++++++++++ Frame: Run List (Rul) (Button + EntryField)
  if ( fRulFrame            != 0 ) {delete fRulFrame;            fCdelete++;}
  if ( fRulBut              != 0 ) {delete fRulBut;              fCdelete++;}
  if ( fLayoutRulBut        != 0 ) {delete fLayoutRulBut;        fCdelete++;}
  if ( fEntryRulNumber      != 0 ) {delete fEntryRulNumber;      fCdelete++;}
  if ( fRulText             != 0 ) {fRulText->Delete();          fCdelete++;}
  if ( fLayoutRulFieldText  != 0 ) {delete fLayoutRulFieldText;  fCdelete++;}
  if ( fLayoutRulFieldFrame != 0 ) {delete fLayoutRulFieldFrame; fCdelete++;}

  //................................ Menus for time evolution
  if ( fMenuHistory         != 0 ) {delete fMenuHistory;         fCdelete++;}
  if ( fMenuBarHistory      != 0 ) {fMenuBarHistory->Delete();   fCdelete++;}

  //++++++++++++++++++++++++++++++++++++ LinLog Frame
  if ( fLinLogFrame   != 0 ) {delete fLinLogFrame;   fCdelete++;}

  //---------------------------------- Lin/Log X
  if ( fButLogx         != 0 ) {delete fButLogx;         fCdelete++;}
  if ( fLayoutLogxBut   != 0 ) {delete fLayoutLogxBut;   fCdelete++;}
  //---------------------------------- Lin/Log Y
  if ( fButLogy         != 0 ) {delete fButLogy;         fCdelete++;}
  if ( fLayoutLogyBut   != 0 ) {delete fLayoutLogyBut;   fCdelete++;} 
  //---------------------------------- Proj Y
  if ( fButProjy        != 0 ) {delete fButProjy;        fCdelete++;}
  if ( fLayoutProjyBut  != 0 ) {delete fLayoutProjyBut;  fCdelete++;} 

  //++++++++++++++++++++++++++++++++++++ Frame: General Title (Gent) (Button + EntryField)
  if ( fGentFrame            != 0 ) {delete fGentFrame;            fCdelete++;}
  if ( fGentBut              != 0 ) {delete fGentBut;              fCdelete++;}
  if ( fLayoutGentBut        != 0 ) {delete fLayoutGentBut;        fCdelete++;}
  if ( fEntryGentNumber      != 0 ) {delete fEntryGentNumber;      fCdelete++;}
  if ( fGentText             != 0 ) {fGentText->Delete();          fCdelete++;}
  if ( fLayoutGentFieldText  != 0 ) {delete fLayoutGentFieldText;  fCdelete++;}
  if ( fLayoutGentFieldFrame != 0 ) {delete fLayoutGentFieldFrame; fCdelete++;}

  //++++++++++++++++++++++++++++++++++++ Color + EXIT BUTTON
  if ( fColorExitFrame       != 0 ) {delete fColorExitFrame;       fCdelete++;}
  if ( fLayoutColorExitFrame != 0 ) {delete fLayoutColorExitFrame; fCdelete++;}

  //---------------------------------- Color Palette
  if ( fButColPal       != 0 ) {delete fButColPal;       fCdelete++;}
  if ( fLayoutColPalBut != 0 ) {delete fLayoutColPalBut; fCdelete++;}
  //---------------------------------- Exit
  if ( fButExit       != 0 ) {delete fButExit;       fCdelete++;}
  if ( fLayoutExitBut != 0 ) {delete fLayoutExitBut; fCdelete++;}
 
  //++++++++++++++++++++++++++++++++++++ Last Frame
  if ( fLastFrame     != 0 ) {delete fLastFrame;     fCdelete++;}

  //--------------------------------- Clone Last Canvas (Button)
  if ( fButClone       != 0 ) {delete fButClone;       fCdelete++;}
  if ( fLayoutCloneBut != 0 ) {delete fLayoutCloneBut; fCdelete++;}

  //--------------------------------- Root version (Button)
  if ( fButRoot       != 0 ) {delete fButRoot;       fCdelete++;}
  if ( fLayoutRootBut != 0 ) {delete fLayoutRootBut; fCdelete++;}

  //--------------------------------- Help (Button)
  if ( fButHelp       != 0 ) {delete fButHelp;       fCdelete++;}
  if ( fLayoutHelpBut != 0 ) {delete fLayoutHelpBut; fCdelete++;}

  //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  if ( fCnew != fCdelete )
    {
      cout << "*TEcnaGui> WRONG MANAGEMENT OF ALLOCATIONS: fCnew = "
           << fCnew << ", fCdelete = " << fCdelete << endl;
    }
  else
    {
      //cout << "*TEcnaGui> BRAVO! GOOD MANAGEMENT OF ALLOCATIONS: fCnew = "
      //   << fCnew << ", fCdelete = " << fCdelete << endl;
    }

#endif // DEST

#define MGRA
#ifndef MGRA
  if ( fCnewRoot != fCdeleteRoot )
    {
      cout << "*TEcnaGui> WRONG MANAGEMENT OF ROOT ALLOCATIONS: fCnewRoot = "
           << fCnewRoot << ", fCdeleteRoot = " << fCdeleteRoot << endl;
    }
  else
    {
      cout << "*TEcnaGui> BRAVO! GOOD MANAGEMENT OF ROOT ALLOCATIONS:"
           << " fCnewRoot = " << fCnewRoot <<", fCdeleteRoot = "
           << fCdeleteRoot << endl;
    }
#endif // MGRA

  // cout << "TEcnaGui> Leaving destructor" << endl;
  // cout << "            fCnew = " << fCnew << ", fCdelete = " << fCdelete << endl;

  // cout << "[Info Management] CLASS: TEcnaGui.           DESTROY OBJECT: this = " << this << endl;

}