00001
00002
00003
00004
00005 #include "CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEcnaGui.h"
00006 #include <cstdlib>
00007
00008
00009
00010
00011
00012
00013
00014 ClassImp(TEcnaGui)
00015
00016
00017
00018 TEcnaGui::~TEcnaGui()
00019 {
00020
00021
00022 #define DEST
00023 #ifdef DEST
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 if ( fLayoutGeneral != 0 ) {delete fLayoutGeneral; fCdelete++;}
00038 if ( fLayoutBottLeft != 0 ) {delete fLayoutBottLeft; fCdelete++;}
00039 if ( fLayoutBottRight != 0 ) {delete fLayoutBottRight; fCdelete++;}
00040 if ( fLayoutTopLeft != 0 ) {delete fLayoutTopLeft; fCdelete++;}
00041 if ( fLayoutTopRight != 0 ) {delete fLayoutTopRight; fCdelete++;}
00042 if ( fLayoutCenterYLeft != 0 ) {delete fLayoutCenterYLeft; fCdelete++;}
00043 if ( fLayoutCenterYRight != 0 ) {delete fLayoutCenterYRight; fCdelete++;}
00044 if ( fLayoutCenterXTop != 0 ) {delete fLayoutCenterXTop; fCdelete++;}
00045
00046 if ( fVoidFrame != 0 ) {delete fVoidFrame; fCdelete++;}
00047
00048
00049
00050
00051 if ( fAnaNorsRunFrame != 0 ) {delete fAnaNorsRunFrame; fCdelete++;}
00052 if ( fLayoutAnaNorsRunFrame != 0 ) {delete fLayoutAnaNorsRunFrame; fCdelete++;}
00053
00054
00055 if ( fAnaFrame != 0 ) {delete fAnaFrame; fCdelete++;}
00056 if ( fAnaBut != 0 ) {delete fAnaBut; fCdelete++;}
00057 if ( fLayoutAnaBut != 0 ) {delete fLayoutAnaBut; fCdelete++;}
00058 if ( fEntryAnaNumber != 0 ) {delete fEntryAnaNumber; fCdelete++;}
00059 if ( fAnaText != 0 ) {fAnaText->Delete(); fCdelete++;}
00060 if ( fLayoutAnaField != 0 ) {delete fLayoutAnaField; fCdelete++;}
00061
00062
00063 if ( fFevFrame != 0 ) {delete fFevFrame; fCdelete++;}
00064 if ( fFevBut != 0 ) {delete fFevBut; fCdelete++;}
00065 if ( fLayoutFevBut != 0 ) {delete fLayoutFevBut; fCdelete++;}
00066 if ( fEntryFevNumber != 0 ) {delete fEntryFevNumber; fCdelete++;}
00067 if ( fFevText != 0 ) {fFevText->Delete(); fCdelete++;}
00068 if ( fLayoutFevFieldText != 0 ) {delete fLayoutFevFieldText; fCdelete++;}
00069 if ( fLayoutFevFieldFrame != 0 ) {delete fLayoutFevFieldFrame; fCdelete++;}
00070
00071
00072 if ( fRunFrame != 0 ) {delete fRunFrame; fCdelete++;}
00073 if ( fRunBut != 0 ) {delete fRunBut; fCdelete++;}
00074 if ( fLayoutRunBut != 0 ) {delete fLayoutRunBut; fCdelete++;}
00075 if ( fEntryRunNumber != 0 ) {delete fEntryRunNumber; fCdelete++;}
00076 if ( fRunText != 0 ) {fRunText->Delete(); fCdelete++;}
00077 if ( fLayoutRunField != 0 ) {delete fLayoutRunField; fCdelete++;}
00078
00079
00080 if ( fFevLevStexFrame != 0 ) {delete fFevLevStexFrame; fCdelete++;}
00081 if ( fLayoutFevLevStexFrame != 0 ) {delete fLayoutFevLevStexFrame; fCdelete++;}
00082
00083
00084 if ( fNorsFrame != 0 ) {delete fNorsFrame; fCdelete++;}
00085 if ( fNorsBut != 0 ) {delete fNorsBut; fCdelete++;}
00086 if ( fLayoutNorsBut != 0 ) {delete fLayoutNorsBut; fCdelete++;}
00087 if ( fEntryNorsNumber != 0 ) {delete fEntryNorsNumber; fCdelete++;}
00088 if ( fNorsText != 0 ) {fNorsText->Delete(); fCdelete++;}
00089 if ( fLayoutNorsField != 0 ) {delete fLayoutNorsField; fCdelete++;}
00090
00091
00092 if ( fLevFrame != 0 ) {delete fLevFrame; fCdelete++;}
00093 if ( fLevBut != 0 ) {delete fLevBut; fCdelete++;}
00094 if ( fLayoutLevBut != 0 ) {delete fLayoutLevBut; fCdelete++;}
00095 if ( fEntryLevNumber != 0 ) {delete fEntryLevNumber; fCdelete++;}
00096 if ( fLevText != 0 ) {fLevText->Delete(); fCdelete++;}
00097 if ( fLayoutLevFieldText != 0 ) {delete fLayoutLevFieldText; fCdelete++;}
00098 if ( fLayoutLevFieldFrame != 0 ) {delete fLayoutLevFieldFrame; fCdelete++;}
00099
00100
00101 if ( fMenuClean != 0 ) {delete fMenuClean; fCdelete++;}
00102 if ( fMenuBarClean != 0 ) {fMenuBarClean->Delete(); fCdelete++;}
00103
00104 if ( fMenuSubmit != 0 ) {delete fMenuSubmit; fCdelete++;}
00105 if ( fMenuBarSubmit != 0 ) {fMenuBarSubmit->Delete(); fCdelete++;}
00106
00107
00108 if ( fCompStRqFrame != 0 ) {delete fCompStRqFrame; fCdelete++;}
00109 if ( fLayoutCompStRqFrame != 0 ) {delete fLayoutCompStRqFrame; fCdelete++;}
00110
00111
00112 if ( fStexFrame != 0 ) {delete fStexFrame; fCdelete++;}
00113 if ( fStexBut != 0 ) {delete fStexBut; fCdelete++;}
00114 if ( fLayoutStexBut != 0 ) {delete fLayoutStexBut; fCdelete++;}
00115 if ( fEntryStexNumber != 0 ) {delete fEntryStexNumber; fCdelete++;}
00116 if ( fStexText != 0 ) {fStexText->Delete(); fCdelete++;}
00117 if ( fLayoutStexFieldText != 0 ) {delete fLayoutStexFieldText; fCdelete++;}
00118 if ( fLayoutStexFieldFrame != 0 ) {delete fLayoutStexFieldFrame; fCdelete++;}
00119
00120
00121 if ( fRevFrame != 0 ) {delete fRevFrame; fCdelete++;}
00122 if ( fRevBut != 0 ) {delete fRevBut; fCdelete++;}
00123 if ( fLayoutRevBut != 0 ) {delete fLayoutRevBut; fCdelete++;}
00124 if ( fEntryRevNumber != 0 ) {delete fEntryRevNumber; fCdelete++;}
00125 if ( fRevText != 0 ) {fRevText->Delete(); fCdelete++;}
00126 if ( fLayoutRevFieldText != 0 ) {delete fLayoutRevFieldText; fCdelete++;}
00127 if ( fLayoutRevFieldFrame != 0 ) {delete fLayoutRevFieldFrame; fCdelete++;}
00128
00129
00130 if ( fCompStnbFrame != 0 ) {delete fCompStnbFrame; fCdelete++;}
00131 if ( fLayoutCompStnbFrame != 0 ) {delete fLayoutCompStnbFrame; fCdelete++;}
00132
00133
00134 if ( fButStexNb != 0 ) {delete fButStexNb; fCdelete++;}
00135 if ( fLayoutStexNbBut != 0 ) {delete fLayoutStexNbBut; fCdelete++;}
00136
00137 if ( fNbSampForCalcFrame != 0 ) {delete fNbSampForCalcFrame; fCdelete++;}
00138 if ( fNbSampForCalcBut != 0 ) {delete fNbSampForCalcBut; fCdelete++;}
00139 if ( fLayoutNbSampForCalcBut != 0 ) {delete fLayoutNbSampForCalcBut; fCdelete++;}
00140 if ( fEntryNbSampForCalcNumber != 0 ) {delete fEntryNbSampForCalcNumber; fCdelete++;}
00141 if ( fNbSampForCalcText != 0 ) {fNbSampForCalcText->Delete(); fCdelete++;}
00142 if ( fLayoutNbSampForCalcFieldText != 0 ) {delete fLayoutNbSampForCalcFieldText; fCdelete++;}
00143 if ( fLayoutNbSampForCalcFieldFrame != 0 ) {delete fLayoutNbSampForCalcFieldFrame; fCdelete++;}
00144
00145 if ( fMenuComput != 0 ) {delete fMenuComput; fCdelete++;}
00146 if ( fMenuBarComput != 0 ) {fMenuBarComput->Delete(); fCdelete++;}
00147
00148
00149 if ( fStexUpFrame != 0 ) {delete fStexUpFrame; fCdelete++;}
00150
00151
00152
00153
00154
00155 if ( fVmmD_NOE_ChNbFrame != 0 ) {delete fVmmD_NOE_ChNbFrame; fCdelete++;}
00156
00157 if ( fVmaxD_NOE_ChNbFrame != 0 ) {delete fVmaxD_NOE_ChNbFrame; fCdelete++;}
00158 if ( fVmaxD_NOE_ChNbBut != 0 ) {delete fVmaxD_NOE_ChNbBut; fCdelete++;}
00159 if ( fLayoutVmaxD_NOE_ChNbBut != 0 ) {delete fLayoutVmaxD_NOE_ChNbBut; fCdelete++;}
00160 if ( fEntryVmaxD_NOE_ChNbNumber != 0 ) {delete fEntryVmaxD_NOE_ChNbNumber; fCdelete++;}
00161 if ( fVmaxD_NOE_ChNbText != 0 ) {fVmaxD_NOE_ChNbText->Delete(); fCdelete++;}
00162 if ( fLayoutVmaxD_NOE_ChNbFieldText != 0 ) {delete fLayoutVmaxD_NOE_ChNbFieldText; fCdelete++;}
00163 if ( fLayoutVmaxD_NOE_ChNbFrame != 0 ) {delete fLayoutVmaxD_NOE_ChNbFrame; fCdelete++;}
00164
00165 if ( fVminD_NOE_ChNbFrame != 0 ) {delete fVminD_NOE_ChNbFrame; fCdelete++;}
00166 if ( fVminD_NOE_ChNbBut != 0 ) {delete fVminD_NOE_ChNbBut; fCdelete++;}
00167 if ( fLayoutVminD_NOE_ChNbBut != 0 ) {delete fLayoutVminD_NOE_ChNbBut; fCdelete++;}
00168 if ( fEntryVminD_NOE_ChNbNumber != 0 ) {delete fEntryVminD_NOE_ChNbNumber; fCdelete++;}
00169 if ( fVminD_NOE_ChNbText != 0 ) {fVminD_NOE_ChNbText->Delete(); fCdelete++;}
00170 if ( fLayoutVminD_NOE_ChNbFieldText != 0 ) {delete fLayoutVminD_NOE_ChNbFieldText; fCdelete++;}
00171 if ( fLayoutVminD_NOE_ChNbFrame != 0 ) {delete fLayoutVminD_NOE_ChNbFrame; fCdelete++;}
00172
00173 if ( fMenuD_NOE_ChNb != 0 ) {delete fMenuD_NOE_ChNb; fCdelete++;}
00174 if ( fMenuBarD_NOE_ChNb != 0 ) {fMenuBarD_NOE_ChNb->Delete(); fCdelete++;}
00175 if ( fVminD_NOE_ChNbText != 0 ) {fVminD_NOE_ChNbText->Delete(); fCdelete++;}
00176
00177 if ( fLayoutVmmD_NOE_ChNbFrame != 0 ) {delete fLayoutVmmD_NOE_ChNbFrame; fCdelete++;}
00178
00179
00180 if ( fVmmD_Ped_ChNbFrame != 0 ) {delete fVmmD_Ped_ChNbFrame; fCdelete++;}
00181
00182 if ( fVmaxD_Ped_ChNbFrame != 0 ) {delete fVmaxD_Ped_ChNbFrame; fCdelete++;}
00183 if ( fVmaxD_Ped_ChNbBut != 0 ) {delete fVmaxD_Ped_ChNbBut; fCdelete++;}
00184 if ( fLayoutVmaxD_Ped_ChNbBut != 0 ) {delete fLayoutVmaxD_Ped_ChNbBut; fCdelete++;}
00185 if ( fVmaxD_Ped_ChNbText != 0 ) {fVmaxD_Ped_ChNbText->Delete(); fCdelete++;}
00186 if ( fEntryVmaxD_Ped_ChNbNumber != 0 ) {delete fEntryVmaxD_Ped_ChNbNumber; fCdelete++;}
00187 if ( fLayoutVmaxD_Ped_ChNbFieldText != 0 ) {delete fLayoutVmaxD_Ped_ChNbFieldText; fCdelete++;}
00188 if ( fLayoutVmaxD_Ped_ChNbFrame != 0 ) {delete fLayoutVmaxD_Ped_ChNbFrame; fCdelete++;}
00189
00190 if ( fVminD_Ped_ChNbFrame != 0 ) {delete fVminD_Ped_ChNbFrame; fCdelete++;}
00191 if ( fVminD_Ped_ChNbBut != 0 ) {delete fVminD_Ped_ChNbBut; fCdelete++;}
00192 if ( fLayoutVminD_Ped_ChNbBut != 0 ) {delete fLayoutVminD_Ped_ChNbBut; fCdelete++;}
00193 if ( fVminD_Ped_ChNbText != 0 ) {fVminD_Ped_ChNbText->Delete(); fCdelete++;}
00194 if ( fEntryVminD_Ped_ChNbNumber != 0 ) {delete fEntryVminD_Ped_ChNbNumber; fCdelete++;}
00195 if ( fLayoutVminD_Ped_ChNbFieldText != 0 ) {delete fLayoutVminD_Ped_ChNbFieldText; fCdelete++;}
00196 if ( fLayoutVminD_Ped_ChNbFrame != 0 ) {delete fLayoutVminD_Ped_ChNbFrame; fCdelete++;}
00197
00198 if ( fMenuD_Ped_ChNb != 0 ) {delete fMenuD_Ped_ChNb; fCdelete++;}
00199 if ( fMenuBarD_Ped_ChNb != 0 ) {fMenuBarD_Ped_ChNb->Delete(); fCdelete++;}
00200 if ( fLayoutMenuBarD_Ped_ChNb != 0 ) {delete fLayoutMenuBarD_Ped_ChNb; fCdelete++;}
00201
00202 if ( fLayoutVmmD_Ped_ChNbFrame != 0 ) {delete fLayoutVmmD_Ped_ChNbFrame; fCdelete++;}
00203
00204
00205 if ( fVmmD_TNo_ChNbFrame != 0 ) {delete fVmmD_TNo_ChNbFrame; fCdelete++;}
00206
00207 if ( fVmaxD_TNo_ChNbFrame != 0 ) {delete fVmaxD_TNo_ChNbFrame; fCdelete++;}
00208 if ( fVmaxD_TNo_ChNbBut != 0 ) {delete fVmaxD_TNo_ChNbBut; fCdelete++;}
00209 if ( fLayoutVmaxD_TNo_ChNbBut != 0 ) {delete fLayoutVmaxD_TNo_ChNbBut; fCdelete++;}
00210 if ( fVmaxD_TNo_ChNbText != 0 ) {fVmaxD_TNo_ChNbText->Delete(); fCdelete++;}
00211 if ( fEntryVmaxD_TNo_ChNbNumber != 0 ) {delete fEntryVmaxD_TNo_ChNbNumber; fCdelete++;}
00212 if ( fLayoutVmaxD_TNo_ChNbFieldText != 0 ) {delete fLayoutVmaxD_TNo_ChNbFieldText; fCdelete++;}
00213 if ( fLayoutVmaxD_TNo_ChNbFrame != 0 ) {delete fLayoutVmaxD_TNo_ChNbFrame; fCdelete++;}
00214
00215 if ( fVminD_TNo_ChNbFrame != 0 ) {delete fVminD_TNo_ChNbFrame; fCdelete++;}
00216 if ( fVminD_TNo_ChNbBut != 0 ) {delete fVminD_TNo_ChNbBut; fCdelete++;}
00217 if ( fLayoutVminD_TNo_ChNbBut != 0 ) {delete fLayoutVminD_TNo_ChNbBut; fCdelete++;}
00218 if ( fVminD_TNo_ChNbText != 0 ) {fVminD_TNo_ChNbText->Delete(); fCdelete++;}
00219 if ( fEntryVminD_TNo_ChNbNumber != 0 ) {delete fEntryVminD_TNo_ChNbNumber; fCdelete++;}
00220 if ( fLayoutVminD_TNo_ChNbFieldText != 0 ) {delete fLayoutVminD_TNo_ChNbFieldText; fCdelete++;}
00221 if ( fLayoutVminD_TNo_ChNbFrame != 0 ) {delete fLayoutVminD_TNo_ChNbFrame; fCdelete++;}
00222
00223 if ( fMenuD_TNo_ChNb != 0 ) {delete fMenuD_TNo_ChNb; fCdelete++;}
00224 if ( fMenuBarD_TNo_ChNb != 0 ) {fMenuBarD_TNo_ChNb->Delete(); fCdelete++;}
00225 if ( fLayoutMenuBarD_TNo_ChNb != 0 ) {delete fLayoutMenuBarD_TNo_ChNb; fCdelete++;}
00226
00227 if ( fLayoutVmmD_TNo_ChNbFrame != 0 ) {delete fLayoutVmmD_TNo_ChNbFrame; fCdelete++;}
00228
00229
00230 if ( fVmmD_MCs_ChNbFrame != 0 ) {delete fVmmD_MCs_ChNbFrame; fCdelete++;}
00231
00232 if ( fVmaxD_MCs_ChNbFrame != 0 ) {delete fVmaxD_MCs_ChNbFrame; fCdelete++;}
00233 if ( fVmaxD_MCs_ChNbBut != 0 ) {delete fVmaxD_MCs_ChNbBut; fCdelete++;}
00234 if ( fLayoutVmaxD_MCs_ChNbBut != 0 ) {delete fLayoutVmaxD_MCs_ChNbBut; fCdelete++;}
00235 if ( fVmaxD_MCs_ChNbText != 0 ) {fVmaxD_MCs_ChNbText->Delete(); fCdelete++;}
00236 if ( fEntryVmaxD_MCs_ChNbNumber != 0 ) {delete fEntryVmaxD_MCs_ChNbNumber; fCdelete++;}
00237 if ( fLayoutVmaxD_MCs_ChNbFieldText != 0 ) {delete fLayoutVmaxD_MCs_ChNbFieldText; fCdelete++;}
00238 if ( fLayoutVmaxD_MCs_ChNbFrame != 0 ) {delete fLayoutVmaxD_MCs_ChNbFrame; fCdelete++;}
00239
00240 if ( fVminD_MCs_ChNbFrame != 0 ) {delete fVminD_MCs_ChNbFrame; fCdelete++;}
00241 if ( fVminD_MCs_ChNbBut != 0 ) {delete fVminD_MCs_ChNbBut; fCdelete++;}
00242 if ( fLayoutVminD_MCs_ChNbBut != 0 ) {delete fLayoutVminD_MCs_ChNbBut; fCdelete++;}
00243 if ( fVminD_MCs_ChNbText != 0 ) {fVminD_MCs_ChNbText->Delete(); fCdelete++;}
00244 if ( fEntryVminD_MCs_ChNbNumber != 0 ) {delete fEntryVminD_MCs_ChNbNumber; fCdelete++;}
00245 if ( fLayoutVminD_MCs_ChNbFieldText != 0 ) {delete fLayoutVminD_MCs_ChNbFieldText; fCdelete++;}
00246 if ( fLayoutVminD_MCs_ChNbFrame != 0 ) {delete fLayoutVminD_MCs_ChNbFrame; fCdelete++;}
00247
00248 if ( fMenuD_MCs_ChNb != 0 ) {delete fMenuD_MCs_ChNb; fCdelete++;}
00249 if ( fMenuBarD_MCs_ChNb != 0 ) {fMenuBarD_MCs_ChNb->Delete(); fCdelete++;}
00250 if ( fLayoutMenuBarD_MCs_ChNb != 0 ) {delete fLayoutMenuBarD_MCs_ChNb; fCdelete++;}
00251
00252 if ( fLayoutVmmD_MCs_ChNbFrame != 0 ) {delete fLayoutVmmD_MCs_ChNbFrame; fCdelete++;}
00253
00254
00255 if ( fStexHozFrame != 0 ) {delete fStexHozFrame; fCdelete++;}
00256
00257
00258 if ( fVmmD_LFN_ChNbFrame != 0 ) {delete fVmmD_LFN_ChNbFrame; fCdelete++;}
00259
00260 if ( fVmaxD_LFN_ChNbFrame != 0 ) {delete fVmaxD_LFN_ChNbFrame; fCdelete++;}
00261 if ( fVmaxD_LFN_ChNbBut != 0 ) {delete fVmaxD_LFN_ChNbBut; fCdelete++;}
00262 if ( fLayoutVmaxD_LFN_ChNbBut != 0 ) {delete fLayoutVmaxD_LFN_ChNbBut; fCdelete++;}
00263 if ( fVmaxD_LFN_ChNbText != 0 ) {fVmaxD_LFN_ChNbText->Delete(); fCdelete++;}
00264 if ( fEntryVmaxD_LFN_ChNbNumber != 0 ) {delete fEntryVmaxD_LFN_ChNbNumber; fCdelete++;}
00265 if ( fLayoutVmaxD_LFN_ChNbFieldText != 0 ) {delete fLayoutVmaxD_LFN_ChNbFieldText; fCdelete++;}
00266 if ( fLayoutVmaxD_LFN_ChNbFrame != 0 ) {delete fLayoutVmaxD_LFN_ChNbFrame; fCdelete++;}
00267
00268 if ( fVminD_LFN_ChNbFrame != 0 ) {delete fVminD_LFN_ChNbFrame; fCdelete++;}
00269 if ( fVminD_LFN_ChNbBut != 0 ) {delete fVminD_LFN_ChNbBut; fCdelete++;}
00270 if ( fLayoutVminD_LFN_ChNbBut != 0 ) {delete fLayoutVminD_LFN_ChNbBut; fCdelete++;}
00271 if ( fVminD_LFN_ChNbText != 0 ) {fVminD_LFN_ChNbText->Delete(); fCdelete++;}
00272 if ( fEntryVminD_LFN_ChNbNumber != 0 ) {delete fEntryVminD_LFN_ChNbNumber; fCdelete++;}
00273 if ( fLayoutVminD_LFN_ChNbFieldText != 0 ) {delete fLayoutVminD_LFN_ChNbFieldText; fCdelete++;}
00274 if ( fLayoutVminD_LFN_ChNbFrame != 0 ) {delete fLayoutVminD_LFN_ChNbFrame; fCdelete++;}
00275
00276 if ( fMenuD_LFN_ChNb != 0 ) {delete fMenuD_LFN_ChNb; fCdelete++;}
00277 if ( fMenuBarD_LFN_ChNb != 0 ) {fMenuBarD_LFN_ChNb->Delete(); fCdelete++;}
00278 if ( fLayoutMenuBarD_LFN_ChNb != 0 ) {delete fLayoutMenuBarD_LFN_ChNb; fCdelete++;}
00279
00280 if ( fLayoutVmmD_LFN_ChNbFrame != 0 ) {delete fLayoutVmmD_LFN_ChNbFrame; fCdelete++;}
00281
00282
00283 if ( fVmmD_HFN_ChNbFrame != 0 ) {delete fVmmD_HFN_ChNbFrame; fCdelete++;}
00284
00285 if ( fVmaxD_HFN_ChNbFrame != 0 ) {delete fVmaxD_HFN_ChNbFrame; fCdelete++;}
00286 if ( fVmaxD_HFN_ChNbBut != 0 ) {delete fVmaxD_HFN_ChNbBut; fCdelete++;}
00287 if ( fLayoutVmaxD_HFN_ChNbBut != 0 ) {delete fLayoutVmaxD_HFN_ChNbBut; fCdelete++;}
00288 if ( fVmaxD_HFN_ChNbText != 0 ) {fVmaxD_HFN_ChNbText->Delete(); fCdelete++;}
00289 if ( fEntryVmaxD_HFN_ChNbNumber != 0 ) {delete fEntryVmaxD_HFN_ChNbNumber; fCdelete++;}
00290 if ( fLayoutVmaxD_HFN_ChNbFieldText != 0 ) {delete fLayoutVmaxD_HFN_ChNbFieldText; fCdelete++;}
00291 if ( fLayoutVmaxD_HFN_ChNbFrame != 0 ) {delete fLayoutVmaxD_HFN_ChNbFrame; fCdelete++;}
00292
00293 if ( fVminD_HFN_ChNbFrame != 0 ) {delete fVminD_HFN_ChNbFrame; fCdelete++;}
00294 if ( fVminD_HFN_ChNbBut != 0 ) {delete fVminD_HFN_ChNbBut; fCdelete++;}
00295 if ( fLayoutVminD_HFN_ChNbBut != 0 ) {delete fLayoutVminD_HFN_ChNbBut; fCdelete++;}
00296 if ( fVminD_HFN_ChNbText != 0 ) {fVminD_HFN_ChNbText->Delete(); fCdelete++;}
00297 if ( fEntryVminD_HFN_ChNbNumber != 0 ) {delete fEntryVminD_HFN_ChNbNumber; fCdelete++;}
00298 if ( fLayoutVminD_HFN_ChNbFieldText != 0 ) {delete fLayoutVminD_HFN_ChNbFieldText; fCdelete++;}
00299 if ( fLayoutVminD_HFN_ChNbFrame != 0 ) {delete fLayoutVminD_HFN_ChNbFrame; fCdelete++;}
00300
00301 if ( fMenuD_HFN_ChNb != 0 ) {delete fMenuD_HFN_ChNb; fCdelete++;}
00302 if ( fMenuBarD_HFN_ChNb != 0 ) {fMenuBarD_HFN_ChNb->Delete(); fCdelete++;}
00303 if ( fLayoutMenuBarD_HFN_ChNb != 0 ) {delete fLayoutMenuBarD_HFN_ChNb; fCdelete++;}
00304
00305 if ( fLayoutVmmD_HFN_ChNbFrame != 0 ) {delete fLayoutVmmD_HFN_ChNbFrame; fCdelete++;}
00306
00307
00308 if ( fVmmD_SCs_ChNbFrame != 0 ) {delete fVmmD_SCs_ChNbFrame; fCdelete++;}
00309
00310 if ( fVmaxD_SCs_ChNbFrame != 0 ) {delete fVmaxD_SCs_ChNbFrame; fCdelete++;}
00311 if ( fVmaxD_SCs_ChNbBut != 0 ) {delete fVmaxD_SCs_ChNbBut; fCdelete++;}
00312 if ( fLayoutVmaxD_SCs_ChNbBut != 0 ) {delete fLayoutVmaxD_SCs_ChNbBut; fCdelete++;}
00313 if ( fVmaxD_SCs_ChNbText != 0 ) {fVmaxD_SCs_ChNbText->Delete(); fCdelete++;}
00314 if ( fEntryVmaxD_SCs_ChNbNumber != 0 ) {delete fEntryVmaxD_SCs_ChNbNumber; fCdelete++;}
00315 if ( fLayoutVmaxD_SCs_ChNbFieldText != 0 ) {delete fLayoutVmaxD_SCs_ChNbFieldText; fCdelete++;}
00316 if ( fLayoutVmaxD_SCs_ChNbFrame != 0 ) {delete fLayoutVmaxD_SCs_ChNbFrame; fCdelete++;}
00317
00318 if ( fVminD_SCs_ChNbFrame != 0 ) {delete fVminD_SCs_ChNbFrame; fCdelete++;}
00319 if ( fVminD_SCs_ChNbBut != 0 ) {delete fVminD_SCs_ChNbBut; fCdelete++;}
00320 if ( fLayoutVminD_SCs_ChNbBut != 0 ) {delete fLayoutVminD_SCs_ChNbBut; fCdelete++;}
00321 if ( fVminD_SCs_ChNbText != 0 ) {fVminD_SCs_ChNbText->Delete(); fCdelete++;}
00322 if ( fEntryVminD_SCs_ChNbNumber != 0 ) {delete fEntryVminD_SCs_ChNbNumber; fCdelete++;}
00323 if ( fLayoutVminD_SCs_ChNbFieldText != 0 ) {delete fLayoutVminD_SCs_ChNbFieldText; fCdelete++;}
00324 if ( fLayoutVminD_SCs_ChNbFrame != 0 ) {delete fLayoutVminD_SCs_ChNbFrame; fCdelete++;}
00325
00326 if ( fMenuD_SCs_ChNb != 0 ) {delete fMenuD_SCs_ChNb; fCdelete++;}
00327 if ( fMenuBarD_SCs_ChNb != 0 ) {fMenuBarD_SCs_ChNb->Delete(); fCdelete++;}
00328 if ( fLayoutMenuBarD_SCs_ChNb != 0 ) {delete fLayoutMenuBarD_SCs_ChNb; fCdelete++;}
00329
00330 if ( fLayoutVmmD_SCs_ChNbFrame != 0 ) {delete fLayoutVmmD_SCs_ChNbFrame; fCdelete++;}
00331
00332 if ( fLayoutStexHozFrame != 0 ) {delete fLayoutStexHozFrame; fCdelete++;}
00333
00334
00335
00336
00337 if ( fVmmLHFccFrame != 0 ) {delete fVmmLHFccFrame; fCdelete++;}
00338
00339 if ( fVmaxLHFccFrame != 0 ) {delete fVmaxLHFccFrame; fCdelete++;}
00340 if ( fVmaxLHFccBut != 0 ) {delete fVmaxLHFccBut; fCdelete++;}
00341 if ( fLayoutVmaxLHFccBut != 0 ) {delete fLayoutVmaxLHFccBut; fCdelete++;}
00342 if ( fVmaxLHFccText != 0 ) {fVmaxLHFccText->Delete(); fCdelete++;}
00343 if ( fEntryVmaxLHFccNumber != 0 ) {delete fEntryVmaxLHFccNumber; fCdelete++;}
00344 if ( fLayoutVmaxLHFccFieldText != 0 ) {delete fLayoutVmaxLHFccFieldText; fCdelete++;}
00345 if ( fLayoutVmaxLHFccFrame != 0 ) {delete fLayoutVmaxLHFccFrame; fCdelete++;}
00346
00347 if ( fVminLHFccFrame != 0 ) {delete fVminLHFccFrame; fCdelete++;}
00348 if ( fVminLHFccBut != 0 ) {delete fVminLHFccBut; fCdelete++;}
00349 if ( fLayoutVminLHFccBut != 0 ) {delete fLayoutVminLHFccBut; fCdelete++;}
00350 if ( fVminLHFccText != 0 ) {fVminLHFccText->Delete(); fCdelete++;}
00351 if ( fEntryVminLHFccNumber != 0 ) {delete fEntryVminLHFccNumber; fCdelete++;}
00352 if ( fLayoutVminLHFccFieldText != 0 ) {delete fLayoutVminLHFccFieldText; fCdelete++;}
00353 if ( fLayoutVminLHFccFrame != 0 ) {delete fLayoutVminLHFccFrame; fCdelete++;}
00354
00355 if ( fMenuLHFcc != 0 ) {delete fMenuLHFcc; fCdelete++;}
00356 if ( fMenuBarLHFcc != 0 ) {fMenuBarLHFcc->Delete(); fCdelete++;}
00357 if ( fLayoutMenuBarLHFcc != 0 ) {delete fLayoutMenuBarLHFcc; fCdelete++;}
00358
00359 if ( fLayoutVmmLHFccFrame != 0 ) {delete fLayoutVmmLHFccFrame; fCdelete++;}
00360
00361
00362 if ( fVmmLFccMosFrame != 0 ) {delete fVmmLFccMosFrame; fCdelete++;}
00363
00364 if ( fVmaxLFccMosFrame != 0 ) {delete fVmaxLFccMosFrame; fCdelete++;}
00365 if ( fVmaxLFccMosBut != 0 ) {delete fVmaxLFccMosBut; fCdelete++;}
00366 if ( fLayoutVmaxLFccMosBut != 0 ) {delete fLayoutVmaxLFccMosBut; fCdelete++;}
00367 if ( fVmaxLFccMosText != 0 ) {fVmaxLFccMosText->Delete(); fCdelete++;}
00368 if ( fEntryVmaxLFccMosNumber != 0 ) {delete fEntryVmaxLFccMosNumber; fCdelete++;}
00369 if ( fLayoutVmaxLFccMosFieldText != 0 ) {delete fLayoutVmaxLFccMosFieldText; fCdelete++;}
00370 if ( fLayoutVmaxLFccMosFrame != 0 ) {delete fLayoutVmaxLFccMosFrame; fCdelete++;}
00371
00372 if ( fVminLFccMosFrame != 0 ) {delete fVminLFccMosFrame; fCdelete++;}
00373 if ( fVminLFccMosBut != 0 ) {delete fVminLFccMosBut; fCdelete++;}
00374 if ( fLayoutVminLFccMosBut != 0 ) {delete fLayoutVminLFccMosBut; fCdelete++;}
00375 if ( fVminLFccMosText != 0 ) {fVminLFccMosText->Delete(); fCdelete++;}
00376 if ( fEntryVminLFccMosNumber != 0 ) {delete fEntryVminLFccMosNumber; fCdelete++;}
00377 if ( fLayoutVminLFccMosFieldText != 0 ) {delete fLayoutVminLFccMosFieldText; fCdelete++;}
00378 if ( fLayoutVminLFccMosFrame != 0 ) {delete fLayoutVminLFccMosFrame; fCdelete++;}
00379
00380 if ( fMenuLFccMos != 0 ) {delete fMenuLFccMos; fCdelete++;}
00381 if ( fMenuBarLFccMos != 0 ) {fMenuBarLFccMos->Delete(); fCdelete++;}
00382 if ( fLayoutMenuBarLFccMos != 0 ) {delete fLayoutMenuBarLFccMos; fCdelete++;}
00383
00384 if ( fLayoutVmmLFccMosFrame != 0 ) {delete fLayoutVmmLFccMosFrame; fCdelete++;}
00385
00386
00387 if ( fVmmHFccMosFrame != 0 ) {delete fVmmHFccMosFrame; fCdelete++;}
00388
00389 if ( fVmaxHFccMosFrame != 0 ) {delete fVmaxHFccMosFrame; fCdelete++;}
00390 if ( fVmaxHFccMosBut != 0 ) {delete fVmaxHFccMosBut; fCdelete++;}
00391 if ( fLayoutVmaxHFccMosBut != 0 ) {delete fLayoutVmaxHFccMosBut; fCdelete++;}
00392 if ( fVmaxHFccMosText != 0 ) {fVmaxHFccMosText->Delete(); fCdelete++;}
00393 if ( fEntryVmaxHFccMosNumber != 0 ) {delete fEntryVmaxHFccMosNumber; fCdelete++;}
00394 if ( fLayoutVmaxHFccMosFieldText != 0 ) {delete fLayoutVmaxHFccMosFieldText; fCdelete++;}
00395 if ( fLayoutVmaxHFccMosFrame != 0 ) {delete fLayoutVmaxHFccMosFrame; fCdelete++;}
00396
00397 if ( fVminHFccMosFrame != 0 ) {delete fVminHFccMosFrame; fCdelete++;}
00398 if ( fVminHFccMosBut != 0 ) {delete fVminHFccMosBut; fCdelete++;}
00399 if ( fLayoutVminHFccMosBut != 0 ) {delete fLayoutVminHFccMosBut; fCdelete++;}
00400 if ( fVminHFccMosText != 0 ) {fVminHFccMosText->Delete(); fCdelete++;}
00401 if ( fEntryVminHFccMosNumber != 0 ) {delete fEntryVminHFccMosNumber; fCdelete++;}
00402 if ( fLayoutVminHFccMosFieldText != 0 ) {delete fLayoutVminHFccMosFieldText; fCdelete++;}
00403 if ( fLayoutVminHFccMosFrame != 0 ) {delete fLayoutVminHFccMosFrame; fCdelete++;}
00404
00405 if ( fMenuHFccMos != 0 ) {delete fMenuHFccMos; fCdelete++;}
00406 if ( fMenuBarHFccMos != 0 ) {fMenuBarHFccMos->Delete(); fCdelete++;}
00407 if ( fLayoutMenuBarHFccMos != 0 ) {delete fLayoutMenuBarHFccMos; fCdelete++;}
00408
00409 if ( fLayoutVmmHFccMosFrame != 0 ) {delete fLayoutVmmHFccMosFrame; fCdelete++;}
00410
00411 if ( fLayoutStexUpFrame != 0 ) {delete fLayoutStexUpFrame; fCdelete++;}
00412
00413
00414 if ( fStinSpFrame != 0 ) {delete fStinSpFrame; fCdelete++;}
00415
00416
00417 if ( fTxSubFrame != 0 ) {delete fTxSubFrame; fCdelete++;}
00418
00419 if ( fStinAFrame != 0 ) {delete fStinAFrame; fCdelete++;}
00420 if ( fStinABut != 0 ) {delete fStinABut; fCdelete++;}
00421 if ( fLayoutStinABut != 0 ) {delete fLayoutStinABut; fCdelete++;}
00422 if ( fEntryStinANumber != 0 ) {delete fEntryStinANumber; fCdelete++;}
00423 if ( fStinAText != 0 ) {fStinAText->Delete(); fCdelete++;}
00424 if ( fLayoutStinAField != 0 ) {delete fLayoutStinAField; fCdelete++;}
00425
00426
00427 if ( fButChNb != 0 ) {delete fButChNb; fCdelete++;}
00428 if ( fLayoutChNbBut != 0 ) {delete fLayoutChNbBut; fCdelete++;}
00429
00430
00431 if ( fMenuCorssAll != 0 ) {delete fMenuCorssAll; fCdelete++;}
00432 if ( fMenuBarCorssAll != 0 ) {fMenuBarCorssAll->Delete(); fCdelete++;}
00433
00434
00435
00436
00437 if ( fLayoutTxSubFrame != 0 ) {delete fLayoutTxSubFrame; fCdelete++;}
00438
00439
00440
00441 if ( fTySubFrame != 0 ) {delete fTySubFrame; fCdelete++;}
00442
00443 if ( fStinBFrame != 0 ) {delete fStinBFrame; fCdelete++;}
00444 if ( fStinBBut != 0 ) {delete fStinBBut; fCdelete++;}
00445 if ( fLayoutStinBBut != 0 ) {delete fLayoutStinBBut; fCdelete++;}
00446 if ( fEntryStinBNumber != 0 ) {delete fEntryStinBNumber; fCdelete++;}
00447 if ( fStinBText != 0 ) {fStinBText->Delete(); fCdelete++;}
00448 if ( fLayoutStinBField != 0 ) {delete fLayoutStinBField; fCdelete++;}
00449
00450 if ( fLayoutTySubFrame != 0 ) {delete fLayoutTySubFrame; fCdelete++;}
00451
00452 if ( fLayoutStinSpFrame != 0 ) {delete fLayoutStinSpFrame; fCdelete++;}
00453
00454
00455
00456 if ( fMenuLFCorcc != 0 ) {delete fMenuLFCorcc; fCdelete++;}
00457 if ( fMenuBarLFCorcc != 0 ) {fMenuBarLFCorcc->Delete(); fCdelete++;}
00458
00459 if ( fMenuHFCorcc != 0 ) {delete fMenuHFCorcc; fCdelete++;}
00460 if ( fMenuBarHFCorcc != 0 ) {fMenuBarHFCorcc->Delete(); fCdelete++;}
00461
00462
00463 if ( fChSpFrame != 0 ) {delete fChSpFrame; fCdelete++;}
00464
00465
00466
00467 if ( fChSubFrame != 0 ) {delete fChSubFrame; fCdelete++;}
00468
00469 if ( fChanFrame != 0 ) {delete fChanFrame; fCdelete++;}
00470 if ( fChanBut != 0 ) {delete fChanBut; fCdelete++;}
00471 if ( fLayoutChanBut != 0 ) {delete fLayoutChanBut; fCdelete++;}
00472 if ( fEntryChanNumber != 0 ) {delete fEntryChanNumber; fCdelete++;}
00473 if ( fChanText != 0 ) {fChanText->Delete(); fCdelete++;}
00474 if ( fLayoutChanField != 0 ) {delete fLayoutChanField; fCdelete++;}
00475
00476
00477 if ( fMenuCorss != 0 ) {delete fMenuCorss; fCdelete++;}
00478 if ( fMenuBarCorss != 0 ) {fMenuBarCorss->Delete(); fCdelete++;}
00479
00480 if ( fMenuCovss != 0 ) {delete fMenuCovss; fCdelete++;}
00481 if ( fMenuBarCovss != 0 ) {fMenuBarCovss->Delete(); fCdelete++;}
00482
00483 if ( fMenuD_MSp_SpNb != 0 ) {delete fMenuD_MSp_SpNb; fCdelete++;}
00484 if ( fMenuBarD_MSp_SpNb != 0 ) {fMenuBarD_MSp_SpNb->Delete(); fCdelete++;}
00485 if ( fMenuD_MSp_SpDs != 0 ) {delete fMenuD_MSp_SpDs; fCdelete++;}
00486 if ( fMenuBarD_MSp_SpDs != 0 ) {fMenuBarD_MSp_SpDs->Delete(); fCdelete++;}
00487
00488 if ( fMenuD_SSp_SpNb != 0 ) {delete fMenuD_SSp_SpNb; fCdelete++;}
00489 if ( fMenuBarD_SSp_SpNb != 0 ) {fMenuBarD_SSp_SpNb->Delete(); fCdelete++;}
00490 if ( fMenuD_SSp_SpDs != 0 ) {delete fMenuD_SSp_SpDs; fCdelete++;}
00491 if ( fMenuBarD_SSp_SpDs != 0 ) {fMenuBarD_SSp_SpDs->Delete(); fCdelete++;}
00492
00493 if ( fLayoutChSubFrame != 0 ) {delete fLayoutChSubFrame; fCdelete++;}
00494
00495
00496 if ( fSpSubFrame != 0 ) {delete fSpSubFrame; fCdelete++;}
00497 if ( fSampFrame != 0 ) {delete fSampFrame; fCdelete++;}
00498 if ( fSampBut != 0 ) {delete fSampBut; fCdelete++;}
00499 if ( fLayoutSampBut != 0 ) {delete fLayoutSampBut; fCdelete++;}
00500 if ( fEntrySampNumber != 0 ) {delete fEntrySampNumber; fCdelete++;}
00501 if ( fSampText != 0 ) {fSampText->Delete(); fCdelete++;}
00502 if ( fLayoutSampField != 0 ) {delete fLayoutSampField; fCdelete++;}
00503 if ( fLayoutSpSubFrame != 0 ) {delete fLayoutSpSubFrame; fCdelete++;}
00504
00505
00506
00507
00508
00509 if ( fLayoutChSpFrame != 0 ) {delete fLayoutChSpFrame; fCdelete++;}
00510
00511
00512 if ( fMenuAdcProj != 0 ) {delete fMenuAdcProj; fCdelete++;}
00513 if ( fMenuBarAdcProj != 0 ) {fMenuBarAdcProj->Delete(); fCdelete++;}
00514 if ( fLayoutMenuBarAdcProj != 0 ) {delete fLayoutMenuBarAdcProj; fCdelete++;}
00515
00516
00517 if ( fRulFrame != 0 ) {delete fRulFrame; fCdelete++;}
00518 if ( fRulBut != 0 ) {delete fRulBut; fCdelete++;}
00519 if ( fLayoutRulBut != 0 ) {delete fLayoutRulBut; fCdelete++;}
00520 if ( fEntryRulNumber != 0 ) {delete fEntryRulNumber; fCdelete++;}
00521 if ( fRulText != 0 ) {fRulText->Delete(); fCdelete++;}
00522 if ( fLayoutRulFieldText != 0 ) {delete fLayoutRulFieldText; fCdelete++;}
00523 if ( fLayoutRulFieldFrame != 0 ) {delete fLayoutRulFieldFrame; fCdelete++;}
00524
00525
00526 if ( fMenuHistory != 0 ) {delete fMenuHistory; fCdelete++;}
00527 if ( fMenuBarHistory != 0 ) {fMenuBarHistory->Delete(); fCdelete++;}
00528
00529
00530 if ( fLinLogFrame != 0 ) {delete fLinLogFrame; fCdelete++;}
00531
00532
00533 if ( fButLogx != 0 ) {delete fButLogx; fCdelete++;}
00534 if ( fLayoutLogxBut != 0 ) {delete fLayoutLogxBut; fCdelete++;}
00535
00536 if ( fButLogy != 0 ) {delete fButLogy; fCdelete++;}
00537 if ( fLayoutLogyBut != 0 ) {delete fLayoutLogyBut; fCdelete++;}
00538
00539 if ( fButProjy != 0 ) {delete fButProjy; fCdelete++;}
00540 if ( fLayoutProjyBut != 0 ) {delete fLayoutProjyBut; fCdelete++;}
00541
00542
00543 if ( fGentFrame != 0 ) {delete fGentFrame; fCdelete++;}
00544 if ( fGentBut != 0 ) {delete fGentBut; fCdelete++;}
00545 if ( fLayoutGentBut != 0 ) {delete fLayoutGentBut; fCdelete++;}
00546 if ( fEntryGentNumber != 0 ) {delete fEntryGentNumber; fCdelete++;}
00547 if ( fGentText != 0 ) {fGentText->Delete(); fCdelete++;}
00548 if ( fLayoutGentFieldText != 0 ) {delete fLayoutGentFieldText; fCdelete++;}
00549 if ( fLayoutGentFieldFrame != 0 ) {delete fLayoutGentFieldFrame; fCdelete++;}
00550
00551
00552 if ( fColorExitFrame != 0 ) {delete fColorExitFrame; fCdelete++;}
00553 if ( fLayoutColorExitFrame != 0 ) {delete fLayoutColorExitFrame; fCdelete++;}
00554
00555
00556 if ( fButColPal != 0 ) {delete fButColPal; fCdelete++;}
00557 if ( fLayoutColPalBut != 0 ) {delete fLayoutColPalBut; fCdelete++;}
00558
00559 if ( fButExit != 0 ) {delete fButExit; fCdelete++;}
00560 if ( fLayoutExitBut != 0 ) {delete fLayoutExitBut; fCdelete++;}
00561
00562
00563 if ( fLastFrame != 0 ) {delete fLastFrame; fCdelete++;}
00564
00565
00566 if ( fButClone != 0 ) {delete fButClone; fCdelete++;}
00567 if ( fLayoutCloneBut != 0 ) {delete fLayoutCloneBut; fCdelete++;}
00568
00569
00570 if ( fButRoot != 0 ) {delete fButRoot; fCdelete++;}
00571 if ( fLayoutRootBut != 0 ) {delete fLayoutRootBut; fCdelete++;}
00572
00573
00574 if ( fButHelp != 0 ) {delete fButHelp; fCdelete++;}
00575 if ( fLayoutHelpBut != 0 ) {delete fLayoutHelpBut; fCdelete++;}
00576
00577
00578
00579 if ( fCnew != fCdelete )
00580 {
00581 cout << "*TEcnaGui> WRONG MANAGEMENT OF ALLOCATIONS: fCnew = "
00582 << fCnew << ", fCdelete = " << fCdelete << endl;
00583 }
00584 else
00585 {
00586
00587
00588 }
00589
00590 #endif // DEST
00591
00592 #define MGRA
00593 #ifndef MGRA
00594 if ( fCnewRoot != fCdeleteRoot )
00595 {
00596 cout << "*TEcnaGui> WRONG MANAGEMENT OF ROOT ALLOCATIONS: fCnewRoot = "
00597 << fCnewRoot << ", fCdeleteRoot = " << fCdeleteRoot << endl;
00598 }
00599 else
00600 {
00601 cout << "*TEcnaGui> BRAVO! GOOD MANAGEMENT OF ROOT ALLOCATIONS:"
00602 << " fCnewRoot = " << fCnewRoot <<", fCdeleteRoot = "
00603 << fCdeleteRoot << endl;
00604 }
00605 #endif // MGRA
00606
00607
00608
00609
00610
00611
00612 }
00613
00614
00615
00616
00617
00618
00619
00620
00621 TEcnaGui::TEcnaGui()
00622 {
00623 Init();
00624 }
00625
00626 TEcnaGui::TEcnaGui(TEcnaObject* pObjectManager, const TString SubDet, const TGWindow *p, UInt_t w, UInt_t h):
00627 TGMainFrame(p, w, h)
00628 {
00629
00630
00631
00632
00633
00634 fObjectManager = (TEcnaObject*)pObjectManager;
00635 Long_t i_this = (Long_t)this;
00636 pObjectManager->RegisterPointer("TEcnaGui", i_this);
00637
00638 Int_t MaxCar = fgMaxCar;
00639 fSubDet.Resize(MaxCar);
00640 fSubDet = SubDet.Data();
00641
00642
00643 fCnaParCout = 0;
00644 Int_t iCnaParCout = pObjectManager->GetPointerValue("TEcnaParCout");
00645 if( iCnaParCout == 0 )
00646 {fCnaParCout = new TEcnaParCout(pObjectManager); }
00647 else
00648 {fCnaParCout = (TEcnaParCout*)iCnaParCout;}
00649
00650
00651
00652
00653
00654
00655
00656
00657 fCnaParPaths = 0;
00658 Int_t iCnaParPaths = pObjectManager->GetPointerValue("TEcnaParPaths");
00659 if( iCnaParPaths == 0 )
00660 {fCnaParPaths = new TEcnaParPaths(pObjectManager); }
00661 else
00662 {fCnaParPaths = (TEcnaParPaths*)iCnaParPaths;}
00663
00664 fCnaParPaths->GetPaths();
00665 fCnaParPaths->GetCMSSWParameters();
00666
00667
00668 fEcal = 0;
00669 Int_t iParEcal = pObjectManager->GetPointerValue("TEcnaParEcal");
00670 if( iParEcal == 0 )
00671 {fEcal = new TEcnaParEcal(pObjectManager, SubDet.Data()); }
00672 else
00673 {fEcal = (TEcnaParEcal*)iParEcal;}
00674
00675
00676 fEcalNumbering = 0;
00677 Int_t iEcalNumbering = pObjectManager->GetPointerValue("TEcnaNumbering");
00678 if( iEcalNumbering == 0 )
00679 {fEcalNumbering = new TEcnaNumbering(pObjectManager, SubDet.Data()); }
00680 else
00681 {fEcalNumbering = (TEcnaNumbering*)iEcalNumbering;}
00682
00683
00684 fCnaParHistos = 0;
00685 Int_t iCnaParHistos = pObjectManager->GetPointerValue("TEcnaParHistos");
00686 if( iCnaParHistos == 0 )
00687 {fCnaParHistos = new TEcnaParHistos(pObjectManager, SubDet.Data()); }
00688 else
00689 {fCnaParHistos = (TEcnaParHistos*)iCnaParHistos;}
00690
00691
00692 fCnaWrite = 0;
00693 Int_t iCnaWrite = pObjectManager->GetPointerValue("TEcnaWrite");
00694 if( iCnaWrite == 0 )
00695 {fCnaWrite = new TEcnaWrite(pObjectManager, SubDet.Data()); }
00696 else
00697 {fCnaWrite = (TEcnaWrite*)iCnaWrite;}
00698
00699
00700
00701
00702
00703
00704 fHistos = 0;
00705 Int_t iHistos = pObjectManager->GetPointerValue("TEcnaHistos");
00706 if( iHistos == 0 )
00707 {fHistos = new TEcnaHistos(pObjectManager, SubDet.Data()); }
00708 else
00709 {fHistos = (TEcnaHistos*)iHistos;}
00710
00711
00712
00713 Init();
00714 }
00715
00716 void TEcnaGui::Init()
00717 {
00718
00719 fCnew = 0;
00720 fCdelete = 0;
00721 fCnewRoot = 0;
00722 fCdeleteRoot = 0;
00723
00724
00725 Int_t fgMaxCar = (Int_t)512;
00726 fTTBELL = '\007';
00727
00728
00729
00730
00731
00732 if( fSubDet == "EB" ){fStexName = "SM"; fStinName = "tower";}
00733 if( fSubDet == "EE" ){fStexName = "Dee"; fStinName = "SC";}
00734
00735
00736 InitKeys();
00737
00738
00739 fCnaCommand = 0;
00740 fCnaError = 0;
00741
00742 fConfirmSubmit = 0;
00743 fConfirmRunNumber = 0;
00744 fConfirmCalcScc = 0;
00745
00746
00747
00748 fLayoutGeneral = 0;
00749 fLayoutBottLeft = 0;
00750 fLayoutBottRight = 0;
00751 fLayoutTopLeft = 0;
00752 fLayoutTopRight = 0;
00753 fLayoutCenterYLeft = 0;
00754 fLayoutCenterYRight = 0;
00755
00756 fVoidFrame = 0;
00757
00758
00759 fAnaNorsRunFrame = 0;
00760 fLayoutAnaNorsRunFrame = 0;
00761
00762 fAnaFrame = 0;
00763 fAnaBut = 0;
00764 fLayoutAnaBut = 0;
00765 fAnaText = 0;
00766 fEntryAnaNumber = 0;
00767 fLayoutAnaField = 0;
00768
00769 fFevFrame = 0;
00770 fFevBut = 0;
00771 fLayoutFevBut = 0;
00772 fFevText = 0;
00773 fEntryFevNumber = 0;
00774 fLayoutFevFieldText = 0;
00775 fLayoutFevFieldFrame = 0;
00776
00777 fRunFrame = 0;
00778 fRunBut = 0;
00779 fLayoutRunBut = 0;
00780 fRunText = 0;
00781 fEntryRunNumber = 0;
00782 fLayoutRunField = 0;
00783
00784
00785 fFevLevStexFrame = 0;
00786 fLayoutFevLevStexFrame = 0;
00787
00788 fNorsFrame = 0;
00789 fNorsBut = 0;
00790 fLayoutNorsBut = 0;
00791 fNorsText = 0;
00792 fEntryNorsNumber = 0;
00793 fLayoutNorsField = 0;
00794
00795 fLevFrame = 0;
00796 fLevBut = 0;
00797 fLayoutLevBut = 0;
00798 fLevText = 0;
00799 fEntryLevNumber = 0;
00800 fLayoutLevFieldText = 0;
00801 fLayoutLevFieldFrame = 0;
00802
00803 fMenuClean = 0;
00804 fMenuBarClean = 0;
00805
00806 fMenuSubmit = 0;
00807 fMenuBarSubmit = 0;
00808
00809
00810 fCompStRqFrame = 0;
00811 fLayoutCompStRqFrame = 0;
00812
00813
00814 fStexFrame = 0;
00815 fStexBut = 0;
00816 fLayoutStexBut = 0;
00817 fStexText = 0;
00818 fEntryStexNumber = 0;
00819 fLayoutStexFieldText = 0;
00820 fLayoutStexFieldFrame = 0;
00821
00822
00823 fRevFrame = 0;
00824 fRevBut = 0;
00825 fLayoutRevBut = 0;
00826 fRevText = 0;
00827 fEntryRevNumber = 0;
00828 fLayoutRevFieldText = 0;
00829 fLayoutRevFieldFrame = 0;
00830
00831
00832 fCompStnbFrame = 0;
00833 fLayoutCompStnbFrame = 0;
00834
00835
00836 fButStexNb = 0;
00837 fLayoutStexNbBut = 0;
00838
00839
00840 fNbSampForCalcFrame = 0;
00841 fNbSampForCalcBut = 0;
00842 fLayoutNbSampForCalcBut = 0;
00843 fNbSampForCalcText = 0;
00844 fEntryNbSampForCalcNumber = 0;
00845 fLayoutNbSampForCalcFieldText = 0;
00846 fLayoutNbSampForCalcFieldFrame = 0;
00847
00848
00849 fMenuComput = 0;
00850 fMenuBarComput = 0;
00851
00852
00853
00854
00855 fStexUpFrame = 0;
00856
00857
00858
00859
00860 fVmmD_NOE_ChNbFrame = 0;
00861
00862 fVmaxD_NOE_ChNbFrame = 0;
00863 fVmaxD_NOE_ChNbBut = 0;
00864 fLayoutVmaxD_NOE_ChNbBut = 0;
00865 fVmaxD_NOE_ChNbText = 0;
00866 fEntryVmaxD_NOE_ChNbNumber = 0;
00867 fLayoutVmaxD_NOE_ChNbFieldText = 0;
00868 fLayoutVmaxD_NOE_ChNbFrame = 0;
00869
00870 fVminD_NOE_ChNbFrame = 0;
00871 fVminD_NOE_ChNbBut = 0;
00872 fLayoutVminD_NOE_ChNbBut = 0;
00873 fVminD_NOE_ChNbText = 0;
00874 fEntryVminD_NOE_ChNbNumber = 0;
00875 fLayoutVminD_NOE_ChNbFieldText = 0;
00876 fLayoutVminD_NOE_ChNbFrame = 0;
00877
00878 fMenuD_NOE_ChNb = 0;
00879 fMenuBarD_NOE_ChNb = 0;
00880 fLayoutMenuBarD_NOE_ChNb = 0;
00881
00882 fLayoutVmmD_NOE_ChNbFrame = 0;
00883
00884
00885 fVmmD_Ped_ChNbFrame = 0;
00886
00887 fVmaxD_Ped_ChNbFrame = 0;
00888 fVmaxD_Ped_ChNbBut = 0;
00889 fLayoutVmaxD_Ped_ChNbBut = 0;
00890 fVmaxD_Ped_ChNbText = 0;
00891 fEntryVmaxD_Ped_ChNbNumber = 0;
00892 fLayoutVmaxD_Ped_ChNbFieldText = 0;
00893 fLayoutVmaxD_Ped_ChNbFrame = 0;
00894
00895 fVminD_Ped_ChNbFrame = 0;
00896 fVminD_Ped_ChNbBut = 0;
00897 fLayoutVminD_Ped_ChNbBut = 0;
00898 fVminD_Ped_ChNbText = 0;
00899 fEntryVminD_Ped_ChNbNumber = 0;
00900 fLayoutVminD_Ped_ChNbFieldText = 0;
00901 fLayoutVminD_Ped_ChNbFrame = 0;
00902
00903 fMenuD_Ped_ChNb = 0;
00904 fMenuBarD_Ped_ChNb = 0;
00905 fLayoutMenuBarD_Ped_ChNb = 0;
00906
00907 fLayoutVmmD_Ped_ChNbFrame = 0;
00908
00909
00910 fVmmD_TNo_ChNbFrame = 0;
00911
00912 fVmaxD_TNo_ChNbFrame = 0;
00913 fVmaxD_TNo_ChNbBut = 0;
00914 fLayoutVmaxD_TNo_ChNbBut = 0;
00915 fVmaxD_TNo_ChNbText = 0;
00916 fEntryVmaxD_TNo_ChNbNumber = 0;
00917 fLayoutVmaxD_TNo_ChNbFieldText = 0;
00918
00919 fVminD_TNo_ChNbFrame = 0;
00920 fVminD_TNo_ChNbBut = 0;
00921 fLayoutVminD_TNo_ChNbBut = 0;
00922 fVminD_TNo_ChNbText = 0;
00923 fEntryVminD_TNo_ChNbNumber = 0;
00924 fLayoutVminD_TNo_ChNbFieldText = 0;
00925 fLayoutVminD_TNo_ChNbFrame = 0;
00926
00927 fMenuD_TNo_ChNb = 0;
00928 fMenuBarD_TNo_ChNb = 0;
00929 fLayoutMenuBarD_TNo_ChNb = 0;
00930 fLayoutVmaxD_TNo_ChNbFrame = 0;
00931
00932 fLayoutVmmD_TNo_ChNbFrame = 0;
00933
00934
00935 fVmmD_MCs_ChNbFrame = 0;
00936
00937 fVmaxD_MCs_ChNbFrame = 0;
00938 fVmaxD_MCs_ChNbBut = 0;
00939 fLayoutVmaxD_MCs_ChNbBut = 0;
00940 fVmaxD_MCs_ChNbText = 0;
00941 fEntryVmaxD_MCs_ChNbNumber = 0;
00942 fLayoutVmaxD_MCs_ChNbFieldText = 0;
00943 fLayoutVmaxD_MCs_ChNbFrame = 0;
00944
00945 fVminD_MCs_ChNbFrame = 0;
00946 fVminD_MCs_ChNbBut = 0;
00947 fLayoutVminD_MCs_ChNbBut = 0;
00948 fVminD_MCs_ChNbText = 0;
00949 fEntryVminD_MCs_ChNbNumber = 0;
00950 fLayoutVminD_MCs_ChNbFieldText = 0;
00951 fLayoutVminD_MCs_ChNbFrame = 0;
00952
00953 fMenuD_MCs_ChNb = 0;
00954 fMenuBarD_MCs_ChNb = 0;
00955 fLayoutMenuBarD_MCs_ChNb = 0;
00956 fLayoutVmmD_MCs_ChNbFrame = 0;
00957
00958
00959 fStexHozFrame = 0;
00960
00961
00962 fVmmD_LFN_ChNbFrame = 0;
00963
00964 fVmaxD_LFN_ChNbFrame = 0;
00965 fVmaxD_LFN_ChNbBut = 0;
00966 fLayoutVmaxD_LFN_ChNbBut = 0;
00967 fVmaxD_LFN_ChNbText = 0;
00968 fEntryVmaxD_LFN_ChNbNumber = 0;
00969 fLayoutVmaxD_LFN_ChNbFieldText = 0;
00970 fLayoutVmaxD_LFN_ChNbFrame = 0;
00971
00972 fVminD_LFN_ChNbFrame = 0;
00973 fVminD_LFN_ChNbBut = 0;
00974 fLayoutVminD_LFN_ChNbBut = 0;
00975 fVminD_LFN_ChNbText = 0;
00976 fEntryVminD_LFN_ChNbNumber = 0;
00977 fLayoutVminD_LFN_ChNbFieldText = 0;
00978 fLayoutVminD_LFN_ChNbFrame = 0;
00979
00980 fMenuD_LFN_ChNb = 0;
00981 fMenuBarD_LFN_ChNb = 0;
00982 fLayoutMenuBarD_LFN_ChNb = 0;
00983
00984 fLayoutVmmD_LFN_ChNbFrame = 0;
00985
00986
00987 fVmmD_HFN_ChNbFrame = 0;
00988
00989 fVmaxD_HFN_ChNbFrame = 0;
00990 fVmaxD_HFN_ChNbBut = 0;
00991 fLayoutVmaxD_HFN_ChNbBut = 0;
00992 fVmaxD_HFN_ChNbText = 0;
00993 fEntryVmaxD_HFN_ChNbNumber = 0;
00994 fLayoutVmaxD_HFN_ChNbFieldText = 0;
00995 fLayoutVmaxD_HFN_ChNbFrame = 0;
00996
00997 fVminD_HFN_ChNbFrame = 0;
00998 fVminD_HFN_ChNbBut = 0;
00999 fLayoutVminD_HFN_ChNbBut = 0;
01000 fVminD_HFN_ChNbText = 0;
01001 fEntryVminD_HFN_ChNbNumber = 0;
01002 fLayoutVminD_HFN_ChNbFieldText = 0;
01003 fLayoutVminD_HFN_ChNbFrame = 0;
01004
01005 fMenuD_HFN_ChNb = 0;
01006 fMenuBarD_HFN_ChNb = 0;
01007 fLayoutMenuBarD_HFN_ChNb = 0;
01008
01009 fLayoutVmmD_HFN_ChNbFrame = 0;
01010
01011
01012 fVmmD_SCs_ChNbFrame = 0;
01013
01014 fVmaxD_SCs_ChNbFrame = 0;
01015 fVmaxD_SCs_ChNbBut = 0;
01016 fLayoutVmaxD_SCs_ChNbBut = 0;
01017 fVmaxD_SCs_ChNbText = 0;
01018 fEntryVmaxD_SCs_ChNbNumber = 0;
01019 fLayoutVmaxD_SCs_ChNbFieldText = 0;
01020 fLayoutVmaxD_SCs_ChNbFrame = 0;
01021
01022 fVminD_SCs_ChNbFrame = 0;
01023 fVminD_SCs_ChNbBut = 0;
01024 fLayoutVminD_SCs_ChNbBut = 0;
01025 fVminD_SCs_ChNbText = 0;
01026 fEntryVminD_SCs_ChNbNumber = 0;
01027 fLayoutVminD_SCs_ChNbFieldText = 0;
01028 fLayoutVminD_SCs_ChNbFrame = 0;
01029
01030 fMenuD_SCs_ChNb = 0;
01031 fMenuBarD_SCs_ChNb = 0;
01032 fLayoutMenuBarD_SCs_ChNb = 0;
01033
01034 fLayoutVmmD_SCs_ChNbFrame = 0;
01035
01036
01037
01038
01039 fVmmLFccMosFrame = 0;
01040
01041 fVmaxLFccMosFrame = 0;
01042 fVmaxLFccMosBut = 0;
01043 fLayoutVmaxLFccMosBut = 0;
01044 fVmaxLFccMosText = 0;
01045 fEntryVmaxLFccMosNumber = 0;
01046 fLayoutVmaxLFccMosFieldText = 0;
01047 fLayoutVmaxLFccMosFrame = 0;
01048
01049 fVminLFccMosFrame = 0;
01050 fVminLFccMosBut = 0;
01051 fLayoutVminLFccMosBut = 0;
01052 fVminLFccMosText = 0;
01053 fEntryVminLFccMosNumber = 0;
01054 fLayoutVminLFccMosFieldText = 0;
01055 fLayoutVminLFccMosFrame = 0;
01056
01057 fMenuLFccMos = 0;
01058 fMenuBarLFccMos = 0;
01059 fLayoutMenuBarLFccMos = 0;
01060
01061 fLayoutVmmLFccMosFrame = 0;
01062
01063
01064 fVmmHFccMosFrame = 0;
01065
01066 fVmaxHFccMosFrame = 0;
01067 fVmaxHFccMosBut = 0;
01068 fLayoutVmaxHFccMosBut = 0;
01069 fVmaxHFccMosText = 0;
01070 fEntryVmaxHFccMosNumber = 0;
01071 fLayoutVmaxHFccMosFieldText = 0;
01072 fLayoutVmaxHFccMosFrame = 0;
01073
01074 fVminHFccMosFrame = 0;
01075 fVminHFccMosBut = 0;
01076 fLayoutVminHFccMosBut = 0;
01077 fVminHFccMosText = 0;
01078 fEntryVminHFccMosNumber = 0;
01079 fLayoutVminHFccMosFieldText = 0;
01080 fLayoutVminHFccMosFrame = 0;
01081
01082 fMenuHFccMos = 0;
01083 fMenuBarHFccMos = 0;
01084 fLayoutMenuBarHFccMos = 0;
01085
01086 fLayoutVmmHFccMosFrame = 0;
01087
01088
01089 fVmmLHFccFrame = 0;
01090
01091 fVmaxLHFccFrame = 0;
01092 fVmaxLHFccBut = 0;
01093 fLayoutVmaxLHFccBut = 0;
01094 fVmaxLHFccText = 0;
01095 fEntryVmaxLHFccNumber = 0;
01096 fLayoutVmaxLHFccFieldText = 0;
01097 fLayoutVmaxLHFccFrame = 0;
01098
01099 fVminLHFccFrame = 0;
01100 fVminLHFccBut = 0;
01101 fLayoutVminLHFccBut = 0;
01102 fVminLHFccText = 0;
01103 fEntryVminLHFccNumber = 0;
01104 fLayoutVminLHFccFieldText = 0;
01105 fLayoutVminLHFccFrame = 0;
01106
01107 fMenuLHFcc = 0;
01108 fMenuBarLHFcc = 0;
01109 fLayoutMenuBarLHFcc = 0;
01110
01111 fLayoutVmmLHFccFrame = 0;
01112
01113 fLayoutStexHozFrame = 0;
01114
01115 fLayoutStexUpFrame = 0;
01116
01117
01118 fStinSpFrame = 0;
01119 fLayoutStinSpFrame = 0;
01120
01121
01122
01123 fTxSubFrame = 0;
01124 fLayoutTxSubFrame = 0;
01125
01126 fStinAFrame = 0;
01127 fStinABut = 0;
01128 fLayoutStinABut = 0;
01129
01130 fStinAText = 0;
01131 fEntryStinANumber = 0;
01132 fLayoutStinAField = 0;
01133
01134
01135 fButChNb = 0;
01136 fLayoutChNbBut = 0;
01137
01138
01139 fMenuCorssAll = 0;
01140 fMenuBarCorssAll = 0;
01141
01142
01143
01144
01145
01146 fTySubFrame = 0;
01147 fLayoutTySubFrame = 0;
01148
01149 fStinBFrame = 0;
01150 fStinBBut = 0;
01151 fLayoutStinBBut = 0;
01152
01153 fStinBText = 0;
01154 fEntryStinBNumber = 0;
01155 fLayoutStinBField = 0;
01156
01157
01158 fMenuBarLFCorcc = 0;
01159 fMenuLFCorcc = 0;
01160
01161 fMenuBarHFCorcc = 0;
01162 fMenuHFCorcc = 0;
01163
01164
01165 fChSpFrame = 0;
01166 fLayoutChSpFrame = 0;
01167
01168
01169 fChanFrame = 0;
01170 fChanBut = 0;
01171 fChanText = 0;
01172 fEntryChanNumber = 0;
01173 fLayoutChanBut = 0;
01174 fLayoutChanField = 0;
01175
01176 fChSubFrame = 0;
01177 fLayoutChSubFrame = 0;
01178
01179
01180 fMenuCorss = 0;
01181 fMenuBarCorss = 0;
01182
01183 fMenuCovss = 0;
01184 fMenuBarCovss = 0;
01185
01186 fMenuD_MSp_SpNb = 0;
01187 fMenuBarD_MSp_SpNb = 0;
01188 fMenuD_MSp_SpDs = 0;
01189 fMenuBarD_MSp_SpDs = 0;
01190
01191 fMenuD_SSp_SpNb = 0;
01192 fMenuBarD_SSp_SpNb = 0;
01193 fMenuD_SSp_SpDs = 0;
01194 fMenuBarD_SSp_SpDs = 0;
01195
01196
01197 fSampFrame = 0;
01198 fSampBut = 0;
01199
01200 fSampText = 0;
01201 fEntrySampNumber = 0;
01202 fLayoutSampBut = 0;
01203 fLayoutSampField = 0;
01204
01205 fSpSubFrame = 0;
01206 fLayoutSpSubFrame = 0;
01207
01208
01209
01210
01211
01212
01213 fRulFrame = 0;
01214 fRulBut = 0;
01215 fLayoutRulBut = 0;
01216 fRulText = 0;
01217 fEntryRulNumber = 0;
01218 fLayoutRulFieldText = 0;
01219 fLayoutRulFieldFrame = 0;
01220
01221
01222 fMenuHistory = 0;
01223 fMenuBarHistory = 0;
01224
01225
01226 fMenuAdcProj = 0;
01227 fMenuBarAdcProj = 0;
01228 fLayoutMenuBarAdcProj = 0;
01229
01230
01231 fLinLogFrame = 0;
01232
01233
01234 fButLogx = 0;
01235 fLayoutLogxBut = 0;
01236
01237 fButLogy = 0;
01238 fLayoutLogyBut = 0;
01239
01240 fButProjy = 0;
01241 fLayoutProjyBut = 0;
01242
01243
01244 fGentFrame = 0;
01245 fGentBut = 0;
01246 fLayoutGentBut = 0;
01247 fGentText = 0;
01248 fEntryGentNumber = 0;
01249 fLayoutGentFieldText = 0;
01250 fLayoutGentFieldFrame = 0;
01251
01252
01253
01254 fButColPal = 0;
01255 fLayoutColPalBut = 0;
01256
01257 fButExit = 0;
01258 fLayoutExitBut = 0;
01259
01260
01261 fLastFrame = 0;
01262
01263
01264 fButClone = 0;
01265 fLayoutCloneBut = 0;
01266
01267
01268 fButRoot = 0;
01269 fLayoutRootBut = 0;
01270
01271
01272 fButHelp = 0;
01273 fLayoutHelpBut = 0;
01274
01275
01276
01277
01278
01279
01280 fAnaButC = 1;
01281 fRunButC = 2;
01282
01283
01284
01285 fMenuSubmit8nmC = 2011;
01286 fMenuSubmit1nhC = 2012;
01287 fMenuSubmit8nhC = 2013;
01288 fMenuSubmit1ndC = 2014;
01289 fMenuSubmit1nwC = 2015;
01290
01291 fMenuCleanSubC = 3011;
01292 fMenuCleanJobC = 3012;
01293 fMenuCleanPythC = 3013;
01294 fMenuCleanAllC = 3014;
01295
01296 fMenuComputStdC = 3111;
01297 fMenuComputSccC = 3112;
01298 fMenuComputSttC = 3113;
01299
01300 fMenuD_NOE_ChNbFullC = 600101;
01301 fMenuD_NOE_ChNbSameC = 600102;
01302 fMenuD_NOE_ChNbAsciiFileC = 600104;
01303
01304 fMenuD_Ped_ChNbFullC = 123051;
01305 fMenuD_Ped_ChNbSameC = 123052;
01306 fMenuD_Ped_ChNbAsciiFileC = 123054;
01307
01308 fMenuD_TNo_ChNbFullC = 123061;
01309 fMenuD_TNo_ChNbSameC = 123062;
01310 fMenuD_TNo_ChNbSamePC = 123063;
01311 fMenuD_TNo_ChNbAsciiFileC = 123064;
01312
01313 fMenuD_MCs_ChNbFullC = 123071;
01314 fMenuD_MCs_ChNbSameC = 123072;
01315 fMenuD_MCs_ChNbSamePC = 123073;
01316 fMenuD_MCs_ChNbAsciiFileC = 123074;
01317
01318 fMenuD_LFN_ChNbFullC = 800051;
01319 fMenuD_LFN_ChNbSameC = 800052;
01320 fMenuD_LFN_ChNbSamePC = 800053;
01321 fMenuD_LFN_ChNbAsciiFileC = 800054;
01322
01323 fMenuD_HFN_ChNbFullC = 800061;
01324 fMenuD_HFN_ChNbSameC = 800062;
01325 fMenuD_HFN_ChNbSamePC = 800063;
01326 fMenuD_HFN_ChNbAsciiFileC = 800064;
01327
01328 fMenuD_SCs_ChNbFullC = 800071;
01329 fMenuD_SCs_ChNbSameC = 800072;
01330 fMenuD_SCs_ChNbSamePC = 800073;
01331 fMenuD_SCs_ChNbAsciiFileC = 800074;
01332
01333 fMenuLFccColzC = 70010;
01334 fMenuLFccLegoC = 70011;
01335 fMenuHFccColzC = 70020;
01336 fMenuHFccLegoC = 70021;
01337
01338 fMenuLFccMosColzC = 70110;
01339 fMenuLFccMosLegoC = 70111;
01340 fMenuHFccMosColzC = 70120;
01341 fMenuHFccMosLegoC = 70121;
01342
01343 fMenuD_NOE_ChNbHocoVecoC = 524051;
01344 fMenuD_Ped_ChNbHocoVecoC = 524052;
01345 fMenuD_TNo_ChNbHocoVecoC = 524053;
01346 fMenuD_MCs_ChNbHocoVecoC = 524054;
01347 fMenuD_LFN_ChNbHocoVecoC = 524055;
01348 fMenuD_HFN_ChNbHocoVecoC = 524056;
01349 fMenuD_SCs_ChNbHocoVecoC = 524057;
01350
01351 fStinAButC = 90009;
01352 fStinBButC = 90010;
01353
01354 fChanButC = 6;
01355 fSampButC = 7;
01356
01357 fMenuCorssAllColzC = 10;
01358 fMenuCovssAllColzC = 11;
01359
01360 fMenuCorssColzC = 221;
01361 fMenuCorssBoxC = 222;
01362 fMenuCorssTextC = 223;
01363 fMenuCorssContzC = 224;
01364 fMenuCorssLegoC = 225;
01365 fMenuCorssSurf1C = 226;
01366 fMenuCorssSurf2C = 227;
01367 fMenuCorssSurf3C = 228;
01368 fMenuCorssSurf4C = 229;
01369 fMenuCorssAsciiFileC = 220;
01370
01371 fMenuCovssColzC = 231;
01372 fMenuCovssBoxC = 232;
01373 fMenuCovssTextC = 233;
01374 fMenuCovssContzC = 234;
01375 fMenuCovssLegoC = 235;
01376 fMenuCovssSurf1C = 236;
01377 fMenuCovssSurf2C = 237;
01378 fMenuCovssSurf3C = 238;
01379 fMenuCovssSurf4C = 239;
01380 fMenuCovssAsciiFileC = 230;
01381
01382 fMenuD_MSp_SpNbLineFullC = 411;
01383 fMenuD_MSp_SpNbLineSameC = 412;
01384 fMenuD_MSp_SpNbLineAllStinC = 413;
01385 fMenuD_MSp_SpDsLineFullC = 414;
01386 fMenuD_MSp_SpDsLineSameC = 415;
01387 fMenuD_MSp_SpDsLineAllStinC = 416;
01388
01389 fMenuD_SSp_SpNbLineFullC = 421;
01390 fMenuD_SSp_SpNbLineSameC = 422;
01391 fMenuD_SSp_SpNbLineAllStinC = 423;
01392 fMenuD_SSp_SpDsLineFullC = 424;
01393 fMenuD_SSp_SpDsLineSameC = 425;
01394 fMenuD_SSp_SpDsLineAllStinC = 426;
01395
01396 fMenuLFCorccColzC = 51;
01397 fMenuLFCorccLegoC = 52;
01398
01399 fMenuHFCorccColzC = 61;
01400 fMenuHFCorccLegoC = 62;
01401
01402 fMenuAdcProjSampLineFullC = 711;
01403 fMenuAdcProjSampLineSameC = 712;
01404 fMenuAdcProjLineLinyFullC = 713;
01405 fMenuAdcProjLineLinySameC = 714;
01406
01407 fMenuH_Ped_DatePolmFullC = 811;
01408 fMenuH_Ped_DatePolmSameC = 812;
01409
01410 fMenuH_TNo_DatePolmFullC = 821;
01411 fMenuH_TNo_DatePolmSameC = 822;
01412 fMenuH_TNo_DatePolmSamePC = 823;
01413
01414 fMenuH_LFN_DatePolmFullC = 824;
01415 fMenuH_LFN_DatePolmSameC = 825;
01416 fMenuH_LFN_DatePolmSamePC = 826;
01417
01418 fMenuH_HFN_DatePolmFullC = 827;
01419 fMenuH_HFN_DatePolmSameC = 828;
01420 fMenuH_HFN_DatePolmSamePC = 829;
01421
01422 fMenuH_MCs_DatePolmFullC = 831;
01423 fMenuH_MCs_DatePolmSameC = 832;
01424 fMenuH_MCs_DatePolmSamePC = 833;
01425
01426 fMenuH_SCs_DatePolmFullC = 841;
01427 fMenuH_SCs_DatePolmSameC = 842;
01428 fMenuH_SCs_DatePolmSamePC = 843;
01429
01430
01431 fButStexNbC = 90;
01432 fButChNbC = 91;
01433 fButCloneC = 95;
01434 fButRootC = 96;
01435 fButHelpC = 97;
01436 fButExitC = 98;
01437
01438
01439 Int_t MaxCar = fgMaxCar;
01440 fMemoScaleX.Resize(MaxCar);
01441 fMemoScaleX = "LIN";
01442
01443 MaxCar = fgMaxCar;
01444 fMemoScaleY.Resize(MaxCar);
01445 fMemoScaleY = "LIN";
01446
01447 MaxCar = fgMaxCar;
01448 fMemoProjY.Resize(MaxCar);
01449 fMemoProjY = "normal";
01450
01451 MaxCar = fgMaxCar;
01452 fMemoColPal.Resize(MaxCar);
01453 fMemoColPal = "ECCNAColor";
01454
01455
01456
01457 MaxCar = fgMaxCar;
01458 fOptPlotFull.Resize(MaxCar);
01459 fOptPlotFull = "ONLYONE";
01460
01461 MaxCar = fgMaxCar;
01462 fOptPlotSame.Resize(MaxCar);
01463 fOptPlotSame = "SAME";
01464
01465 MaxCar = fgMaxCar;
01466 fOptPlotSameP.Resize(MaxCar);
01467 fOptPlotSameP = "SAME n";
01468
01469 MaxCar = fgMaxCar;
01470 fOptPlotSameInStin.Resize(MaxCar);
01471 fOptPlotSameInStin = "SAME in Stin";
01472
01473 MaxCar = fgMaxCar;
01474 fOptAscii.Resize(MaxCar);
01475 fOptAscii = "ASCII";
01476
01477 }
01478
01479
01480
01481
01482
01483
01484
01485
01486
01487
01488
01489
01490
01491 void TEcnaGui::DialogBox()
01492 {
01493
01494
01495
01496
01497
01498
01499
01500
01501
01502
01503
01504 Pixel_t SubDetColor = GetBackground();
01505
01506 if( fSubDet == "EB" ){SubDetColor = GetBackground();}
01507 if( fSubDet == "EE" ){SubDetColor = GetBackground();}
01508
01509
01510
01511
01512
01513
01514
01515
01516
01517
01518
01519
01520
01521
01522
01523
01524
01525
01526
01527
01528
01529
01530
01531 fLayoutGeneral = new TGLayoutHints (kLHintsCenterX | kLHintsCenterY); fCnew++;
01532 fLayoutBottLeft = new TGLayoutHints (kLHintsLeft | kLHintsBottom); fCnew++;
01533 fLayoutTopLeft = new TGLayoutHints (kLHintsLeft | kLHintsTop); fCnew++;
01534 fLayoutBottRight = new TGLayoutHints (kLHintsRight | kLHintsBottom); fCnew++;
01535 fLayoutTopRight = new TGLayoutHints (kLHintsRight | kLHintsTop); fCnew++;
01536 fLayoutCenterYLeft = new TGLayoutHints (kLHintsLeft | kLHintsCenterY); fCnew++;
01537 fLayoutCenterYRight = new TGLayoutHints (kLHintsRight | kLHintsCenterY); fCnew++;
01538 fLayoutCenterXTop = new TGLayoutHints (kLHintsCenterX | kLHintsTop); fCnew++;
01539
01540 fVoidFrame = new TGCompositeFrame(this,60,20, kVerticalFrame, kSunkenFrame); fCnew++;
01541 AddFrame(fVoidFrame, fLayoutGeneral);
01542
01543
01544 Int_t xB1 = 0;
01545
01546
01547
01548
01549
01550
01551
01552
01553
01554
01555
01556
01557 fAnaNorsRunFrame = new TGCompositeFrame(this,60,20,kHorizontalFrame,
01558 GetDefaultFrameBackground()); fCnew++;
01559
01560
01561 TString xAnaButText = " Analysis ";
01562 Int_t typ_of_ana_buf_lenght = 80;
01563 fAnaFrame = new TGCompositeFrame(fAnaNorsRunFrame,60,20, kHorizontalFrame,
01564 kSunkenFrame); fCnew++;
01565
01566 fAnaBut = new TGTextButton(fAnaFrame, xAnaButText, fAnaButC); fCnew++;
01567 fAnaBut->Connect("Clicked()","TEcnaGui", this, "DoButtonAna()");
01568
01569 fAnaBut->SetToolTipText("Click here to register the analysis name written on the right");
01570 fAnaBut->SetBackgroundColor(SubDetColor);
01571
01572 fLayoutAnaBut =
01573 new TGLayoutHints(kLHintsLeft | kLHintsTop, xB1,xB1,xB1,xB1); fCnew++;
01574 fAnaFrame->AddFrame(fAnaBut, fLayoutAnaBut);
01575
01576 fEntryAnaNumber = new TGTextBuffer(); fCnew++;
01577 fAnaText = new TGTextEntry(fAnaFrame, fEntryAnaNumber); fCnew++;
01578 fAnaText->SetToolTipText
01579 ("Click and enter the analysis name (code for type of analysis)");
01580 fAnaText->Resize(typ_of_ana_buf_lenght, fAnaText->GetDefaultHeight());
01581 DisplayInEntryField(fAnaText,fKeyAnaType);
01582 fAnaText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonAna()");
01583 fLayoutAnaField =
01584 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
01585 fAnaFrame->AddFrame(fAnaText, fLayoutAnaField);
01586
01587
01588 TString xFirstReqEvtNumberButText = " 1st event# ";
01589 Int_t first_evt_buf_lenght = 65;
01590 fFevFrame =
01591 new TGCompositeFrame(fAnaNorsRunFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
01592
01593 fFevBut= new TGTextButton(fFevFrame, xFirstReqEvtNumberButText); fCnew++;
01594 fFevBut->Connect("Clicked()","TEcnaGui", this, "DoButtonFev()");
01595 fFevBut->SetToolTipText
01596 ("Click here to register the number of the first requested event number");
01597 fFevBut->SetBackgroundColor(SubDetColor);
01598 fLayoutFevBut =
01599 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
01600 fFevFrame->AddFrame(fFevBut, fLayoutFevBut);
01601
01602 fEntryFevNumber = new TGTextBuffer(); fCnew++;
01603 fFevText = new TGTextEntry(fFevFrame, fEntryFevNumber); fCnew++;
01604 fFevText->SetToolTipText("Click and enter the first requested event number");
01605 fFevText->Resize(first_evt_buf_lenght, fFevText->GetDefaultHeight());
01606 DisplayInEntryField(fFevText,fKeyFirstReqEvtNumber);
01607 fFevText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonFev()");
01608 fLayoutFevFieldText =
01609 new TGLayoutHints(kLHintsBottom | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
01610 fFevFrame->AddFrame(fFevText, fLayoutFevFieldText);
01611
01612
01613 TString xRunButText = " Run ";
01614 Int_t run_buf_lenght = 65;
01615 fRunFrame = new TGCompositeFrame(fAnaNorsRunFrame,0,0,
01616 kHorizontalFrame, kSunkenFrame); fCnew++;
01617 fRunBut = new TGTextButton(fRunFrame, xRunButText, fRunButC); fCnew++;
01618 fRunBut->Connect("Clicked()","TEcnaGui", this, "DoButtonRun()");
01619 fRunBut->SetToolTipText("Click here to register the run number");
01620 fRunBut->SetBackgroundColor(SubDetColor);
01621
01622 fLayoutRunBut =
01623 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1); fCnew++;
01624 fRunFrame->AddFrame(fRunBut, fLayoutRunBut);
01625 fEntryRunNumber = new TGTextBuffer(); fCnew++;
01626 fRunText = new TGTextEntry(fRunFrame, fEntryRunNumber); fCnew++;
01627 fRunText->SetToolTipText("Click and enter the run number");
01628 fRunText->Resize(run_buf_lenght, fRunText->GetDefaultHeight());
01629 DisplayInEntryField(fRunText,fKeyRunNumber);
01630 fRunText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonRun()");
01631 fLayoutRunField =
01632 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
01633 fRunFrame->AddFrame(fRunText, fLayoutRunField);
01634
01635
01636 fAnaNorsRunFrame->AddFrame(fAnaFrame, fLayoutTopLeft);
01637 fAnaNorsRunFrame->AddFrame(fFevFrame, fLayoutTopLeft);
01638 fAnaNorsRunFrame->AddFrame(fRunFrame,fLayoutTopRight);
01639 fLayoutAnaNorsRunFrame = new TGLayoutHints(kLHintsTop | kLHintsExpandX,
01640 xB1, xB1, xB1, xB1); fCnew++;
01641
01642 AddFrame(fAnaNorsRunFrame, fLayoutAnaNorsRunFrame);
01643
01644
01645
01646
01647
01648
01649 fFevLevStexFrame = new TGCompositeFrame(this,60,20,kHorizontalFrame,
01650 GetDefaultFrameBackground()); fCnew++;
01651
01652
01653 TString xNorsButText = "Nb Samp in File";
01654 Int_t nors_buf_lenght = 45;
01655 fNorsFrame = new TGCompositeFrame(fFevLevStexFrame,0,0, kHorizontalFrame,
01656 kSunkenFrame); fCnew++;
01657
01658 fNorsBut = new TGTextButton(fNorsFrame, xNorsButText, fNorsButC); fCnew++;
01659 fNorsBut->Connect("Clicked()","TEcnaGui", this, "DoButtonNors()");
01660
01661 fNorsBut->SetToolTipText("Click here to register the value written on the right");
01662 fNorsBut->SetBackgroundColor(SubDetColor);
01663
01664 fLayoutNorsBut =
01665 new TGLayoutHints(kLHintsLeft | kLHintsTop, xB1,xB1,xB1,xB1); fCnew++;
01666 fNorsFrame->AddFrame(fNorsBut, fLayoutNorsBut);
01667
01668 fEntryNorsNumber = new TGTextBuffer(); fCnew++;
01669 fNorsText = new TGTextEntry(fNorsFrame, fEntryNorsNumber); fCnew++;
01670 fNorsText->SetToolTipText("Click and enter the number of required samples");
01671 fNorsText->Resize(nors_buf_lenght, fNorsText->GetDefaultHeight());
01672 DisplayInEntryField(fNorsText,fKeyNbOfSamples);
01673 fNorsText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonNors()");
01674 fLayoutNorsField =
01675 new TGLayoutHints(kLHintsTop | kLHintsCenterX, xB1,xB1,xB1,xB1); fCnew++;
01676 fNorsFrame->AddFrame(fNorsText, fLayoutNorsField);
01677
01678
01679 TString xLastReqEvtButText = " Last event# ";
01680 Int_t last_evt_buf_lenght = 65;
01681 fLevFrame =
01682 new TGCompositeFrame(fFevLevStexFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
01683
01684 fLevBut = new TGTextButton(fLevFrame, xLastReqEvtButText); fCnew++;
01685 fLevBut->Connect("Clicked()","TEcnaGui", this, "DoButtonLev()");
01686 fLevBut->SetToolTipText("Click here to register the last requested event number");
01687 fLevBut->SetBackgroundColor(SubDetColor);
01688 fLayoutLevBut =
01689 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
01690 fLevFrame->AddFrame(fLevBut, fLayoutLevBut);
01691
01692 fEntryLevNumber = new TGTextBuffer(); fCnew++;
01693 fLevText = new TGTextEntry(fLevFrame, fEntryLevNumber); fCnew++;
01694 fLevText->SetToolTipText("Click and enter the last requested event number");
01695 fLevText->Resize(last_evt_buf_lenght, fLevText->GetDefaultHeight());
01696 DisplayInEntryField(fLevText,fKeyLastReqEvtNumber);
01697 fLevText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonLev()");
01698 fLayoutLevFieldText =
01699 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
01700 fLevFrame->AddFrame(fLevText, fLayoutLevFieldText);
01701
01702
01703 TString xMenuBarClean = "Clean ";
01704
01705 fMenuClean = new TGPopupMenu(gClient->GetRoot()); fCnew++;
01706 fMenuClean->AddEntry("Submission scripts",fMenuCleanSubC);
01707 fMenuClean->AddEntry("LSFJOB reports",fMenuCleanJobC);
01708 fMenuClean->AddEntry("Python files",fMenuCleanPythC);
01709 fMenuClean->AddEntry("All",fMenuCleanAllC);
01710
01711 fMenuClean->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
01712 fMenuBarClean = new TGMenuBar(fFevLevStexFrame , 1, 1, kHorizontalFrame); fCnew++;
01713 fMenuBarClean->AddPopup(xMenuBarClean, fMenuClean, fLayoutTopLeft);
01714
01715
01716 TString xMenuBarSubmit = " Submit ";
01717 fMenuSubmit = new TGPopupMenu(gClient->GetRoot()); fCnew++;
01718
01719 fMenuSubmit->AddEntry(" -q 8nm ",fMenuSubmit8nmC);
01720 fMenuSubmit->AddEntry(" -q 1nh ",fMenuSubmit1nhC);
01721 fMenuSubmit->AddEntry(" -q 8nh ",fMenuSubmit8nhC);
01722 fMenuSubmit->AddEntry(" -q 1nd ",fMenuSubmit1ndC);
01723 fMenuSubmit->AddEntry(" -q 1nw ",fMenuSubmit1nwC);
01724
01725 fMenuSubmit->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
01726 fMenuBarSubmit = new TGMenuBar(fFevLevStexFrame, 1, 1, kHorizontalFrame); fCnew++;
01727 fMenuBarSubmit->AddPopup(xMenuBarSubmit, fMenuSubmit, fLayoutTopLeft);
01728
01729
01730 fFevLevStexFrame->AddFrame(fNorsFrame,fLayoutTopLeft);
01731 fFevLevStexFrame->AddFrame(fLevFrame, fLayoutTopLeft);
01732 fFevLevStexFrame->AddFrame(fMenuBarSubmit, fLayoutTopRight);
01733 fFevLevStexFrame->AddFrame(fMenuBarClean, fLayoutTopRight);
01734
01735 fLayoutFevLevStexFrame = new TGLayoutHints(kLHintsTop | kLHintsExpandX,
01736 xB1, xB1, xB1, xB1); fCnew++;
01737
01738 AddFrame(fFevLevStexFrame, fLayoutFevLevStexFrame);
01739
01740
01741
01742
01743
01744
01745
01746 fCompStRqFrame = new TGCompositeFrame(this,60,20,kHorizontalFrame,
01747 GetDefaultFrameBackground()); fCnew++;
01748
01749
01750 TString xSumoButText;
01751 if( fSubDet == "EB" ){xSumoButText = " SM# (0=EB) ";}
01752 if( fSubDet == "EE" ){xSumoButText = " Dee# (0=EE) ";}
01753
01754 Int_t stex_number_buf_lenght = 36;
01755 fStexFrame =
01756 new TGCompositeFrame(fCompStRqFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
01757
01758 fStexBut = new TGTextButton(fStexFrame, xSumoButText); fCnew++;
01759 fStexBut->Connect("Clicked()","TEcnaGui", this, "DoButtonStex()");
01760 fStexBut->SetToolTipText("Click here to register the number written on the right");
01761 fStexBut->SetBackgroundColor(SubDetColor);
01762
01763 fLayoutStexBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
01764 fStexFrame->AddFrame(fStexBut, fLayoutStexBut);
01765
01766 fEntryStexNumber = new TGTextBuffer(); fCnew++;
01767 fStexText = new TGTextEntry(fStexFrame, fEntryStexNumber); fCnew++;
01768
01769 TString xStexNumber;
01770 if( fSubDet == "EB" ){xStexNumber = "Click and enter the SM number";}
01771 if( fSubDet == "EE" ){xStexNumber = "Click and enter the Dee number";}
01772 fStexText->SetToolTipText(xStexNumber);
01773 fStexText->Resize(stex_number_buf_lenght, fStexText->GetDefaultHeight());
01774 DisplayInEntryField(fStexText, fKeyStexNumber);
01775 fStexText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonStex()");
01776
01777 fLayoutStexFieldText =
01778 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
01779 fStexFrame->AddFrame(fStexText, fLayoutStexFieldText);
01780
01781
01782 TString xNbOfReqEvtButText = " Nb of events ";
01783 Int_t nbof_evt_buf_lenght = 65;
01784 fRevFrame =
01785 new TGCompositeFrame(fCompStRqFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
01786
01787 fRevBut = new TGTextButton(fRevFrame, xNbOfReqEvtButText); fCnew++;
01788 fRevBut->Connect("Clicked()","TEcnaGui", this, "DoButtonRev()");
01789 fRevBut->SetToolTipText("Click here to register the requested number of events");
01790 fRevBut->SetBackgroundColor(SubDetColor);
01791 fLayoutRevBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
01792 fRevFrame->AddFrame(fRevBut, fLayoutRevBut);
01793
01794 fEntryRevNumber = new TGTextBuffer(); fCnew++;
01795 fRevText = new TGTextEntry(fRevFrame, fEntryRevNumber); fCnew++;
01796 fRevText->SetToolTipText("Click and enter the requested number of events");
01797 fRevText->Resize(nbof_evt_buf_lenght, fRevText->GetDefaultHeight());
01798 DisplayInEntryField(fRevText,fKeyReqNbOfEvts);
01799 fRevText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonRev()");
01800 fLayoutRevFieldText =
01801 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
01802 fRevFrame->AddFrame(fRevText, fLayoutRevFieldText);
01803
01804
01805 fCompStRqFrame->AddFrame(fStexFrame,fLayoutTopLeft);
01806 fCompStRqFrame->AddFrame(fRevFrame,fLayoutTopLeft);
01807
01808 fLayoutCompStRqFrame = new TGLayoutHints(kLHintsTop | kLHintsExpandX,
01809 xB1, xB1, xB1, xB1); fCnew++;
01810 AddFrame(fCompStRqFrame, fLayoutCompStRqFrame);
01811 AddFrame(fVoidFrame, fLayoutGeneral);
01812
01813
01814
01815
01816
01817
01818
01819 fCompStnbFrame = new TGCompositeFrame(this,60,20,kHorizontalFrame,
01820 GetDefaultFrameBackground()); fCnew++;
01821
01822
01823
01824
01825 TString xStexNbButText;
01826 if( fSubDet == "EB" ){xStexNbButText = "SM Tower Numbering";}
01827 if( fSubDet == "EE" ){xStexNbButText = "Dee SC Numbering";}
01828 fButStexNb = new TGTextButton(fCompStnbFrame, xStexNbButText, fButStexNbC); fCnew++;
01829 fButStexNb->Connect("Clicked()","TEcnaGui", this, "DoButtonStexNb()");
01830 fButStexNb->SetBackgroundColor(SubDetColor);
01831
01832
01833 TString xNbSampForCalcButText = "Nb Samp Calc";
01834 Int_t nb_of_samp_calc_buf_lenght = 28;
01835 fNbSampForCalcFrame =
01836 new TGCompositeFrame(fCompStnbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
01837
01838 fNbSampForCalcBut = new TGTextButton(fNbSampForCalcFrame, xNbSampForCalcButText); fCnew++;
01839 fNbSampForCalcBut->Connect("Clicked()","TEcnaGui", this, "DoButtonNbSampForCalc()");
01840 fNbSampForCalcBut->SetToolTipText("Click here to register the number written on the right");
01841 fNbSampForCalcBut->SetBackgroundColor(SubDetColor);
01842
01843 fLayoutNbSampForCalcBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
01844 fNbSampForCalcFrame->AddFrame(fNbSampForCalcBut, fLayoutNbSampForCalcBut);
01845
01846 fEntryNbSampForCalcNumber = new TGTextBuffer(); fCnew++;
01847 fNbSampForCalcText = new TGTextEntry(fNbSampForCalcFrame, fEntryNbSampForCalcNumber); fCnew++;
01848
01849 TString xNbSampForCalcNumber = "Click and enter the nb of samples for calculations";
01850 fNbSampForCalcText->SetToolTipText(xNbSampForCalcNumber);
01851 fNbSampForCalcText->Resize(nb_of_samp_calc_buf_lenght, fNbSampForCalcText->GetDefaultHeight());
01852 DisplayInEntryField(fNbSampForCalcText, fKeyNbOfSampForCalc);
01853 fNbSampForCalcText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonNbSampForCalc()");
01854
01855 fLayoutNbSampForCalcFieldText =
01856 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
01857 fNbSampForCalcFrame->AddFrame(fNbSampForCalcText, fLayoutNbSampForCalcFieldText);
01858
01859
01860 TString xMenuBarComput = "Calculations ";
01861 fMenuComput = new TGPopupMenu(gClient->GetRoot()); fCnew++;
01862 fMenuComput->AddEntry("Standard ( Pedestals, Noises, Cor(s,s') )",fMenuComputStdC);
01863 fMenuComput->AddEntry("Standard + |Cor(t,t')| (long time)",fMenuComputSttC);
01864 fMenuComput->AddEntry("Standard + |Cor(t,t')| + |Cor(c,c')| (long time + big file)",fMenuComputSccC);
01865
01866 fMenuComput->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
01867 fMenuBarComput = new TGMenuBar(fCompStnbFrame , 1, 1, kHorizontalFrame); fCnew++;
01868 fMenuBarComput->AddPopup(xMenuBarComput, fMenuComput, fLayoutTopLeft);
01869
01870
01871 fCompStnbFrame->AddFrame(fButStexNb,fLayoutTopLeft);
01872 fCompStnbFrame->AddFrame(fMenuBarComput,fLayoutTopRight);
01873 fCompStnbFrame->AddFrame(fNbSampForCalcFrame,fLayoutTopRight);
01874
01875 fLayoutCompStnbFrame = new TGLayoutHints(kLHintsTop | kLHintsExpandX,
01876 xB1, xB1, xB1, xB1); fCnew++;
01877 AddFrame(fCompStnbFrame, fLayoutCompStnbFrame);
01878 AddFrame(fVoidFrame, fLayoutGeneral);
01879
01880
01881
01882
01883
01884
01885 Int_t minmax_buf_lenght = 45;
01886
01887 fStexUpFrame = new TGCompositeFrame
01888 (this,60,20,kVerticalFrame, GetDefaultFrameBackground()); fCnew++;
01889 TString xYminButText = " Ymin ";
01890 TString xYmaxButText = " Ymax ";
01891
01892 fVmmD_NOE_ChNbFrame = new TGCompositeFrame
01893 (fStexUpFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
01894
01895
01896
01897 fVmaxD_NOE_ChNbFrame = new TGCompositeFrame
01898 (fVmmD_NOE_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
01899
01900 fVmaxD_NOE_ChNbBut = new TGTextButton(fVmaxD_NOE_ChNbFrame, xYmaxButText); fCnew++;
01901 fVmaxD_NOE_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVmaxD_NOE_ChNb()");
01902 fVmaxD_NOE_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
01903 fVmaxD_NOE_ChNbBut->SetBackgroundColor(SubDetColor);
01904 fLayoutVmaxD_NOE_ChNbBut =
01905 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
01906 fVmaxD_NOE_ChNbFrame->AddFrame(fVmaxD_NOE_ChNbBut, fLayoutVmaxD_NOE_ChNbBut);
01907 fEntryVmaxD_NOE_ChNbNumber = new TGTextBuffer(); fCnew++;
01908 fVmaxD_NOE_ChNbText =
01909 new TGTextEntry(fVmaxD_NOE_ChNbFrame, fEntryVmaxD_NOE_ChNbNumber); fCnew++;
01910 fVmaxD_NOE_ChNbText->SetToolTipText("Click and enter ymax");
01911 fVmaxD_NOE_ChNbText->Resize(minmax_buf_lenght, fVmaxD_NOE_ChNbText->GetDefaultHeight());
01912 DisplayInEntryField(fVmaxD_NOE_ChNbText, fKeyVmaxD_NOE_ChNb);
01913 fVmaxD_NOE_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_NOE_ChNb()");
01914
01915 fLayoutVmaxD_NOE_ChNbFieldText =
01916 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
01917 fVmaxD_NOE_ChNbFrame->AddFrame(fVmaxD_NOE_ChNbText, fLayoutVmaxD_NOE_ChNbFieldText);
01918 fLayoutVmaxD_NOE_ChNbFrame =
01919 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
01920 fVmmD_NOE_ChNbFrame->AddFrame(fVmaxD_NOE_ChNbFrame, fLayoutVmaxD_NOE_ChNbFrame);
01921
01922
01923 fVminD_NOE_ChNbFrame = new TGCompositeFrame
01924 (fVmmD_NOE_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
01925
01926 fVminD_NOE_ChNbBut = new TGTextButton(fVminD_NOE_ChNbFrame, xYminButText); fCnew++;
01927 fVminD_NOE_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVminD_NOE_ChNb()");
01928 fVminD_NOE_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
01929 fVminD_NOE_ChNbBut->SetBackgroundColor(SubDetColor);
01930 fLayoutVminD_NOE_ChNbBut =
01931 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
01932 fVminD_NOE_ChNbFrame->AddFrame(fVminD_NOE_ChNbBut, fLayoutVminD_NOE_ChNbBut);
01933 fEntryVminD_NOE_ChNbNumber = new TGTextBuffer(); fCnew++;
01934 fVminD_NOE_ChNbText =
01935 new TGTextEntry(fVminD_NOE_ChNbFrame, fEntryVminD_NOE_ChNbNumber); fCnew++;
01936 fVminD_NOE_ChNbText->SetToolTipText("Click and enter ymin");
01937 fVminD_NOE_ChNbText->Resize(minmax_buf_lenght, fVminD_NOE_ChNbText->GetDefaultHeight());
01938 DisplayInEntryField(fVminD_NOE_ChNbText,fKeyVminD_NOE_ChNb);
01939 fVminD_NOE_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_NOE_ChNb()");
01940 fLayoutVminD_NOE_ChNbFieldText =
01941 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
01942 fVminD_NOE_ChNbFrame->AddFrame(fVminD_NOE_ChNbText, fLayoutVminD_NOE_ChNbFieldText);
01943 fLayoutVminD_NOE_ChNbFrame =
01944 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
01945 fVmmD_NOE_ChNbFrame->AddFrame(fVminD_NOE_ChNbFrame, fLayoutVminD_NOE_ChNbFrame);
01946
01947
01948 TString xHistoChannels = "1D Histo";
01949 TString xHistoChannelsSame = "1D Histo SAME" ;
01950 TString xHistoChannelsSameP = "1D Histo SAME n";
01951 TString xHistoProjection = "1D Histo Projection";
01952 TString xHistoProjectionSame = "1D Histo Projection SAME";
01953 TString xHistoProjectionSameP = "1D Histo Projection SAME n";
01954 TString xHocoVecoViewSorS = "2D, Histo";
01955 if( fSubDet == "EB" ){xHocoVecoViewSorS = "2D, Histo (eta,phi)";}
01956 if( fSubDet == "EE" ){xHocoVecoViewSorS = "2D, Histo (IX,IY)";}
01957 TString xAsciiFileStex = "1D Histo, write in ASCII file";
01958
01959
01960 TString xMenuD_NOE_ChNb = "Numbers of events ";
01961 fMenuD_NOE_ChNb = new TGPopupMenu(gClient->GetRoot()); fCnew++;
01962 fMenuD_NOE_ChNb->AddEntry(xHistoChannels,fMenuD_NOE_ChNbFullC);
01963 fMenuD_NOE_ChNb->AddEntry(xHistoChannelsSame,fMenuD_NOE_ChNbSameC);
01964 fMenuD_NOE_ChNb->AddSeparator();
01965 fMenuD_NOE_ChNb->AddEntry(xHocoVecoViewSorS,fMenuD_NOE_ChNbHocoVecoC);
01966 fMenuD_NOE_ChNb->AddSeparator();
01967 fMenuD_NOE_ChNb->AddEntry(xAsciiFileStex,fMenuD_NOE_ChNbAsciiFileC);
01968 fMenuD_NOE_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
01969 fMenuBarD_NOE_ChNb = new TGMenuBar(fVmmD_NOE_ChNbFrame, 1, 1, kHorizontalFrame); fCnew++;
01970
01971
01972
01973 fMenuBarD_NOE_ChNb->AddPopup(xMenuD_NOE_ChNb, fMenuD_NOE_ChNb, fLayoutGeneral);
01974 fLayoutMenuBarD_NOE_ChNb = new TGLayoutHints(kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
01975 fVmmD_NOE_ChNbFrame->AddFrame(fMenuBarD_NOE_ChNb, fLayoutMenuBarD_NOE_ChNb);
01976 fLayoutVmmD_NOE_ChNbFrame =
01977 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
01978 fStexUpFrame->AddFrame(fVmmD_NOE_ChNbFrame, fLayoutVmmD_NOE_ChNbFrame);
01979
01980
01981 fStexHozFrame =
01982 new TGCompositeFrame(fStexUpFrame,60,20,kVerticalFrame,
01983 GetDefaultFrameBackground()); fCnew++;
01984
01985
01986 fVmmD_Ped_ChNbFrame = new TGCompositeFrame
01987 (fStexHozFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
01988
01989
01990
01991
01992 fVmaxD_Ped_ChNbFrame = new TGCompositeFrame
01993 (fVmmD_Ped_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
01994
01995 fVmaxD_Ped_ChNbBut = new TGTextButton(fVmaxD_Ped_ChNbFrame, xYmaxButText); fCnew++;
01996 fVmaxD_Ped_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVmaxD_Ped_ChNb()");
01997 fVmaxD_Ped_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
01998 fLayoutVmaxD_Ped_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
01999 fVmaxD_Ped_ChNbBut->SetBackgroundColor(SubDetColor);
02000 fVmaxD_Ped_ChNbFrame->AddFrame(fVmaxD_Ped_ChNbBut, fLayoutVmaxD_Ped_ChNbBut);
02001 fEntryVmaxD_Ped_ChNbNumber = new TGTextBuffer(); fCnew++;
02002 fVmaxD_Ped_ChNbText = new TGTextEntry(fVmaxD_Ped_ChNbFrame, fEntryVmaxD_Ped_ChNbNumber); fCnew++;
02003 fVmaxD_Ped_ChNbText->SetToolTipText("Click and enter ymax");
02004 fVmaxD_Ped_ChNbText->Resize(minmax_buf_lenght, fVmaxD_Ped_ChNbText->GetDefaultHeight());
02005 DisplayInEntryField(fVmaxD_Ped_ChNbText,fKeyVmaxD_Ped_ChNb);
02006 fVmaxD_Ped_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_Ped_ChNb()");
02007 fLayoutVmaxD_Ped_ChNbFieldText =
02008 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02009 fVmaxD_Ped_ChNbFrame->AddFrame(fVmaxD_Ped_ChNbText, fLayoutVmaxD_Ped_ChNbFieldText);
02010 fLayoutVmaxD_Ped_ChNbFrame =
02011 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02012 fVmmD_Ped_ChNbFrame->AddFrame(fVmaxD_Ped_ChNbFrame, fLayoutVmaxD_Ped_ChNbFrame);
02013
02014
02015 fVminD_Ped_ChNbFrame = new TGCompositeFrame
02016 (fVmmD_Ped_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02017
02018 fVminD_Ped_ChNbBut = new TGTextButton(fVminD_Ped_ChNbFrame, xYminButText); fCnew++;
02019 fVminD_Ped_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVminD_Ped_ChNb()");
02020 fVminD_Ped_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
02021 fVminD_Ped_ChNbBut->SetBackgroundColor(SubDetColor);
02022 fLayoutVminD_Ped_ChNbBut =
02023 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02024 fVminD_Ped_ChNbFrame->AddFrame(fVminD_Ped_ChNbBut, fLayoutVminD_Ped_ChNbBut);
02025
02026 fEntryVminD_Ped_ChNbNumber = new TGTextBuffer(); fCnew++;
02027 fVminD_Ped_ChNbText = new TGTextEntry(fVminD_Ped_ChNbFrame, fEntryVminD_Ped_ChNbNumber); fCnew++;
02028 fVminD_Ped_ChNbText->SetToolTipText("Click and enter ymin");
02029 fVminD_Ped_ChNbText->Resize(minmax_buf_lenght, fVminD_Ped_ChNbText->GetDefaultHeight());
02030 DisplayInEntryField(fVminD_Ped_ChNbText,fKeyVminD_Ped_ChNb);
02031 fVminD_Ped_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_Ped_ChNb()");
02032 fLayoutVminD_Ped_ChNbFieldText =
02033 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02034 fVminD_Ped_ChNbFrame->AddFrame(fVminD_Ped_ChNbText, fLayoutVminD_Ped_ChNbFieldText);
02035 fLayoutVminD_Ped_ChNbFrame =
02036 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02037 fVmmD_Ped_ChNbFrame->AddFrame(fVminD_Ped_ChNbFrame, fLayoutVminD_Ped_ChNbFrame);
02038
02039
02040 TString xMenuD_Ped_ChNb = " Pedestals ";
02041 fMenuD_Ped_ChNb = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02042 fMenuD_Ped_ChNb->AddEntry(xHistoChannels,fMenuD_Ped_ChNbFullC);
02043 fMenuD_Ped_ChNb->AddEntry(xHistoChannelsSame,fMenuD_Ped_ChNbSameC);
02044 fMenuD_Ped_ChNb->AddSeparator();
02045 fMenuD_Ped_ChNb->AddEntry(xHocoVecoViewSorS,fMenuD_Ped_ChNbHocoVecoC);
02046 fMenuD_Ped_ChNb->AddSeparator();
02047 fMenuD_Ped_ChNb->AddEntry(xAsciiFileStex,fMenuD_Ped_ChNbAsciiFileC);
02048 fMenuD_Ped_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02049 fMenuBarD_Ped_ChNb = new TGMenuBar(fVmmD_Ped_ChNbFrame, 1, 1, kHorizontalFrame); fCnew++;
02050 fMenuBarD_Ped_ChNb->AddPopup(xMenuD_Ped_ChNb, fMenuD_Ped_ChNb, fLayoutGeneral);
02051 fLayoutMenuBarD_Ped_ChNb = new TGLayoutHints(kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02052 fVmmD_Ped_ChNbFrame->AddFrame(fMenuBarD_Ped_ChNb, fLayoutMenuBarD_Ped_ChNb);
02053
02054 fLayoutVmmD_Ped_ChNbFrame =
02055 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02056 fStexHozFrame->AddFrame(fVmmD_Ped_ChNbFrame, fLayoutVmmD_Ped_ChNbFrame);
02057
02058
02059 fVmmD_TNo_ChNbFrame = new TGCompositeFrame
02060 (fStexHozFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02061
02062
02063
02064 fVmaxD_TNo_ChNbFrame = new TGCompositeFrame
02065 (fVmmD_TNo_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02066
02067 fVmaxD_TNo_ChNbBut = new TGTextButton(fVmaxD_TNo_ChNbFrame, xYmaxButText); fCnew++;
02068 fVmaxD_TNo_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVmaxD_TNo_ChNb()");
02069 fVmaxD_TNo_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
02070 fVmaxD_TNo_ChNbBut->SetBackgroundColor(SubDetColor);
02071 fLayoutVmaxD_TNo_ChNbBut =
02072 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02073 fVmaxD_TNo_ChNbFrame->AddFrame(fVmaxD_TNo_ChNbBut, fLayoutVmaxD_TNo_ChNbBut);
02074 fEntryVmaxD_TNo_ChNbNumber = new TGTextBuffer(); fCnew++;
02075 fVmaxD_TNo_ChNbText = new TGTextEntry(fVmaxD_TNo_ChNbFrame, fEntryVmaxD_TNo_ChNbNumber); fCnew++;
02076 fVmaxD_TNo_ChNbText->SetToolTipText("Click and enter ymax");
02077 fVmaxD_TNo_ChNbText->Resize(minmax_buf_lenght, fVmaxD_TNo_ChNbText->GetDefaultHeight());
02078 DisplayInEntryField(fVmaxD_TNo_ChNbText,fKeyVmaxD_TNo_ChNb);
02079 fVmaxD_TNo_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_TNo_ChNb()");
02080 fLayoutVmaxD_TNo_ChNbFieldText =
02081 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02082 fVmaxD_TNo_ChNbFrame->AddFrame(fVmaxD_TNo_ChNbText, fLayoutVmaxD_TNo_ChNbFieldText);
02083 fLayoutVmaxD_TNo_ChNbFrame =
02084 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02085 fVmmD_TNo_ChNbFrame->AddFrame(fVmaxD_TNo_ChNbFrame, fLayoutVmaxD_TNo_ChNbFrame);
02086
02087
02088 fVminD_TNo_ChNbFrame = new TGCompositeFrame
02089 (fVmmD_TNo_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02090
02091 fVminD_TNo_ChNbBut = new TGTextButton(fVminD_TNo_ChNbFrame, xYminButText); fCnew++;
02092 fVminD_TNo_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVminD_TNo_ChNb()");
02093 fVminD_TNo_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
02094 fVminD_TNo_ChNbBut->SetBackgroundColor(SubDetColor);
02095 fLayoutVminD_TNo_ChNbBut =
02096 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02097 fVminD_TNo_ChNbFrame->AddFrame(fVminD_TNo_ChNbBut, fLayoutVminD_TNo_ChNbBut);
02098
02099 fEntryVminD_TNo_ChNbNumber = new TGTextBuffer(); fCnew++;
02100 fVminD_TNo_ChNbText = new TGTextEntry(fVminD_TNo_ChNbFrame, fEntryVminD_TNo_ChNbNumber); fCnew++;
02101 fVminD_TNo_ChNbText->SetToolTipText("Click and enter ymin");
02102 fVminD_TNo_ChNbText->Resize(minmax_buf_lenght, fVminD_TNo_ChNbText->GetDefaultHeight());
02103 DisplayInEntryField(fVminD_TNo_ChNbText,fKeyVminD_TNo_ChNb);
02104 fVminD_TNo_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_TNo_ChNb()");
02105 fLayoutVminD_TNo_ChNbFieldText =
02106 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02107 fVminD_TNo_ChNbFrame->AddFrame(fVminD_TNo_ChNbText, fLayoutVminD_TNo_ChNbFieldText);
02108 fLayoutVminD_TNo_ChNbFrame =
02109 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02110 fVmmD_TNo_ChNbFrame->AddFrame(fVminD_TNo_ChNbFrame, fLayoutVminD_TNo_ChNbFrame);
02111
02112
02113 TString xMenuD_TNo_ChNb = " Total Noise ";
02114 fMenuD_TNo_ChNb = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02115 fMenuD_TNo_ChNb->AddEntry(xHistoChannels,fMenuD_TNo_ChNbFullC);
02116 fMenuD_TNo_ChNb->AddEntry(xHistoChannelsSame,fMenuD_TNo_ChNbSameC);
02117 fMenuD_TNo_ChNb->AddEntry(xHistoChannelsSameP,fMenuD_TNo_ChNbSamePC);
02118 fMenuD_TNo_ChNb->AddSeparator();
02119 fMenuD_TNo_ChNb->AddEntry(xHocoVecoViewSorS,fMenuD_TNo_ChNbHocoVecoC);
02120 fMenuD_TNo_ChNb->AddSeparator();
02121 fMenuD_TNo_ChNb->AddEntry(xAsciiFileStex,fMenuD_TNo_ChNbAsciiFileC);
02122 fMenuD_TNo_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02123 fMenuBarD_TNo_ChNb = new TGMenuBar(fVmmD_TNo_ChNbFrame, 1, 1, kHorizontalFrame); fCnew++;
02124 fMenuBarD_TNo_ChNb->AddPopup(xMenuD_TNo_ChNb, fMenuD_TNo_ChNb, fLayoutGeneral);
02125 fLayoutMenuBarD_TNo_ChNb = new TGLayoutHints(kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02126 fVmmD_TNo_ChNbFrame->AddFrame(fMenuBarD_TNo_ChNb, fLayoutMenuBarD_TNo_ChNb);
02127
02128 fLayoutVmmD_TNo_ChNbFrame =
02129 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02130 fStexHozFrame->AddFrame(fVmmD_TNo_ChNbFrame, fLayoutVmmD_TNo_ChNbFrame);
02131
02132
02133 fVmmD_LFN_ChNbFrame = new TGCompositeFrame
02134 (fStexHozFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02135
02136
02137
02138 fVmaxD_LFN_ChNbFrame = new TGCompositeFrame
02139 (fVmmD_LFN_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02140
02141 fVmaxD_LFN_ChNbBut = new TGTextButton(fVmaxD_LFN_ChNbFrame, xYmaxButText); fCnew++;
02142 fVmaxD_LFN_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVmaxD_LFN_ChNb()");
02143 fVmaxD_LFN_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
02144 fVmaxD_LFN_ChNbBut->SetBackgroundColor(SubDetColor);
02145 fLayoutVmaxD_LFN_ChNbBut =
02146 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02147 fVmaxD_LFN_ChNbFrame->AddFrame(fVmaxD_LFN_ChNbBut, fLayoutVmaxD_LFN_ChNbBut);
02148 fEntryVmaxD_LFN_ChNbNumber = new TGTextBuffer(); fCnew++;
02149 fVmaxD_LFN_ChNbText = new TGTextEntry(fVmaxD_LFN_ChNbFrame, fEntryVmaxD_LFN_ChNbNumber); fCnew++;
02150 fVmaxD_LFN_ChNbText->SetToolTipText("Click and enter ymax");
02151 fVmaxD_LFN_ChNbText->Resize(minmax_buf_lenght, fVmaxD_LFN_ChNbText->GetDefaultHeight());
02152 DisplayInEntryField(fVmaxD_LFN_ChNbText,fKeyVmaxD_LFN_ChNb);
02153 fVmaxD_LFN_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_LFN_ChNb()");
02154 fLayoutVmaxD_LFN_ChNbFieldText =
02155 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02156 fVmaxD_LFN_ChNbFrame->AddFrame(fVmaxD_LFN_ChNbText, fLayoutVmaxD_LFN_ChNbFieldText);
02157 fLayoutVmaxD_LFN_ChNbFrame =
02158 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02159 fVmmD_LFN_ChNbFrame->AddFrame(fVmaxD_LFN_ChNbFrame, fLayoutVmaxD_LFN_ChNbFrame);
02160
02161
02162 fVminD_LFN_ChNbFrame = new TGCompositeFrame
02163 (fVmmD_LFN_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02164
02165 fVminD_LFN_ChNbBut = new TGTextButton(fVminD_LFN_ChNbFrame, xYminButText); fCnew++;
02166 fVminD_LFN_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVminD_LFN_ChNb()");
02167 fVminD_LFN_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
02168 fVminD_LFN_ChNbBut->SetBackgroundColor(SubDetColor);
02169 fLayoutVminD_LFN_ChNbBut =
02170 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02171 fVminD_LFN_ChNbFrame->AddFrame(fVminD_LFN_ChNbBut, fLayoutVminD_LFN_ChNbBut);
02172 fEntryVminD_LFN_ChNbNumber = new TGTextBuffer(); fCnew++;
02173 fVminD_LFN_ChNbText = new TGTextEntry(fVminD_LFN_ChNbFrame, fEntryVminD_LFN_ChNbNumber); fCnew++;
02174 fVminD_LFN_ChNbText->SetToolTipText("Click and enter ymin");
02175 fVminD_LFN_ChNbText->Resize(minmax_buf_lenght, fVminD_LFN_ChNbText->GetDefaultHeight());
02176 DisplayInEntryField(fVminD_LFN_ChNbText,fKeyVminD_LFN_ChNb);
02177 fVminD_LFN_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_LFN_ChNb()");
02178 fLayoutVminD_LFN_ChNbFieldText =
02179 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02180 fVminD_LFN_ChNbFrame->AddFrame(fVminD_LFN_ChNbText, fLayoutVminD_LFN_ChNbFieldText);
02181 fLayoutVminD_LFN_ChNbFrame =
02182 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02183 fVmmD_LFN_ChNbFrame->AddFrame(fVminD_LFN_ChNbFrame, fLayoutVminD_LFN_ChNbFrame);
02184
02185
02186 TString xMenuD_LFN_ChNb = " Low Frequency Noise ";
02187 fMenuD_LFN_ChNb = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02188 fMenuD_LFN_ChNb->AddEntry(xHistoChannels,fMenuD_LFN_ChNbFullC);
02189 fMenuD_LFN_ChNb->AddEntry(xHistoChannelsSame,fMenuD_LFN_ChNbSameC);
02190 fMenuD_LFN_ChNb->AddEntry(xHistoChannelsSameP,fMenuD_LFN_ChNbSamePC);
02191 fMenuD_LFN_ChNb->AddSeparator();
02192 fMenuD_LFN_ChNb->AddEntry(xHocoVecoViewSorS,fMenuD_LFN_ChNbHocoVecoC);
02193 fMenuD_LFN_ChNb->AddSeparator();
02194 fMenuD_LFN_ChNb->AddEntry(xAsciiFileStex,fMenuD_LFN_ChNbAsciiFileC);
02195 fMenuD_LFN_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02196 fMenuBarD_LFN_ChNb = new TGMenuBar(fVmmD_LFN_ChNbFrame, 1, 1, kHorizontalFrame); fCnew++;
02197 fMenuBarD_LFN_ChNb->AddPopup(xMenuD_LFN_ChNb, fMenuD_LFN_ChNb, fLayoutGeneral);
02198 fLayoutMenuBarD_LFN_ChNb = new TGLayoutHints(kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02199 fVmmD_LFN_ChNbFrame->AddFrame(fMenuBarD_LFN_ChNb, fLayoutMenuBarD_LFN_ChNb);
02200 fLayoutVmmD_LFN_ChNbFrame =
02201 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02202 fStexHozFrame->AddFrame(fVmmD_LFN_ChNbFrame, fLayoutVmmD_LFN_ChNbFrame);
02203
02204
02205 fVmmD_HFN_ChNbFrame = new TGCompositeFrame
02206 (fStexHozFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02207
02208
02209
02210 fVmaxD_HFN_ChNbFrame = new TGCompositeFrame
02211 (fVmmD_HFN_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02212
02213 fVmaxD_HFN_ChNbBut = new TGTextButton(fVmaxD_HFN_ChNbFrame, xYmaxButText); fCnew++;
02214 fVmaxD_HFN_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVmaxD_HFN_ChNb()");
02215 fVmaxD_HFN_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
02216 fVmaxD_HFN_ChNbBut->SetBackgroundColor(SubDetColor);
02217 fLayoutVmaxD_HFN_ChNbBut =
02218 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02219 fVmaxD_HFN_ChNbFrame->AddFrame(fVmaxD_HFN_ChNbBut, fLayoutVmaxD_HFN_ChNbBut);
02220 fEntryVmaxD_HFN_ChNbNumber = new TGTextBuffer(); fCnew++;
02221 fVmaxD_HFN_ChNbText = new TGTextEntry(fVmaxD_HFN_ChNbFrame, fEntryVmaxD_HFN_ChNbNumber); fCnew++;
02222 fVmaxD_HFN_ChNbText->SetToolTipText("Click and enter ymax");
02223 fVmaxD_HFN_ChNbText->Resize(minmax_buf_lenght, fVmaxD_HFN_ChNbText->GetDefaultHeight());
02224 DisplayInEntryField(fVmaxD_HFN_ChNbText,fKeyVmaxD_HFN_ChNb);
02225 fVmaxD_HFN_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_HFN_ChNb()");
02226 fLayoutVmaxD_HFN_ChNbFieldText =
02227 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02228 fVmaxD_HFN_ChNbFrame->AddFrame(fVmaxD_HFN_ChNbText, fLayoutVmaxD_HFN_ChNbFieldText);
02229 fLayoutVmaxD_HFN_ChNbFrame =
02230 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02231 fVmmD_HFN_ChNbFrame->AddFrame(fVmaxD_HFN_ChNbFrame, fLayoutVmaxD_HFN_ChNbFrame);
02232
02233
02234 fVminD_HFN_ChNbFrame = new TGCompositeFrame
02235 (fVmmD_HFN_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02236
02237 fVminD_HFN_ChNbBut = new TGTextButton(fVminD_HFN_ChNbFrame, xYminButText); fCnew++;
02238 fVminD_HFN_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVminD_HFN_ChNb()");
02239 fVminD_HFN_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
02240 fVminD_HFN_ChNbBut->SetBackgroundColor(SubDetColor);
02241 fLayoutVminD_HFN_ChNbBut =
02242 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02243 fVminD_HFN_ChNbFrame->AddFrame(fVminD_HFN_ChNbBut, fLayoutVminD_HFN_ChNbBut);
02244 fEntryVminD_HFN_ChNbNumber = new TGTextBuffer(); fCnew++;
02245 fVminD_HFN_ChNbText = new TGTextEntry(fVminD_HFN_ChNbFrame, fEntryVminD_HFN_ChNbNumber); fCnew++;
02246 fVminD_HFN_ChNbText->SetToolTipText("Click and enter ymin");
02247 fVminD_HFN_ChNbText->Resize(minmax_buf_lenght, fVminD_HFN_ChNbText->GetDefaultHeight());
02248 DisplayInEntryField(fVminD_HFN_ChNbText,fKeyVminD_HFN_ChNb);
02249 fVminD_HFN_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_HFN_ChNb()");
02250 fLayoutVminD_HFN_ChNbFieldText =
02251 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02252 fVminD_HFN_ChNbFrame->AddFrame(fVminD_HFN_ChNbText, fLayoutVminD_HFN_ChNbFieldText);
02253 fLayoutVminD_HFN_ChNbFrame =
02254 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02255 fVmmD_HFN_ChNbFrame->AddFrame(fVminD_HFN_ChNbFrame, fLayoutVminD_HFN_ChNbFrame);
02256
02257
02258 TString xMenuD_HFN_ChNb = " High Frequency Noise ";
02259 fMenuD_HFN_ChNb = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02260 fMenuD_HFN_ChNb->AddEntry(xHistoChannels,fMenuD_HFN_ChNbFullC);
02261 fMenuD_HFN_ChNb->AddEntry(xHistoChannelsSame,fMenuD_HFN_ChNbSameC);
02262 fMenuD_HFN_ChNb->AddEntry(xHistoChannelsSameP,fMenuD_HFN_ChNbSamePC);
02263 fMenuD_HFN_ChNb->AddSeparator();
02264 fMenuD_HFN_ChNb->AddEntry(xHocoVecoViewSorS,fMenuD_HFN_ChNbHocoVecoC);
02265 fMenuD_HFN_ChNb->AddSeparator();
02266 fMenuD_HFN_ChNb->AddEntry(xAsciiFileStex,fMenuD_HFN_ChNbAsciiFileC);
02267 fMenuD_HFN_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02268 fMenuBarD_HFN_ChNb = new TGMenuBar(fVmmD_HFN_ChNbFrame, 1, 1, kHorizontalFrame); fCnew++;
02269 fMenuBarD_HFN_ChNb->AddPopup(xMenuD_HFN_ChNb, fMenuD_HFN_ChNb, fLayoutGeneral);
02270 fLayoutMenuBarD_HFN_ChNb = new TGLayoutHints(kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02271 fVmmD_HFN_ChNbFrame->AddFrame(fMenuBarD_HFN_ChNb, fLayoutMenuBarD_HFN_ChNb);
02272
02273 fLayoutVmmD_HFN_ChNbFrame =
02274 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02275 fStexHozFrame->AddFrame(fVmmD_HFN_ChNbFrame, fLayoutVmmD_HFN_ChNbFrame);
02276
02277
02278 fVmmD_MCs_ChNbFrame = new TGCompositeFrame
02279 (fStexHozFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02280
02281
02282
02283
02284 fVmaxD_MCs_ChNbFrame = new TGCompositeFrame
02285 (fVmmD_MCs_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02286
02287 fVmaxD_MCs_ChNbBut = new TGTextButton(fVmaxD_MCs_ChNbFrame, xYmaxButText); fCnew++;
02288 fVmaxD_MCs_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVmaxD_MCs_ChNb()");
02289 fVmaxD_MCs_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
02290 fVmaxD_MCs_ChNbBut->SetBackgroundColor(SubDetColor);
02291 fLayoutVmaxD_MCs_ChNbBut =
02292 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02293 fVmaxD_MCs_ChNbFrame->AddFrame(fVmaxD_MCs_ChNbBut, fLayoutVmaxD_MCs_ChNbBut);
02294 fEntryVmaxD_MCs_ChNbNumber = new TGTextBuffer(); fCnew++;
02295 fVmaxD_MCs_ChNbText = new TGTextEntry(fVmaxD_MCs_ChNbFrame, fEntryVmaxD_MCs_ChNbNumber); fCnew++;
02296 fVmaxD_MCs_ChNbText->SetToolTipText("Click and enter ymax");
02297 fVmaxD_MCs_ChNbText->Resize(minmax_buf_lenght, fVmaxD_MCs_ChNbText->GetDefaultHeight());
02298 DisplayInEntryField(fVmaxD_MCs_ChNbText, fKeyVmaxD_MCs_ChNb);
02299 fVmaxD_MCs_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_MCs_ChNb()");
02300 fLayoutVmaxD_MCs_ChNbFieldText =
02301 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02302 fVmaxD_MCs_ChNbFrame->AddFrame(fVmaxD_MCs_ChNbText, fLayoutVmaxD_MCs_ChNbFieldText);
02303 fLayoutVmaxD_MCs_ChNbFrame =
02304 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02305 fVmmD_MCs_ChNbFrame->AddFrame(fVmaxD_MCs_ChNbFrame, fLayoutVmaxD_MCs_ChNbFrame);
02306
02307
02308 fVminD_MCs_ChNbFrame = new TGCompositeFrame
02309 (fVmmD_MCs_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02310
02311 fVminD_MCs_ChNbBut = new TGTextButton(fVminD_MCs_ChNbFrame, xYminButText); fCnew++;
02312 fVminD_MCs_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVminD_MCs_ChNb()");
02313 fVminD_MCs_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
02314 fVminD_MCs_ChNbBut->SetBackgroundColor(SubDetColor);
02315 fLayoutVminD_MCs_ChNbBut =
02316 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02317 fVminD_MCs_ChNbFrame->AddFrame(fVminD_MCs_ChNbBut, fLayoutVminD_MCs_ChNbBut);
02318 fEntryVminD_MCs_ChNbNumber = new TGTextBuffer(); fCnew++;
02319 fVminD_MCs_ChNbText = new TGTextEntry(fVminD_MCs_ChNbFrame, fEntryVminD_MCs_ChNbNumber); fCnew++;
02320 fVminD_MCs_ChNbText->SetToolTipText("Click and enter ymin");
02321 fVminD_MCs_ChNbText->Resize(minmax_buf_lenght, fVminD_MCs_ChNbText->GetDefaultHeight());
02322 DisplayInEntryField(fVminD_MCs_ChNbText,fKeyVminD_MCs_ChNb);
02323 fVminD_MCs_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_MCs_ChNb()");
02324 fLayoutVminD_MCs_ChNbFieldText =
02325 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02326 fVminD_MCs_ChNbFrame->AddFrame(fVminD_MCs_ChNbText, fLayoutVminD_MCs_ChNbFieldText);
02327 fLayoutVminD_MCs_ChNbFrame =
02328 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02329 fVmmD_MCs_ChNbFrame->AddFrame(fVminD_MCs_ChNbFrame, fLayoutVminD_MCs_ChNbFrame);
02330
02331
02332 TString xMenuD_MCs_ChNb = " Mean cor(s,s') ";
02333 fMenuD_MCs_ChNb = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02334 fMenuD_MCs_ChNb->AddEntry(xHistoChannels,fMenuD_MCs_ChNbFullC);
02335 fMenuD_MCs_ChNb->AddEntry(xHistoChannelsSame,fMenuD_MCs_ChNbSameC);
02336 fMenuD_MCs_ChNb->AddEntry(xHistoChannelsSameP,fMenuD_MCs_ChNbSamePC);
02337 fMenuD_MCs_ChNb->AddSeparator();
02338 fMenuD_MCs_ChNb->AddEntry(xHocoVecoViewSorS,fMenuD_MCs_ChNbHocoVecoC);
02339 fMenuD_MCs_ChNb->AddSeparator();
02340 fMenuD_MCs_ChNb->AddEntry(xAsciiFileStex,fMenuD_MCs_ChNbAsciiFileC);
02341 fMenuD_MCs_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02342 fMenuBarD_MCs_ChNb = new TGMenuBar(fVmmD_MCs_ChNbFrame, 1, 1, kHorizontalFrame); fCnew++;
02343 fMenuBarD_MCs_ChNb->AddPopup(xMenuD_MCs_ChNb, fMenuD_MCs_ChNb, fLayoutGeneral);
02344 fLayoutMenuBarD_MCs_ChNb = new TGLayoutHints(kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02345 fVmmD_MCs_ChNbFrame->AddFrame(fMenuBarD_MCs_ChNb, fLayoutMenuBarD_MCs_ChNb);
02346
02347 fLayoutVmmD_MCs_ChNbFrame =
02348 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02349 fStexHozFrame->AddFrame(fVmmD_MCs_ChNbFrame, fLayoutVmmD_MCs_ChNbFrame);
02350
02351
02352 fVmmD_SCs_ChNbFrame = new TGCompositeFrame
02353 (fStexHozFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02354
02355
02356
02357 fVmaxD_SCs_ChNbFrame = new TGCompositeFrame
02358 (fVmmD_SCs_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02359
02360 fVmaxD_SCs_ChNbBut = new TGTextButton(fVmaxD_SCs_ChNbFrame, xYmaxButText); fCnew++;
02361 fVmaxD_SCs_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVmaxD_SCs_ChNb()");
02362 fVmaxD_SCs_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
02363 fVmaxD_SCs_ChNbBut->SetBackgroundColor(SubDetColor);
02364 fLayoutVmaxD_SCs_ChNbBut =
02365 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02366 fVmaxD_SCs_ChNbFrame->AddFrame(fVmaxD_SCs_ChNbBut, fLayoutVmaxD_SCs_ChNbBut);
02367 fEntryVmaxD_SCs_ChNbNumber = new TGTextBuffer(); fCnew++;
02368 fVmaxD_SCs_ChNbText = new TGTextEntry(fVmaxD_SCs_ChNbFrame, fEntryVmaxD_SCs_ChNbNumber); fCnew++;
02369 fVmaxD_SCs_ChNbText->SetToolTipText("Click and enter ymax");
02370 fVmaxD_SCs_ChNbText->Resize(minmax_buf_lenght, fVmaxD_SCs_ChNbText->GetDefaultHeight());
02371 DisplayInEntryField(fVmaxD_SCs_ChNbText,fKeyVmaxD_SCs_ChNb);
02372 fVmaxD_SCs_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_SCs_ChNb()");
02373 fLayoutVmaxD_SCs_ChNbFieldText =
02374 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02375 fVmaxD_SCs_ChNbFrame->AddFrame(fVmaxD_SCs_ChNbText, fLayoutVmaxD_SCs_ChNbFieldText);
02376 fLayoutVmaxD_SCs_ChNbFrame =
02377 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02378 fVmmD_SCs_ChNbFrame->AddFrame(fVmaxD_SCs_ChNbFrame, fLayoutVmaxD_SCs_ChNbFrame);
02379
02380
02381 fVminD_SCs_ChNbFrame = new TGCompositeFrame
02382 (fVmmD_SCs_ChNbFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02383
02384 fVminD_SCs_ChNbBut = new TGTextButton(fVminD_SCs_ChNbFrame, xYminButText); fCnew++;
02385 fVminD_SCs_ChNbBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVminD_SCs_ChNb()");
02386 fVminD_SCs_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
02387 fVminD_SCs_ChNbBut->SetBackgroundColor(SubDetColor);
02388 fLayoutVminD_SCs_ChNbBut =
02389 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02390 fVminD_SCs_ChNbFrame->AddFrame(fVminD_SCs_ChNbBut, fLayoutVminD_SCs_ChNbBut);
02391 fEntryVminD_SCs_ChNbNumber = new TGTextBuffer(); fCnew++;
02392 fVminD_SCs_ChNbText = new TGTextEntry(fVminD_SCs_ChNbFrame, fEntryVminD_SCs_ChNbNumber); fCnew++;
02393 fVminD_SCs_ChNbText->SetToolTipText("Click and enter ymin");
02394 fVminD_SCs_ChNbText->Resize(minmax_buf_lenght, fVminD_SCs_ChNbText->GetDefaultHeight());
02395 DisplayInEntryField(fVminD_SCs_ChNbText,fKeyVminD_SCs_ChNb);
02396 fVminD_SCs_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_SCs_ChNb()");
02397 fLayoutVminD_SCs_ChNbFieldText =
02398 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02399 fVminD_SCs_ChNbFrame->AddFrame(fVminD_SCs_ChNbText, fLayoutVminD_SCs_ChNbFieldText);
02400 fLayoutVminD_SCs_ChNbFrame =
02401 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02402 fVmmD_SCs_ChNbFrame->AddFrame(fVminD_SCs_ChNbFrame, fLayoutVminD_SCs_ChNbFrame);
02403
02404
02405 TString xMenuD_SCs_ChNb = " Sigma of cor(s,s') ";
02406 fMenuD_SCs_ChNb = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02407 fMenuD_SCs_ChNb->AddEntry(xHistoChannels,fMenuD_SCs_ChNbFullC);
02408 fMenuD_SCs_ChNb->AddEntry(xHistoChannelsSame,fMenuD_SCs_ChNbSameC);
02409 fMenuD_SCs_ChNb->AddEntry(xHistoChannelsSameP,fMenuD_SCs_ChNbSamePC);
02410 fMenuD_SCs_ChNb->AddSeparator();
02411 fMenuD_SCs_ChNb->AddEntry(xHocoVecoViewSorS,fMenuD_SCs_ChNbHocoVecoC);
02412 fMenuD_SCs_ChNb->AddSeparator();
02413 fMenuD_SCs_ChNb->AddEntry(xAsciiFileStex,fMenuD_SCs_ChNbAsciiFileC);
02414 fMenuD_SCs_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02415 fMenuBarD_SCs_ChNb = new TGMenuBar(fVmmD_SCs_ChNbFrame, 1, 1, kHorizontalFrame); fCnew++;
02416 fMenuBarD_SCs_ChNb->AddPopup(xMenuD_SCs_ChNb, fMenuD_SCs_ChNb, fLayoutGeneral);
02417 fLayoutMenuBarD_SCs_ChNb = new TGLayoutHints(kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02418 fVmmD_SCs_ChNbFrame->AddFrame(fMenuBarD_SCs_ChNb, fLayoutMenuBarD_SCs_ChNb);
02419
02420 fLayoutVmmD_SCs_ChNbFrame =
02421 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02422 fStexHozFrame->AddFrame(fVmmD_SCs_ChNbFrame, fLayoutVmmD_SCs_ChNbFrame);
02423
02424
02425
02426
02427 fLayoutStexHozFrame =
02428 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1); fCnew++;
02429 fStexUpFrame->AddFrame(fStexHozFrame, fLayoutStexHozFrame);
02430 AddFrame(fVoidFrame, fLayoutGeneral);
02431
02432
02433 fVmmLHFccFrame = new TGCompositeFrame
02434 (fStexUpFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02435
02436
02437
02438 fVmaxLHFccFrame = new TGCompositeFrame
02439 (fVmmLHFccFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02440
02441 fVmaxLHFccBut = new TGTextButton(fVmaxLHFccFrame, xYmaxButText); fCnew++;
02442 fVmaxLHFccBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVmaxLHFcc()");
02443 fVmaxLHFccBut->SetToolTipText("Click here to register ymax for the display of the quantity");
02444 fVmaxLHFccBut->SetBackgroundColor(SubDetColor);
02445 fLayoutVmaxLHFccBut =
02446 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02447 fVmaxLHFccFrame->AddFrame(fVmaxLHFccBut, fLayoutVmaxLHFccBut);
02448 fEntryVmaxLHFccNumber = new TGTextBuffer(); fCnew++;
02449 fVmaxLHFccText = new TGTextEntry(fVmaxLHFccFrame, fEntryVmaxLHFccNumber); fCnew++;
02450 fVmaxLHFccText->SetToolTipText("Click and enter ymax");
02451 fVmaxLHFccText->Resize(minmax_buf_lenght, fVmaxLHFccText->GetDefaultHeight());
02452 DisplayInEntryField(fVmaxLHFccText, fKeyVmaxLHFcc);
02453 fVmaxLHFccText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxLHFcc()");
02454
02455 fLayoutVmaxLHFccFieldText =
02456 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02457 fVmaxLHFccFrame->AddFrame(fVmaxLHFccText, fLayoutVmaxLHFccFieldText);
02458 fLayoutVmaxLHFccFrame =
02459 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02460 fVmmLHFccFrame->AddFrame(fVmaxLHFccFrame, fLayoutVmaxLHFccFrame);
02461
02462
02463 fVminLHFccFrame = new TGCompositeFrame
02464 (fVmmLHFccFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02465
02466 fVminLHFccBut = new TGTextButton(fVminLHFccFrame, xYminButText); fCnew++;
02467 fVminLHFccBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVminLHFcc()");
02468 fVminLHFccBut->SetToolTipText("Click here to register ymin for the display of the quantity");
02469 fVminLHFccBut->SetBackgroundColor(SubDetColor);
02470 fLayoutVminLHFccBut =
02471 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02472 fVminLHFccFrame->AddFrame(fVminLHFccBut, fLayoutVminLHFccBut);
02473 fEntryVminLHFccNumber = new TGTextBuffer(); fCnew++;
02474 fVminLHFccText = new TGTextEntry(fVminLHFccFrame, fEntryVminLHFccNumber); fCnew++;
02475 fVminLHFccText->SetToolTipText("Click and enter ymin");
02476 fVminLHFccText->Resize(minmax_buf_lenght, fVminLHFccText->GetDefaultHeight());
02477 DisplayInEntryField(fVminLHFccText,fKeyVminLHFcc);
02478 fVminLHFccText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminLHFcc()");
02479 fLayoutVminLHFccFieldText =
02480 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02481 fVminLHFccFrame->AddFrame(fVminLHFccText, fLayoutVminLHFccFieldText);
02482 fLayoutVminLHFccFrame =
02483 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02484 fVmmLHFccFrame->AddFrame(fVminLHFccFrame, fLayoutVminLHFccFrame);
02485
02486
02487 TString xMenuLHFcc = "GeoView LF,HF Cor(c,c') (expert)";
02488 TString xLFccViewSorS;
02489 if( fSubDet == "EB" ){xLFccViewSorS = "Low Frequency Cor(c,c'), tower place -> Cor matrix";}
02490 if( fSubDet == "EE" ){xLFccViewSorS = "Low Frequency Cor(c,c'), SC place -> Cor matrix";}
02491 TString xHFccViewSorS;
02492 if( fSubDet == "EB" ){xHFccViewSorS = "High Frequency Cor(c,c'), tower place -> Cor matrix";}
02493 if( fSubDet == "EE" ){xHFccViewSorS = "High Frequency Cor(c,c'), SC place -> Cor matrix";}
02494
02495 fMenuLHFcc = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02496 fMenuLHFcc->AddEntry(xLFccViewSorS,fMenuLFccColzC);
02497 fMenuLHFcc->AddEntry(xHFccViewSorS,fMenuHFccColzC);
02498 fMenuLHFcc->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02499 fMenuBarLHFcc = new TGMenuBar(fVmmLHFccFrame, 1, 1, kHorizontalFrame); fCnew++;
02500 fMenuBarLHFcc->AddPopup(xMenuLHFcc, fMenuLHFcc, fLayoutGeneral);
02501 fLayoutMenuBarLHFcc = new TGLayoutHints(kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02502 fVmmLHFccFrame->AddFrame(fMenuBarLHFcc, fLayoutMenuBarLHFcc);
02503 fLayoutVmmLHFccFrame =
02504 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02505 fStexUpFrame->AddFrame(fVmmLHFccFrame, fLayoutVmmLHFccFrame);
02506
02507
02508 fVmmLFccMosFrame = new TGCompositeFrame
02509 (fStexUpFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02510
02511
02512
02513 fVmaxLFccMosFrame = new TGCompositeFrame
02514 (fVmmLFccMosFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02515
02516 fVmaxLFccMosBut = new TGTextButton(fVmaxLFccMosFrame, xYmaxButText); fCnew++;
02517 fVmaxLFccMosBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVmaxLFccMos()");
02518 fVmaxLFccMosBut->SetToolTipText("Click here to register ymax for the display of the quantity");
02519 fVmaxLFccMosBut->SetBackgroundColor(SubDetColor);
02520 fLayoutVmaxLFccMosBut =
02521 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02522 fVmaxLFccMosFrame->AddFrame(fVmaxLFccMosBut, fLayoutVmaxLFccMosBut);
02523 fEntryVmaxLFccMosNumber = new TGTextBuffer(); fCnew++;
02524 fVmaxLFccMosText = new TGTextEntry(fVmaxLFccMosFrame, fEntryVmaxLFccMosNumber); fCnew++;
02525 fVmaxLFccMosText->SetToolTipText("Click and enter ymax");
02526 fVmaxLFccMosText->Resize(minmax_buf_lenght, fVmaxLFccMosText->GetDefaultHeight());
02527 DisplayInEntryField(fVmaxLFccMosText, fKeyVmaxLFccMos);
02528 fVmaxLFccMosText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxLFccMos()");
02529
02530 fLayoutVmaxLFccMosFieldText =
02531 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02532 fVmaxLFccMosFrame->AddFrame(fVmaxLFccMosText, fLayoutVmaxLFccMosFieldText);
02533 fLayoutVmaxLFccMosFrame =
02534 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02535 fVmmLFccMosFrame->AddFrame(fVmaxLFccMosFrame, fLayoutVmaxLFccMosFrame);
02536
02537
02538 fVminLFccMosFrame = new TGCompositeFrame
02539 (fVmmLFccMosFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02540
02541 fVminLFccMosBut = new TGTextButton(fVminLFccMosFrame, xYminButText); fCnew++;
02542 fVminLFccMosBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVminLFccMos()");
02543 fVminLFccMosBut->SetToolTipText("Click here to register ymin for the display of the quantity");
02544 fVminLFccMosBut->SetBackgroundColor(SubDetColor);
02545 fLayoutVminLFccMosBut =
02546 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02547 fVminLFccMosFrame->AddFrame(fVminLFccMosBut, fLayoutVminLFccMosBut);
02548 fEntryVminLFccMosNumber = new TGTextBuffer(); fCnew++;
02549 fVminLFccMosText = new TGTextEntry(fVminLFccMosFrame, fEntryVminLFccMosNumber); fCnew++;
02550 fVminLFccMosText->SetToolTipText("Click and enter ymin");
02551 fVminLFccMosText->Resize(minmax_buf_lenght, fVminLFccMosText->GetDefaultHeight());
02552 DisplayInEntryField(fVminLFccMosText,fKeyVminLFccMos);
02553 fVminLFccMosText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminLFccMos()");
02554 fLayoutVminLFccMosFieldText =
02555 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02556 fVminLFccMosFrame->AddFrame(fVminLFccMosText, fLayoutVminLFccMosFieldText);
02557 fLayoutVminLFccMosFrame =
02558 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02559 fVmmLFccMosFrame->AddFrame(fVminLFccMosFrame, fLayoutVminLFccMosFrame);
02560
02561
02562 TString xMenuLFccMos;
02563 if( fSubDet == "EB" ){xMenuLFccMos = "Mean LF |Cor(c,c')| in (tow,tow')";}
02564 if( fSubDet == "EE" ){xMenuLFccMos = "Mean LF |Cor(c,c')| in (SC,SC')";}
02565
02566 fMenuLFccMos = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02567 fMenuLFccMos->AddEntry("2D, COLZ ",fMenuLFccMosColzC);
02568 fMenuLFccMos->AddEntry("3D, LEGO2Z" ,fMenuLFccMosLegoC);
02569 fMenuLFccMos->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02570 fMenuBarLFccMos = new TGMenuBar(fVmmLFccMosFrame, 1, 1, kHorizontalFrame); fCnew++;
02571 fMenuBarLFccMos->AddPopup(xMenuLFccMos, fMenuLFccMos, fLayoutGeneral);
02572 fLayoutMenuBarLFccMos = new TGLayoutHints(kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02573 fVmmLFccMosFrame->AddFrame(fMenuBarLFccMos, fLayoutMenuBarLFccMos);
02574 fLayoutVmmLFccMosFrame =
02575 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02576 fStexUpFrame->AddFrame(fVmmLFccMosFrame, fLayoutVmmLFccMosFrame);
02577
02578
02579 fVmmHFccMosFrame = new TGCompositeFrame
02580 (fStexUpFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02581
02582
02583
02584 fVmaxHFccMosFrame = new TGCompositeFrame
02585 (fVmmHFccMosFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02586
02587 fVmaxHFccMosBut = new TGTextButton(fVmaxHFccMosFrame, xYmaxButText); fCnew++;
02588 fVmaxHFccMosBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVmaxHFccMos()");
02589 fVmaxHFccMosBut->SetToolTipText("Click here to register ymax for the display of the quantity");
02590 fVmaxHFccMosBut->SetBackgroundColor(SubDetColor);
02591 fLayoutVmaxHFccMosBut =
02592 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02593 fVmaxHFccMosFrame->AddFrame(fVmaxHFccMosBut, fLayoutVmaxHFccMosBut);
02594 fEntryVmaxHFccMosNumber = new TGTextBuffer(); fCnew++;
02595 fVmaxHFccMosText = new TGTextEntry(fVmaxHFccMosFrame, fEntryVmaxHFccMosNumber); fCnew++;
02596 fVmaxHFccMosText->SetToolTipText("Click and enter ymax");
02597 fVmaxHFccMosText->Resize(minmax_buf_lenght, fVmaxHFccMosText->GetDefaultHeight());
02598 DisplayInEntryField(fVmaxHFccMosText, fKeyVmaxHFccMos);
02599 fVmaxHFccMosText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxHFccMos()");
02600
02601 fLayoutVmaxHFccMosFieldText =
02602 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02603 fVmaxHFccMosFrame->AddFrame(fVmaxHFccMosText, fLayoutVmaxHFccMosFieldText);
02604 fLayoutVmaxHFccMosFrame =
02605 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02606 fVmmHFccMosFrame->AddFrame(fVmaxHFccMosFrame, fLayoutVmaxHFccMosFrame);
02607
02608
02609 fVminHFccMosFrame = new TGCompositeFrame
02610 (fVmmHFccMosFrame,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
02611
02612 fVminHFccMosBut = new TGTextButton(fVminHFccMosFrame, xYminButText); fCnew++;
02613 fVminHFccMosBut->Connect("Clicked()","TEcnaGui", this, "DoButtonVminHFccMos()");
02614 fVminHFccMosBut->SetToolTipText("Click here to register ymin for the display of the quantity");
02615 fVminHFccMosBut->SetBackgroundColor(SubDetColor);
02616 fLayoutVminHFccMosBut =
02617 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02618 fVminHFccMosFrame->AddFrame(fVminHFccMosBut, fLayoutVminHFccMosBut);
02619 fEntryVminHFccMosNumber = new TGTextBuffer(); fCnew++;
02620 fVminHFccMosText = new TGTextEntry(fVminHFccMosFrame, fEntryVminHFccMosNumber); fCnew++;
02621 fVminHFccMosText->SetToolTipText("Click and enter ymin");
02622 fVminHFccMosText->Resize(minmax_buf_lenght, fVminHFccMosText->GetDefaultHeight());
02623 DisplayInEntryField(fVminHFccMosText,fKeyVminHFccMos);
02624 fVminHFccMosText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminHFccMos()");
02625 fLayoutVminHFccMosFieldText =
02626 new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02627 fVminHFccMosFrame->AddFrame(fVminHFccMosText, fLayoutVminHFccMosFieldText);
02628 fLayoutVminHFccMosFrame =
02629 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02630 fVmmHFccMosFrame->AddFrame(fVminHFccMosFrame, fLayoutVminHFccMosFrame);
02631
02632
02633 TString xMenuHFccMos;
02634 if( fSubDet == "EB" ){xMenuHFccMos = "Mean HF |Cor(c,c')| in (tow,tow')";}
02635 if( fSubDet == "EE" ){xMenuHFccMos = "Mean HF |Cor(c,c')| in (SC,SC')";}
02636
02637 fMenuHFccMos = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02638 fMenuHFccMos->AddEntry("2D, COLZ ",fMenuHFccMosColzC);
02639 fMenuHFccMos->AddEntry("3D, LEGO2Z" ,fMenuHFccMosLegoC);
02640 fMenuHFccMos->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02641 fMenuBarHFccMos = new TGMenuBar(fVmmHFccMosFrame, 1, 1, kHorizontalFrame); fCnew++;
02642 fMenuBarHFccMos->AddPopup(xMenuHFccMos, fMenuHFccMos, fLayoutGeneral);
02643 fLayoutMenuBarHFccMos = new TGLayoutHints(kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02644 fVmmHFccMosFrame->AddFrame(fMenuBarHFccMos, fLayoutMenuBarHFccMos);
02645 fLayoutVmmHFccMosFrame =
02646 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1); fCnew++;
02647 fStexUpFrame->AddFrame(fVmmHFccMosFrame, fLayoutVmmHFccMosFrame);
02648
02649
02650
02651 fLayoutStexUpFrame =
02652 new TGLayoutHints(kLHintsTop | kLHintsCenterX, xB1, xB1, xB1, xB1); fCnew++;
02653 AddFrame(fStexUpFrame, fLayoutStexUpFrame);
02654
02655 AddFrame(fVoidFrame, fLayoutGeneral);
02656
02657
02658
02659
02660
02661
02662
02663
02664 fStinSpFrame =
02665 new TGCompositeFrame(this,60,20,kHorizontalFrame,
02666 GetDefaultFrameBackground()); fCnew++;
02667
02668 TString xStinAButText = "?";
02669 TString xStinBButText = "?";
02670 Int_t Stin_buf_lenght = 10;
02671
02672 if ( fSubDet == "EB" )
02673 {xStinAButText = " Tower# [1,68] "; xStinBButText = " Tower'# [1,68] "; Stin_buf_lenght = 50;}
02674 if ( fSubDet == "EE" && ( fKeyStexNumber == 1 || fKeyStexNumber == 3 ) )
02675 {xStinAButText = "SC# for const. [150,298] "; xStinBButText = "SC'# for const. [150,298] "; Stin_buf_lenght = 50;}
02676 if ( fSubDet == "EE" && ( fKeyStexNumber == 2 || fKeyStexNumber == 4 ) )
02677 {xStinAButText = "SC# for const. [ 1,149] "; xStinBButText = "SC'# for const. [ 1,149] "; Stin_buf_lenght = 50;}
02678
02679
02680 TString xStinNumberText;
02681 if ( fSubDet == "EB" )
02682 {xStinNumberText = "Click here to register the tower number written on the right";}
02683 if ( fSubDet == "EE" )
02684 {xStinNumberText = "Click here to register the SC number written on the right";}
02685
02686 TString xStinNumberValue;
02687 if ( fSubDet == "EB" )
02688 {xStinNumberValue = "Click and enter the tower number";}
02689 if ( fSubDet == "EE" )
02690 {xStinNumberValue = "Click and enter the SC number";}
02691
02692 fTxSubFrame = new TGCompositeFrame
02693 (fStinSpFrame,60,20,kVerticalFrame, GetDefaultFrameBackground()); fCnew++;
02694
02695 fStinAFrame = new TGCompositeFrame
02696 (fTxSubFrame,60,20,kHorizontalFrame,kSunkenFrame); fCnew++;
02697
02698 fStinABut = new TGTextButton(fStinAFrame, xStinAButText, fStinAButC); fCnew++;
02699 fStinABut->Connect("Clicked()","TEcnaGui", this, "DoButtonStinA()");
02700 fStinABut->SetToolTipText(xStinNumberText);
02701 fStinABut->Resize(Stin_buf_lenght, fStinABut->GetDefaultHeight());
02702 fStinABut->SetBackgroundColor(SubDetColor);
02703 fLayoutStinABut =
02704 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02705 fStinAFrame->AddFrame(fStinABut, fLayoutStinABut);
02706
02707 fEntryStinANumber = new TGTextBuffer(); fCnew++;
02708 fStinAText = new TGTextEntry(fStinAFrame, fEntryStinANumber); fCnew++;
02709 fStinAText->SetToolTipText(xStinNumberValue);
02710 fStinAText->Resize(Stin_buf_lenght, fStinAText->GetDefaultHeight());
02711
02712 Int_t StinAValue = 0;
02713 if( fSubDet == "EB"){StinAValue = fKeyStinANumber;}
02714 if( fSubDet == "EE" && fKeyStexNumber != 0 )
02715 {StinAValue = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber, fKeyStinANumber);}
02716 DisplayInEntryField(fStinAText,StinAValue);
02717
02718 fStinAText->Connect("ReturnPressed()", "TEcnaGui",this, "DoButtonStinA()");
02719 fLayoutStinAField =
02720 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1 ); fCnew++;
02721 fStinAFrame->AddFrame(fStinAText, fLayoutStinAField);
02722 fTxSubFrame->AddFrame(fStinAFrame, fLayoutGeneral);
02723
02724
02725 TString xChNbButText;
02726 if ( fSubDet == "EB" ){xChNbButText = "Tower Xtal Numbering ";}
02727 if ( fSubDet == "EE" ){xChNbButText = " SC Xtal Numbering ";}
02728
02729 fButChNb = new TGTextButton(fTxSubFrame, xChNbButText, fButChNbC); fCnew++;
02730 fButChNb->Connect("Clicked()","TEcnaGui", this, "DoButtonChNb()");
02731 fButChNb->SetBackgroundColor(SubDetColor);
02732 fLayoutChNbBut =
02733 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1); fCnew++;
02734 fTxSubFrame->AddFrame(fButChNb, fLayoutChNbBut);
02735
02736
02737
02738
02739 TString xMenuBarCorGlob;
02740 if ( fSubDet == "EB" ){xMenuBarCorGlob = " GeoView Cor(s,s') (expert)";}
02741 if ( fSubDet == "EE" ){xMenuBarCorGlob = " GeoView Cor(s,s') (expert)";}
02742
02743 TString xMenuBarCovGlob;
02744 if ( fSubDet == "EB" ){xMenuBarCovGlob = " GeoView Cov(s,s') (expert)";}
02745 if ( fSubDet == "EE" ){xMenuBarCovGlob = " GeoView Cov(s,s') (expert)";}
02746
02747
02748 fMenuCorssAll = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02749 fMenuCorssAll->AddEntry(" Cor(s,s'), Xtal place -> Cor matrix",fMenuCorssAllColzC);
02750 fMenuCorssAll->AddEntry(" Cov(s,s'), Xtal place -> Cov matrix",fMenuCovssAllColzC);
02751 fMenuCorssAll->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02752 fMenuBarCorssAll = new TGMenuBar(fTxSubFrame, 1, 1, kHorizontalFrame); fCnew++;
02753 fMenuBarCorssAll->AddPopup(xMenuBarCorGlob, fMenuCorssAll, fLayoutGeneral);
02754 fTxSubFrame->AddFrame(fMenuBarCorssAll, fLayoutTopLeft);
02755
02756
02757
02758
02759
02760
02761
02762
02763
02764
02765 fLayoutTxSubFrame =
02766 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1); fCnew++;
02767 fStinSpFrame->AddFrame(fTxSubFrame, fLayoutTxSubFrame);
02768
02769
02770 fTySubFrame = new TGCompositeFrame
02771 (fStinSpFrame,60,20,kVerticalFrame, GetDefaultFrameBackground()); fCnew++;
02772
02773 fStinBFrame = new TGCompositeFrame
02774 (fTySubFrame,60,20,kHorizontalFrame,kSunkenFrame); fCnew++;
02775
02776 fStinBBut =
02777 new TGTextButton(fStinBFrame, xStinBButText, fStinBButC); fCnew++;
02778 fStinBBut->Connect("Clicked()","TEcnaGui", this, "DoButtonStinB()");
02779 fStinBBut->SetToolTipText(xStinNumberText);
02780 fStinBBut->Resize(Stin_buf_lenght, fStinBBut->GetDefaultHeight());
02781 fStinBBut->SetBackgroundColor(SubDetColor);
02782 fLayoutStinBBut = new TGLayoutHints(kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02783 fStinBFrame->AddFrame(fStinBBut, fLayoutStinBBut);
02784
02785 fEntryStinBNumber = new TGTextBuffer(); fCnew++;
02786 fStinBText = new TGTextEntry(fStinBFrame, fEntryStinBNumber); fCnew++;
02787 fStinBText->SetToolTipText(xStinNumberValue);
02788 fStinBText->Resize(Stin_buf_lenght, fStinBText->GetDefaultHeight());
02789
02790 Int_t StinBValue = 0;
02791 if( fSubDet == "EB"){StinBValue = fKeyStinBNumber;}
02792 if( fSubDet == "EE" && fKeyStexNumber != 0 )
02793 {StinBValue = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber, fKeyStinBNumber);}
02794 DisplayInEntryField(fStinBText, StinBValue);
02795
02796 fStinBText->Connect("ReturnPressed()", "TEcnaGui",this, "DoButtonStinB()");
02797 fLayoutStinBField =
02798 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1 ); fCnew++;
02799 fStinBFrame->AddFrame(fStinBText, fLayoutStinBField);
02800 fTySubFrame->AddFrame(fStinBFrame, fLayoutGeneral);
02801
02802
02803
02804
02805
02806
02807 fLayoutTySubFrame = new TGLayoutHints
02808 (kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1); fCnew++;
02809
02810 fStinSpFrame->AddFrame(fTySubFrame, fLayoutTySubFrame);
02811
02812
02813 fLayoutStinSpFrame = new TGLayoutHints
02814 (kLHintsTop | kLHintsCenterX, xB1, xB1, xB1, xB1); fCnew++;
02815 AddFrame(fStinSpFrame, fLayoutStinSpFrame);
02816
02817
02818 TString xMenuBarLFCorcc;
02819 if ( fSubDet == "EB" ){xMenuBarLFCorcc = " Low Frequency Cor(Xtal tower, Xtal tower')";}
02820 if ( fSubDet == "EE" ){xMenuBarLFCorcc = " Low Frequency Cor(Xtal SC, Xtal SC')";}
02821
02822 TString xMenuBarHFCorcc;
02823 if ( fSubDet == "EB" ){xMenuBarHFCorcc = " High Frequency Cor(Xtal tower, Xtal tower')";}
02824 if ( fSubDet == "EE" ){xMenuBarHFCorcc = " High Frequency Cor(Xtal SC, Xtal SC')";}
02825
02826
02827 fMenuLFCorcc = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02828 fMenuLFCorcc->AddEntry("2D, COLZ",fMenuLFCorccColzC);
02829 fMenuLFCorcc->AddSeparator();
02830 fMenuLFCorcc->AddEntry("3D, LEGO2Z",fMenuLFCorccLegoC);
02831 fMenuLFCorcc->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02832 fMenuBarLFCorcc = new TGMenuBar(this, 1, 1, kHorizontalFrame); fCnew++;
02833 fMenuBarLFCorcc->AddPopup(xMenuBarLFCorcc, fMenuLFCorcc, fLayoutTopRight);
02834 AddFrame(fMenuBarLFCorcc, fLayoutGeneral);
02835
02836
02837 fMenuHFCorcc = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02838 fMenuHFCorcc->AddEntry("2D, COLZ",fMenuHFCorccColzC);
02839 fMenuHFCorcc->AddSeparator();
02840 fMenuHFCorcc->AddEntry("3D, LEGO2Z",fMenuHFCorccLegoC);
02841 fMenuHFCorcc->Connect("Activated(Int_t)", "TEcnaGui", this,"HandleMenu(Int_t)");
02842 fMenuBarHFCorcc = new TGMenuBar(this, 1, 1, kHorizontalFrame); fCnew++;
02843 fMenuBarHFCorcc->AddPopup(xMenuBarHFCorcc, fMenuHFCorcc, fLayoutTopRight);
02844 AddFrame(fMenuBarHFCorcc, fLayoutGeneral);
02845
02846
02847
02848
02849
02850
02851
02852 fChSpFrame = new TGCompositeFrame(this,60,20,kHorizontalFrame,
02853 GetDefaultFrameBackground()); fCnew++;
02854
02855 TString xChanButText;
02856 if ( fSubDet == "EB" ){xChanButText = " Channel# in tower [0,24] ";}
02857 if ( fSubDet == "EE" ){xChanButText = " Crystal# in SC [1,25] ";}
02858
02859 TString xSampButText = " Sample# [1,10] ";
02860
02861 Int_t chan_buf_lenght = 50;
02862 Int_t samp_buf_lenght = 50;
02863
02864 TString xMenuBarCorss = " Correlations between samples";
02865 TString xMenuBarCovss = " Covariances between samples";
02866 TString xMenuBarEvs = " Sample means";
02867 TString xMenuBarSigs = " Sample sigmas";
02868
02869
02870 fChSubFrame = new TGCompositeFrame
02871 (fChSpFrame,60,20,kVerticalFrame, GetDefaultFrameBackground()); fCnew++;
02872
02873 fChanFrame = new TGCompositeFrame
02874 (fChSubFrame,60,20,kHorizontalFrame,kSunkenFrame); fCnew++;
02875
02876 fChanBut =
02877 new TGTextButton(fChanFrame, xChanButText, fChanButC); fCnew++;
02878 fChanBut->Connect("Clicked()","TEcnaGui", this, "DoButtonChan()");
02879 fChanBut->SetToolTipText("Click here to register the channel number written to the right");
02880 fChanBut->Resize(chan_buf_lenght, fChanBut->GetDefaultHeight());
02881 fChanBut->SetBackgroundColor(SubDetColor);
02882 fLayoutChanBut = new TGLayoutHints(kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02883 fChanFrame->AddFrame(fChanBut, fLayoutChanBut);
02884
02885 fEntryChanNumber = new TGTextBuffer(); fCnew++;
02886 fChanText = new TGTextEntry(fChanFrame, fEntryChanNumber); fCnew++;
02887 fChanText->SetToolTipText("Click and enter the channel number");
02888 fChanText->Resize(chan_buf_lenght, fChanText->GetDefaultHeight());
02889
02890 Int_t xReadChanNumber = 0;
02891 if( fSubDet == "EB" ){xReadChanNumber = 0;}
02892 if( fSubDet == "EE" ){xReadChanNumber = 1;}
02893 DisplayInEntryField(fChanText, xReadChanNumber);
02894
02895 fChanText->Connect("ReturnPressed()", "TEcnaGui",this, "DoButtonChan()");
02896 fLayoutChanField =
02897 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1 ); fCnew++;
02898 fChanFrame->AddFrame(fChanText, fLayoutChanField);
02899 fChSubFrame->AddFrame(fChanFrame, fLayoutGeneral);
02900
02901
02902
02903
02904 fMenuCorss = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02905 fMenuCorss->AddEntry("2D, COLZ", fMenuCorssColzC);
02906 fMenuCorss->AddEntry("2D, BOX", fMenuCorssBoxC);
02907 fMenuCorss->AddEntry("2D, TEXT", fMenuCorssTextC);
02908 fMenuCorss->AddEntry("2D, CONTZ",fMenuCorssContzC);
02909 fMenuCorss->AddSeparator();
02910 fMenuCorss->AddEntry("3D, LEGO2Z",fMenuCorssLegoC);
02911 fMenuCorss->AddEntry("3D, SURF1Z",fMenuCorssSurf1C);
02912 fMenuCorss->AddEntry("3D, SURF2Z",fMenuCorssSurf2C);
02913 fMenuCorss->AddEntry("3D, SURF3Z",fMenuCorssSurf3C);
02914 fMenuCorss->AddEntry("3D, SURF4" ,fMenuCorssSurf4C);
02915 fMenuCorss->AddSeparator();
02916 fMenuCorss->AddEntry("2D, Write in ASCII file",fMenuCorssAsciiFileC);
02917 fMenuCorss->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02918 fMenuBarCorss = new TGMenuBar(fChSubFrame, 1, 1, kHorizontalFrame); fCnew++;
02919 fMenuBarCorss->AddPopup(xMenuBarCorss, fMenuCorss, fLayoutTopLeft);
02920 fChSubFrame->AddFrame(fMenuBarCorss, fLayoutTopLeft);
02921
02922
02923
02924 fMenuCovss = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02925 fMenuCovss->AddEntry("2D, COLZ", fMenuCovssColzC);
02926 fMenuCovss->AddEntry("2D, BOX", fMenuCovssBoxC);
02927 fMenuCovss->AddEntry("2D, TEXT", fMenuCovssTextC);
02928 fMenuCovss->AddEntry("2D, CONTZ",fMenuCovssContzC);
02929 fMenuCovss->AddSeparator();
02930 fMenuCovss->AddEntry("3D, LEGO2Z",fMenuCovssLegoC);
02931 fMenuCovss->AddEntry("3D, SURF1Z",fMenuCovssSurf1C);
02932 fMenuCovss->AddEntry("3D, SURF2Z",fMenuCovssSurf2C);
02933 fMenuCovss->AddEntry("3D, SURF3Z",fMenuCovssSurf3C);
02934 fMenuCovss->AddEntry("3D, SURF4" ,fMenuCovssSurf4C);
02935 fMenuCovss->AddSeparator();
02936 fMenuCovss->AddEntry("2D, Write in ASCII file",fMenuCovssAsciiFileC);
02937 fMenuCovss->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02938 fMenuBarCovss = new TGMenuBar(fChSubFrame, 1, 1, kHorizontalFrame); fCnew++;
02939 fMenuBarCovss->AddPopup(xMenuBarCovss, fMenuCovss, fLayoutTopLeft);
02940 fChSubFrame->AddFrame(fMenuBarCovss, fLayoutTopLeft);
02941
02942
02943
02944 fMenuD_MSp_SpNb = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02945 fMenuD_MSp_SpNb->AddEntry("1D Histo ",fMenuD_MSp_SpNbLineFullC);
02946 fMenuD_MSp_SpNb->AddEntry("1D Histo SAME",fMenuD_MSp_SpNbLineSameC);
02947 fMenuD_MSp_SpNb->AddEntry("1D Histo 25 Xtals",fMenuD_MSp_SpNbLineAllStinC);
02948 fMenuD_MSp_SpNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02949 fMenuBarD_MSp_SpNb = new TGMenuBar(fChSubFrame, 1, 1, kHorizontalFrame); fCnew++;
02950 fMenuBarD_MSp_SpNb->AddPopup(xMenuBarEvs, fMenuD_MSp_SpNb, fLayoutTopLeft);
02951 fChSubFrame->AddFrame(fMenuBarD_MSp_SpNb, fLayoutTopLeft);
02952
02953
02954
02955 fMenuD_SSp_SpNb = new TGPopupMenu(gClient->GetRoot()); fCnew++;
02956 fMenuD_SSp_SpNb->AddEntry("1D Histo ",fMenuD_SSp_SpNbLineFullC);
02957 fMenuD_SSp_SpNb->AddEntry("1D Histo SAME",fMenuD_SSp_SpNbLineSameC);
02958 fMenuD_SSp_SpNb->AddEntry("1D Histo 25 Xtals",fMenuD_SSp_SpNbLineAllStinC);
02959 fMenuD_SSp_SpNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
02960 fMenuBarD_SSp_SpNb = new TGMenuBar(fChSubFrame, 1, 1, kHorizontalFrame); fCnew++;
02961 fMenuBarD_SSp_SpNb->AddPopup(xMenuBarSigs, fMenuD_SSp_SpNb, fLayoutTopLeft);
02962 fChSubFrame->AddFrame(fMenuBarD_SSp_SpNb, fLayoutTopLeft);
02963
02964
02965 fLayoutChSubFrame = new TGLayoutHints
02966 (kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1); fCnew++;
02967 fChSpFrame->AddFrame(fChSubFrame, fLayoutChSubFrame);
02968
02969
02970 fSpSubFrame = new TGCompositeFrame
02971 (fChSpFrame,60,20,kVerticalFrame, GetDefaultFrameBackground()); fCnew++;
02972
02973 fSampFrame = new TGCompositeFrame
02974 (fSpSubFrame,60,20,kHorizontalFrame, kSunkenFrame); fCnew++;
02975
02976 fSampBut = new TGTextButton(fSampFrame, xSampButText, fSampButC); fCnew++;
02977 fSampBut->Connect("Clicked()","TEcnaGui", this, "DoButtonSamp()");
02978 fSampBut->SetToolTipText("Click here to register the sample number written to the right");
02979 fSampBut->Resize(samp_buf_lenght, fSampBut->GetDefaultHeight());
02980 fSampBut->SetBackgroundColor(SubDetColor);
02981 fLayoutSampBut =
02982 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
02983 fSampFrame->AddFrame(fSampBut, fLayoutSampBut);
02984
02985 fEntrySampNumber = new TGTextBuffer(); fCnew++;
02986 fSampText = new TGTextEntry(fSampFrame, fEntrySampNumber); fCnew++;
02987 fSampText->SetToolTipText("Click and enter the sample number");
02988 fSampText->Resize(samp_buf_lenght, fSampText->GetDefaultHeight());
02989 Int_t xKeySampNumber = fKeySampNumber+1;
02990 DisplayInEntryField(fSampText, xKeySampNumber);
02991 fSampText->Connect("ReturnPressed()", "TEcnaGui",this, "DoButtonSamp()");
02992 fLayoutSampField =
02993 new TGLayoutHints(kLHintsTop | kLHintsRight, xB1,xB1,xB1,xB1 ); fCnew++;
02994 fSampFrame->AddFrame(fSampText, fLayoutSampField);
02995
02996 fSpSubFrame->AddFrame(fSampFrame,fLayoutGeneral);
02997
02998 fLayoutSpSubFrame = new TGLayoutHints
02999 (kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1); fCnew++;
03000 fChSpFrame->AddFrame(fSpSubFrame, fLayoutSpSubFrame);
03001
03002
03003 fLayoutChSpFrame = new TGLayoutHints
03004 (kLHintsTop | kLHintsCenterX, xB1, xB1, xB1, xB1); fCnew++;
03005 AddFrame(fChSpFrame, fLayoutChSpFrame);
03006
03007
03008
03009 fMenuAdcProj = new TGPopupMenu(gClient->GetRoot()); fCnew++;
03010 fMenuAdcProj->AddEntry("1D Histo ",fMenuAdcProjSampLineFullC);
03011 fMenuAdcProj->AddEntry("1D Histo SAME",fMenuAdcProjSampLineSameC);
03012 fMenuAdcProj->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
03013
03014 fMenuBarAdcProj = new TGMenuBar(this, 1, 1, kHorizontalFrame); fCnew++;
03015
03016 TString xEvtDistrib;
03017 xEvtDistrib = "ADC sample values for (Xtal, Sample)";
03018
03019 fMenuBarAdcProj->AddPopup(xEvtDistrib, fMenuAdcProj, fLayoutGeneral);
03020
03021 fLayoutMenuBarAdcProj =
03022 new TGLayoutHints(kLHintsCenterX, xB1,xB1,xB1,xB1); fCnew++;
03023 AddFrame(fMenuBarAdcProj, fLayoutMenuBarAdcProj);
03024
03025 AddFrame(fVoidFrame, fLayoutGeneral);
03026
03027
03028
03029
03030
03031
03032 TString xRunListButText = " List of run file name for history plots ";
03033 Int_t run_list_buf_lenght = 170;
03034
03035 fRulFrame = new TGCompositeFrame(this,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
03036
03037 fRulBut= new TGTextButton(fRulFrame, xRunListButText); fCnew++;
03038 fRulBut->Connect("Clicked()","TEcnaGui", this, "DoButtonRul()");
03039 fRulBut->SetToolTipText
03040 ("Click here to register the name of the file \n containing the run list (written on the right)");
03041 fRulBut->SetBackgroundColor(SubDetColor);
03042 fLayoutRulBut =
03043 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
03044 fRulFrame->AddFrame(fRulBut, fLayoutRulBut);
03045
03046 fEntryRulNumber = new TGTextBuffer(); fCnew++;
03047 fRulText = new TGTextEntry(fRulFrame, fEntryRulNumber); fCnew++;
03048 fRulText->SetToolTipText("Click and enter the name of the file \n containing the run list");
03049 fRulText->Resize(run_list_buf_lenght, fRulText->GetDefaultHeight());
03050 fRulText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonRul()");
03051 fLayoutRulFieldText =
03052 new TGLayoutHints(kLHintsBottom | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
03053 fRulFrame->AddFrame(fRulText, fLayoutRulFieldText);
03054
03055 fLayoutRulFieldFrame =
03056 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
03057 AddFrame(fRulFrame, fLayoutRulFieldFrame);
03058
03059
03060 TString xMenuBarHistory = " Menu for history plots";
03061 fMenuHistory = new TGPopupMenu(gClient->GetRoot()); fCnew++;
03062 fMenuHistory->AddEntry("1D, Pedestals ",fMenuH_Ped_DatePolmFullC);
03063 fMenuHistory->AddEntry("1D, Pedestals SAME",fMenuH_Ped_DatePolmSameC);
03064 fMenuHistory->AddSeparator();
03065 fMenuHistory->AddEntry("1D, Total Noise ",fMenuH_TNo_DatePolmFullC);
03066 fMenuHistory->AddEntry("1D, Total Noise SAME",fMenuH_TNo_DatePolmSameC);
03067 fMenuHistory->AddEntry("1D, Total Noise SAME n",fMenuH_TNo_DatePolmSamePC);
03068 fMenuHistory->AddSeparator();
03069 fMenuHistory->AddEntry("1D, Low Frequency Noise ",fMenuH_LFN_DatePolmFullC);
03070 fMenuHistory->AddEntry("1D, Low Frequency Noise SAME",fMenuH_LFN_DatePolmSameC);
03071 fMenuHistory->AddEntry("1D, Low Frequency Noise SAME n",fMenuH_LFN_DatePolmSamePC);
03072 fMenuHistory->AddSeparator();
03073 fMenuHistory->AddEntry("1D, High Frequency Noise ",fMenuH_HFN_DatePolmFullC);
03074 fMenuHistory->AddEntry("1D, High Frequency Noise SAME",fMenuH_HFN_DatePolmSameC);
03075 fMenuHistory->AddEntry("1D, High Frequency Noise SAME n",fMenuH_HFN_DatePolmSamePC);
03076 fMenuHistory->AddSeparator();
03077 fMenuHistory->AddEntry("1D, Mean cor(s,s') ",fMenuH_MCs_DatePolmFullC);
03078 fMenuHistory->AddEntry("1D, Mean cor(s,s') SAME",fMenuH_MCs_DatePolmSameC);
03079 fMenuHistory->AddEntry("1D, Mean cor(s,s') SAME n",fMenuH_MCs_DatePolmSamePC);
03080 fMenuHistory->AddSeparator();
03081 fMenuHistory->AddEntry("1D, Sigma of cor(s,s') ",fMenuH_SCs_DatePolmFullC);
03082 fMenuHistory->AddEntry("1D, Sigma of cor(s,s') SAME",fMenuH_SCs_DatePolmSameC);
03083 fMenuHistory->AddEntry("1D, Sigma of cor(s,s') SAME n",fMenuH_SCs_DatePolmSamePC);
03084
03085 fMenuHistory->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
03086 fMenuBarHistory = new TGMenuBar(this , 1, 1, kHorizontalFrame); fCnew++;
03087 fMenuBarHistory->AddPopup(xMenuBarHistory, fMenuHistory, fLayoutTopLeft);
03088 AddFrame(fMenuBarHistory, fLayoutTopLeft);
03089
03090 AddFrame(fVoidFrame, fLayoutGeneral);
03091
03092
03093
03094
03095
03096
03097
03098
03099
03100
03101
03102
03103 fLinLogFrame = new TGCompositeFrame(this,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
03104
03105
03106
03107 TString xLogxButText = " LOG X ";
03108 fButLogx = new TGCheckButton(fLinLogFrame, xLogxButText, fButLogxC); fCnew++;
03109 fButLogx->Connect("Clicked()","TEcnaGui", this, "DoButtonLogx()");
03110 fButLogx->SetBackgroundColor(SubDetColor);
03111 fLayoutLogxBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1); fCnew++;
03112 fLinLogFrame->AddFrame(fButLogx, fLayoutLogxBut);
03113
03114
03115 TString xLogyButText = " LOG Y ";
03116 fButLogy = new TGCheckButton(fLinLogFrame, xLogyButText, fButLogyC); fCnew++;
03117 fButLogy->Connect("Clicked()","TEcnaGui", this, "DoButtonLogy()");
03118 fButLogy->SetBackgroundColor(SubDetColor);
03119 fLayoutLogyBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1); fCnew++;
03120 fLinLogFrame->AddFrame(fButLogy, fLayoutLogyBut);
03121
03122
03123 TString xProjyButText = " Y projection ";
03124 fButProjy = new TGCheckButton(fLinLogFrame, xProjyButText, fButProjyC); fCnew++;
03125 fButProjy->Connect("Clicked()","TEcnaGui", this, "DoButtonProjy()");
03126 fButProjy->SetBackgroundColor(SubDetColor);
03127 fLayoutProjyBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1); fCnew++;
03128 fLinLogFrame->AddFrame(fButProjy, fLayoutProjyBut);
03129
03130 AddFrame(fVoidFrame, fLayoutBottRight);
03131 AddFrame(fLinLogFrame, fLayoutGeneral);
03132
03133
03134 TString xGenTitleButText = " General title for plots ";
03135 Int_t gen_title_buf_lenght = 220;
03136
03137 fGentFrame = new TGCompositeFrame(this,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
03138
03139 fGentBut= new TGTextButton(fGentFrame, xGenTitleButText); fCnew++;
03140 fGentBut->Connect("Clicked()","TEcnaGui", this, "DoButtonGent()");
03141 fGentBut->SetToolTipText
03142 ("Click here to register the general title (written on the right)");
03143 fGentBut->SetBackgroundColor(SubDetColor);
03144 fLayoutGentBut =
03145 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
03146 fGentFrame->AddFrame(fGentBut, fLayoutGentBut);
03147
03148 fEntryGentNumber = new TGTextBuffer(); fCnew++;
03149 fGentText = new TGTextEntry(fGentFrame, fEntryGentNumber); fCnew++;
03150 fGentText->SetToolTipText("Click and enter the general title");
03151 fGentText->Resize(gen_title_buf_lenght, fGentText->GetDefaultHeight());
03152 DisplayInEntryField(fGentText, fKeyGeneralTitle);
03153 fGentText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonGent()");
03154 fLayoutGentFieldText =
03155 new TGLayoutHints(kLHintsBottom | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
03156 fGentFrame->AddFrame(fGentText, fLayoutGentFieldText);
03157
03158 fLayoutGentFieldFrame =
03159 new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1,xB1,xB1,xB1); fCnew++;
03160 AddFrame(fGentFrame, fLayoutGentFieldFrame);
03161 AddFrame(fVoidFrame);
03162
03163
03164 fColorExitFrame = new TGCompositeFrame(this,60,20, kHorizontalFrame,
03165 GetDefaultFrameBackground()); fCnew++;
03166
03167
03168 TString xColPalButText = " Colors ";
03169 fButColPal = new TGCheckButton(fColorExitFrame, xColPalButText, fButColPalC); fCnew++;
03170 fButColPal->Connect("Clicked()","TEcnaGui", this, "DoButtonColPal()");
03171 fButColPal->SetBackgroundColor(SubDetColor);
03172 fLayoutColPalBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1); fCnew++;
03173 fColorExitFrame->AddFrame(fButColPal, fLayoutColPalBut);
03174
03175
03176 TString xExitButText = " Exit ";
03177 fButExit = new TGTextButton(fColorExitFrame, xExitButText, fButExitC); fCnew++;
03178 fButExit->Connect("Clicked()","TEcnaGui", this, "DoButtonExit()");
03179 fButExit->SetBackgroundColor(SubDetColor);
03180 fLayoutExitBut = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1); fCnew++;
03181 fColorExitFrame->AddFrame(fButExit, fLayoutExitBut);
03182
03183 fLayoutColorExitFrame = new TGLayoutHints(kLHintsTop | kLHintsExpandX,
03184 xB1, xB1, xB1, xB1); fCnew++;
03185
03186
03187 AddFrame(fColorExitFrame, fLayoutColorExitFrame);
03188
03189
03190
03191 fLastFrame = new TGCompositeFrame(this,60,20, kHorizontalFrame, kSunkenFrame); fCnew++;
03192
03193
03194 TString xCloneButText = " Clone Last Canvas ";
03195 fButClone = new TGTextButton(fLastFrame, xCloneButText, fButCloneC); fCnew++;
03196 fButClone->Connect("Clicked()","TEcnaGui", this, "DoButtonClone()");
03197 fButClone->SetBackgroundColor(SubDetColor);
03198 fLayoutCloneBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1); fCnew++;
03199 fLastFrame->AddFrame(fButClone, fLayoutCloneBut);
03200
03201
03202 TString xRootButText = " ROOT Version ";
03203 fButRoot = new TGTextButton(fLastFrame, xRootButText, fButRootC); fCnew++;
03204 fButRoot->Connect("Clicked()","TEcnaGui", this, "DoButtonRoot()");
03205 fButRoot->SetBackgroundColor(SubDetColor);
03206 fLayoutRootBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1); fCnew++;
03207 fLastFrame->AddFrame(fButRoot, fLayoutRootBut);
03208
03209
03210 TString xHelpButText = " Help ";
03211 fButHelp = new TGTextButton(fLastFrame, xHelpButText, fButHelpC); fCnew++;
03212 fButHelp->Connect("Clicked()","TEcnaGui", this, "DoButtonHelp()");
03213 fButHelp->SetBackgroundColor(SubDetColor);
03214 fLayoutHelpBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1); fCnew++;
03215 fLastFrame->AddFrame(fButHelp, fLayoutHelpBut);
03216
03217 AddFrame(fLastFrame, fLayoutGeneral);
03218
03219
03220
03221 MapSubwindows();
03222 Layout();
03223
03224 if( fSubDet == "EB" ){SetWindowName("CMS Ecal Correlated Noise Analysis <EB>");}
03225 if( fSubDet == "EE" ){SetWindowName("CMS Ecal Correlated Noise Analysis <EE>");}
03226
03227 SetBackgroundColor(SubDetColor);
03228 SetIconName("CNA");
03229 MapWindow();
03230
03231 }
03232
03233
03234
03235
03236
03237
03238
03239
03240
03241
03242
03243
03244
03245
03246
03247
03248
03251
03252
03253
03254
03255
03256
03257
03258
03259
03260
03261
03262 void TEcnaGui::DoButtonAna()
03263 {
03264
03265
03266 char* bufferchain;
03267 bufferchain = (char*)fAnaText->GetBuffer()->GetString();
03268
03269 fKeyAnaType = bufferchain;
03270
03271 fCnaCommand++;
03272 cout << " *TEcnaGui [" << fCnaCommand
03273 << "]> Registration of analysis name -> "
03274 << fKeyAnaType << endl;
03275 }
03276
03277
03278 void TEcnaGui::DoButtonNors()
03279 {
03280
03281
03282 char* bufferchain;
03283 bufferchain = (char*)fNorsText->GetBuffer()->GetString();
03284 fKeyNbOfSamplesString = bufferchain;
03285 fKeyNbOfSamples = atoi(bufferchain);
03286
03287 if ( !(fKeyNbOfSamples >= 1 && fKeyNbOfSamples <= fEcal->MaxSampADC()) )
03288 {
03289 fCnaError++;
03290 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===>"
03291 << " Number of required samples for reading ROOT file = " << fKeyNbOfSamples
03292 << ": OUT OF RANGE, " << endl
03293 << " forced to the default value (="
03294 << fEcal->MaxSampADC() << ")." << fTTBELL << endl;
03295 fKeyNbOfSamples = fEcal->MaxSampADC();
03296 DisplayInEntryField(fNorsText,fKeyNbOfSamples);
03297 }
03298
03299
03300 TString xSampButText = " Sample [?,?] ";
03301
03302 if( fKeyNbOfSamples == 1 ){xSampButText = " Sample [1,1] ";}
03303 if( fKeyNbOfSamples == 2 ){xSampButText = " Sample [1,2] ";}
03304 if( fKeyNbOfSamples == 3 ){xSampButText = " Sample [1,3] ";}
03305 if( fKeyNbOfSamples == 4 ){xSampButText = " Sample [1,4] ";}
03306 if( fKeyNbOfSamples == 5 ){xSampButText = " Sample [1,5] ";}
03307 if( fKeyNbOfSamples == 6 ){xSampButText = " Sample [1,6] ";}
03308 if( fKeyNbOfSamples == 7 ){xSampButText = " Sample [1,7] ";}
03309 if( fKeyNbOfSamples == 8 ){xSampButText = " Sample [1,8] ";}
03310 if( fKeyNbOfSamples == 9 ){xSampButText = " Sample [1,9] ";}
03311 if( fKeyNbOfSamples == 10 ){xSampButText = " Sample [1,10] ";}
03312
03313 fSampBut->SetText(xSampButText);
03314
03315 fCnaCommand++;
03316 cout << " *TEcnaGui [" << fCnaCommand
03317 << "]> Registration of number of samples in ROOT file -> "
03318 << fKeyNbOfSamples << endl;
03319 }
03320
03321 void TEcnaGui::DoButtonNbSampForCalc()
03322 {
03323
03324
03325 char* bufferchain;
03326 bufferchain = (char*)fNbSampForCalcText->GetBuffer()->GetString();
03327 fKeyNbOfSampForCalcString = bufferchain;
03328 fKeyNbOfSampForCalc = atoi(bufferchain);
03329
03330 if ( !(fKeyNbOfSampForCalc >= 1 && fKeyNbOfSampForCalc <= fKeyNbOfSamples) )
03331 {
03332 fCnaError++;
03333 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===>"
03334 << " Number of required samples for calculations = " << fKeyNbOfSampForCalc
03335 << ": OUT OF RANGE, " << endl
03336 << " forced to the default value (="
03337 << fKeyNbOfSamples << ")." << fTTBELL << endl;
03338 fKeyNbOfSampForCalc = fKeyNbOfSamples;
03339 DisplayInEntryField(fNbSampForCalcText,fKeyNbOfSampForCalc);
03340 }
03341 fCnaCommand++;
03342 cout << " *TEcnaGui [" << fCnaCommand
03343 << "]> Registration of number of samples for calculations -> "
03344 << fKeyNbOfSampForCalc << endl;
03345 }
03346
03347
03348 void TEcnaGui::DoButtonRun()
03349 {
03350
03351
03352
03353 char* bufferchain = (char*)fRunText->GetBuffer()->GetString();
03354 fKeyRunNumberString = bufferchain;
03355 fKeyRunNumber = atoi(bufferchain);
03356 fCnaCommand++;
03357 cout << " *TEcnaGui [" << fCnaCommand
03358 << "]> Registration of run number -> "
03359 << fKeyRunNumber << endl;
03360 }
03361
03362
03363 void TEcnaGui::DoButtonFev()
03364 {
03365
03366
03367 char* bufferchain;
03368 bufferchain = (char*)fFevText->GetBuffer()->GetString();
03369 fKeyFirstReqEvtNumberString = bufferchain;
03370 fKeyFirstReqEvtNumber = atoi(bufferchain);
03371
03372 if ( fKeyFirstReqEvtNumber <= 0)
03373 {
03374 fCnaError++;
03375 cout << " !TEcnaGui (" << fCnaError << ") *ERROR* ===> "
03376 << " First event number = " << fKeyFirstReqEvtNumber
03377 << ": negative. " << endl
03378 << fTTBELL << endl;
03379 }
03380
03381 fCnaCommand++;
03382 cout << " *TEcnaGui [" << fCnaCommand
03383 << "]> Registration of first requested event number -> "
03384 << fKeyFirstReqEvtNumber << endl;
03385 }
03386
03387 void TEcnaGui::DoButtonLev()
03388 {
03389
03390
03391 char* bufferchain;
03392 bufferchain = (char*)fLevText->GetBuffer()->GetString();
03393 fKeyLastReqEvtNumberString = bufferchain;
03394 fKeyLastReqEvtNumber = atoi(bufferchain);
03395
03396 if ( fKeyLastReqEvtNumber <= fKeyFirstReqEvtNumber )
03397 {
03398 fCnaError++;
03399 cout << " !TEcnaGui (" << fCnaError << ") *WARNING* ===> "
03400 << " Last requested event number = " << fKeyLastReqEvtNumber
03401 << ": less than first requested event number (= " << fKeyFirstReqEvtNumber << ")."
03402 << endl;
03403 }
03404
03405 fCnaCommand++;
03406 cout << " *TEcnaGui [" << fCnaCommand
03407 << "]> Registration of last requested event number -> "
03408 << fKeyLastReqEvtNumber << endl;
03409 }
03410
03411 void TEcnaGui::DoButtonRev()
03412 {
03413
03414
03415 char* bufferchain;
03416 bufferchain = (char*)fRevText->GetBuffer()->GetString();
03417 fKeyReqNbOfEvtsString = bufferchain;
03418 fKeyReqNbOfEvts = atoi(bufferchain);
03419
03420 Int_t nb_range_evts = fKeyLastReqEvtNumber - fKeyFirstReqEvtNumber + 1;
03421
03422 if( fKeyLastReqEvtNumber < fKeyFirstReqEvtNumber)
03423 {
03424 fCnaError++;
03425 cout << " !TEcnaGui (" << fCnaError << ") *WARNING* ===> "
03426 << " Last requested event number = " << fKeyLastReqEvtNumber
03427 << " less than first requested event number = " << fKeyFirstReqEvtNumber
03428 << endl;
03429 }
03430
03431 if ( fKeyLastReqEvtNumber >= fKeyFirstReqEvtNumber && fKeyReqNbOfEvts > nb_range_evts )
03432 {
03433 fCnaError++;
03434 cout << " !TEcnaGui (" << fCnaError << ") *WARNING* ===> "
03435 << " Nb of requested events = " << fKeyReqNbOfEvts
03436 << ": out of range (range = " << fKeyFirstReqEvtNumber << ","
03437 << fKeyLastReqEvtNumber << ") => " << nb_range_evts << " events."
03438 << endl;
03439 }
03440
03441 fCnaCommand++;
03442 cout << " *TEcnaGui [" << fCnaCommand
03443 << "]> Registration of requested number of events -> "
03444 << fKeyReqNbOfEvts << endl;
03445 }
03446
03447
03448 void TEcnaGui::DoButtonStex()
03449 {
03450
03451
03452 char* bufferchain;
03453 bufferchain = (char*)fStexText->GetBuffer()->GetString();
03454 fKeyStexNumberString = bufferchain;
03455 fKeyStexNumber = atoi(bufferchain);
03456
03457 if( fSubDet == "EB" )
03458 {
03459 fCnaCommand++;
03460 cout << " *TEcnaGui [" << fCnaCommand
03461 << "]> Registration of SuperModule number -> "
03462 << fKeyStexNumber << endl;
03463
03464
03465 if( fKeyStexNumber < 0 ){fKeyStexNumber = - fKeyStexNumber + fEcal->MaxSMInEB()/2;}
03466
03467 if( (fKeyStexNumber < 0) || (fKeyStexNumber > fEcal->MaxSMInEB() ) )
03468 {
03469 fCnaError++;
03470 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> "
03471 << " EB / SM number = " << fKeyStexNumber
03472 << ": out of range. Range = 0 (EB) or [ 1 ," << fEcal->MaxSMInEB() << " ] (SM)"
03473 << " or [ -" << fEcal->MaxSMInEBMinus() << ", +" << fEcal->MaxSMInEBPlus() << "] (SM)"
03474 << fTTBELL << endl;
03475 }
03476 }
03477
03478 if( fSubDet == "EE" )
03479 {
03480
03481 TString xStinAButText = "?";
03482 TString xStinBButText = "?";
03483 Int_t Stin_buf_lenght = 10;
03484 if ( fSubDet == "EE" && ( fKeyStexNumber == 1 || fKeyStexNumber == 3 ) )
03485 {xStinAButText = "SC for const. [150,298] "; xStinBButText = "SC' for const. [150,298] ";
03486 Stin_buf_lenght = 50; fStinABut->SetText(xStinAButText); fStinBBut->SetText(xStinBButText);}
03487 if ( fSubDet == "EE" && ( fKeyStexNumber == 2 || fKeyStexNumber == 4 ) )
03488 {xStinAButText = "SC for const. [ 1,149] "; xStinBButText = "SC' for const. [ 1,149] ";
03489 Stin_buf_lenght = 50; fStinABut->SetText(xStinAButText); fStinBBut->SetText(xStinBButText);}
03490
03491 if ( fSubDet == "EE" && ( fKeyStexNumber == 0 ) )
03492 {xStinAButText = "SC for const. "; xStinBButText = "SC' for const. ";
03493 Stin_buf_lenght = 50; fStinABut->SetText(xStinAButText); fStinBBut->SetText(xStinBButText);}
03494
03495
03496 if( fKeyStexNumber > 0 )
03497 {
03498 Int_t StinAValue = fKeyStinANumber;
03499 if( fSubDet == "EE" )
03500 {StinAValue = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber, fKeyStinANumber);}
03501 DisplayInEntryField(fStinAText,StinAValue);
03502 Int_t StinBValue = fKeyStinBNumber;
03503 if( fSubDet == "EE" )
03504 {StinBValue = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber, fKeyStinBNumber);}
03505 DisplayInEntryField(fStinBText,StinBValue);
03506 }
03507
03508 fCnaCommand++;
03509 cout << " *TEcnaGui [" << fCnaCommand
03510 << "]> Registration of Dee number -> "
03511 << fKeyStexNumber << endl;
03512
03513 if ( (fKeyStexNumber < 0) || (fKeyStexNumber > fEcal->MaxDeeInEE() ) )
03514 {
03515 fCnaError++;
03516 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> "
03517 << " EE / Dee number = " << fKeyStexNumber
03518 << ": out of range. Range = 0 (EE) or [ 1 ," << fEcal->MaxDeeInEE() << " ] (Dee)"
03519 << fTTBELL << endl;
03520 }
03521 }
03522 }
03523
03524
03525 void TEcnaGui::DoButtonVminD_NOE_ChNb()
03526 {
03527
03528
03529 char* bufferchain;
03530 bufferchain = (char*)fVminD_NOE_ChNbText->GetBuffer()->GetString();
03531
03532 fKeyVminD_NOE_ChNb = (Double_t)atof(bufferchain);
03533
03534 fCnaCommand++;
03535 cout << " *TEcnaGui [" << fCnaCommand
03536 << "]> Registration of Ymin for plot 'number of events' -> "
03537 << fKeyVminD_NOE_ChNb << endl;
03538 }
03539
03540
03541 void TEcnaGui::DoButtonVmaxD_NOE_ChNb()
03542 {
03543
03544
03545 char* bufferchain;
03546 bufferchain = (char*)fVmaxD_NOE_ChNbText->GetBuffer()->GetString();
03547
03548 fKeyVmaxD_NOE_ChNb = (Double_t)atof(bufferchain);
03549
03550 fCnaCommand++;
03551 cout << " *TEcnaGui [" << fCnaCommand
03552 << "]> Registration of Ymax for plot 'number of events' -> "
03553 << fKeyVmaxD_NOE_ChNb << endl;
03554 }
03555
03556
03557 void TEcnaGui::DoButtonVminD_Ped_ChNb()
03558 {
03559
03560
03561 char* bufferchain;
03562 bufferchain = (char*)fVminD_Ped_ChNbText->GetBuffer()->GetString();
03563
03564 fKeyVminD_Ped_ChNb = (Double_t)atof(bufferchain);
03565
03566 fCnaCommand++;
03567 cout << " *TEcnaGui [" << fCnaCommand
03568 << "]> Registration of Ymin for plot 'pedestal' -> "
03569 << fKeyVminD_Ped_ChNb << endl;
03570 }
03571
03572
03573 void TEcnaGui::DoButtonVmaxD_Ped_ChNb()
03574 {
03575
03576
03577 char* bufferchain;
03578 bufferchain = (char*)fVmaxD_Ped_ChNbText->GetBuffer()->GetString();
03579
03580 fKeyVmaxD_Ped_ChNb = (Double_t)atof(bufferchain);
03581
03582 fCnaCommand++;
03583 cout << " *TEcnaGui [" << fCnaCommand
03584 << "]> Registration of Ymax for plot 'pedestal' -> "
03585 << fKeyVmaxD_Ped_ChNb << endl;
03586 }
03587
03588
03589 void TEcnaGui::DoButtonVminD_TNo_ChNb()
03590 {
03591
03592
03593 char* bufferchain;
03594 bufferchain = (char*)fVminD_TNo_ChNbText->GetBuffer()->GetString();
03595
03596 fKeyVminD_TNo_ChNb = (Double_t)atof(bufferchain);
03597
03598 fCnaCommand++;
03599 cout << " *TEcnaGui [" << fCnaCommand
03600 << "]> Registration of Ymin for plot 'total noise' -> "
03601 << fKeyVminD_TNo_ChNb << endl;
03602 }
03603
03604
03605 void TEcnaGui::DoButtonVmaxD_TNo_ChNb()
03606 {
03607
03608
03609 char* bufferchain;
03610 bufferchain = (char*)fVmaxD_TNo_ChNbText->GetBuffer()->GetString();
03611
03612 fKeyVmaxD_TNo_ChNb = (Double_t)atof(bufferchain);
03613
03614 fCnaCommand++;
03615 cout << " *TEcnaGui [" << fCnaCommand
03616 << "]> Registration of Ymax for plot 'total noise' -> "
03617 << fKeyVmaxD_TNo_ChNb << endl;
03618 }
03619
03620
03621 void TEcnaGui::DoButtonVminD_MCs_ChNb()
03622 {
03623
03624
03625 char* bufferchain;
03626 bufferchain = (char*)fVminD_MCs_ChNbText->GetBuffer()->GetString();
03627
03628 fKeyVminD_MCs_ChNb = (Double_t)atof(bufferchain);
03629
03630 fCnaCommand++;
03631 cout << " *TEcnaGui [" << fCnaCommand
03632 << "]> Registration of Ymin for plot 'mean cor(s,s')' -> "
03633 << fKeyVminD_MCs_ChNb << endl;
03634 }
03635
03636
03637 void TEcnaGui::DoButtonVmaxD_MCs_ChNb()
03638 {
03639
03640
03641 char* bufferchain;
03642 bufferchain = (char*)fVmaxD_MCs_ChNbText->GetBuffer()->GetString();
03643
03644 fKeyVmaxD_MCs_ChNb = (Double_t)atof(bufferchain);
03645
03646 fCnaCommand++;
03647 cout << " *TEcnaGui [" << fCnaCommand
03648 << "]> Registration of Ymax for plot 'mean cor(s,s')' -> "
03649 << fKeyVmaxD_MCs_ChNb << endl;
03650 }
03651
03652
03653
03654 void TEcnaGui::DoButtonVminD_LFN_ChNb()
03655 {
03656
03657
03658 char* bufferchain;
03659 bufferchain = (char*)fVminD_LFN_ChNbText->GetBuffer()->GetString();
03660
03661 fKeyVminD_LFN_ChNb = (Double_t)atof(bufferchain);
03662
03663 fCnaCommand++;
03664 cout << " *TEcnaGui [" << fCnaCommand
03665 << "]> Registration of Ymin for plot 'low frequency noise' -> "
03666 << fKeyVminD_LFN_ChNb << endl;
03667 }
03668
03669
03670 void TEcnaGui::DoButtonVmaxD_LFN_ChNb()
03671 {
03672
03673
03674 char* bufferchain;
03675 bufferchain = (char*)fVmaxD_LFN_ChNbText->GetBuffer()->GetString();
03676
03677 fKeyVmaxD_LFN_ChNb = (Double_t)atof(bufferchain);
03678
03679 fCnaCommand++;
03680 cout << " *TEcnaGui [" << fCnaCommand
03681 << "]> Registration of Ymax for plot 'low frequency noise' -> "
03682 << fKeyVmaxD_LFN_ChNb << endl;
03683 }
03684
03685
03686 void TEcnaGui::DoButtonVminD_HFN_ChNb()
03687 {
03688
03689
03690 char* bufferchain;
03691 bufferchain = (char*)fVminD_HFN_ChNbText->GetBuffer()->GetString();
03692
03693 fKeyVminD_HFN_ChNb = (Double_t)atof(bufferchain);
03694
03695 fCnaCommand++;
03696 cout << " *TEcnaGui [" << fCnaCommand
03697 << "]> Registration of Ymin for plot 'high frequency noise' -> "
03698 << fKeyVminD_HFN_ChNb << endl;
03699 }
03700
03701
03702 void TEcnaGui::DoButtonVmaxD_HFN_ChNb()
03703 {
03704
03705
03706 char* bufferchain;
03707 bufferchain = (char*)fVmaxD_HFN_ChNbText->GetBuffer()->GetString();
03708
03709 fKeyVmaxD_HFN_ChNb = (Double_t)atof(bufferchain);
03710
03711 fCnaCommand++;
03712 cout << " *TEcnaGui [" << fCnaCommand
03713 << "]> Registration of Ymax for plot 'high frequency noise' -> "
03714 << fKeyVmaxD_HFN_ChNb << endl;
03715 }
03716
03717
03718 void TEcnaGui::DoButtonVminD_SCs_ChNb()
03719 {
03720
03721
03722 char* bufferchain;
03723 bufferchain = (char*)fVminD_SCs_ChNbText->GetBuffer()->GetString();
03724
03725 fKeyVminD_SCs_ChNb = (Double_t)atof(bufferchain);
03726
03727 fCnaCommand++;
03728 cout << " *TEcnaGui [" << fCnaCommand
03729 << "]> Registration of Ymin for plot 'sigma of cor(s,s')' -> "
03730 << fKeyVminD_SCs_ChNb << endl;
03731 }
03732
03733
03734 void TEcnaGui::DoButtonVmaxD_SCs_ChNb()
03735 {
03736
03737
03738 char* bufferchain;
03739 bufferchain = (char*)fVmaxD_SCs_ChNbText->GetBuffer()->GetString();
03740
03741 fKeyVmaxD_SCs_ChNb = (Double_t)atof(bufferchain);
03742
03743 fCnaCommand++;
03744 cout << " *TEcnaGui [" << fCnaCommand
03745 << "]> Registration of Ymax for plot 'sigma of cor(s,s')' -> "
03746 << fKeyVmaxD_SCs_ChNb << endl;
03747 }
03748
03749
03750 void TEcnaGui::DoButtonVminLFccMos()
03751 {
03752
03753
03754 char* bufferchain;
03755 bufferchain = (char*)fVminLFccMosText->GetBuffer()->GetString();
03756
03757 fKeyVminLFccMos = (Double_t)atof(bufferchain);
03758
03759 fCnaCommand++;
03760 cout << " *TEcnaGui [" << fCnaCommand
03761 << "]> Registration of Ymin for plot 'mean LF |cor(c,c')|' -> "
03762 << fKeyVminLFccMos << endl;
03763 }
03764
03765
03766 void TEcnaGui::DoButtonVmaxLFccMos()
03767 {
03768
03769
03770 char* bufferchain;
03771 bufferchain = (char*)fVmaxLFccMosText->GetBuffer()->GetString();
03772
03773 fKeyVmaxLFccMos = (Double_t)atof(bufferchain);
03774
03775 fCnaCommand++;
03776 cout << " *TEcnaGui [" << fCnaCommand
03777 << "]> Registration of Ymax for plot 'mean LF |cor(c,c')|' -> "
03778 << fKeyVmaxLFccMos << endl;
03779 }
03780
03781
03782 void TEcnaGui::DoButtonVminHFccMos()
03783 {
03784
03785
03786 char* bufferchain;
03787 bufferchain = (char*)fVminHFccMosText->GetBuffer()->GetString();
03788
03789 fKeyVminHFccMos = (Double_t)atof(bufferchain);
03790
03791 fCnaCommand++;
03792 cout << " *TEcnaGui [" << fCnaCommand
03793 << "]> Registration of Ymin for plot 'mean HF |cor(c,c')|' -> "
03794 << fKeyVminHFccMos << endl;
03795 }
03796
03797
03798 void TEcnaGui::DoButtonVmaxHFccMos()
03799 {
03800
03801
03802 char* bufferchain;
03803 bufferchain = (char*)fVmaxHFccMosText->GetBuffer()->GetString();
03804
03805 fKeyVmaxHFccMos = (Double_t)atof(bufferchain);
03806
03807 fCnaCommand++;
03808 cout << " *TEcnaGui [" << fCnaCommand
03809 << "]> Registration of Ymax for plot 'mean HF |cor(c,c')|' -> "
03810 << fKeyVmaxHFccMos << endl;
03811 }
03812
03813
03814
03815 void TEcnaGui::DoButtonVminLHFcc()
03816 {
03817
03818
03819 char* bufferchain;
03820 bufferchain = (char*)fVminLHFccText->GetBuffer()->GetString();
03821
03822 fKeyVminLHFcc = (Double_t)atof(bufferchain);
03823
03824 fCnaCommand++;
03825 cout << " *TEcnaGui [" << fCnaCommand
03826 << "]> Registration of Ymin for plot 'cor(c,c') in "
03827 << fStinName.Data() << "s' -> " << fKeyVminLHFcc << endl;
03828 }
03829
03830
03831 void TEcnaGui::DoButtonVmaxLHFcc()
03832 {
03833
03834
03835 char* bufferchain;
03836 bufferchain = (char*)fVmaxLHFccText->GetBuffer()->GetString();
03837
03838 fKeyVmaxLHFcc = (Double_t)atof(bufferchain);
03839
03840 fCnaCommand++;
03841 cout << " *TEcnaGui [" << fCnaCommand
03842 << "]> Registration of Ymax for plot 'cor(c,c') in "
03843 << fStinName.Data() << "s' -> " << fKeyVmaxLHFcc << endl;
03844 }
03845
03846
03847
03848 void TEcnaGui::DoButtonStexNb()
03849 {
03850 ViewStexStinNumbering();
03851 }
03852
03853 void TEcnaGui::DoButtonStinA()
03854 {
03855
03856
03857 char* bufferchain;
03858 bufferchain = (char*)fStinAText->GetBuffer()->GetString();
03859
03860 Int_t xReadStinANumberForCons = atoi(bufferchain);
03861
03862 if( fSubDet == "EB" ){fKeyStinANumber = xReadStinANumberForCons;}
03863 if( fSubDet == "EE" )
03864 {fKeyStinANumber = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fKeyStexNumber, xReadStinANumberForCons);}
03865
03866 if( fSubDet == "EB" )
03867 {
03868 fCnaCommand++;
03869 cout << " *TEcnaGui [" << fCnaCommand
03870 << "]> Registration of " << fStinName.Data() << " number -> "
03871 << xReadStinANumberForCons << endl;
03872
03873 if ( (fKeyStinANumber < 1) || (fKeyStinANumber > fEcal->MaxStinEcnaInStex()) )
03874 {
03875 fCnaError++;
03876 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> " << fStinName.Data()
03877 << " number = " << fKeyStinANumber
03878 << ": out of range ( range = [ 1 ," << fEcal->MaxStinEcnaInStex() << " ] ) "
03879 << fTTBELL << endl;
03880 }
03881 }
03882
03883 if( fSubDet == "EE" )
03884 {
03885 fCnaCommand++;
03886 cout << " *TEcnaGui [" << fCnaCommand
03887 << "]> Registration of " << fStinName.Data() << " number for construction -> "
03888 << xReadStinANumberForCons << endl;
03889
03890 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxDeeInEE() )
03891 {
03892 Int_t off_set_cons = 0;
03893 if( fKeyStexNumber == 1 || fKeyStexNumber == 3 ){off_set_cons = fEcal->MaxSCForConsInDee();}
03894
03895 if( xReadStinANumberForCons <= off_set_cons ||
03896 xReadStinANumberForCons > fEcal->MaxSCForConsInDee()+off_set_cons )
03897 {
03898 fCnaError++;
03899 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> SC nb for construction = "
03900 << xReadStinANumberForCons << ". Out of range ( range = [ " << off_set_cons+1
03901 << "," << fEcal->MaxSCForConsInDee()+off_set_cons << "] )"
03902 << fTTBELL << endl;
03903 }
03904 }
03905 else
03906 {
03907 fCnaError++;
03908 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> DeeNumber = " << fKeyStexNumber
03909 << ". Out of range ( range = [1," << fEcal->MaxDeeInEE() << "] )"
03910 << fTTBELL << endl;
03911 }
03912 }
03913 }
03914
03915
03916 void TEcnaGui::DoButtonStinB()
03917 {
03918
03919
03920 char* bufferchain;
03921 bufferchain = (char*)fStinBText->GetBuffer()->GetString();
03922
03923 Int_t xReadStinBNumberForCons = atoi(bufferchain);
03924
03925 if( fSubDet == "EB" ){fKeyStinBNumber = xReadStinBNumberForCons;}
03926 if( fSubDet == "EE" )
03927 {fKeyStinBNumber = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fKeyStexNumber, xReadStinBNumberForCons);}
03928
03929 fCnaCommand++;
03930 cout << " *TEcnaGui [" << fCnaCommand
03931 << "]> Registration of " << fStinName.Data() << "' number -> "
03932 << xReadStinBNumberForCons << endl;
03933
03934 if( fSubDet == "EB" )
03935 {
03936 if ( (fKeyStinBNumber < 1) || (fKeyStinBNumber > fEcal->MaxStinEcnaInStex()) )
03937 {
03938 fCnaError++;
03939 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> " << fStinName.Data()
03940 << "' number = " << fKeyStinBNumber
03941 << ": out of range ( range = [ 1 ," << fEcal->MaxStinEcnaInStex() << " ] ) "
03942 << fTTBELL << endl;
03943 }
03944 }
03945
03946 if( fSubDet == "EE" )
03947 {
03948 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxDeeInEE() )
03949 {
03950 Int_t off_set_cons = 0;
03951 if( fKeyStexNumber == 1 || fKeyStexNumber == 3 ){off_set_cons = fEcal->MaxSCForConsInDee();}
03952
03953 if( xReadStinBNumberForCons < off_set_cons ||
03954 xReadStinBNumberForCons > fEcal->MaxSCForConsInDee()+off_set_cons )
03955 {
03956 fCnaError++;
03957 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> SC nb for construction = "
03958 << xReadStinBNumberForCons << ". Out of range ( range = [ " << off_set_cons+1
03959 << "," << fEcal->MaxSCForConsInDee()+off_set_cons << "] )"
03960 << fTTBELL << endl;
03961 }
03962 }
03963 else
03964 {
03965 fCnaError++;
03966 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> DeeNumber = " << fKeyStexNumber
03967 << ". Out of range ( range = [1," << fEcal->MaxDeeInEE() << "] )"
03968 << fTTBELL << endl;
03969 }
03970 }
03971 }
03972
03973 void TEcnaGui::DoButtonChNb()
03974 {
03975
03976 ViewStinCrystalNumbering(fKeyStinANumber);
03977 }
03978
03979
03980 void TEcnaGui::DoButtonChan()
03981 {
03982
03983
03984 char* bufferchain;
03985 bufferchain = (char*)fChanText->GetBuffer()->GetString();
03986 Int_t xReadNumber = atoi(bufferchain);
03987
03988 Int_t Choffset = -1;
03989 TString ChString = "?";
03990
03991 if( fSubDet == "EB"){Choffset = 0; ChString = "channel";}
03992 if( fSubDet == "EE"){Choffset = 1; ChString = "crystal";}
03993
03994 fKeyChanNumber = xReadNumber-Choffset;
03995 fCnaCommand++;
03996 cout << " *TEcnaGui [" << fCnaCommand
03997 << "]> Registration of " << ChString.Data() << " number -> "
03998 << xReadNumber << endl;
03999
04000 if ( (fKeyChanNumber < 0) || (fKeyChanNumber > fEcal->MaxCrysInStin()-1 ) )
04001 {
04002 fCnaError++;
04003 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> "
04004 << ChString.Data() << " number in " << fStinName.Data() << " = " << xReadNumber
04005 << ": out of range ( range = [" << Choffset << ","
04006 << fEcal->MaxCrysInStin()-1+Choffset << "] )"
04007 << fTTBELL << endl;
04008 }
04009 }
04010
04011 void TEcnaGui::DoButtonSamp()
04012 {
04013
04014
04015 char* bufferchain;
04016 bufferchain = (char*)fSampText->GetBuffer()->GetString();
04017 Int_t xKeySampNumber = atoi(bufferchain);
04018
04019 fCnaCommand++;
04020 cout << " *TEcnaGui [" << fCnaCommand
04021 << "]> Registration of sample number -> "
04022 << xKeySampNumber << endl;
04023
04024 if ( (xKeySampNumber < 1) || (xKeySampNumber > fKeyNbOfSamples ) )
04025 {
04026 fCnaError++;
04027 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> "
04028 << " Sample number = " << xKeySampNumber
04029 << ": out of range ( range = [ 1 ," << fKeyNbOfSamples << " ] )"
04030 << fTTBELL << endl;
04031 }
04032
04033 fKeySampNumber = xKeySampNumber-1;
04034 }
04035
04036
04037 void TEcnaGui::DoButtonRul()
04038 {
04039
04040
04041
04042 char* listchain = (char*)fRulText->GetBuffer()->GetString();
04043 if( listchain[0] == '\0' )
04044 {
04045 fCnaError++;
04046 cout << " !TEcnaGui (" << fCnaError << ") *ERROR* ===> "
04047 << " Empty file name in entry for TIME EVOLUTION plots."
04048 << fTTBELL << endl;
04049 fKeyFileNameRunList = fKeyRunListInitCode;
04050 }
04051 else
04052 {
04053 char tchiffr[10] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };
04054
04055
04056 if( listchain[0] == tchiffr [0] || listchain[0] == tchiffr [1] ||
04057 listchain[0] == tchiffr [2] || listchain[0] == tchiffr [3] ||
04058 listchain[0] == tchiffr [4] || listchain[0] == tchiffr [5] ||
04059 listchain[0] == tchiffr [6] || listchain[0] == tchiffr [7] ||
04060 listchain[0] == tchiffr [8] || listchain[0] == tchiffr [9] )
04061 {
04062 fCnaError++;
04063 cout << " !TEcnaGui (" << fCnaError << ") *ERROR* ===> "
04064 << " Please, enter a file name beginning with an alphabetic letter."
04065 << fTTBELL << endl;
04066 }
04067 else
04068 {
04069 fKeyFileNameRunList = listchain;
04070
04071 fCnaCommand++;
04072 cout << " *TEcnaGui [" << fCnaCommand
04073 << "]> Registration of run list file name for history plots -> "
04074 << fKeyFileNameRunList.Data() << endl;
04075 }
04076 }
04077 }
04078
04079
04080 void TEcnaGui::DoButtonGent()
04081 {
04082
04083
04084 char* listchain = (char*)fGentText->GetBuffer()->GetString();
04085 fKeyGeneralTitle = listchain;
04086
04087 fCnaCommand++;
04088 cout << " *TEcnaGui [" << fCnaCommand
04089 << "]> Registration of general title -> "
04090 << fKeyGeneralTitle.Data() << endl;
04091 }
04092
04093
04094
04095
04096
04097
04098
04099 void TEcnaGui::DoButtonLogx()
04100 {
04101 if( fMemoScaleX == "LOG"){fKeyScaleX = "LIN";}
04102 if( fMemoScaleX == "LIN"){fKeyScaleX = "LOG";}
04103 fMemoScaleX = fKeyScaleX;
04104
04105 fCnaCommand++;
04106 cout << " *TEcnaGui [" << fCnaCommand
04107 << "]> X axis -> " << fKeyScaleX << " scale " << endl;
04108 }
04109 void TEcnaGui::DoButtonLogy()
04110 {
04111 if( fMemoScaleY == "LOG" ){fKeyScaleY = "LIN";}
04112 if( fMemoScaleY == "LIN" ){fKeyScaleY = "LOG";}
04113 fMemoScaleY = fKeyScaleY;
04114
04115 fCnaCommand++;
04116 cout << " *TEcnaGui [" << fCnaCommand
04117 << "]> Y axis -> " << fKeyScaleY << " scale " << endl;
04118 }
04119
04120 void TEcnaGui::DoButtonProjy()
04121 {
04122 if( fMemoProjY == "Y projection" ){fKeyProjY = "normal";}
04123 if( fMemoProjY == "normal" ){fKeyProjY = "Y projection";}
04124 fMemoProjY = fKeyProjY;
04125
04126 fCnaCommand++;
04127 cout << " *TEcnaGui [" << fCnaCommand
04128 << "]> 1D Histo display -> " << fKeyProjY << " mode " << endl;
04129 }
04130
04131
04132
04133 void TEcnaGui::DoButtonColPal()
04134 {
04135 if( fMemoColPal == "ECCNAColor" ){fKeyColPal = "Rainbow";}
04136 if( fMemoColPal == "Rainbow" ){fKeyColPal = "ECCNAColor";}
04137 fMemoColPal = fKeyColPal;
04138
04139 TString sColPalComment = "?";
04140 if( fKeyColPal == "ECCNAColor" )
04141 {sColPalComment = "ECNAColor option: black-red-blue-green-brown-purple (default)";}
04142 if( fKeyColPal == "Rainbow" )
04143 {sColPalComment = "Rainbow option: red-orange-yellow-green-blue-indigo-purple";}
04144
04145 fCnaCommand++;
04146 cout << " *TEcnaGui [" << fCnaCommand
04147 << "]> Color palette -> " << sColPalComment << endl;
04148 }
04149
04150 void TEcnaGui::DoButtonExit()
04151 {
04152 fCnaCommand++;
04153 cout << " *TEcnaGui [" << fCnaCommand
04154 << "]> Exit CNA session."
04155 << endl;
04156
04157 fButExit->SetCommand(".q");
04158 }
04159
04160
04161
04162 void TEcnaGui::DoButtonClone()
04163 {
04164 fCnaCommand++;
04165 cout << " *TEcnaGui [" << fCnaCommand
04166 << "]> Clone last canvas. " << endl;
04167
04168 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
04169 fHistos->PlotCloneOfCurrentCanvas();
04170 }
04171
04172 void TEcnaGui::DoButtonRoot()
04173 {
04174 fCnaCommand++;
04175 cout << " *TEcnaGui [" << fCnaCommand
04176 << "]> This is ROOT version " << gROOT->GetVersion()
04177 << endl;
04178 }
04179
04180 void TEcnaGui::DoButtonHelp()
04181 {
04182 fCnaCommand++;
04183 cout << " *TEcnaGui [" << fCnaCommand
04184 << "]> HELP: for documentation, see the ECNA web page: " << endl
04185 << " http://cms-fabbro.web.cern.ch/cms-fabbro/cna_new/Correlated_Noise_analysis/ECNA_main_page.htm"
04186 << endl;
04187 }
04188
04189
04190
04191
04192
04193
04194 void TEcnaGui::HandleMenu(Int_t id)
04195 {
04196
04197
04198
04199 if( id == fMenuSubmit8nmC ){SubmitOnBatchSystem("8nm");}
04200 if( id == fMenuSubmit1nhC ){SubmitOnBatchSystem("1nh");}
04201 if( id == fMenuSubmit8nhC ){SubmitOnBatchSystem("8nh");}
04202 if( id == fMenuSubmit1ndC ){SubmitOnBatchSystem("1nd");}
04203 if( id == fMenuSubmit1nwC ){SubmitOnBatchSystem("1nw");}
04204
04205
04206 if( id == fMenuCleanSubC ){CleanBatchFiles("Sub");}
04207 if( id == fMenuCleanJobC ){CleanBatchFiles("Job");}
04208 if( id == fMenuCleanPythC ){CleanBatchFiles("Pyth");}
04209 if( id == fMenuCleanAllC ){CleanBatchFiles("All");}
04210
04211
04212 if( id == fMenuComputStdC ){Calculations("Std");}
04213 if( id == fMenuComputSttC ){Calculations("Stt");}
04214 if( id == fMenuComputSccC ){Calculations("Scc");}
04215
04216
04217 if( id == fMenuD_NOE_ChNbFullC )
04218 {
04219 if( fMemoProjY == "normal" ){ViewHistoSorSNumberOfEventsOfCrystals(fOptPlotFull);}
04220 if( fMemoProjY == "Y projection"){ViewHistoSorSNumberOfEventsDistribution(fOptPlotFull);}
04221 }
04222 if( id == fMenuD_NOE_ChNbSameC )
04223 {
04224 if( fMemoProjY == "normal" ){ViewHistoSorSNumberOfEventsOfCrystals(fOptPlotSame);}
04225 if( fMemoProjY == "Y projection"){ViewHistoSorSNumberOfEventsDistribution(fOptPlotSame);}
04226 }
04227 if( id == fMenuD_NOE_ChNbHocoVecoC ){ViewSorSNumberOfEvents();}
04228 if( id == fMenuD_NOE_ChNbAsciiFileC ){ViewHistoSorSNumberOfEventsOfCrystals(fOptAscii);}
04229
04230
04231 if( id == fMenuD_Ped_ChNbFullC )
04232 {
04233 if( fMemoProjY == "normal" ){ViewHistoSorSPedestalsOfCrystals(fOptPlotFull);}
04234 if( fMemoProjY == "Y projection"){ViewHistoSorSPedestalsDistribution(fOptPlotFull);}
04235 }
04236 if( id == fMenuD_Ped_ChNbSameC )
04237 {
04238 if( fMemoProjY == "normal" ){ViewHistoSorSPedestalsOfCrystals(fOptPlotSame);}
04239 if( fMemoProjY == "Y projection"){ViewHistoSorSPedestalsDistribution(fOptPlotSame);}
04240 }
04241 if( id == fMenuD_Ped_ChNbHocoVecoC ){ViewSorSPedestals();}
04242 if( id == fMenuD_Ped_ChNbAsciiFileC ){ViewHistoSorSPedestalsOfCrystals(fOptAscii);}
04243
04244
04245 if( id == fMenuD_TNo_ChNbFullC )
04246 {
04247 if( fMemoProjY == "normal" ){ViewHistoSorSTotalNoiseOfCrystals(fOptPlotFull);}
04248 if( fMemoProjY == "Y projection"){ViewHistoSorSTotalNoiseDistribution(fOptPlotFull);}
04249 }
04250 if( id == fMenuD_TNo_ChNbSameC )
04251 {
04252 if( fMemoProjY == "normal" ){ViewHistoSorSTotalNoiseOfCrystals(fOptPlotSame);}
04253 if( fMemoProjY == "Y projection"){ViewHistoSorSTotalNoiseDistribution(fOptPlotSame);}
04254 }
04255 if( id == fMenuD_TNo_ChNbSamePC)
04256 {
04257 if( fMemoProjY == "normal" ){ViewHistoSorSTotalNoiseOfCrystals(fOptPlotSameP);}
04258 if( fMemoProjY == "Y projection"){ViewHistoSorSTotalNoiseDistribution(fOptPlotSameP);}
04259 }
04260 if( id == fMenuD_TNo_ChNbHocoVecoC ){ViewSorSTotalNoise();}
04261 if( id == fMenuD_TNo_ChNbAsciiFileC ){ViewHistoSorSTotalNoiseOfCrystals(fOptAscii);}
04262
04263
04264 if( id == fMenuD_LFN_ChNbFullC )
04265 {
04266 if( fMemoProjY == "normal" ){ViewHistoSorSLowFrequencyNoiseOfCrystals(fOptPlotFull);}
04267 if( fMemoProjY == "Y projection"){ViewHistoSorSLowFrequencyNoiseDistribution(fOptPlotFull);}
04268 }
04269 if( id == fMenuD_LFN_ChNbSameC )
04270 {
04271 if( fMemoProjY == "normal" ){ViewHistoSorSLowFrequencyNoiseOfCrystals(fOptPlotSame);}
04272 if( fMemoProjY == "Y projection"){ViewHistoSorSLowFrequencyNoiseDistribution(fOptPlotSame);}
04273 }
04274 if( id == fMenuD_LFN_ChNbSamePC)
04275 {
04276 if( fMemoProjY == "normal" ){ViewHistoSorSLowFrequencyNoiseOfCrystals(fOptPlotSameP);}
04277 if( fMemoProjY == "Y projection"){ViewHistoSorSLowFrequencyNoiseDistribution(fOptPlotSameP);}
04278 }
04279 if( id == fMenuD_LFN_ChNbHocoVecoC ){ViewSorSLowFrequencyNoise();}
04280 if( id == fMenuD_LFN_ChNbAsciiFileC ){ViewHistoSorSLowFrequencyNoiseOfCrystals(fOptAscii);}
04281
04282
04283 if( id == fMenuD_HFN_ChNbFullC )
04284 {
04285 if( fMemoProjY == "normal" ){ViewHistoSorSHighFrequencyNoiseOfCrystals(fOptPlotFull);}
04286 if( fMemoProjY == "Y projection"){ViewHistoSorSHighFrequencyNoiseDistribution(fOptPlotFull);}
04287 }
04288 if( id == fMenuD_HFN_ChNbSameC )
04289 {
04290 if( fMemoProjY == "normal" ){ViewHistoSorSHighFrequencyNoiseOfCrystals(fOptPlotSame);}
04291 if( fMemoProjY == "Y projection"){ViewHistoSorSHighFrequencyNoiseDistribution(fOptPlotSame);}
04292 }
04293 if( id == fMenuD_HFN_ChNbSamePC)
04294 {
04295 if( fMemoProjY == "normal" ){ViewHistoSorSHighFrequencyNoiseOfCrystals(fOptPlotSameP);}
04296 if( fMemoProjY == "Y projection"){ViewHistoSorSHighFrequencyNoiseDistribution(fOptPlotSameP);}
04297 }
04298 if( id == fMenuD_HFN_ChNbHocoVecoC ){ViewSorSHighFrequencyNoise();}
04299 if( id == fMenuD_HFN_ChNbAsciiFileC ){ViewHistoSorSHighFrequencyNoiseOfCrystals(fOptAscii);}
04300
04301
04302 if( id == fMenuD_MCs_ChNbFullC )
04303 {
04304 if( fMemoProjY == "normal" ){ViewHistoSorSMeanCorssOfCrystals(fOptPlotFull);}
04305 if( fMemoProjY == "Y projection"){ViewHistoSorSMeanCorssDistribution(fOptPlotFull);}
04306 }
04307 if( id == fMenuD_MCs_ChNbSameC )
04308 {
04309 if( fMemoProjY == "normal" ){ViewHistoSorSMeanCorssOfCrystals(fOptPlotSame);}
04310 if( fMemoProjY == "Y projection"){ViewHistoSorSMeanCorssDistribution(fOptPlotSame);}
04311 }
04312 if( id == fMenuD_MCs_ChNbSamePC)
04313 {
04314 if( fMemoProjY == "normal" ){ViewHistoSorSMeanCorssOfCrystals(fOptPlotSameP);}
04315 if( fMemoProjY == "Y projection"){ViewHistoSorSMeanCorssDistribution(fOptPlotSameP);}
04316 }
04317 if( id == fMenuD_MCs_ChNbHocoVecoC ){ViewSorSMeanCorss();}
04318 if( id == fMenuD_MCs_ChNbAsciiFileC ){ViewHistoSorSMeanCorssOfCrystals(fOptAscii);}
04319
04320
04321 if( id == fMenuD_SCs_ChNbFullC )
04322 {
04323 if( fMemoProjY == "normal" ){ViewHistoSorSSigmaOfCorssOfCrystals(fOptPlotFull);}
04324 if( fMemoProjY == "Y projection"){ViewHistoSorSSigmaOfCorssDistribution(fOptPlotFull);}
04325 }
04326 if( id == fMenuD_SCs_ChNbSameC )
04327 {
04328 if( fMemoProjY == "normal" ){ViewHistoSorSSigmaOfCorssOfCrystals(fOptPlotSame);}
04329 if( fMemoProjY == "Y projection"){ViewHistoSorSSigmaOfCorssDistribution(fOptPlotSame);}
04330 }
04331 if( id == fMenuD_SCs_ChNbSamePC)
04332 {
04333 if( fMemoProjY == "normal" ){ViewHistoSorSSigmaOfCorssOfCrystals(fOptPlotSameP);}
04334 if( fMemoProjY == "Y projection"){ViewHistoSorSSigmaOfCorssDistribution(fOptPlotSameP);}
04335 }
04336 if( id == fMenuD_SCs_ChNbHocoVecoC ){ViewSorSSigmaOfCorss();}
04337 if( id == fMenuD_SCs_ChNbAsciiFileC ){ViewHistoSorSSigmaOfCorssOfCrystals(fOptAscii);}
04338
04339
04340 if( id == fMenuLFccMosColzC ){ViewMatrixLowFrequencyMeanCorrelationsBetweenStins("COLZ");}
04341 if( id == fMenuLFccMosLegoC ){ViewMatrixLowFrequencyMeanCorrelationsBetweenStins("LEGO2Z");}
04342
04343 if( id == fMenuHFccMosColzC ){ViewMatrixHighFrequencyMeanCorrelationsBetweenStins("COLZ");}
04344 if( id == fMenuHFccMosLegoC ){ViewMatrixHighFrequencyMeanCorrelationsBetweenStins("LEGO2Z");}
04345
04346
04347 if( id == fMenuLFccColzC ){ViewStexLowFrequencyCorcc();}
04348 if( id == fMenuHFccColzC ){ViewStexHighFrequencyCorcc();}
04349
04350
04351 Int_t cKeyStinANumber = fKeyStinANumber;
04352 if( fSubDet == "EE" && fKeyStexNumber != 0 )
04353 {cKeyStinANumber = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber, fKeyStinANumber);}
04354 Int_t cKeyStinBNumber = fKeyStinBNumber;
04355 if( fSubDet == "EE" && fKeyStexNumber != 0 )
04356 {cKeyStinBNumber = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber, fKeyStinBNumber);}
04357
04358
04359 if( id == fMenuLFCorccColzC )
04360 {ViewMatrixLowFrequencyCorrelationsBetweenChannels(cKeyStinANumber, cKeyStinBNumber, "COLZ");}
04361 if( id == fMenuLFCorccLegoC )
04362 {ViewMatrixLowFrequencyCorrelationsBetweenChannels(cKeyStinANumber, cKeyStinBNumber, "LEGO2Z");}
04363
04364 if( id == fMenuHFCorccColzC )
04365 {ViewMatrixHighFrequencyCorrelationsBetweenChannels(cKeyStinANumber, cKeyStinBNumber, "COLZ");}
04366 if( id == fMenuHFCorccLegoC )
04367 {ViewMatrixHighFrequencyCorrelationsBetweenChannels(cKeyStinANumber, cKeyStinBNumber, "LEGO2Z");}
04368
04369
04370 if( id == fMenuCorssColzC ){ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "COLZ");}
04371 if( id == fMenuCorssBoxC ){ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "BOX");}
04372 if( id == fMenuCorssTextC ){ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "TEXT");}
04373 if( id == fMenuCorssContzC ){ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "CONTZ");}
04374 if( id == fMenuCorssLegoC ){ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "LEGO2Z");}
04375 if( id == fMenuCorssSurf1C ){ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "SURF1Z");}
04376 if( id == fMenuCorssSurf2C ){ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "SURF2Z");}
04377 if( id == fMenuCorssSurf3C ){ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "SURF3Z");}
04378 if( id == fMenuCorssSurf4C ){ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "SURF4");}
04379 if( id == fMenuCorssAsciiFileC ){ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "ASCII");}
04380
04381 if( id == fMenuCovssColzC ){ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "COLZ");}
04382 if( id == fMenuCovssBoxC ){ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "BOX");}
04383 if( id == fMenuCovssTextC ){ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "TEXT");}
04384 if( id == fMenuCovssContzC ){ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "CONTZ");}
04385 if( id == fMenuCovssLegoC ){ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "LEGO2Z");}
04386 if( id == fMenuCovssSurf1C ){ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "SURF1Z");}
04387 if( id == fMenuCovssSurf2C ){ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "SURF2Z");}
04388 if( id == fMenuCovssSurf3C ){ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "SURF3Z");}
04389 if( id == fMenuCovssSurf4C ){ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "SURF4");}
04390 if( id == fMenuCovssAsciiFileC ){ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "ASCII");}
04391
04392
04393 if( id == fMenuCorssAllColzC ){ViewStinCorrelationSamples(cKeyStinANumber);}
04394 if( id == fMenuCovssAllColzC ){ViewStinCovarianceSamples(cKeyStinANumber);}
04395
04396
04397 if( id == fMenuD_MSp_SpNbLineFullC )
04398 {
04399 if( fMemoProjY == "normal" ){ViewHistoCrystalSampleMeans(cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04400 if( fMemoProjY == "Y projection"){ViewHistoCrystalSampleMeansDistribution(cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04401 }
04402
04403 if( id == fMenuD_MSp_SpNbLineSameC )
04404 {
04405 if( fMemoProjY == "normal" ){ViewHistoCrystalSampleMeans(cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04406 if( fMemoProjY == "Y projection"){ViewHistoCrystalSampleMeansDistribution(cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04407 }
04408 if( id == fMenuD_MSp_SpNbLineAllStinC )
04409 {
04410 if( fMemoProjY == "normal" ){ViewHistoCrystalSampleMeans(cKeyStinANumber, fKeyChanNumber, fOptPlotSameInStin);}
04411 if( fMemoProjY == "Y projection"){ViewHistoCrystalSampleMeansDistribution(cKeyStinANumber, fKeyChanNumber, fOptPlotSameInStin);}
04412 }
04413
04414
04415 if( id == fMenuD_SSp_SpNbLineFullC )
04416 {
04417 if( fMemoProjY == "normal" ){ViewHistoCrystalSampleSigmas(cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04418 if( fMemoProjY == "Y projection"){ViewHistoCrystalSampleSigmasDistribution(cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04419 }
04420 if( id == fMenuD_SSp_SpNbLineSameC )
04421 {
04422 if( fMemoProjY == "normal" ){ViewHistoCrystalSampleSigmas(cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04423 if( fMemoProjY == "Y projection"){ViewHistoCrystalSampleSigmasDistribution(cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04424 }
04425 if( id == fMenuD_SSp_SpNbLineAllStinC )
04426 {
04427 if( fMemoProjY == "normal" ){ViewHistoCrystalSampleSigmas(cKeyStinANumber, fKeyChanNumber, fOptPlotSameInStin);}
04428 if( fMemoProjY == "Y projection"){ViewHistoCrystalSampleSigmasDistribution(cKeyStinANumber, fKeyChanNumber, fOptPlotSameInStin);}
04429 }
04430
04431
04432 if( id == fMenuH_Ped_DatePolmFullC || id == fMenuH_Ped_DatePolmSameC
04433 || id == fMenuH_TNo_DatePolmFullC || id == fMenuH_TNo_DatePolmSameC || id == fMenuH_TNo_DatePolmSamePC
04434 || id == fMenuH_LFN_DatePolmFullC || id == fMenuH_LFN_DatePolmSameC || id == fMenuH_LFN_DatePolmSamePC
04435 || id == fMenuH_HFN_DatePolmFullC || id == fMenuH_HFN_DatePolmSameC || id == fMenuH_HFN_DatePolmSamePC
04436 || id == fMenuH_MCs_DatePolmFullC || id == fMenuH_MCs_DatePolmSameC || id == fMenuH_MCs_DatePolmSamePC
04437 || id == fMenuH_SCs_DatePolmFullC || id == fMenuH_SCs_DatePolmSameC || id == fMenuH_SCs_DatePolmSamePC)
04438 {
04439 if(fKeyFileNameRunList == fKeyRunListInitCode )
04440 {fCnaError++;
04441 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> "
04442 << " EMPTY STRING for list of run file name (TIME EVOLUTION plots)." << fTTBELL << endl;}
04443 else
04444 {
04445
04446 if( id == fMenuH_Ped_DatePolmFullC )
04447 {
04448 if( fMemoProjY == "normal" )
04449 {ViewHistimeCrystalPedestals(fKeyFileNameRunList.Data(),
04450 cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04451 if( fMemoProjY == "Y projection")
04452 {ViewHistimeCrystalPedestalsRuns(fKeyFileNameRunList.Data(),
04453 cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04454 }
04455 if( id == fMenuH_Ped_DatePolmSameC )
04456 { if( fMemoProjY == "normal" )
04457 {ViewHistimeCrystalPedestals(fKeyFileNameRunList.Data(),
04458 cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04459 if( fMemoProjY == "Y projection")
04460 {ViewHistimeCrystalPedestalsRuns(fKeyFileNameRunList.Data(),
04461 cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04462 }
04463
04464
04465 if( id == fMenuH_TNo_DatePolmFullC )
04466 {
04467 if( fMemoProjY == "normal" )
04468 {ViewHistimeCrystalTotalNoise(fKeyFileNameRunList.Data(),
04469 cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04470 if( fMemoProjY == "Y projection")
04471 {ViewHistimeCrystalTotalNoiseRuns(fKeyFileNameRunList.Data(),
04472 cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04473 }
04474 if( id == fMenuH_TNo_DatePolmSameC )
04475 {
04476 if( fMemoProjY == "normal" )
04477 {ViewHistimeCrystalTotalNoise(fKeyFileNameRunList.Data(),
04478 cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04479 if( fMemoProjY == "Y projection")
04480 {ViewHistimeCrystalTotalNoiseRuns(fKeyFileNameRunList.Data(),
04481 cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04482 }
04483 if( id == fMenuH_TNo_DatePolmSamePC )
04484 {
04485 if( fMemoProjY == "normal" )
04486 {ViewHistimeCrystalTotalNoise(fKeyFileNameRunList.Data(),
04487 cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);}
04488 if( fMemoProjY == "Y projection")
04489 {ViewHistimeCrystalTotalNoiseRuns(fKeyFileNameRunList.Data(),
04490 cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);}
04491 }
04492
04493
04494 if( id == fMenuH_LFN_DatePolmFullC )
04495 {
04496 if( fMemoProjY == "normal" )
04497 {ViewHistimeCrystalLowFrequencyNoise(fKeyFileNameRunList.Data(),
04498 cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04499 if( fMemoProjY == "Y projection")
04500 {ViewHistimeCrystalLowFrequencyNoiseRuns(fKeyFileNameRunList.Data(),
04501 cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04502 }
04503 if( id == fMenuH_LFN_DatePolmSameC )
04504 {
04505 if( fMemoProjY == "normal" )
04506 {ViewHistimeCrystalLowFrequencyNoise(fKeyFileNameRunList.Data(),
04507 cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04508 if( fMemoProjY == "Y projection")
04509 {ViewHistimeCrystalLowFrequencyNoiseRuns(fKeyFileNameRunList.Data(),
04510 cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04511 }
04512 if( id == fMenuH_LFN_DatePolmSamePC )
04513 {
04514 if( fMemoProjY == "normal" )
04515 {ViewHistimeCrystalLowFrequencyNoise(fKeyFileNameRunList.Data(),
04516 cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);}
04517 if( fMemoProjY == "Y projection")
04518 {ViewHistimeCrystalLowFrequencyNoiseRuns(fKeyFileNameRunList.Data(),
04519 cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);}
04520 }
04521
04522
04523 if( id == fMenuH_HFN_DatePolmFullC )
04524 {
04525 if( fMemoProjY == "normal" )
04526 {ViewHistimeCrystalHighFrequencyNoise(fKeyFileNameRunList.Data(),
04527 cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04528 if( fMemoProjY == "Y projection")
04529 {ViewHistimeCrystalHighFrequencyNoiseRuns(fKeyFileNameRunList.Data(),
04530 cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04531 }
04532 if( id == fMenuH_HFN_DatePolmSameC )
04533 {
04534 if( fMemoProjY == "normal" )
04535 {ViewHistimeCrystalHighFrequencyNoise(fKeyFileNameRunList.Data(),
04536 cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04537 if( fMemoProjY == "Y projection")
04538 {ViewHistimeCrystalHighFrequencyNoiseRuns(fKeyFileNameRunList.Data(),
04539 cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04540 }
04541 if( id == fMenuH_HFN_DatePolmSamePC )
04542 {
04543 if( fMemoProjY == "normal" )
04544 {ViewHistimeCrystalHighFrequencyNoise(fKeyFileNameRunList.Data(),
04545 cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);}
04546 if( fMemoProjY == "Y projection")
04547 {ViewHistimeCrystalHighFrequencyNoiseRuns(fKeyFileNameRunList.Data(),
04548 cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);}
04549 }
04550
04551
04552 if( id == fMenuH_MCs_DatePolmFullC )
04553 {
04554 if( fMemoProjY == "normal" )
04555 {ViewHistimeCrystalMeanCorss(fKeyFileNameRunList.Data(),
04556 cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04557 if( fMemoProjY == "Y projection")
04558 {ViewHistimeCrystalMeanCorssRuns(fKeyFileNameRunList.Data(),
04559 cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04560 }
04561 if( id == fMenuH_MCs_DatePolmSameC )
04562 {
04563 if( fMemoProjY == "normal" )
04564 {ViewHistimeCrystalMeanCorss(fKeyFileNameRunList.Data(),
04565 cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04566 if( fMemoProjY == "Y projection")
04567 {ViewHistimeCrystalMeanCorssRuns(fKeyFileNameRunList.Data(),
04568 cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04569 }
04570 if( id == fMenuH_MCs_DatePolmSamePC )
04571 {
04572 if( fMemoProjY == "normal" )
04573 {ViewHistimeCrystalMeanCorss(fKeyFileNameRunList.Data(),
04574 cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);}
04575 if( fMemoProjY == "Y projection")
04576 {ViewHistimeCrystalMeanCorssRuns(fKeyFileNameRunList.Data(),
04577 cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);}
04578 }
04579
04580
04581 if( id == fMenuH_SCs_DatePolmFullC )
04582 {
04583 if( fMemoProjY == "normal" )
04584 {ViewHistimeCrystalSigmaOfCorss(fKeyFileNameRunList.Data(),
04585 cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04586 if( fMemoProjY == "Y projection")
04587 {ViewHistimeCrystalSigmaOfCorssRuns(fKeyFileNameRunList.Data(),
04588 cKeyStinANumber, fKeyChanNumber, fOptPlotFull);}
04589 }
04590 if( id == fMenuH_SCs_DatePolmSameC )
04591 {
04592 if( fMemoProjY == "normal" )
04593 {ViewHistimeCrystalSigmaOfCorss(fKeyFileNameRunList.Data(),
04594 cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04595 if( fMemoProjY == "Y projection")
04596 {ViewHistimeCrystalSigmaOfCorssRuns(fKeyFileNameRunList.Data(),
04597 cKeyStinANumber, fKeyChanNumber, fOptPlotSame);}
04598 }
04599 if( id == fMenuH_SCs_DatePolmSamePC )
04600 {
04601 if( fMemoProjY == "normal" )
04602 {ViewHistimeCrystalSigmaOfCorss(fKeyFileNameRunList.Data(),
04603 cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);}
04604 if( fMemoProjY == "Y projection")
04605 {ViewHistimeCrystalSigmaOfCorssRuns(fKeyFileNameRunList.Data(),
04606 cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);}
04607 }
04608 }
04609 }
04610
04611
04612 if( id == fMenuAdcProjSampLineFullC )
04613 {
04614 if( fMemoProjY == "normal" )
04615 {ViewHistoCrystalSampleValues(cKeyStinANumber, fKeyChanNumber, fKeySampNumber, fOptPlotFull);}
04616 if( fMemoProjY == "Y projection")
04617 {ViewHistoSampleEventDistribution(cKeyStinANumber, fKeyChanNumber, fKeySampNumber, fOptPlotFull);}
04618 }
04619 if( id == fMenuAdcProjSampLineSameC )
04620 {
04621 if( fMemoProjY == "normal" )
04622 {ViewHistoCrystalSampleValues(cKeyStinANumber, fKeyChanNumber, fKeySampNumber, fOptPlotSame);}
04623 if( fMemoProjY == "Y projection")
04624 {ViewHistoSampleEventDistribution(cKeyStinANumber, fKeyChanNumber, fKeySampNumber, fOptPlotSame);}
04625 }
04626 }
04627
04628
04629
04630
04631
04632
04633
04634 void TEcnaGui::SubmitOnBatchSystem(const TString QueueCode)
04635 {
04636
04637
04638 if( (fConfirmSubmit == 1) && (fConfirmRunNumber == fKeyRunNumber) )
04639 {
04640 fCnaCommand++;
04641 cout << " *TEcnaGui [" << fCnaCommand
04642 << "]> Submitting job in batch mode for run " << fConfirmRunNumber << endl;
04643
04644
04645
04646 TString ModulesdataPath = fCnaParPaths->PathModulesData();
04647
04648
04649 TString CnaPythonCommand = ModulesdataPath;
04650
04651
04652 TString PythonScriptName = "EcnaSystemScriptPython";
04653 const Text_t *t_PythonScriptName = (const Text_t *)PythonScriptName.Data();
04654 CnaPythonCommand.Append(t_PythonScriptName);
04655
04656
04657
04658
04659
04660
04661 CnaPythonCommand.Append(' ');
04662 CnaPythonCommand.Append(fConfirmRunNumberString);
04663
04664
04665
04666 CnaPythonCommand.Append(' ');
04667 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04668 const Text_t *t_StringAnaType = (const Text_t *)fKeyAnaType.Data();
04669 CnaPythonCommand.Append(t_StringAnaType);
04670 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04671
04672
04673 CnaPythonCommand.Append(' ');
04674 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04675 const Text_t *t_NbOfSamplesString = (const Text_t *)fKeyNbOfSamplesString.Data();
04676 CnaPythonCommand.Append(t_NbOfSamplesString);
04677 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04678
04679
04680 CnaPythonCommand.Append(' ');
04681 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04682 const Text_t *t_FirstReqEvtNumberString = (const Text_t *)fKeyFirstReqEvtNumberString.Data();
04683 CnaPythonCommand.Append(t_FirstReqEvtNumberString);
04684 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04685
04686
04687 CnaPythonCommand.Append(' ');
04688 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04689 const Text_t *t_LastReqEvtNumberString = (const Text_t *)fKeyLastReqEvtNumberString.Data();
04690 CnaPythonCommand.Append(t_LastReqEvtNumberString);
04691 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04692
04693
04694 CnaPythonCommand.Append(' ');
04695 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04696 const Text_t *t_ReqNbOfEvtsString = (const Text_t *)fKeyReqNbOfEvtsString.Data();
04697 CnaPythonCommand.Append(t_ReqNbOfEvtsString);
04698 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04699
04700
04701 CnaPythonCommand.Append(' ');
04702 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04703 const Text_t *t_fStexName = (const Text_t *)fStexName.Data();
04704 CnaPythonCommand.Append(t_fStexName);
04705 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04706
04707
04708 CnaPythonCommand.Append(' ');
04709 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04710 const Text_t *t_StexNumberString = (const Text_t *)fKeyStexNumberString.Data();
04711 CnaPythonCommand.Append(t_StexNumberString);
04712 CnaPythonCommand.Append('\\'); CnaPythonCommand.Append('\"');
04713
04714
04715
04716
04717 fPythonFileName = "EcnaPython_";
04718
04719 fPythonFileName.Append(t_StringAnaType);
04720 fPythonFileName.Append('_');
04721
04722 fPythonFileName.Append('S');
04723 fPythonFileName.Append('1');
04724 fPythonFileName.Append('_');
04725 fPythonFileName.Append(t_NbOfSamplesString);
04726 fPythonFileName.Append('_');
04727 fPythonFileName.Append('R');
04728
04729 const Text_t *t_fConfirmRunNumberString = (const Text_t *)fConfirmRunNumberString.Data();
04730 fPythonFileName.Append(t_fConfirmRunNumberString);
04731 fPythonFileName.Append('_');
04732
04733 fPythonFileName.Append(t_FirstReqEvtNumberString);
04734 fPythonFileName.Append('_');
04735
04736 fPythonFileName.Append(t_LastReqEvtNumberString);
04737 fPythonFileName.Append('_');
04738
04739 fPythonFileName.Append(t_ReqNbOfEvtsString);
04740 fPythonFileName.Append('_');
04741
04742 fPythonFileName.Append(t_fStexName);
04743
04744 fPythonFileName.Append(t_StexNumberString);
04745
04746
04747 CnaPythonCommand.Append(' ');
04748 const Text_t *t_fPythonFileName = (const Text_t *)fPythonFileName.Data();
04749 CnaPythonCommand.Append(t_fPythonFileName);
04750
04751
04752
04753 CnaPythonCommand.Append(' ');
04754 const Text_t *t_modules_data_path = (const Text_t *)ModulesdataPath.Data();
04755 CnaPythonCommand.Append(t_modules_data_path);
04756
04757
04758
04759
04760
04761
04762
04763
04764
04765
04766
04767
04768
04769 const Text_t *t_cnapythoncommand = (const Text_t *)CnaPythonCommand.Data();
04770 TString CnaExecPythonCommand = "csh ";
04771 CnaExecPythonCommand.Append(t_cnapythoncommand);
04772
04773 Int_t i_exec_python = gSystem->Exec(CnaExecPythonCommand.Data());
04774
04775 if( i_exec_python != 0 )
04776 {
04777 cout << "*TEcnaGui> Script for python file building was executed with error code = "
04778 << i_exec_python << "." << endl
04779 << " python file: " << fPythonFileName.Data() << ".py" << endl
04780 << " Command: " << CnaExecPythonCommand.Data() << endl
04781 << fTTBELL << endl;
04782 }
04783 else
04784 {
04785 cout << "*TEcnaGui> Script for python file building was successfully executed." << endl
04786 << " python file: " << fPythonFileName.Data() << ".py" << endl
04787 << " (Command: " << CnaExecPythonCommand.Data() << ")" << endl;
04788
04789
04790 TString CnaSubmitCommand = ModulesdataPath;
04791
04792
04793 TString SubmitScriptName = "EcnaSystemScriptSubmit";
04794 const Text_t *t_SubmitScriptName= (const Text_t *)SubmitScriptName.Data();
04795 CnaSubmitCommand.Append(t_SubmitScriptName);
04796 CnaSubmitCommand.Append(' ');
04797
04798
04799 const Text_t *t_cmssw_base = (const Text_t *)fCnaParPaths->CMSSWBase().Data();
04800 CnaSubmitCommand.Append(t_cmssw_base);
04801 CnaSubmitCommand.Append(' ');
04802
04803 const Text_t *t_cmssw_subsystem = (const Text_t *)fCnaParPaths->CMSSWSubsystem().Data();
04804 CnaSubmitCommand.Append(t_cmssw_subsystem);
04805 CnaSubmitCommand.Append(' ');
04806
04807 const Text_t *t_cfgp_file = (const Text_t *)fPythonFileName.Data();
04808 CnaSubmitCommand.Append(t_cfgp_file);
04809 CnaSubmitCommand.Append(' ');
04810
04811 const Text_t *t_QueueCode = (const Text_t *)QueueCode.Data();
04812 CnaSubmitCommand.Append(t_QueueCode);
04813
04814
04815 const Text_t *t_cnasubmitcommand = (const Text_t *)CnaSubmitCommand.Data();
04816 TString CnaExecSubmitCommand = "csh ";
04817 CnaExecSubmitCommand.Append(t_cnasubmitcommand);
04818
04819 Int_t i_exec_submit = gSystem->Exec(CnaExecSubmitCommand.Data());
04820
04821 if( i_exec_submit != 0 )
04822 {
04823 cout << "*TEcnaGui> Script for job submission was executed with error code = "
04824 << i_exec_submit << "." << endl
04825 << " Command: " << CnaExecSubmitCommand.Data() << endl
04826 << fTTBELL << endl;
04827 }
04828 else
04829 {
04830 cout << "*TEcnaGui> Job with configuration file: " << fPythonFileName.Data()
04831 << " was successfully submitted." << endl
04832 << " (Command: " << CnaExecSubmitCommand.Data() << ")" << endl;
04833 }
04834
04835 fConfirmSubmit = 0;
04836 fConfirmRunNumber = 0;
04837 fConfirmRunNumberString = "0";
04838 }
04839 }
04840 else
04841 {
04842 if( fKeyAnaType.BeginsWith("Adc") )
04843 {
04844 fCnaCommand++;
04845 cout << " *TEcnaGui [" << fCnaCommand
04846 << "]> Request for submitting job in batch mode for run " << fKeyRunNumber
04847 << ". Syntax OK. Please, click again to confirm."
04848 << fTTBELL << endl;
04849
04850 fConfirmSubmit = 1;
04851 fConfirmRunNumber = fKeyRunNumber;
04852 fConfirmRunNumberString = fKeyRunNumberString;
04853 }
04854 else
04855 {
04856 fCnaError++;
04857 cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===>"
04858 << " Analysis name = " << fKeyAnaType
04859 << ": should begin with 'Adc'."
04860 << " Please, change the analysis name." << fTTBELL << endl;
04861
04862 fConfirmSubmit = 0;
04863 fConfirmRunNumber = 0;
04864 fConfirmRunNumberString = "0";
04865 }
04866 }
04867 }
04868
04869
04870
04871
04872
04873
04874
04875 void TEcnaGui::CleanBatchFiles(const TString clean_code)
04876 {
04877
04878
04879 fCnaCommand++;
04880 cout << " *TEcnaGui [" << fCnaCommand
04881 << "]> Clean requested with code: " << clean_code
04882 << endl;
04883
04884
04885 if( clean_code == "Sub" || clean_code == "All")
04886 {
04887
04888
04889 TString ModulesdataPath = fCnaParPaths->PathModulesData();
04890
04891
04892
04893 TString CnaCleanSubmissionCommand = ModulesdataPath;
04894 TString CleanSubmissionScriptName = "EcnaSystemScriptCleanSubmissionScripts";
04895 const Text_t *t_CleanSubmissionScriptName = (const Text_t *)CleanSubmissionScriptName.Data();
04896 CnaCleanSubmissionCommand.Append(t_CleanSubmissionScriptName);
04897
04898
04899
04900
04901 TString TestslcPath = fCnaParPaths->PathTestScramArch();
04902 CnaCleanSubmissionCommand.Append(' ');
04903 const Text_t *t_modules_data_path = (const Text_t *)TestslcPath.Data();
04904 CnaCleanSubmissionCommand.Append(t_modules_data_path);
04905
04906
04907 const Text_t *t_cnacleansubmissioncommand = (const Text_t *)CnaCleanSubmissionCommand.Data();
04908 TString CnaExecCleanSubmissionCommand = "csh ";
04909 CnaExecCleanSubmissionCommand.Append(t_cnacleansubmissioncommand);
04910
04911 Int_t i_exec_cleansubmission = gSystem->Exec(CnaExecCleanSubmissionCommand.Data());
04912
04913 if( i_exec_cleansubmission != 0 )
04914 {
04915 cout << "*TEcnaGui> Script for submission script clean was executed with error code = "
04916 << i_exec_cleansubmission << "." << endl
04917 << " Command: " << CnaExecCleanSubmissionCommand.Data() << endl
04918 << fTTBELL << endl;
04919 }
04920 else
04921 {
04922 cout << "*TEcnaGui> Script for submission script clean"
04923 << " was successfully executed." << endl
04924 << " (Command: " << CnaExecCleanSubmissionCommand.Data() << ")" << endl;
04925 }
04926
04927 }
04928
04929
04930 if( clean_code == "Job" || clean_code == "All")
04931 {
04932
04933
04934 TString ModulesdataPath = fCnaParPaths->PathModulesData();
04935
04936
04937
04938 TString CnaCleanJobreportCommand = ModulesdataPath;
04939 TString CleanJobreportScriptName = "EcnaSystemScriptCleanLSFJOBReports";
04940 const Text_t *t_CleanJobreportScriptName = (const Text_t *)CleanJobreportScriptName.Data();
04941 CnaCleanJobreportCommand.Append(t_CleanJobreportScriptName);
04942
04943
04944
04945
04946 TString TestslcPath = fCnaParPaths->PathTestScramArch();
04947 CnaCleanJobreportCommand.Append(' ');
04948 const Text_t *t_modules_data_path = (const Text_t *)TestslcPath.Data();
04949 CnaCleanJobreportCommand.Append(t_modules_data_path);
04950
04951
04952 const Text_t *t_cnacleanjobreportcommand = (const Text_t *)CnaCleanJobreportCommand.Data();
04953 TString CnaExecCleanJobreportCommand = "csh ";
04954 CnaExecCleanJobreportCommand.Append(t_cnacleanjobreportcommand);
04955
04956 Int_t i_exec_cleanjobreport = gSystem->Exec(CnaExecCleanJobreportCommand.Data());
04957
04958 if( i_exec_cleanjobreport != 0 )
04959 {
04960 cout << "*TEcnaGui> Script for LSFJOB report clean was executed with error code = "
04961 << i_exec_cleanjobreport << "." << endl
04962 << " Command: " << CnaExecCleanJobreportCommand.Data() << endl
04963 << fTTBELL << endl;
04964 }
04965 else
04966 {
04967 cout << "*TEcnaGui> Script for LSFJOB report clean"
04968 << " was successfully executed." << endl
04969 << " (Command: " << CnaExecCleanJobreportCommand.Data() << ")" << endl;
04970 }
04971 }
04972
04973
04974 if( clean_code == "Pyth" || clean_code == "All")
04975 {
04976
04977
04978 TString ModulesdataPath = fCnaParPaths->PathModulesData();
04979
04980
04981
04982 TString CnaCleanPythonCommand = ModulesdataPath;
04983 TString CleanPythonScriptName = "EcnaSystemScriptCleanPythonFiles";
04984 const Text_t *t_CleanPythonScriptName = (const Text_t *)CleanPythonScriptName.Data();
04985 CnaCleanPythonCommand.Append(t_CleanPythonScriptName);
04986
04987
04988 CnaCleanPythonCommand.Append(' ');
04989 const Text_t *t_modules_data_path = (const Text_t *)ModulesdataPath.Data();
04990 CnaCleanPythonCommand.Append(t_modules_data_path);
04991
04992
04993 const Text_t *t_cnacleanpythoncommand = (const Text_t *)CnaCleanPythonCommand.Data();
04994 TString CnaExecCleanPythonCommand = "csh ";
04995 CnaExecCleanPythonCommand.Append(t_cnacleanpythoncommand);
04996
04997 Int_t i_exec_cleanpython = gSystem->Exec(CnaExecCleanPythonCommand.Data());
04998
04999 if( i_exec_cleanpython != 0 )
05000 {
05001 cout << "*TEcnaGui> Script for python file clean was executed with error code = "
05002 << i_exec_cleanpython << "." << endl
05003 << " Command: " << CnaExecCleanPythonCommand.Data() << endl
05004 << fTTBELL << endl;
05005 }
05006 else
05007 {
05008 cout << "*TEcnaGui> Script for python file clean"
05009 << " was successfully executed." << endl
05010 << " (Command: " << CnaExecCleanPythonCommand.Data() << ")" << endl;
05011 }
05012 }
05013 }
05014
05015
05016
05017
05018
05019
05020
05021 void TEcnaGui::Calculations(const TString calc_code)
05022 {
05023
05024
05025 fCnaCommand++;
05026 cout << " *TEcnaGui [" << fCnaCommand
05027 << "]> Calculations requested with code: " << calc_code
05028 << endl;
05029
05030
05031 if( fKeyAnaType == "AdcPed1" || fKeyAnaType == "AdcSPed1" ||
05032 fKeyAnaType == "AdcPed6" || fKeyAnaType == "AdcSPed6" ||
05033 fKeyAnaType == "AdcPed12" || fKeyAnaType == "AdcSPed12" ||
05034 fKeyAnaType == "AdcPeg12" || fKeyAnaType == "AdcSPeg12" ||
05035 fKeyAnaType == "AdcLaser" || fKeyAnaType == "AdcSLaser" ||
05036 fKeyAnaType == "AdcPes12" || fKeyAnaType == "AdcSPes12" )
05037 {
05038
05039 if( calc_code == "Std" || ( ( calc_code == "Scc" || calc_code == "Stt" ) && fConfirmCalcScc == 1 ) )
05040 {
05041 if( fKeyNbOfSamples >= fKeyNbOfSampForCalc )
05042 {
05043 Int_t nStexMin = fKeyStexNumber;
05044 Int_t nStexMax = fKeyStexNumber;
05045 if( fKeyStexNumber == 0 ){nStexMin = 1; nStexMax = fEcal->MaxStexInStas();}
05046
05047 for( Int_t nStex = nStexMin; nStex<= nStexMax; nStex++)
05048 {
05049 Int_t n_samp_fic = fKeyNbOfSamples;
05050
05051
05052 TEcnaRun* MyRun = 0;
05053 if ( MyRun == 0 ){MyRun = new TEcnaRun(fObjectManager, fSubDet.Data(), n_samp_fic); fCnew++;}
05054
05055 MyRun->GetReadyToReadData(fKeyAnaType.Data(), fKeyRunNumber,
05056 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, nStex);
05057
05058 if( MyRun->ReadSampleAdcValues(fKeyNbOfSampForCalc) == kTRUE )
05059 {
05060 cout << "*TEcnaGui::Calculations> File "
05061 << MyRun->GetRootFileNameShort() << " found. Starting calculations."
05062 << endl;
05063
05064 MyRun->GetReadyToCompute();
05065
05066
05067 if( calc_code == "Std" ||
05068 ( (calc_code == "Scc" || calc_code == "Stt") && fConfirmCalcScc == 1 ) )
05069 {
05070
05071 MyRun->StandardCalculations();
05072 }
05073 if( (calc_code == "Scc" || calc_code == "Stt") && fConfirmCalcScc == 1 )
05074 {
05075 if( calc_code == "Scc" )
05076 {
05077
05078
05079 cout << "*TEcnaGui::Calculations> Please, wait." << endl;
05080
05081 MyRun->Expert1Calculations();
05082
05083
05084
05085 MyRun->Expert2Calculations();
05086
05087
05088 }
05089
05090 if( calc_code == "Stt" )
05091 {
05092
05093
05094 cout << "*TEcnaGui::Calculations> Please, wait." << endl;
05095
05096 MyRun->Expert2Calculations();
05097
05098
05099
05100
05101
05102 }
05103 }
05104
05105 TString calc_file_name = "?";
05106 if( calc_code == "Std" )
05107 {
05108 if( fKeyAnaType == "AdcPed1" ){calc_file_name = "StdPed1";}
05109 if( fKeyAnaType == "AdcPed6" ){calc_file_name = "StdPed6";}
05110 if( fKeyAnaType == "AdcPed12" ){calc_file_name = "StdPed12";}
05111 if( fKeyAnaType == "AdcPeg12" ){calc_file_name = "StdPeg12";}
05112 if( fKeyAnaType == "AdcLaser" ){calc_file_name = "StdLaser";}
05113 if( fKeyAnaType == "AdcPes12" ){calc_file_name = "StdPes12";}
05114
05115 if( fKeyAnaType == "AdcSPed1" ){calc_file_name = "StdSPed1";}
05116 if( fKeyAnaType == "AdcSPed6" ){calc_file_name = "StdSPed6";}
05117 if( fKeyAnaType == "AdcSPed12" ){calc_file_name = "StdSPed12";}
05118 if( fKeyAnaType == "AdcSPeg12" ){calc_file_name = "StdSPeg12";}
05119 if( fKeyAnaType == "AdcSLaser" ){calc_file_name = "StdSLaser";}
05120 if( fKeyAnaType == "AdcSPes12" ){calc_file_name = "StdSPes12";}
05121 }
05122 if( calc_code == "Scc" )
05123 {
05124 if( fKeyAnaType == "AdcPed1" ){calc_file_name = "SccPed1";}
05125 if( fKeyAnaType == "AdcPed6" ){calc_file_name = "SccPed6";}
05126 if( fKeyAnaType == "AdcPed12" ){calc_file_name = "SccPed12";}
05127 if( fKeyAnaType == "AdcPeg12" ){calc_file_name = "SccPeg12";}
05128 if( fKeyAnaType == "AdcLaser" ){calc_file_name = "SccLaser";}
05129 if( fKeyAnaType == "AdcPes12" ){calc_file_name = "SccPes12" ;}
05130
05131 if( fKeyAnaType == "AdcSPed1" ){calc_file_name = "SccSPed1";}
05132 if( fKeyAnaType == "AdcSPed6" ){calc_file_name = "SccSPed6";}
05133 if( fKeyAnaType == "AdcSPed12" ){calc_file_name = "SccSPed12";}
05134 if( fKeyAnaType == "AdcSPeg12" ){calc_file_name = "SccSPeg12";}
05135 if( fKeyAnaType == "AdcSLaser" ){calc_file_name = "SccSLaser";}
05136 if( fKeyAnaType == "AdcSPes12" ){calc_file_name = "SccSPes12";}
05137 }
05138
05139 if( calc_code == "Stt" )
05140 {
05141 if( fKeyAnaType == "AdcPed1" ){calc_file_name = "SttPed1";}
05142 if( fKeyAnaType == "AdcPed6" ){calc_file_name = "SttPed6";}
05143 if( fKeyAnaType == "AdcPed12" ){calc_file_name = "SttPed12";}
05144 if( fKeyAnaType == "AdcPeg12" ){calc_file_name = "SttPeg12";}
05145 if( fKeyAnaType == "AdcLaser" ){calc_file_name = "SttLaser";}
05146 if( fKeyAnaType == "AdcPes12" ){calc_file_name = "SttPes12" ;}
05147
05148 if( fKeyAnaType == "AdcSPed1" ){calc_file_name = "SttSPed1";}
05149 if( fKeyAnaType == "AdcSPed6" ){calc_file_name = "SttSPed6";}
05150 if( fKeyAnaType == "AdcSPed12" ){calc_file_name = "SttSPed12";}
05151 if( fKeyAnaType == "AdcSPeg12" ){calc_file_name = "SttSPeg12";}
05152 if( fKeyAnaType == "AdcSLaser" ){calc_file_name = "SttSLaser";}
05153 if( fKeyAnaType == "AdcSPes12" ){calc_file_name = "SttSPes12";}
05154 }
05155
05156 if( MyRun->WriteNewRootFile(calc_file_name.Data()) == kTRUE )
05157 {
05158 cout << "*TEcnaGui::Calculations> Done. Write ROOT file: "
05159 << MyRun->GetNewRootFileNameShort() << " OK" << endl << endl;
05160 }
05161 else
05162 {
05163 cout << "!TEcnaGui::Calculations> Writing ROOT file failure for file "
05164 << MyRun->GetNewRootFileNameShort()
05165 << fTTBELL << endl << endl;
05166 }
05167 }
05168 else
05169 {
05170 cout << "!TEcnaGui::Calculations> " << MyRun->GetRootFileNameShort() << ": file not found."
05171 << fTTBELL << endl << endl;
05172 }
05173
05174 delete MyRun; MyRun = 0; fCdelete++;
05175 }
05176 fConfirmCalcScc = 0;
05177 }
05178 else
05179 {
05180 cout << "!TEcnaGui::Calculations> *** ERROR *** Number of samples in file (=" << fKeyNbOfSamples
05181 << ") less than number of samples for calculations (= " << fKeyNbOfSampForCalc << "). " << endl;
05182 }
05183 }
05184 else
05185 {
05186 cout << " *TEcnaGui [" << fCnaCommand
05187 << "]> Calculation requested with option " << calc_code
05188 << ". This can last more than 5 minutes. Please, click again to confirm."
05189 << fTTBELL << endl;
05190 fConfirmCalcScc = 1;
05191 }
05192 }
05193 else
05194 {
05195 cout << "!TEcnaGui::Calculations> fKeyAnaType = " << fKeyAnaType
05196 << " : wrong code in analysis name. Code should be 'Adc'" << endl
05197 << " List of available standard analysis names for calculations: " << endl
05198 << " AdcPed1, AdcPed6, AdcPed12, AdcPeg12, AdcLaser, AdcPes12," << endl
05199 << " AdcSPed1, AdcSPed6, AdcSPed12, AdcSPeg12, AdcSLaser, AdcSPes12."
05200 << fTTBELL << endl;
05201 }
05202 }
05203
05204
05205
05206
05207
05208
05209
05210 void TEcnaGui::MessageCnaCommandReplyA(const TString first_same_plot)
05211 {
05212
05213
05214 cout << ". Analysis: " << fKeyAnaType << ", Run: " << fKeyRunNumber
05215 << ", 1st req. evt#: " << fKeyFirstReqEvtNumber
05216 << ", last req. evt#: " << fKeyLastReqEvtNumber << endl;
05217
05218 if( first_same_plot == "ASCII" )
05219 {
05220 cout << " " << fStexName.Data() << ": " << fKeyStexNumber
05221 << ", option: " << first_same_plot << endl;
05222 }
05223 }
05224
05225 void TEcnaGui::MessageCnaCommandReplyB(const TString first_same_plot)
05226 {
05227
05228
05229 if( first_same_plot == "ASCII" )
05230 {
05231 if(fKeyStexNumber > 0)
05232 {
05233 if( fHistos->StatusFileFound() == kTRUE && fHistos->StatusDataExist() == kTRUE )
05234 {
05235 TString xAsciiFileName = fHistos->AsciiFileName();
05236 if( xAsciiFileName != "?" )
05237 {cout << " Histo written in ASCII file: " << xAsciiFileName.Data();}
05238 }
05239 }
05240 else
05241 {
05242 cout << " No writing in ASCII file since "
05243 << fStexName.Data() << " number = " << fKeyStexNumber;
05244 }
05245 cout << endl;
05246 }
05247 }
05248
05249
05250
05251
05252
05253
05254
05255 void TEcnaGui::ViewMatrixLowFrequencyMeanCorrelationsBetweenStins(const TString option_plot)
05256 {
05257
05258
05259 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05260 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05261 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05262
05263 fCnaCommand++;
05264 cout << " *TEcnaGui [" << fCnaCommand
05265 << "]> Low Frequency Mean Cor(c,c') for each pair of " << fStinName.Data()
05266 << "s. Option: "
05267 << option_plot;
05268 MessageCnaCommandReplyA(option_plot);
05269
05270 fHistos->SetHistoMin(fKeyVminLFccMos);
05271 fHistos->SetHistoMax(fKeyVmaxLFccMos);
05272 fHistos->GeneralTitle(fKeyGeneralTitle);
05273 fHistos->PlotMatrix("Cor", "MttLF", option_plot);
05274
05275 MessageCnaCommandReplyB(option_plot);
05276 }
05277 void TEcnaGui::ViewMatrixHighFrequencyMeanCorrelationsBetweenStins(const TString option_plot)
05278 {
05279
05280
05281 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05282 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05283 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05284
05285 fCnaCommand++;
05286 cout << " *TEcnaGui [" << fCnaCommand
05287 << "]> High Frequency Mean Cor(c,c') for each pair of " << fStinName.Data()
05288 << "s. Option: "
05289 << option_plot;
05290 MessageCnaCommandReplyA(option_plot);
05291
05292 fHistos->SetHistoMin(fKeyVminHFccMos);
05293 fHistos->SetHistoMax(fKeyVmaxHFccMos);
05294 fHistos->GeneralTitle(fKeyGeneralTitle);
05295 fHistos->PlotMatrix("Cor", "MttHF", option_plot);
05296
05297 MessageCnaCommandReplyB(option_plot);
05298 }
05299
05300 void TEcnaGui::ViewMatrixLowFrequencyCorrelationsBetweenChannels(const Int_t& cStexStin_A,
05301 const Int_t& cStexStin_B,
05302 const TString option_plot)
05303 {
05304
05305
05306 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05307 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05308 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05309
05310 fCnaCommand++;
05311 cout << " *TEcnaGui [" << fCnaCommand
05312 << "]> Low Frequency Correlation matrix between channels. "
05313 << fStinName.Data() << " A: " << cStexStin_A
05314 << ", " << fStinName.Data() << " B: " << cStexStin_B
05315 << ", option: " << option_plot;
05316 MessageCnaCommandReplyA(option_plot);
05317
05318 fHistos->SetHistoMin(fKeyVminLHFcc);
05319 fHistos->SetHistoMax(fKeyVmaxLHFcc);
05320 fHistos->GeneralTitle(fKeyGeneralTitle);
05321 fHistos->PlotMatrix("Cor", "MccLF", cStexStin_A, cStexStin_B, option_plot);
05322 MessageCnaCommandReplyB(option_plot);
05323 }
05324
05325 void TEcnaGui::ViewMatrixHighFrequencyCorrelationsBetweenChannels(const Int_t& cStexStin_A, const Int_t& cStexStin_B,
05326 const TString option_plot)
05327 {
05328
05329
05330 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05331 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05332 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05333
05334 fCnaCommand++;
05335 cout << " *TEcnaGui [" << fCnaCommand
05336 << "]> High Frequency Correlation matrix between channels. "
05337 << fStinName.Data() << " A: " << cStexStin_A
05338 << ", " << fStinName.Data() << " B: " << cStexStin_B
05339 << ", option: " << option_plot;
05340 MessageCnaCommandReplyA(option_plot);
05341
05342 fHistos->SetHistoMin(fKeyVminLHFcc);
05343 fHistos->SetHistoMax(fKeyVmaxLHFcc);
05344 fHistos->GeneralTitle(fKeyGeneralTitle);
05345 fHistos->PlotMatrix("Cor", "MccHF", cStexStin_A, cStexStin_B, option_plot);
05346
05347 MessageCnaCommandReplyB(option_plot);
05348 }
05349
05350 void TEcnaGui::ViewStexLowFrequencyCorcc()
05351 {
05352
05353
05354 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05355 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05356 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05357
05358 fCnaCommand++;
05359 cout << " *TEcnaGui [" << fCnaCommand
05360 << "]> LF Correlations between channels for each " << fStinName.Data()
05361 << " in " << fStexName.Data() << ". 2D histo. "
05362 << fStexName.Data() << ": " << fKeyStexNumber;
05363 MessageCnaCommandReplyA("DUMMY");
05364
05365 fHistos->SetHistoMin(fKeyVminLHFcc);
05366 fHistos->SetHistoMax(fKeyVmaxLHFcc);
05367 fHistos->GeneralTitle(fKeyGeneralTitle);
05368 fHistos->PlotMatrix("Cor", "MccLF", "COLZ");
05369
05370 MessageCnaCommandReplyB("DUMMY");
05371 }
05372
05373 void TEcnaGui::ViewStexHighFrequencyCorcc()
05374 {
05375
05376
05377 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05378 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05379 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05380
05381 fCnaCommand++;
05382 cout << " *TEcnaGui [" << fCnaCommand
05383 << "]> HF Correlations between channels for each " << fStinName.Data()
05384 << " in " << fStexName.Data() << ". 2D histo. "
05385 << fStexName.Data() << ": " << fKeyStexNumber;
05386 MessageCnaCommandReplyA("DUMMY");
05387
05388 fHistos->SetHistoMin(fKeyVminLHFcc);
05389 fHistos->SetHistoMax(fKeyVmaxLHFcc);
05390 fHistos->GeneralTitle(fKeyGeneralTitle);
05391 fHistos->PlotMatrix("Cor", "MccHF", "COLZ");
05392
05393 MessageCnaCommandReplyB("DUMMY");
05394 }
05395
05396
05397 void TEcnaGui::ViewMatrixCorrelationSamples(const Int_t& cStexStin_A, const Int_t& i0StinEcha,
05398 const TString option_plot)
05399 {
05400
05401
05402 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05403 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05404 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05405
05406 Int_t ChOffset = 0;
05407 if(fSubDet == "EE"){ChOffset = 1;}
05408
05409 fCnaCommand++;
05410 cout << " *TEcnaGui [" << fCnaCommand
05411 << "]> Correlation matrix between samples. "
05412 << fStinName.Data() << ": " << cStexStin_A << ", channel " << i0StinEcha + ChOffset
05413 << ", option: " << option_plot;
05414 MessageCnaCommandReplyA(option_plot);
05415
05416 fHistos->GeneralTitle(fKeyGeneralTitle);
05417 fHistos->SetHistoMin(fKeyVminD_MCs_ChNb);
05418 fHistos->SetHistoMax(fKeyVmaxD_MCs_ChNb);
05419 fHistos->PlotMatrix("Cor", "Mss", cStexStin_A, i0StinEcha, option_plot);
05420
05421
05422 MessageCnaCommandReplyB(option_plot);
05423 }
05424
05425 void TEcnaGui::ViewMatrixCovarianceSamples(const Int_t& cStexStin_A, const Int_t& i0StinEcha,
05426 const TString option_plot)
05427 {
05428
05429
05430 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05431 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05432 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05433
05434 Int_t ChOffset = 0;
05435 if(fSubDet == "EE"){ChOffset = 1;}
05436
05437 fCnaCommand++;
05438 cout << " *TEcnaGui [" << fCnaCommand
05439 << "]> Covariance matrix between samples. "
05440 << fStinName.Data() << ": " << cStexStin_A << ", channel " << i0StinEcha + ChOffset
05441 << ", option: " << option_plot;
05442 MessageCnaCommandReplyA(option_plot);
05443
05444 fHistos->SetHistoMin(fKeyVminD_TNo_ChNb);
05445 fHistos->SetHistoMax(fKeyVmaxD_TNo_ChNb);
05446 fHistos->GeneralTitle(fKeyGeneralTitle);
05447 fHistos->PlotMatrix("Cov", "Mss", cStexStin_A, i0StinEcha, option_plot);
05448
05449 MessageCnaCommandReplyB(option_plot);
05450 }
05451
05452
05453
05454
05455
05456
05457
05458
05459 void TEcnaGui::ViewStinCorrelationSamples(const Int_t& cStexStin)
05460 {
05461
05462
05463 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05464 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05465 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05466
05467 fCnaCommand++;
05468 cout << " *TEcnaGui [" << fCnaCommand
05469 << "]> Correlation matrices between samples for each channel of "
05470 << fStinName.Data() << " " << cStexStin;
05471 MessageCnaCommandReplyA("DUMMY");
05472
05473 fHistos->SetHistoMin(fKeyVminD_MCs_ChNb);
05474 fHistos->SetHistoMax(fKeyVmaxD_MCs_ChNb);
05475 fHistos->GeneralTitle(fKeyGeneralTitle);
05476 fHistos->CorrelationsBetweenSamples(cStexStin);
05477
05478 MessageCnaCommandReplyB("DUMMY");
05479 }
05480
05481 void TEcnaGui::ViewStinCovarianceSamples(const Int_t& cStexStin)
05482 {
05483
05484
05485 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05486 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05487 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05488
05489 fCnaCommand++;
05490 cout << " *TEcnaGui [" << fCnaCommand
05491 << "]> Covariance matrices between samples for each channel of "
05492 << fStinName.Data() << " " << cStexStin;
05493 MessageCnaCommandReplyA("DUMMY");
05494
05495 fHistos->SetHistoMin(fKeyVminD_TNo_ChNb);
05496 fHistos->SetHistoMax(fKeyVmaxD_TNo_ChNb);
05497 fHistos->GeneralTitle(fKeyGeneralTitle);
05498 fHistos->CovariancesBetweenSamples(cStexStin);
05499
05500 MessageCnaCommandReplyB("DUMMY");
05501 }
05502
05503
05504
05505
05506
05507
05508 void TEcnaGui::ViewSorSNumberOfEvents()
05509 {
05510 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05511
05512 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05513 {
05514 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05515 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05516 fCnaCommand++;
05517 cout << " *TEcnaGui [" << fCnaCommand
05518 << "]> Number of Events. 2D histo. "
05519 << fStexName.Data() << ": " << fKeyStexNumber;
05520 }
05521 if( fKeyStexNumber == 0 )
05522 {
05523 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05524 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, 0);
05525 fCnaCommand++;
05526 cout << " *TEcnaGui [" << fCnaCommand
05527 << "]> Average Number of Events. 2D histo for "
05528 << fSubDet.Data();
05529 }
05530
05531 MessageCnaCommandReplyA("DUMMY");
05532
05533 fHistos->SetHistoMin(fKeyVminD_NOE_ChNb);
05534 fHistos->SetHistoMax(fKeyVmaxD_NOE_ChNb);
05535 fHistos->GeneralTitle(fKeyGeneralTitle);
05536 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05537 {fHistos->PlotDetector("NOE", "SM");}
05538 if( fKeyStexNumber == 0 )
05539 {fHistos->PlotDetector("NOE", "EB");}
05540
05541 MessageCnaCommandReplyB("DUMMY");
05542 }
05543
05544 void TEcnaGui::ViewSorSPedestals()
05545 {
05546 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05547
05548 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05549 {
05550 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05551 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05552 fCnaCommand++;
05553 cout << " *TEcnaGui [" << fCnaCommand
05554 << "]> Pedestals. 2D histo. "
05555 << fStexName.Data() << ": " << fKeyStexNumber;
05556 }
05557 if( fKeyStexNumber == 0 )
05558 {
05559 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05560 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, 0);
05561 fCnaCommand++;
05562 cout << " *TEcnaGui [" << fCnaCommand
05563 << "]> Pedestals. 2D histo for "
05564 << fSubDet.Data();
05565 }
05566 MessageCnaCommandReplyA("DUMMY");
05567
05568 fHistos->SetHistoMin(fKeyVminD_Ped_ChNb);
05569 fHistos->SetHistoMax(fKeyVmaxD_Ped_ChNb);
05570 fHistos->GeneralTitle(fKeyGeneralTitle);
05571
05572 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05573 {fHistos->PlotDetector("Ped", "SM");}
05574 if( fKeyStexNumber == 0 )
05575 {fHistos->PlotDetector("Ped", "EB");}
05576
05577 MessageCnaCommandReplyB("DUMMY");
05578 }
05579
05580 void TEcnaGui::ViewSorSTotalNoise()
05581 {
05582 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05583
05584 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05585 {
05586 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05587 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05588 fCnaCommand++;
05589 cout << " *TEcnaGui [" << fCnaCommand
05590 << "]> Total noise. 2D histo. "
05591 << fStexName.Data() << ": " << fKeyStexNumber;
05592 }
05593 if( fKeyStexNumber == 0 )
05594 {
05595 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05596 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, 0);
05597 fCnaCommand++;
05598 cout << " *TEcnaGui [" << fCnaCommand
05599 << "]> Average total noise. 2D histo for "
05600 << fSubDet.Data();
05601 }
05602 MessageCnaCommandReplyA("DUMMY");
05603
05604 fHistos->SetHistoMin(fKeyVminD_TNo_ChNb);
05605 fHistos->SetHistoMax(fKeyVmaxD_TNo_ChNb);
05606 fHistos->GeneralTitle(fKeyGeneralTitle);
05607 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05608 {fHistos->PlotDetector("TNo", "SM");}
05609 if( fKeyStexNumber == 0 )
05610 {fHistos->PlotDetector("TNo", "EB");}
05611
05612 MessageCnaCommandReplyB("DUMMY");
05613 }
05614
05615
05616 void TEcnaGui::ViewSorSLowFrequencyNoise()
05617 {
05618 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05619
05620 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05621 {
05622 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05623 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05624 fCnaCommand++;
05625 cout << " *TEcnaGui [" << fCnaCommand
05626 << "]> Low frequency noise. 2D histo. "
05627 << fStexName.Data() << ": " << fKeyStexNumber;
05628 }
05629 if( fKeyStexNumber == 0 )
05630 {
05631 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05632 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, 0);
05633 fCnaCommand++;
05634 cout << " *TEcnaGui [" << fCnaCommand
05635 << "]> Average low frequency noise. 2D histo for "
05636 << fSubDet.Data();
05637 }
05638 MessageCnaCommandReplyA("DUMMY");
05639
05640 fHistos->SetHistoMin(fKeyVminD_LFN_ChNb);
05641 fHistos->SetHistoMax(fKeyVmaxD_LFN_ChNb);
05642 fHistos->GeneralTitle(fKeyGeneralTitle);
05643 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05644 {fHistos->PlotDetector("LFN", "SM");}
05645 if( fKeyStexNumber == 0 )
05646 {fHistos->PlotDetector("LFN", "EB");}
05647
05648 MessageCnaCommandReplyB("DUMMY");
05649 }
05650
05651 void TEcnaGui::ViewSorSHighFrequencyNoise()
05652 {
05653 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05654
05655 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05656 {
05657 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05658 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05659 fCnaCommand++;
05660 cout << " *TEcnaGui [" << fCnaCommand
05661 << "]> High frequency noise. 2D histo. "
05662 << fStexName.Data() << ": " << fKeyStexNumber;
05663 }
05664 if( fKeyStexNumber == 0 )
05665 {
05666 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05667 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, 0);
05668 fCnaCommand++;
05669 cout << " *TEcnaGui [" << fCnaCommand
05670 << "]> Average high frequency noise. 2D histo for "
05671 << fSubDet.Data();
05672 }
05673 MessageCnaCommandReplyA("DUMMY");
05674
05675 fHistos->SetHistoMin(fKeyVminD_HFN_ChNb);
05676 fHistos->SetHistoMax(fKeyVmaxD_HFN_ChNb);
05677 fHistos->GeneralTitle(fKeyGeneralTitle);
05678 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05679 {
05680 fHistos->PlotDetector("HFN", "SM");
05681 }
05682 if( fKeyStexNumber == 0 )
05683 {
05684 fHistos->PlotDetector("HFN", "EB");
05685 }
05686
05687 MessageCnaCommandReplyB("DUMMY");
05688 }
05689
05690 void TEcnaGui::ViewSorSMeanCorss()
05691 {
05692 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05693
05694 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05695 {
05696 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05697 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05698 fCnaCommand++;
05699 cout << " *TEcnaGui [" << fCnaCommand
05700 << "]> Mean cor(s,s'). 2D histo. "
05701 << fStexName.Data() << ": " << fKeyStexNumber;
05702 }
05703 if( fKeyStexNumber == 0 )
05704 {
05705 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05706 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, 0);
05707 fCnaCommand++;
05708 cout << " *TEcnaGui [" << fCnaCommand
05709 << "]> Average mean cor(s,s'). 2D histo for "
05710 << fSubDet.Data();
05711 }
05712 MessageCnaCommandReplyA("DUMMY");
05713
05714 fHistos->SetHistoMin(fKeyVminD_MCs_ChNb);
05715 fHistos->SetHistoMax(fKeyVmaxD_MCs_ChNb);
05716 fHistos->GeneralTitle(fKeyGeneralTitle);
05717 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05718 {
05719 fHistos->PlotDetector("MCs", "SM");
05720 }
05721 if( fKeyStexNumber == 0 )
05722 {
05723 fHistos->PlotDetector("MCs", "EB");
05724 }
05725
05726 MessageCnaCommandReplyB("DUMMY");
05727 }
05728
05729 void TEcnaGui::ViewSorSSigmaOfCorss()
05730 {
05731 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05732
05733 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05734 {
05735 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05736 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05737 fCnaCommand++;
05738 cout << " *TEcnaGui [" << fCnaCommand
05739 << "]> Sigma of Cor(s,s'). 2D histo. "
05740 << fStexName.Data() << ": " << fKeyStexNumber;
05741 }
05742 if( fKeyStexNumber == 0 )
05743 {
05744 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05745 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, 0);
05746 fCnaCommand++;
05747 cout << " *TEcnaGui [" << fCnaCommand
05748 << "]> Average sigma of Cor(s,s'). 2D histo for "
05749 << fSubDet.Data();
05750 }
05751 MessageCnaCommandReplyA("DUMMY");
05752
05753 fHistos->SetHistoMin(fKeyVminD_SCs_ChNb);
05754 fHistos->SetHistoMax(fKeyVmaxD_SCs_ChNb);
05755 fHistos->GeneralTitle(fKeyGeneralTitle);
05756 if( fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxStexInStas() )
05757 {
05758 fHistos->PlotDetector("SCs", "SM");
05759 }
05760 if( fKeyStexNumber == 0 )
05761 {
05762 fHistos->PlotDetector("SCs", "EB");
05763 }
05764
05765 MessageCnaCommandReplyB("DUMMY");
05766 }
05767
05768
05769
05770
05771
05772
05773 void TEcnaGui::ViewStinCrystalNumbering(const Int_t& StexStinEcna)
05774 {
05775
05776
05777 Int_t StinNumber = -1;
05778 if( fSubDet == "EB" ){StinNumber = StexStinEcna;}
05779 if( fSubDet == "EE" && fKeyStexNumber != 0 )
05780 {StinNumber = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber,StexStinEcna);}
05781
05782 fCnaCommand++;
05783 cout << " *TEcnaGui [" << fCnaCommand
05784 << "]> Crystal numbering for " << " " << fStexName.Data() << " "
05785 << fKeyStexNumber << ", " << fStinName.Data() << " " << StinNumber << endl;
05786
05787 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05788 fHistos->GeneralTitle(fKeyGeneralTitle);
05789 fHistos->StinCrystalNumbering(fKeyStexNumber, StinNumber);
05790 }
05791
05792
05793
05794
05795
05796
05797
05798 void TEcnaGui::ViewStexStinNumbering()
05799 {
05800
05801
05802
05803
05804 fCnaCommand++;
05805 cout << " *TEcnaGui [" << fCnaCommand
05806 << "]> " << fStinName.Data() << " numbering for " << fStexName.Data()
05807 << " " << fKeyStexNumber << endl;
05808
05809 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05810 fHistos->GeneralTitle(fKeyGeneralTitle);
05811 fHistos->StexStinNumbering(fKeyStexNumber);
05812 }
05813
05814
05815
05816
05817
05818
05819
05820
05821 void TEcnaGui::ViewHistoSorSNumberOfEventsOfCrystals(const TString first_same_plot)
05822 {
05823
05824
05825
05826 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05827 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05828 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05829
05830 fCnaCommand++;
05831 cout << " *TEcnaGui [" << fCnaCommand
05832 << "]> Number of events for crystals";
05833 MessageCnaCommandReplyA(first_same_plot);
05834
05835 fHistos->SetHistoMin(fKeyVminD_NOE_ChNb);
05836 fHistos->SetHistoMax(fKeyVmaxD_NOE_ChNb);
05837 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
05838 fHistos->SetHistoColorPalette(fKeyColPal);
05839 fHistos->GeneralTitle(fKeyGeneralTitle);
05840 fHistos->Plot1DHisto("Xtal", "NOE", "SM", first_same_plot);
05841
05842 MessageCnaCommandReplyB(first_same_plot);
05843 }
05844
05845 void TEcnaGui::ViewHistoSorSNumberOfEventsDistribution(const TString first_same_plot)
05846 {
05847
05848
05849 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05850 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05851 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05852
05853 fCnaCommand++;
05854 cout << " *TEcnaGui [" << fCnaCommand
05855 << "]> Number of events distribution";
05856 MessageCnaCommandReplyA(first_same_plot);
05857
05858 fHistos->SetHistoMin(fKeyVminD_NOE_ChNb);
05859 fHistos->SetHistoMax(fKeyVmaxD_NOE_ChNb);
05860 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
05861 fHistos->SetHistoColorPalette(fKeyColPal);
05862 fHistos->GeneralTitle(fKeyGeneralTitle);
05863 fHistos->Plot1DHisto("NOE", "NOX", "SM", first_same_plot);
05864
05865 MessageCnaCommandReplyB(first_same_plot);
05866 }
05867
05868
05869 void TEcnaGui::ViewHistoSorSPedestalsOfCrystals(const TString first_same_plot)
05870 {
05871
05872
05873 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05874 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05875 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05876
05877 fCnaCommand++;
05878 cout << " *TEcnaGui [" << fCnaCommand
05879 << "]> Pedestals";
05880 MessageCnaCommandReplyA(first_same_plot);
05881
05882 fHistos->SetHistoMin(fKeyVminD_Ped_ChNb);
05883 fHistos->SetHistoMax(fKeyVmaxD_Ped_ChNb);
05884 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
05885 fHistos->SetHistoColorPalette(fKeyColPal);
05886 fHistos->GeneralTitle(fKeyGeneralTitle);
05887 fHistos->Plot1DHisto("Xtal", "Ped", "SM", first_same_plot);
05888
05889 MessageCnaCommandReplyB(first_same_plot);
05890 }
05891
05892 void TEcnaGui::ViewHistoSorSPedestalsDistribution(const TString first_same_plot)
05893 {
05894
05895
05896 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05897 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05898 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05899
05900 fCnaCommand++;
05901 cout << " *TEcnaGui [" << fCnaCommand
05902 << "]> Pedestals distribution";
05903 MessageCnaCommandReplyA(first_same_plot);
05904
05905 fHistos->SetHistoMin(fKeyVminD_Ped_ChNb);
05906 fHistos->SetHistoMax(fKeyVmaxD_Ped_ChNb);
05907 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
05908 fHistos->SetHistoColorPalette(fKeyColPal);
05909 fHistos->GeneralTitle(fKeyGeneralTitle);
05910 fHistos->Plot1DHisto("Ped", "NOX", "SM", first_same_plot);
05911
05912 MessageCnaCommandReplyB(first_same_plot);
05913 }
05914
05915
05916 void TEcnaGui::ViewHistoSorSTotalNoiseOfCrystals(const TString first_same_plot)
05917 {
05918
05919
05920 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05921 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05922 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05923
05924 fCnaCommand++;
05925 cout << " *TEcnaGui [" << fCnaCommand
05926 << "]> Total noise";
05927 MessageCnaCommandReplyA(first_same_plot);
05928
05929 fHistos->SetHistoMin(fKeyVminD_TNo_ChNb);
05930 fHistos->SetHistoMax(fKeyVmaxD_TNo_ChNb);
05931 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
05932 fHistos->SetHistoColorPalette(fKeyColPal);
05933 fHistos->GeneralTitle(fKeyGeneralTitle);
05934 fHistos->Plot1DHisto("Xtal", "TNo", "SM", first_same_plot);
05935
05936 MessageCnaCommandReplyB(first_same_plot);
05937 }
05938
05939 void TEcnaGui::ViewHistoSorSTotalNoiseDistribution(const TString first_same_plot)
05940 {
05941
05942
05943 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05944 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05945 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05946
05947 fCnaCommand++;
05948 cout << " *TEcnaGui [" << fCnaCommand
05949 << "]> Total noise distribution";
05950 MessageCnaCommandReplyA(first_same_plot);
05951
05952 fHistos->SetHistoMin(fKeyVminD_TNo_ChNb);
05953 fHistos->SetHistoMax(fKeyVmaxD_TNo_ChNb);
05954 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
05955 fHistos->SetHistoColorPalette(fKeyColPal);
05956 fHistos->GeneralTitle(fKeyGeneralTitle);
05957 fHistos->Plot1DHisto("TNo", "NOX", "SM", first_same_plot);
05958
05959 MessageCnaCommandReplyB(first_same_plot);
05960 }
05961
05962
05963
05964 void TEcnaGui::ViewHistoSorSLowFrequencyNoiseOfCrystals(const TString first_same_plot)
05965 {
05966
05967
05968 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05969 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05970 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05971
05972 fCnaCommand++;
05973 cout << " *TEcnaGui [" << fCnaCommand
05974 << "]> Low frequency noise";
05975 MessageCnaCommandReplyA(first_same_plot);
05976
05977 fHistos->SetHistoMin(fKeyVminD_LFN_ChNb);
05978 fHistos->SetHistoMax(fKeyVmaxD_LFN_ChNb);
05979 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
05980 fHistos->SetHistoColorPalette(fKeyColPal);
05981 fHistos->GeneralTitle(fKeyGeneralTitle);
05982 fHistos->Plot1DHisto("Xtal", "LFN", "SM", first_same_plot);
05983
05984 MessageCnaCommandReplyB(first_same_plot);
05985 }
05986
05987 void TEcnaGui::ViewHistoSorSLowFrequencyNoiseDistribution(const TString first_same_plot)
05988 {
05989
05990
05991 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
05992 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
05993 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
05994
05995 fCnaCommand++;
05996 cout << " *TEcnaGui [" << fCnaCommand
05997 << "]> Low frequency noise distribution";
05998 MessageCnaCommandReplyA(first_same_plot);
05999
06000 fHistos->SetHistoMin(fKeyVminD_LFN_ChNb);
06001 fHistos->SetHistoMax(fKeyVmaxD_LFN_ChNb);
06002 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06003 fHistos->SetHistoColorPalette(fKeyColPal);
06004 fHistos->GeneralTitle(fKeyGeneralTitle);
06005 fHistos->Plot1DHisto("LFN", "NOX", "SM", first_same_plot);
06006
06007 MessageCnaCommandReplyB(first_same_plot);
06008 }
06009
06010
06011 void TEcnaGui::ViewHistoSorSHighFrequencyNoiseOfCrystals(const TString first_same_plot)
06012 {
06013
06014
06015 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06016 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
06017 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06018
06019 fCnaCommand++;
06020 cout << " *TEcnaGui [" << fCnaCommand
06021 << "]> High frequency noise";
06022 MessageCnaCommandReplyA(first_same_plot);
06023
06024 fHistos->SetHistoMin(fKeyVminD_HFN_ChNb);
06025 fHistos->SetHistoMax(fKeyVmaxD_HFN_ChNb);
06026 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06027 fHistos->SetHistoColorPalette(fKeyColPal);
06028 fHistos->GeneralTitle(fKeyGeneralTitle);
06029 fHistos->Plot1DHisto("Xtal", "HFN", "SM", first_same_plot);
06030
06031 MessageCnaCommandReplyB(first_same_plot);
06032 }
06033
06034 void TEcnaGui::ViewHistoSorSHighFrequencyNoiseDistribution(const TString first_same_plot)
06035 {
06036
06037
06038 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06039 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
06040 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06041
06042 fCnaCommand++;
06043 cout << " *TEcnaGui [" << fCnaCommand
06044 << "]> High frequency noise distribution";
06045 MessageCnaCommandReplyA(first_same_plot);
06046
06047 fHistos->SetHistoMin(fKeyVminD_HFN_ChNb);
06048 fHistos->SetHistoMax(fKeyVmaxD_HFN_ChNb);
06049 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06050 fHistos->SetHistoColorPalette(fKeyColPal);
06051 fHistos->GeneralTitle(fKeyGeneralTitle);
06052 fHistos->Plot1DHisto("HFN", "NOX", "SM", first_same_plot);
06053
06054 MessageCnaCommandReplyB(first_same_plot);
06055 }
06056
06057
06058 void TEcnaGui::ViewHistoSorSMeanCorssOfCrystals(const TString first_same_plot)
06059 {
06060
06061
06062 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06063 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
06064 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06065
06066 fCnaCommand++;
06067 cout << " *TEcnaGui [" << fCnaCommand
06068 << "]> Mean cor(s,s')";
06069 MessageCnaCommandReplyA(first_same_plot);
06070
06071 fHistos->SetHistoMin(fKeyVminD_MCs_ChNb);
06072 fHistos->SetHistoMax(fKeyVmaxD_MCs_ChNb);
06073 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06074 fHistos->SetHistoColorPalette(fKeyColPal);
06075 fHistos->GeneralTitle(fKeyGeneralTitle);
06076 fHistos->Plot1DHisto("Xtal", "MCs", "SM", first_same_plot);
06077
06078 MessageCnaCommandReplyB(first_same_plot);
06079 }
06080
06081 void TEcnaGui::ViewHistoSorSMeanCorssDistribution(const TString first_same_plot)
06082 {
06083
06084
06085 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06086 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
06087 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06088
06089 fCnaCommand++;
06090 cout << " *TEcnaGui [" << fCnaCommand
06091 << "]> Mean cor(s,s') distribution";
06092 MessageCnaCommandReplyA(first_same_plot);
06093
06094 fHistos->SetHistoMin(fKeyVminD_MCs_ChNb);
06095 fHistos->SetHistoMax(fKeyVmaxD_MCs_ChNb);
06096 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06097 fHistos->SetHistoColorPalette(fKeyColPal);
06098 fHistos->GeneralTitle(fKeyGeneralTitle);
06099 fHistos->Plot1DHisto("MCs", "NOX", "SM", first_same_plot);
06100
06101 MessageCnaCommandReplyB(first_same_plot);
06102 }
06103
06104 void TEcnaGui::ViewHistoSorSSigmaOfCorssOfCrystals(const TString first_same_plot)
06105 {
06106
06107
06108 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06109 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
06110 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06111
06112 fCnaCommand++;
06113 cout << " *TEcnaGui [" << fCnaCommand
06114 << "]> Sigma of cor(s,s')";
06115 MessageCnaCommandReplyA(first_same_plot);
06116
06117 fHistos->SetHistoMin(fKeyVminD_SCs_ChNb);
06118 fHistos->SetHistoMax(fKeyVmaxD_SCs_ChNb);
06119 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06120 fHistos->SetHistoColorPalette(fKeyColPal);
06121 fHistos->GeneralTitle(fKeyGeneralTitle);
06122 fHistos->Plot1DHisto("Xtal", "SCs", "SM", first_same_plot);
06123
06124 MessageCnaCommandReplyB(first_same_plot);
06125 }
06126
06127 void TEcnaGui::ViewHistoSorSSigmaOfCorssDistribution(const TString first_same_plot)
06128 {
06129
06130
06131 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06132 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
06133 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06134
06135 fCnaCommand++;
06136 cout << " *TEcnaGui [" << fCnaCommand
06137 << "]> Sigma of cor(s,s') distribution";
06138 MessageCnaCommandReplyA(first_same_plot);
06139
06140 fHistos->SetHistoMin(fKeyVminD_SCs_ChNb);
06141 fHistos->SetHistoMax(fKeyVmaxD_SCs_ChNb);
06142 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06143 fHistos->SetHistoColorPalette(fKeyColPal);
06144 fHistos->GeneralTitle(fKeyGeneralTitle);
06145 fHistos->Plot1DHisto("SCs", "NOX", "SM", first_same_plot);
06146
06147 MessageCnaCommandReplyB(first_same_plot);
06148 }
06149
06150
06151 void TEcnaGui::ViewHistoCrystalSampleMeans(const Int_t& cStexStin_A, const Int_t& crystal,
06152 const TString first_same_plot)
06153 {
06154
06155
06156 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06157 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
06158 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06159
06160 fCnaCommand++;
06161 cout << " *TEcnaGui [" << fCnaCommand
06162 << "]> Sample means"
06163 << ". Analysis: " << fKeyAnaType << ", Run: " << fKeyRunNumber
06164 << ", 1st req. evt#: " << fKeyFirstReqEvtNumber << ", last req. evt#: " << fKeyLastReqEvtNumber
06165 << ", Stex: " << fKeyStexNumber << ", " << fStinName.Data() << ": " << cStexStin_A << ", crystal" << crystal
06166 << ", option: " << first_same_plot << endl;
06167
06168 fHistos->SetHistoMin(fKeyVminD_Ped_ChNb);
06169 fHistos->SetHistoMax(fKeyVmaxD_Ped_ChNb);
06170 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06171 fHistos->SetHistoColorPalette(fKeyColPal);
06172 fHistos->GeneralTitle(fKeyGeneralTitle);
06173 fHistos->Plot1DHisto("Sample#", "SampleMean", cStexStin_A, crystal, first_same_plot);
06174 }
06175
06176
06177 void TEcnaGui::ViewHistoCrystalSampleMeansDistribution(const Int_t& cStexStin_A, const Int_t& crystal,
06178 const TString first_same_plot)
06179 {
06180
06181
06182 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06183 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
06184 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06185
06186 fCnaCommand++;
06187 cout << " *TEcnaGui [" << fCnaCommand
06188 << "]> Sample means"
06189 << ". Analysis: " << fKeyAnaType << ", Run: " << fKeyRunNumber
06190 << ", 1st req. evt#: " << fKeyFirstReqEvtNumber << ", last req. evt#: " << fKeyLastReqEvtNumber
06191 << ", Stex: " << fKeyStexNumber << ", " << fStinName.Data() << ": " << cStexStin_A << ", crystal" << crystal
06192 << ", option: " << first_same_plot << endl;
06193
06194 fHistos->SetHistoMin(fKeyVminD_Ped_ChNb);
06195 fHistos->SetHistoMax(fKeyVmaxD_Ped_ChNb);
06196 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06197 fHistos->SetHistoColorPalette(fKeyColPal);
06198 fHistos->GeneralTitle(fKeyGeneralTitle);
06199 fHistos->Plot1DHisto("SampleMean", "NbOfSamples", cStexStin_A, crystal, first_same_plot);
06200 }
06201
06202 void TEcnaGui::ViewHistoCrystalSampleSigmas(const Int_t& cStexStin_A, const Int_t& crystal,
06203 const TString first_same_plot)
06204 {
06205
06206
06207 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06208 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
06209 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06210
06211 fCnaCommand++;
06212 cout << " *TEcnaGui [" << fCnaCommand
06213 << "]> Sample sigmas"
06214 << ". Analysis: " << fKeyAnaType << ", Run: " << fKeyRunNumber
06215 << ", 1st req. evt#: " << fKeyFirstReqEvtNumber << ", last req. evt#: " << fKeyLastReqEvtNumber
06216 << ", Stex: " << fKeyStexNumber << ", " << fStinName.Data() << ": " << cStexStin_A << ", crystal:" << crystal
06217 << ", option: " << first_same_plot << endl;
06218
06219 fHistos->SetHistoMin(fKeyVminD_TNo_ChNb);
06220 fHistos->SetHistoMax(fKeyVmaxD_TNo_ChNb);
06221 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06222 fHistos->SetHistoColorPalette(fKeyColPal);
06223 fHistos->GeneralTitle(fKeyGeneralTitle);
06224 fHistos->Plot1DHisto("Sample#", "SampleSigma", cStexStin_A, crystal, first_same_plot);
06225 }
06226
06227 void TEcnaGui::ViewHistoCrystalSampleSigmasDistribution(const Int_t& cStexStin_A, const Int_t& crystal,
06228 const TString first_same_plot)
06229 {
06230
06231
06232 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06233 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
06234 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06235
06236 fCnaCommand++;
06237 cout << " *TEcnaGui [" << fCnaCommand
06238 << "]> Sample sigmas"
06239 << ". Analysis: " << fKeyAnaType << ", Run: " << fKeyRunNumber
06240 << ", 1st req. evt#: " << fKeyFirstReqEvtNumber << ", last req. evt#: " << fKeyLastReqEvtNumber
06241 << ", Stex: " << fKeyStexNumber << ", " << fStinName.Data() << ": " << cStexStin_A << ", crystal:" << crystal
06242 << ", option: " << first_same_plot << endl;
06243
06244 fHistos->SetHistoMin(fKeyVminD_TNo_ChNb);
06245 fHistos->SetHistoMax(fKeyVmaxD_TNo_ChNb);
06246 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06247 fHistos->SetHistoColorPalette(fKeyColPal);
06248 fHistos->GeneralTitle(fKeyGeneralTitle);
06249 fHistos->Plot1DHisto("SampleSigma", "NbOfSamples", cStexStin_A, crystal, first_same_plot);
06250 }
06251
06252
06253 void TEcnaGui::ViewHistoCrystalSampleValues(const Int_t& cStexStin_A, const Int_t& crystal,
06254 const Int_t& sample, const TString first_same_plot)
06255 {
06256
06257
06258 Int_t n1Sample = sample+1;
06259 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06260 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
06261 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06262
06263 fCnaCommand++;
06264 cout << " *TEcnaGui [" << fCnaCommand
06265 << "]> ADC sample values"
06266 << ". Analysis: " << fKeyAnaType << ", Run: " << fKeyRunNumber
06267 << ", 1st req. evt#: " << fKeyFirstReqEvtNumber << ", last req. evt#: " << fKeyLastReqEvtNumber
06268 << ", Stex: " << fKeyStexNumber << ", " << fStinName.Data() << ": " << cStexStin_A << ", crystal: " << crystal
06269 << ", sample: " << n1Sample << ", option: " << first_same_plot << endl;
06270
06271 fHistos->SetHistoMin(fKeyVminD_Ped_ChNb);
06272 fHistos->SetHistoMax(fKeyVmaxD_Ped_ChNb);
06273 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06274 fHistos->SetHistoColorPalette(fKeyColPal);
06275 fHistos->GeneralTitle(fKeyGeneralTitle);
06276 fHistos->Plot1DHisto("Event#", "AdcValue", cStexStin_A, crystal, n1Sample, first_same_plot);
06277 }
06278
06279 void TEcnaGui::ViewHistoSampleEventDistribution(const Int_t& cStexStin_A, const Int_t& crystal,
06280 const Int_t& sample, const TString first_same_plot)
06281 {
06282
06283
06284 Int_t n1Sample = sample+1;
06285 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06286 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, fKeyRunNumber,
06287 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06288
06289 fCnaCommand++;
06290 cout << " *TEcnaGui [" << fCnaCommand
06291 << "]> ADC event distribution"
06292 << ". Analysis: " << fKeyAnaType << ", Run: " << fKeyRunNumber
06293 << ", 1st req. evt#: " << fKeyFirstReqEvtNumber << ", last req. evt#: " << fKeyLastReqEvtNumber
06294 << ", Stex: " << fKeyStexNumber << ", " << fStinName.Data() << ": " << cStexStin_A << ", crystal: " << crystal
06295 << ", sample " << n1Sample << ", option: " << first_same_plot << endl;
06296
06297 fHistos->SetHistoMin(fKeyVminD_Ped_ChNb);
06298 fHistos->SetHistoMax(fKeyVmaxD_Ped_ChNb);
06299 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06300 fHistos->SetHistoColorPalette(fKeyColPal);
06301 fHistos->GeneralTitle(fKeyGeneralTitle);
06302 fHistos->Plot1DHisto("AdcValue", "NbOfEvts", cStexStin_A, crystal, n1Sample, first_same_plot);
06303 }
06304
06305
06306 void TEcnaGui::ViewHistimeCrystalPedestals(const TString run_par_file_name,
06307 const Int_t& cStexStin_A, const Int_t& i0StinEcha,
06308 const TString first_same_plot)
06309 {
06310
06311
06312 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06313
06314 fCnaCommand++;
06315 cout << " *TEcnaGui [" << fCnaCommand
06316 << "]> Pedestal history"
06317 << ". Run parameters file name: " << run_par_file_name
06318 << ", " << fStinName.Data() << ": " << cStexStin_A << ", channel: " << i0StinEcha
06319 << ", option: " << first_same_plot << endl;
06320
06321 fHistos->SetHistoMin(fKeyVminD_Ped_ChNb);
06322 fHistos->SetHistoMax(fKeyVmaxD_Ped_ChNb);
06323 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06324 fHistos->SetHistoColorPalette(fKeyColPal);
06325 fHistos->GeneralTitle(fKeyGeneralTitle);
06326 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, 0,
06327 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06328 fHistos->PlotHistory("Time", "Ped", run_par_file_name, cStexStin_A, i0StinEcha, first_same_plot);
06329 }
06330
06331 void TEcnaGui::ViewHistimeCrystalPedestalsRuns(const TString run_par_file_name,
06332 const Int_t& cStexStin_A, const Int_t& i0StinEcha,
06333 const TString first_same_plot)
06334 {
06335
06336
06337 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06338
06339 fCnaCommand++;
06340 cout << " *TEcnaGui [" << fCnaCommand
06341 << "]> Pedestal history distribution"
06342 << ". Run parameters file name: " << run_par_file_name
06343 << ", " << fStinName.Data() << ": " << cStexStin_A << ", channel: " << i0StinEcha
06344 << ", option: " << first_same_plot << endl;
06345
06346 fHistos->SetHistoMin(fKeyVminD_Ped_ChNb);
06347 fHistos->SetHistoMax(fKeyVmaxD_Ped_ChNb);
06348 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06349 fHistos->SetHistoColorPalette(fKeyColPal);
06350 fHistos->GeneralTitle(fKeyGeneralTitle);
06351 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, 0,
06352 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06353 fHistos->PlotHistory("Ped", "NOR", run_par_file_name, cStexStin_A, i0StinEcha, first_same_plot);
06354 }
06355
06356
06357 void TEcnaGui::ViewHistimeCrystalTotalNoise(const TString run_par_file_name,
06358 const Int_t& cStexStin_A, const Int_t& i0StinEcha,
06359 const TString first_same_plot)
06360 {
06361
06362
06363 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06364
06365 fCnaCommand++;
06366 cout << " *TEcnaGui [" << fCnaCommand
06367 << "]> Total noise history"
06368 << ". Run parameters file name: " << run_par_file_name
06369 << ", " << fStinName.Data() << ": " << cStexStin_A << ", channel: " << i0StinEcha
06370 << ", option: " << first_same_plot << endl;
06371
06372 fHistos->SetHistoMin(fKeyVminD_TNo_ChNb);
06373 fHistos->SetHistoMax(fKeyVmaxD_TNo_ChNb);
06374 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06375 fHistos->SetHistoColorPalette(fKeyColPal);
06376 fHistos->GeneralTitle(fKeyGeneralTitle);
06377 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, 0,
06378 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06379 fHistos->PlotHistory("Time", "TNo", run_par_file_name, cStexStin_A, i0StinEcha, first_same_plot);
06380 }
06381
06382 void TEcnaGui::ViewHistimeCrystalTotalNoiseRuns(const TString run_par_file_name,
06383 const Int_t& cStexStin_A, const Int_t& i0StinEcha,
06384 const TString first_same_plot)
06385 {
06386
06387
06388 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06389
06390 fCnaCommand++;
06391 cout << " *TEcnaGui [" << fCnaCommand
06392 << "]> Total noise history distribution"
06393 << ". Run parameters file name: " << run_par_file_name
06394 << ", " << fStinName.Data() << ": " << cStexStin_A << ", channel: " << i0StinEcha
06395 << ", option: " << first_same_plot << endl;
06396
06397 fHistos->SetHistoMin(fKeyVminD_TNo_ChNb);
06398 fHistos->SetHistoMax(fKeyVmaxD_TNo_ChNb);
06399 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06400 fHistos->SetHistoColorPalette(fKeyColPal);
06401 fHistos->GeneralTitle(fKeyGeneralTitle);
06402 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, 0,
06403 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06404 fHistos->PlotHistory("TNo", "NOR", run_par_file_name, cStexStin_A, i0StinEcha, first_same_plot);
06405 }
06406
06407 void TEcnaGui::ViewHistimeCrystalLowFrequencyNoise(const TString run_par_file_name,
06408 const Int_t& cStexStin_A, const Int_t& i0StinEcha,
06409 const TString first_same_plot)
06410 {
06411
06412
06413 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06414
06415 fCnaCommand++;
06416 cout << " *TEcnaGui [" << fCnaCommand
06417 << "]> Low frequency noise history"
06418 << ". Run parameters file name: " << run_par_file_name
06419 << ", " << fStinName.Data() << ": " << cStexStin_A << ", channel: " << i0StinEcha
06420 << ", option: " << first_same_plot << endl;
06421
06422 fHistos->SetHistoMin(fKeyVminD_LFN_ChNb);
06423 fHistos->SetHistoMax(fKeyVmaxD_LFN_ChNb);
06424 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06425 fHistos->SetHistoColorPalette(fKeyColPal);
06426 fHistos->GeneralTitle(fKeyGeneralTitle);
06427 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, 0,
06428 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06429 fHistos->PlotHistory("Time", "LFN", run_par_file_name, cStexStin_A, i0StinEcha, first_same_plot);
06430 }
06431
06432 void TEcnaGui::ViewHistimeCrystalLowFrequencyNoiseRuns(const TString run_par_file_name,
06433 const Int_t& cStexStin_A, const Int_t& i0StinEcha,
06434 const TString first_same_plot)
06435 {
06436
06437
06438 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06439
06440 fCnaCommand++;
06441 cout << " *TEcnaGui [" << fCnaCommand
06442 << "]> Low frequency noise history distribution"
06443 << ". Run parameters file name: " << run_par_file_name
06444 << ", " << fStinName.Data() << ": " << cStexStin_A << ", channel: " << i0StinEcha
06445 << ", option: " << first_same_plot << endl;
06446
06447 fHistos->SetHistoMin(fKeyVminD_LFN_ChNb);
06448 fHistos->SetHistoMax(fKeyVmaxD_LFN_ChNb);
06449 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06450 fHistos->SetHistoColorPalette(fKeyColPal);
06451 fHistos->GeneralTitle(fKeyGeneralTitle);
06452 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, 0,
06453 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06454 fHistos->PlotHistory("LFN", "NOR", run_par_file_name, cStexStin_A, i0StinEcha, first_same_plot);
06455 }
06456
06457 void TEcnaGui::ViewHistimeCrystalHighFrequencyNoise(const TString run_par_file_name,
06458 const Int_t& cStexStin_A, const Int_t& i0StinEcha,
06459 const TString first_same_plot)
06460 {
06461
06462
06463 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06464
06465 fCnaCommand++;
06466 cout << " *TEcnaGui [" << fCnaCommand
06467 << "]> High frequency noise history"
06468 << ". Run parameters file name: " << run_par_file_name
06469 << ", " << fStinName.Data() << ": " << cStexStin_A << ", channel: " << i0StinEcha
06470 << ", option: " << first_same_plot << endl;
06471
06472 fHistos->SetHistoMin(fKeyVminD_HFN_ChNb);
06473 fHistos->SetHistoMax(fKeyVmaxD_HFN_ChNb);
06474 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06475 fHistos->SetHistoColorPalette(fKeyColPal);
06476 fHistos->GeneralTitle(fKeyGeneralTitle);
06477 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, 0,
06478 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06479 fHistos->PlotHistory("Time", "HFN", run_par_file_name, cStexStin_A, i0StinEcha, first_same_plot);
06480 }
06481
06482 void TEcnaGui::ViewHistimeCrystalHighFrequencyNoiseRuns(const TString run_par_file_name,
06483 const Int_t& cStexStin_A, const Int_t& i0StinEcha,
06484 const TString first_same_plot)
06485 {
06486
06487
06488 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06489
06490 fCnaCommand++;
06491 cout << " *TEcnaGui [" << fCnaCommand
06492 << "]> High frequency noise history distribution"
06493 << ". Run parameters file name: " << run_par_file_name
06494 << ", " << fStinName.Data() << ": " << cStexStin_A << ", channel: " << i0StinEcha
06495 << ", option: " << first_same_plot << endl;
06496
06497 fHistos->SetHistoMin(fKeyVminD_HFN_ChNb);
06498 fHistos->SetHistoMax(fKeyVmaxD_HFN_ChNb);
06499 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06500 fHistos->SetHistoColorPalette(fKeyColPal);
06501 fHistos->GeneralTitle(fKeyGeneralTitle);
06502 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, 0,
06503 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06504 fHistos->PlotHistory("HFN", "NOR", run_par_file_name, cStexStin_A, i0StinEcha, first_same_plot);
06505 }
06506
06507 void TEcnaGui::ViewHistimeCrystalMeanCorss(const TString run_par_file_name,
06508 const Int_t& cStexStin_A, const Int_t& i0StinEcha,
06509 const TString first_same_plot)
06510 {
06511
06512
06513 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06514
06515 fCnaCommand++;
06516 cout << " *TEcnaGui [" << fCnaCommand
06517 << "]> Mean corss history"
06518 << ". Run parameters file name: " << run_par_file_name
06519 << ", " << fStinName.Data() << ": " << cStexStin_A << ", channel: " << i0StinEcha
06520 << ", option: " << first_same_plot << endl;
06521
06522 fHistos->SetHistoMin(fKeyVminD_MCs_ChNb);
06523 fHistos->SetHistoMax(fKeyVmaxD_MCs_ChNb);
06524 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06525 fHistos->SetHistoColorPalette(fKeyColPal);
06526 fHistos->GeneralTitle(fKeyGeneralTitle);
06527 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, 0,
06528 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06529 fHistos->PlotHistory("Time", "MCs", run_par_file_name, cStexStin_A, i0StinEcha, first_same_plot);
06530 }
06531
06532 void TEcnaGui::ViewHistimeCrystalMeanCorssRuns(const TString run_par_file_name,
06533 const Int_t& cStexStin_A, const Int_t& i0StinEcha,
06534 const TString first_same_plot)
06535 {
06536
06537
06538 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06539
06540 fCnaCommand++;
06541 cout << " *TEcnaGui [" << fCnaCommand
06542 << "]> Mean corss history distribution"
06543 << ". Run parameters file name: " << run_par_file_name
06544 << ", " << fStinName.Data() << ": " << cStexStin_A << ", channel: " << i0StinEcha
06545 << ", option: " << first_same_plot << endl;
06546
06547 fHistos->SetHistoMin(fKeyVminD_MCs_ChNb);
06548 fHistos->SetHistoMax(fKeyVmaxD_MCs_ChNb);
06549 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06550 fHistos->SetHistoColorPalette(fKeyColPal);
06551 fHistos->GeneralTitle(fKeyGeneralTitle);
06552 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, 0,
06553 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06554 fHistos->PlotHistory("MCs", "NOR", run_par_file_name, cStexStin_A, i0StinEcha, first_same_plot);
06555 }
06556
06557 void TEcnaGui::ViewHistimeCrystalSigmaOfCorss(const TString run_par_file_name,
06558 const Int_t& cStexStin_A, const Int_t& i0StinEcha,
06559 const TString first_same_plot)
06560 {
06561
06562
06563 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06564
06565 fCnaCommand++;
06566 cout << " *TEcnaGui [" << fCnaCommand
06567 << "]> Sigma of corss history"
06568 << ". Run parameters file name: " << run_par_file_name
06569 << ", " << fStinName.Data() << ": " << cStexStin_A << ", channel: " << i0StinEcha
06570 << ", option: " << first_same_plot << endl;
06571
06572 fHistos->SetHistoMin(fKeyVminD_SCs_ChNb);
06573 fHistos->SetHistoMax(fKeyVmaxD_SCs_ChNb);
06574 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06575 fHistos->SetHistoColorPalette(fKeyColPal);
06576 fHistos->GeneralTitle(fKeyGeneralTitle);
06577 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, 0,
06578 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06579 fHistos->PlotHistory("Time", "SCs", run_par_file_name, cStexStin_A, i0StinEcha, first_same_plot);
06580 }
06581
06582 void TEcnaGui::ViewHistimeCrystalSigmaOfCorssRuns(const TString run_par_file_name,
06583 const Int_t& cStexStin_A, const Int_t& i0StinEcha,
06584 const TString first_same_plot)
06585 {
06586
06587
06588 if( fHistos == 0 ){fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data()); ;}
06589
06590 fCnaCommand++;
06591 cout << " *TEcnaGui [" << fCnaCommand
06592 << "]> Sigma of corss history distribution"
06593 << ". Run parameters file name: " << run_par_file_name
06594 << ", " << fStinName.Data() << ": " << cStexStin_A << ", channel: " << i0StinEcha
06595 << ", option: " << first_same_plot << endl;
06596
06597 fHistos->SetHistoMin(fKeyVminD_SCs_ChNb);
06598 fHistos->SetHistoMax(fKeyVmaxD_SCs_ChNb);
06599 fHistos->SetHistoScaleY(fKeyScaleY); fHistos->SetHistoScaleX(fKeyScaleX);
06600 fHistos->SetHistoColorPalette(fKeyColPal);
06601 fHistos->GeneralTitle(fKeyGeneralTitle);
06602 fHistos->FileParameters(fKeyAnaType, fKeyNbOfSamples, 0,
06603 fKeyFirstReqEvtNumber, fKeyLastReqEvtNumber, fKeyReqNbOfEvts, fKeyStexNumber);
06604 fHistos->PlotHistory("SCs", "NOR", run_par_file_name, cStexStin_A, i0StinEcha, first_same_plot);
06605 }
06606
06607
06608
06609 void TEcnaGui::InitKeys()
06610 {
06611
06612
06613
06614
06615
06616 fKeyAnaType = "StdPeg12";
06617 Int_t MaxCar = fgMaxCar;
06618 fKeyRunListInitCode.Resize(MaxCar);
06619 fKeyRunListInitCode = "0123";
06620
06621 MaxCar = fgMaxCar;
06622 fKeyFileNameRunList.Resize(MaxCar);
06623 fKeyFileNameRunList = fKeyRunListInitCode.Data();
06624
06625 fKeyNbOfSamples = fEcal->MaxSampADC();
06626 fKeyNbOfSamplesString = "10";
06627
06628 fKeyNbOfSampForCalc = fEcal->MaxSampADC();
06629 fKeyNbOfSampForCalcString = "10";
06630
06631 fKeyRunNumber = 0;
06632
06633 fKeyFirstReqEvtNumber = 1;
06634 fKeyFirstReqEvtNumberString = "1";
06635
06636 fKeyLastReqEvtNumber = 0;
06637 fKeyLastReqEvtNumberString = "0";
06638
06639 fKeyReqNbOfEvts = 150;
06640 fKeyReqNbOfEvtsString = "150";
06641
06642 fKeyStexNumber = 1;
06643 fKeyStexNumberString = "1";
06644
06645 fKeyChanNumber = 0;
06646 fKeySampNumber = 0;
06647
06648 fKeyStinANumber = 1;
06649 fKeyStinBNumber = 1;
06650 if( fSubDet == "EE" )
06651 {if( fKeyStexNumber == 1 || fKeyStexNumber == 3 )
06652 {
06653 fKeyStinANumber = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fKeyStexNumber, 150);
06654 fKeyStinBNumber = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fKeyStexNumber, 150);
06655 }
06656 }
06657
06658 MaxCar = fgMaxCar;
06659 fKeyScaleX.Resize(MaxCar);
06660 fKeyScaleX = "LIN";
06661 MaxCar = fgMaxCar;
06662 fKeyScaleY.Resize(MaxCar);
06663 fKeyScaleY = "LIN";
06664 fKeyGeneralTitle = "Ecal Correlated Noise Analysis";
06665
06666 fKeyColPal = "ECCNAColor";
06667
06668
06669
06670 fKeyVminD_NOE_ChNb = (Double_t)0.;
06671 fKeyVmaxD_NOE_ChNb = fKeyReqNbOfEvts + fKeyReqNbOfEvts/3;
06672
06673 fKeyVminD_Ped_ChNb = (Double_t)0.;
06674 fKeyVmaxD_Ped_ChNb = (Double_t)0.;
06675
06676 fKeyVminD_TNo_ChNb = (Double_t)0.;
06677 fKeyVmaxD_TNo_ChNb = (Double_t)0.;
06678
06679 fKeyVminD_LFN_ChNb = (Double_t)0.;
06680 fKeyVmaxD_LFN_ChNb = (Double_t)0.;
06681
06682 fKeyVminD_HFN_ChNb = (Double_t)0.;
06683 fKeyVmaxD_HFN_ChNb = (Double_t)0.;
06684
06685 fKeyVminD_MCs_ChNb = (Double_t)(-1.);
06686 fKeyVmaxD_MCs_ChNb = (Double_t)1.;
06687
06688 fKeyVminD_SCs_ChNb = (Double_t)0.;
06689 fKeyVmaxD_SCs_ChNb = (Double_t)0.;
06690
06691 fKeyVminLHFcc = fKeyVminD_MCs_ChNb;
06692 fKeyVmaxLHFcc = fKeyVmaxD_MCs_ChNb;
06693
06694 fKeyVminLFccMos = (Double_t)-1.;
06695 fKeyVmaxLFccMos = (Double_t)1.;
06696 fKeyVminHFccMos = (Double_t)0.;
06697 fKeyVmaxHFccMos = (Double_t)1.;
06698
06699 fKeyFileNameRunList = "";
06700 }
06701
06702 void TEcnaGui::DisplayInEntryField(TGTextEntry* StringOfField, Int_t& value)
06703 {
06704 char* f_in = new char[20]; fCnew++;
06705 sprintf( f_in, "%d", value );
06706 StringOfField->SetText(f_in);
06707 delete [] f_in; fCdelete++;
06708 }
06709
06710 void TEcnaGui::DisplayInEntryField(TGTextEntry* StringOfField, Double_t& value)
06711 {
06712 char* f_in = new char[20]; fCnew++;
06713 sprintf( f_in, "%g", value );
06714 StringOfField->SetText(f_in);
06715 delete [] f_in; fCdelete++;
06716 }
06717 void TEcnaGui::DisplayInEntryField(TGTextEntry* StringOfField, const TString value)
06718 {
06719
06720 StringOfField->SetText(value);
06721 }