File indexing completed on 2024-04-06 11:57:38
0001
0002
0003
0004
0005 #include "CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEcnaGui.h"
0006 #include <cstdlib>
0007
0008
0009
0010
0011
0012
0013
0014 ClassImp(TEcnaGui);
0015
0016
0017
0018 TEcnaGui::~TEcnaGui() {
0019
0020
0021 #define DEST
0022 #ifdef DEST
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 if (fLayoutGeneral != nullptr) {
0037 delete fLayoutGeneral;
0038 fCdelete++;
0039 }
0040 if (fLayoutBottLeft != nullptr) {
0041 delete fLayoutBottLeft;
0042 fCdelete++;
0043 }
0044 if (fLayoutBottRight != nullptr) {
0045 delete fLayoutBottRight;
0046 fCdelete++;
0047 }
0048 if (fLayoutTopLeft != nullptr) {
0049 delete fLayoutTopLeft;
0050 fCdelete++;
0051 }
0052 if (fLayoutTopRight != nullptr) {
0053 delete fLayoutTopRight;
0054 fCdelete++;
0055 }
0056 if (fLayoutCenterYLeft != nullptr) {
0057 delete fLayoutCenterYLeft;
0058 fCdelete++;
0059 }
0060 if (fLayoutCenterYRight != nullptr) {
0061 delete fLayoutCenterYRight;
0062 fCdelete++;
0063 }
0064 if (fLayoutCenterXTop != nullptr) {
0065 delete fLayoutCenterXTop;
0066 fCdelete++;
0067 }
0068
0069 if (fVoidFrame != nullptr) {
0070 delete fVoidFrame;
0071 fCdelete++;
0072 }
0073
0074
0075
0076
0077 if (fAnaNorsRunFrame != nullptr) {
0078 delete fAnaNorsRunFrame;
0079 fCdelete++;
0080 }
0081 if (fLayoutAnaNorsRunFrame != nullptr) {
0082 delete fLayoutAnaNorsRunFrame;
0083 fCdelete++;
0084 }
0085
0086
0087 if (fAnaFrame != nullptr) {
0088 delete fAnaFrame;
0089 fCdelete++;
0090 }
0091 if (fAnaBut != nullptr) {
0092 delete fAnaBut;
0093 fCdelete++;
0094 }
0095 if (fLayoutAnaBut != nullptr) {
0096 delete fLayoutAnaBut;
0097 fCdelete++;
0098 }
0099 if (fEntryAnaNumber != nullptr) {
0100 delete fEntryAnaNumber;
0101 fCdelete++;
0102 }
0103 if (fAnaText != nullptr) {
0104 fAnaText->Delete();
0105 fCdelete++;
0106 }
0107 if (fLayoutAnaField != nullptr) {
0108 delete fLayoutAnaField;
0109 fCdelete++;
0110 }
0111
0112
0113 if (fFevFrame != nullptr) {
0114 delete fFevFrame;
0115 fCdelete++;
0116 }
0117 if (fFevBut != nullptr) {
0118 delete fFevBut;
0119 fCdelete++;
0120 }
0121 if (fLayoutFevBut != nullptr) {
0122 delete fLayoutFevBut;
0123 fCdelete++;
0124 }
0125 if (fEntryFevNumber != nullptr) {
0126 delete fEntryFevNumber;
0127 fCdelete++;
0128 }
0129 if (fFevText != nullptr) {
0130 fFevText->Delete();
0131 fCdelete++;
0132 }
0133 if (fLayoutFevFieldText != nullptr) {
0134 delete fLayoutFevFieldText;
0135 fCdelete++;
0136 }
0137 if (fLayoutFevFieldFrame != nullptr) {
0138 delete fLayoutFevFieldFrame;
0139 fCdelete++;
0140 }
0141
0142
0143 if (fRunFrame != nullptr) {
0144 delete fRunFrame;
0145 fCdelete++;
0146 }
0147 if (fRunBut != nullptr) {
0148 delete fRunBut;
0149 fCdelete++;
0150 }
0151 if (fLayoutRunBut != nullptr) {
0152 delete fLayoutRunBut;
0153 fCdelete++;
0154 }
0155 if (fEntryRunNumber != nullptr) {
0156 delete fEntryRunNumber;
0157 fCdelete++;
0158 }
0159 if (fRunText != nullptr) {
0160 fRunText->Delete();
0161 fCdelete++;
0162 }
0163 if (fLayoutRunField != nullptr) {
0164 delete fLayoutRunField;
0165 fCdelete++;
0166 }
0167
0168
0169 if (fFevLevStexFrame != nullptr) {
0170 delete fFevLevStexFrame;
0171 fCdelete++;
0172 }
0173 if (fLayoutFevLevStexFrame != nullptr) {
0174 delete fLayoutFevLevStexFrame;
0175 fCdelete++;
0176 }
0177
0178
0179 if (fNorsFrame != nullptr) {
0180 delete fNorsFrame;
0181 fCdelete++;
0182 }
0183 if (fNorsBut != nullptr) {
0184 delete fNorsBut;
0185 fCdelete++;
0186 }
0187 if (fLayoutNorsBut != nullptr) {
0188 delete fLayoutNorsBut;
0189 fCdelete++;
0190 }
0191 if (fEntryNorsNumber != nullptr) {
0192 delete fEntryNorsNumber;
0193 fCdelete++;
0194 }
0195 if (fNorsText != nullptr) {
0196 fNorsText->Delete();
0197 fCdelete++;
0198 }
0199 if (fLayoutNorsField != nullptr) {
0200 delete fLayoutNorsField;
0201 fCdelete++;
0202 }
0203
0204
0205 if (fLevFrame != nullptr) {
0206 delete fLevFrame;
0207 fCdelete++;
0208 }
0209 if (fLevBut != nullptr) {
0210 delete fLevBut;
0211 fCdelete++;
0212 }
0213 if (fLayoutLevBut != nullptr) {
0214 delete fLayoutLevBut;
0215 fCdelete++;
0216 }
0217 if (fEntryLevNumber != nullptr) {
0218 delete fEntryLevNumber;
0219 fCdelete++;
0220 }
0221 if (fLevText != nullptr) {
0222 fLevText->Delete();
0223 fCdelete++;
0224 }
0225 if (fLayoutLevFieldText != nullptr) {
0226 delete fLayoutLevFieldText;
0227 fCdelete++;
0228 }
0229 if (fLayoutLevFieldFrame != nullptr) {
0230 delete fLayoutLevFieldFrame;
0231 fCdelete++;
0232 }
0233
0234
0235 if (fMenuClean != nullptr) {
0236 delete fMenuClean;
0237 fCdelete++;
0238 }
0239 if (fMenuBarClean != nullptr) {
0240 fMenuBarClean->Delete();
0241 fCdelete++;
0242 }
0243
0244 if (fMenuSubmit != nullptr) {
0245 delete fMenuSubmit;
0246 fCdelete++;
0247 }
0248 if (fMenuBarSubmit != nullptr) {
0249 fMenuBarSubmit->Delete();
0250 fCdelete++;
0251 }
0252
0253
0254 if (fCompStRqFrame != nullptr) {
0255 delete fCompStRqFrame;
0256 fCdelete++;
0257 }
0258 if (fLayoutCompStRqFrame != nullptr) {
0259 delete fLayoutCompStRqFrame;
0260 fCdelete++;
0261 }
0262
0263
0264 if (fStexFrame != nullptr) {
0265 delete fStexFrame;
0266 fCdelete++;
0267 }
0268 if (fStexBut != nullptr) {
0269 delete fStexBut;
0270 fCdelete++;
0271 }
0272 if (fLayoutStexBut != nullptr) {
0273 delete fLayoutStexBut;
0274 fCdelete++;
0275 }
0276 if (fEntryStexNumber != nullptr) {
0277 delete fEntryStexNumber;
0278 fCdelete++;
0279 }
0280 if (fStexText != nullptr) {
0281 fStexText->Delete();
0282 fCdelete++;
0283 }
0284 if (fLayoutStexFieldText != nullptr) {
0285 delete fLayoutStexFieldText;
0286 fCdelete++;
0287 }
0288 if (fLayoutStexFieldFrame != nullptr) {
0289 delete fLayoutStexFieldFrame;
0290 fCdelete++;
0291 }
0292
0293
0294 if (fRevFrame != nullptr) {
0295 delete fRevFrame;
0296 fCdelete++;
0297 }
0298 if (fRevBut != nullptr) {
0299 delete fRevBut;
0300 fCdelete++;
0301 }
0302 if (fLayoutRevBut != nullptr) {
0303 delete fLayoutRevBut;
0304 fCdelete++;
0305 }
0306 if (fEntryRevNumber != nullptr) {
0307 delete fEntryRevNumber;
0308 fCdelete++;
0309 }
0310 if (fRevText != nullptr) {
0311 fRevText->Delete();
0312 fCdelete++;
0313 }
0314 if (fLayoutRevFieldText != nullptr) {
0315 delete fLayoutRevFieldText;
0316 fCdelete++;
0317 }
0318 if (fLayoutRevFieldFrame != nullptr) {
0319 delete fLayoutRevFieldFrame;
0320 fCdelete++;
0321 }
0322
0323
0324 if (fCompStnbFrame != nullptr) {
0325 delete fCompStnbFrame;
0326 fCdelete++;
0327 }
0328 if (fLayoutCompStnbFrame != nullptr) {
0329 delete fLayoutCompStnbFrame;
0330 fCdelete++;
0331 }
0332
0333
0334 if (fButStexNb != nullptr) {
0335 delete fButStexNb;
0336 fCdelete++;
0337 }
0338 if (fLayoutStexNbBut != nullptr) {
0339 delete fLayoutStexNbBut;
0340 fCdelete++;
0341 }
0342
0343 if (fNbSampForCalcFrame != nullptr) {
0344 delete fNbSampForCalcFrame;
0345 fCdelete++;
0346 }
0347 if (fNbSampForCalcBut != nullptr) {
0348 delete fNbSampForCalcBut;
0349 fCdelete++;
0350 }
0351 if (fLayoutNbSampForCalcBut != nullptr) {
0352 delete fLayoutNbSampForCalcBut;
0353 fCdelete++;
0354 }
0355 if (fEntryNbSampForCalcNumber != nullptr) {
0356 delete fEntryNbSampForCalcNumber;
0357 fCdelete++;
0358 }
0359 if (fNbSampForCalcText != nullptr) {
0360 fNbSampForCalcText->Delete();
0361 fCdelete++;
0362 }
0363 if (fLayoutNbSampForCalcFieldText != nullptr) {
0364 delete fLayoutNbSampForCalcFieldText;
0365 fCdelete++;
0366 }
0367 if (fLayoutNbSampForCalcFieldFrame != nullptr) {
0368 delete fLayoutNbSampForCalcFieldFrame;
0369 fCdelete++;
0370 }
0371
0372 if (fMenuComput != nullptr) {
0373 delete fMenuComput;
0374 fCdelete++;
0375 }
0376 if (fMenuBarComput != nullptr) {
0377 fMenuBarComput->Delete();
0378 fCdelete++;
0379 }
0380
0381
0382 if (fStexUpFrame != nullptr) {
0383 delete fStexUpFrame;
0384 fCdelete++;
0385 }
0386
0387
0388
0389
0390
0391 if (fVmmD_NOE_ChNbFrame != nullptr) {
0392 delete fVmmD_NOE_ChNbFrame;
0393 fCdelete++;
0394 }
0395
0396 if (fVmaxD_NOE_ChNbFrame != nullptr) {
0397 delete fVmaxD_NOE_ChNbFrame;
0398 fCdelete++;
0399 }
0400 if (fVmaxD_NOE_ChNbBut != nullptr) {
0401 delete fVmaxD_NOE_ChNbBut;
0402 fCdelete++;
0403 }
0404 if (fLayoutVmaxD_NOE_ChNbBut != nullptr) {
0405 delete fLayoutVmaxD_NOE_ChNbBut;
0406 fCdelete++;
0407 }
0408 if (fEntryVmaxD_NOE_ChNbNumber != nullptr) {
0409 delete fEntryVmaxD_NOE_ChNbNumber;
0410 fCdelete++;
0411 }
0412 if (fVmaxD_NOE_ChNbText != nullptr) {
0413 fVmaxD_NOE_ChNbText->Delete();
0414 fCdelete++;
0415 }
0416 if (fLayoutVmaxD_NOE_ChNbFieldText != nullptr) {
0417 delete fLayoutVmaxD_NOE_ChNbFieldText;
0418 fCdelete++;
0419 }
0420 if (fLayoutVmaxD_NOE_ChNbFrame != nullptr) {
0421 delete fLayoutVmaxD_NOE_ChNbFrame;
0422 fCdelete++;
0423 }
0424
0425 if (fVminD_NOE_ChNbFrame != nullptr) {
0426 delete fVminD_NOE_ChNbFrame;
0427 fCdelete++;
0428 }
0429 if (fVminD_NOE_ChNbBut != nullptr) {
0430 delete fVminD_NOE_ChNbBut;
0431 fCdelete++;
0432 }
0433 if (fLayoutVminD_NOE_ChNbBut != nullptr) {
0434 delete fLayoutVminD_NOE_ChNbBut;
0435 fCdelete++;
0436 }
0437 if (fEntryVminD_NOE_ChNbNumber != nullptr) {
0438 delete fEntryVminD_NOE_ChNbNumber;
0439 fCdelete++;
0440 }
0441 if (fVminD_NOE_ChNbText != nullptr) {
0442 fVminD_NOE_ChNbText->Delete();
0443 fCdelete++;
0444 }
0445 if (fLayoutVminD_NOE_ChNbFieldText != nullptr) {
0446 delete fLayoutVminD_NOE_ChNbFieldText;
0447 fCdelete++;
0448 }
0449 if (fLayoutVminD_NOE_ChNbFrame != nullptr) {
0450 delete fLayoutVminD_NOE_ChNbFrame;
0451 fCdelete++;
0452 }
0453
0454 if (fMenuD_NOE_ChNb != nullptr) {
0455 delete fMenuD_NOE_ChNb;
0456 fCdelete++;
0457 }
0458 if (fMenuBarD_NOE_ChNb != nullptr) {
0459 fMenuBarD_NOE_ChNb->Delete();
0460 fCdelete++;
0461 }
0462 if (fVminD_NOE_ChNbText != nullptr) {
0463 fVminD_NOE_ChNbText->Delete();
0464 fCdelete++;
0465 }
0466
0467 if (fLayoutVmmD_NOE_ChNbFrame != nullptr) {
0468 delete fLayoutVmmD_NOE_ChNbFrame;
0469 fCdelete++;
0470 }
0471
0472
0473 if (fVmmD_Ped_ChNbFrame != nullptr) {
0474 delete fVmmD_Ped_ChNbFrame;
0475 fCdelete++;
0476 }
0477
0478 if (fVmaxD_Ped_ChNbFrame != nullptr) {
0479 delete fVmaxD_Ped_ChNbFrame;
0480 fCdelete++;
0481 }
0482 if (fVmaxD_Ped_ChNbBut != nullptr) {
0483 delete fVmaxD_Ped_ChNbBut;
0484 fCdelete++;
0485 }
0486 if (fLayoutVmaxD_Ped_ChNbBut != nullptr) {
0487 delete fLayoutVmaxD_Ped_ChNbBut;
0488 fCdelete++;
0489 }
0490 if (fVmaxD_Ped_ChNbText != nullptr) {
0491 fVmaxD_Ped_ChNbText->Delete();
0492 fCdelete++;
0493 }
0494 if (fEntryVmaxD_Ped_ChNbNumber != nullptr) {
0495 delete fEntryVmaxD_Ped_ChNbNumber;
0496 fCdelete++;
0497 }
0498 if (fLayoutVmaxD_Ped_ChNbFieldText != nullptr) {
0499 delete fLayoutVmaxD_Ped_ChNbFieldText;
0500 fCdelete++;
0501 }
0502 if (fLayoutVmaxD_Ped_ChNbFrame != nullptr) {
0503 delete fLayoutVmaxD_Ped_ChNbFrame;
0504 fCdelete++;
0505 }
0506
0507 if (fVminD_Ped_ChNbFrame != nullptr) {
0508 delete fVminD_Ped_ChNbFrame;
0509 fCdelete++;
0510 }
0511 if (fVminD_Ped_ChNbBut != nullptr) {
0512 delete fVminD_Ped_ChNbBut;
0513 fCdelete++;
0514 }
0515 if (fLayoutVminD_Ped_ChNbBut != nullptr) {
0516 delete fLayoutVminD_Ped_ChNbBut;
0517 fCdelete++;
0518 }
0519 if (fVminD_Ped_ChNbText != nullptr) {
0520 fVminD_Ped_ChNbText->Delete();
0521 fCdelete++;
0522 }
0523 if (fEntryVminD_Ped_ChNbNumber != nullptr) {
0524 delete fEntryVminD_Ped_ChNbNumber;
0525 fCdelete++;
0526 }
0527 if (fLayoutVminD_Ped_ChNbFieldText != nullptr) {
0528 delete fLayoutVminD_Ped_ChNbFieldText;
0529 fCdelete++;
0530 }
0531 if (fLayoutVminD_Ped_ChNbFrame != nullptr) {
0532 delete fLayoutVminD_Ped_ChNbFrame;
0533 fCdelete++;
0534 }
0535
0536 if (fMenuD_Ped_ChNb != nullptr) {
0537 delete fMenuD_Ped_ChNb;
0538 fCdelete++;
0539 }
0540 if (fMenuBarD_Ped_ChNb != nullptr) {
0541 fMenuBarD_Ped_ChNb->Delete();
0542 fCdelete++;
0543 }
0544 if (fLayoutMenuBarD_Ped_ChNb != nullptr) {
0545 delete fLayoutMenuBarD_Ped_ChNb;
0546 fCdelete++;
0547 }
0548
0549 if (fLayoutVmmD_Ped_ChNbFrame != nullptr) {
0550 delete fLayoutVmmD_Ped_ChNbFrame;
0551 fCdelete++;
0552 }
0553
0554
0555 if (fVmmD_TNo_ChNbFrame != nullptr) {
0556 delete fVmmD_TNo_ChNbFrame;
0557 fCdelete++;
0558 }
0559
0560 if (fVmaxD_TNo_ChNbFrame != nullptr) {
0561 delete fVmaxD_TNo_ChNbFrame;
0562 fCdelete++;
0563 }
0564 if (fVmaxD_TNo_ChNbBut != nullptr) {
0565 delete fVmaxD_TNo_ChNbBut;
0566 fCdelete++;
0567 }
0568 if (fLayoutVmaxD_TNo_ChNbBut != nullptr) {
0569 delete fLayoutVmaxD_TNo_ChNbBut;
0570 fCdelete++;
0571 }
0572 if (fVmaxD_TNo_ChNbText != nullptr) {
0573 fVmaxD_TNo_ChNbText->Delete();
0574 fCdelete++;
0575 }
0576 if (fEntryVmaxD_TNo_ChNbNumber != nullptr) {
0577 delete fEntryVmaxD_TNo_ChNbNumber;
0578 fCdelete++;
0579 }
0580 if (fLayoutVmaxD_TNo_ChNbFieldText != nullptr) {
0581 delete fLayoutVmaxD_TNo_ChNbFieldText;
0582 fCdelete++;
0583 }
0584 if (fLayoutVmaxD_TNo_ChNbFrame != nullptr) {
0585 delete fLayoutVmaxD_TNo_ChNbFrame;
0586 fCdelete++;
0587 }
0588
0589 if (fVminD_TNo_ChNbFrame != nullptr) {
0590 delete fVminD_TNo_ChNbFrame;
0591 fCdelete++;
0592 }
0593 if (fVminD_TNo_ChNbBut != nullptr) {
0594 delete fVminD_TNo_ChNbBut;
0595 fCdelete++;
0596 }
0597 if (fLayoutVminD_TNo_ChNbBut != nullptr) {
0598 delete fLayoutVminD_TNo_ChNbBut;
0599 fCdelete++;
0600 }
0601 if (fVminD_TNo_ChNbText != nullptr) {
0602 fVminD_TNo_ChNbText->Delete();
0603 fCdelete++;
0604 }
0605 if (fEntryVminD_TNo_ChNbNumber != nullptr) {
0606 delete fEntryVminD_TNo_ChNbNumber;
0607 fCdelete++;
0608 }
0609 if (fLayoutVminD_TNo_ChNbFieldText != nullptr) {
0610 delete fLayoutVminD_TNo_ChNbFieldText;
0611 fCdelete++;
0612 }
0613 if (fLayoutVminD_TNo_ChNbFrame != nullptr) {
0614 delete fLayoutVminD_TNo_ChNbFrame;
0615 fCdelete++;
0616 }
0617
0618 if (fMenuD_TNo_ChNb != nullptr) {
0619 delete fMenuD_TNo_ChNb;
0620 fCdelete++;
0621 }
0622 if (fMenuBarD_TNo_ChNb != nullptr) {
0623 fMenuBarD_TNo_ChNb->Delete();
0624 fCdelete++;
0625 }
0626 if (fLayoutMenuBarD_TNo_ChNb != nullptr) {
0627 delete fLayoutMenuBarD_TNo_ChNb;
0628 fCdelete++;
0629 }
0630
0631 if (fLayoutVmmD_TNo_ChNbFrame != nullptr) {
0632 delete fLayoutVmmD_TNo_ChNbFrame;
0633 fCdelete++;
0634 }
0635
0636
0637 if (fVmmD_MCs_ChNbFrame != nullptr) {
0638 delete fVmmD_MCs_ChNbFrame;
0639 fCdelete++;
0640 }
0641
0642 if (fVmaxD_MCs_ChNbFrame != nullptr) {
0643 delete fVmaxD_MCs_ChNbFrame;
0644 fCdelete++;
0645 }
0646 if (fVmaxD_MCs_ChNbBut != nullptr) {
0647 delete fVmaxD_MCs_ChNbBut;
0648 fCdelete++;
0649 }
0650 if (fLayoutVmaxD_MCs_ChNbBut != nullptr) {
0651 delete fLayoutVmaxD_MCs_ChNbBut;
0652 fCdelete++;
0653 }
0654 if (fVmaxD_MCs_ChNbText != nullptr) {
0655 fVmaxD_MCs_ChNbText->Delete();
0656 fCdelete++;
0657 }
0658 if (fEntryVmaxD_MCs_ChNbNumber != nullptr) {
0659 delete fEntryVmaxD_MCs_ChNbNumber;
0660 fCdelete++;
0661 }
0662 if (fLayoutVmaxD_MCs_ChNbFieldText != nullptr) {
0663 delete fLayoutVmaxD_MCs_ChNbFieldText;
0664 fCdelete++;
0665 }
0666 if (fLayoutVmaxD_MCs_ChNbFrame != nullptr) {
0667 delete fLayoutVmaxD_MCs_ChNbFrame;
0668 fCdelete++;
0669 }
0670
0671 if (fVminD_MCs_ChNbFrame != nullptr) {
0672 delete fVminD_MCs_ChNbFrame;
0673 fCdelete++;
0674 }
0675 if (fVminD_MCs_ChNbBut != nullptr) {
0676 delete fVminD_MCs_ChNbBut;
0677 fCdelete++;
0678 }
0679 if (fLayoutVminD_MCs_ChNbBut != nullptr) {
0680 delete fLayoutVminD_MCs_ChNbBut;
0681 fCdelete++;
0682 }
0683 if (fVminD_MCs_ChNbText != nullptr) {
0684 fVminD_MCs_ChNbText->Delete();
0685 fCdelete++;
0686 }
0687 if (fEntryVminD_MCs_ChNbNumber != nullptr) {
0688 delete fEntryVminD_MCs_ChNbNumber;
0689 fCdelete++;
0690 }
0691 if (fLayoutVminD_MCs_ChNbFieldText != nullptr) {
0692 delete fLayoutVminD_MCs_ChNbFieldText;
0693 fCdelete++;
0694 }
0695 if (fLayoutVminD_MCs_ChNbFrame != nullptr) {
0696 delete fLayoutVminD_MCs_ChNbFrame;
0697 fCdelete++;
0698 }
0699
0700 if (fMenuD_MCs_ChNb != nullptr) {
0701 delete fMenuD_MCs_ChNb;
0702 fCdelete++;
0703 }
0704 if (fMenuBarD_MCs_ChNb != nullptr) {
0705 fMenuBarD_MCs_ChNb->Delete();
0706 fCdelete++;
0707 }
0708 if (fLayoutMenuBarD_MCs_ChNb != nullptr) {
0709 delete fLayoutMenuBarD_MCs_ChNb;
0710 fCdelete++;
0711 }
0712
0713 if (fLayoutVmmD_MCs_ChNbFrame != nullptr) {
0714 delete fLayoutVmmD_MCs_ChNbFrame;
0715 fCdelete++;
0716 }
0717
0718
0719 if (fStexHozFrame != nullptr) {
0720 delete fStexHozFrame;
0721 fCdelete++;
0722 }
0723
0724
0725 if (fVmmD_LFN_ChNbFrame != nullptr) {
0726 delete fVmmD_LFN_ChNbFrame;
0727 fCdelete++;
0728 }
0729
0730 if (fVmaxD_LFN_ChNbFrame != nullptr) {
0731 delete fVmaxD_LFN_ChNbFrame;
0732 fCdelete++;
0733 }
0734 if (fVmaxD_LFN_ChNbBut != nullptr) {
0735 delete fVmaxD_LFN_ChNbBut;
0736 fCdelete++;
0737 }
0738 if (fLayoutVmaxD_LFN_ChNbBut != nullptr) {
0739 delete fLayoutVmaxD_LFN_ChNbBut;
0740 fCdelete++;
0741 }
0742 if (fVmaxD_LFN_ChNbText != nullptr) {
0743 fVmaxD_LFN_ChNbText->Delete();
0744 fCdelete++;
0745 }
0746 if (fEntryVmaxD_LFN_ChNbNumber != nullptr) {
0747 delete fEntryVmaxD_LFN_ChNbNumber;
0748 fCdelete++;
0749 }
0750 if (fLayoutVmaxD_LFN_ChNbFieldText != nullptr) {
0751 delete fLayoutVmaxD_LFN_ChNbFieldText;
0752 fCdelete++;
0753 }
0754 if (fLayoutVmaxD_LFN_ChNbFrame != nullptr) {
0755 delete fLayoutVmaxD_LFN_ChNbFrame;
0756 fCdelete++;
0757 }
0758
0759 if (fVminD_LFN_ChNbFrame != nullptr) {
0760 delete fVminD_LFN_ChNbFrame;
0761 fCdelete++;
0762 }
0763 if (fVminD_LFN_ChNbBut != nullptr) {
0764 delete fVminD_LFN_ChNbBut;
0765 fCdelete++;
0766 }
0767 if (fLayoutVminD_LFN_ChNbBut != nullptr) {
0768 delete fLayoutVminD_LFN_ChNbBut;
0769 fCdelete++;
0770 }
0771 if (fVminD_LFN_ChNbText != nullptr) {
0772 fVminD_LFN_ChNbText->Delete();
0773 fCdelete++;
0774 }
0775 if (fEntryVminD_LFN_ChNbNumber != nullptr) {
0776 delete fEntryVminD_LFN_ChNbNumber;
0777 fCdelete++;
0778 }
0779 if (fLayoutVminD_LFN_ChNbFieldText != nullptr) {
0780 delete fLayoutVminD_LFN_ChNbFieldText;
0781 fCdelete++;
0782 }
0783 if (fLayoutVminD_LFN_ChNbFrame != nullptr) {
0784 delete fLayoutVminD_LFN_ChNbFrame;
0785 fCdelete++;
0786 }
0787
0788 if (fMenuD_LFN_ChNb != nullptr) {
0789 delete fMenuD_LFN_ChNb;
0790 fCdelete++;
0791 }
0792 if (fMenuBarD_LFN_ChNb != nullptr) {
0793 fMenuBarD_LFN_ChNb->Delete();
0794 fCdelete++;
0795 }
0796 if (fLayoutMenuBarD_LFN_ChNb != nullptr) {
0797 delete fLayoutMenuBarD_LFN_ChNb;
0798 fCdelete++;
0799 }
0800
0801 if (fLayoutVmmD_LFN_ChNbFrame != nullptr) {
0802 delete fLayoutVmmD_LFN_ChNbFrame;
0803 fCdelete++;
0804 }
0805
0806
0807 if (fVmmD_HFN_ChNbFrame != nullptr) {
0808 delete fVmmD_HFN_ChNbFrame;
0809 fCdelete++;
0810 }
0811
0812 if (fVmaxD_HFN_ChNbFrame != nullptr) {
0813 delete fVmaxD_HFN_ChNbFrame;
0814 fCdelete++;
0815 }
0816 if (fVmaxD_HFN_ChNbBut != nullptr) {
0817 delete fVmaxD_HFN_ChNbBut;
0818 fCdelete++;
0819 }
0820 if (fLayoutVmaxD_HFN_ChNbBut != nullptr) {
0821 delete fLayoutVmaxD_HFN_ChNbBut;
0822 fCdelete++;
0823 }
0824 if (fVmaxD_HFN_ChNbText != nullptr) {
0825 fVmaxD_HFN_ChNbText->Delete();
0826 fCdelete++;
0827 }
0828 if (fEntryVmaxD_HFN_ChNbNumber != nullptr) {
0829 delete fEntryVmaxD_HFN_ChNbNumber;
0830 fCdelete++;
0831 }
0832 if (fLayoutVmaxD_HFN_ChNbFieldText != nullptr) {
0833 delete fLayoutVmaxD_HFN_ChNbFieldText;
0834 fCdelete++;
0835 }
0836 if (fLayoutVmaxD_HFN_ChNbFrame != nullptr) {
0837 delete fLayoutVmaxD_HFN_ChNbFrame;
0838 fCdelete++;
0839 }
0840
0841 if (fVminD_HFN_ChNbFrame != nullptr) {
0842 delete fVminD_HFN_ChNbFrame;
0843 fCdelete++;
0844 }
0845 if (fVminD_HFN_ChNbBut != nullptr) {
0846 delete fVminD_HFN_ChNbBut;
0847 fCdelete++;
0848 }
0849 if (fLayoutVminD_HFN_ChNbBut != nullptr) {
0850 delete fLayoutVminD_HFN_ChNbBut;
0851 fCdelete++;
0852 }
0853 if (fVminD_HFN_ChNbText != nullptr) {
0854 fVminD_HFN_ChNbText->Delete();
0855 fCdelete++;
0856 }
0857 if (fEntryVminD_HFN_ChNbNumber != nullptr) {
0858 delete fEntryVminD_HFN_ChNbNumber;
0859 fCdelete++;
0860 }
0861 if (fLayoutVminD_HFN_ChNbFieldText != nullptr) {
0862 delete fLayoutVminD_HFN_ChNbFieldText;
0863 fCdelete++;
0864 }
0865 if (fLayoutVminD_HFN_ChNbFrame != nullptr) {
0866 delete fLayoutVminD_HFN_ChNbFrame;
0867 fCdelete++;
0868 }
0869
0870 if (fMenuD_HFN_ChNb != nullptr) {
0871 delete fMenuD_HFN_ChNb;
0872 fCdelete++;
0873 }
0874 if (fMenuBarD_HFN_ChNb != nullptr) {
0875 fMenuBarD_HFN_ChNb->Delete();
0876 fCdelete++;
0877 }
0878 if (fLayoutMenuBarD_HFN_ChNb != nullptr) {
0879 delete fLayoutMenuBarD_HFN_ChNb;
0880 fCdelete++;
0881 }
0882
0883 if (fLayoutVmmD_HFN_ChNbFrame != nullptr) {
0884 delete fLayoutVmmD_HFN_ChNbFrame;
0885 fCdelete++;
0886 }
0887
0888
0889 if (fVmmD_SCs_ChNbFrame != nullptr) {
0890 delete fVmmD_SCs_ChNbFrame;
0891 fCdelete++;
0892 }
0893
0894 if (fVmaxD_SCs_ChNbFrame != nullptr) {
0895 delete fVmaxD_SCs_ChNbFrame;
0896 fCdelete++;
0897 }
0898 if (fVmaxD_SCs_ChNbBut != nullptr) {
0899 delete fVmaxD_SCs_ChNbBut;
0900 fCdelete++;
0901 }
0902 if (fLayoutVmaxD_SCs_ChNbBut != nullptr) {
0903 delete fLayoutVmaxD_SCs_ChNbBut;
0904 fCdelete++;
0905 }
0906 if (fVmaxD_SCs_ChNbText != nullptr) {
0907 fVmaxD_SCs_ChNbText->Delete();
0908 fCdelete++;
0909 }
0910 if (fEntryVmaxD_SCs_ChNbNumber != nullptr) {
0911 delete fEntryVmaxD_SCs_ChNbNumber;
0912 fCdelete++;
0913 }
0914 if (fLayoutVmaxD_SCs_ChNbFieldText != nullptr) {
0915 delete fLayoutVmaxD_SCs_ChNbFieldText;
0916 fCdelete++;
0917 }
0918 if (fLayoutVmaxD_SCs_ChNbFrame != nullptr) {
0919 delete fLayoutVmaxD_SCs_ChNbFrame;
0920 fCdelete++;
0921 }
0922
0923 if (fVminD_SCs_ChNbFrame != nullptr) {
0924 delete fVminD_SCs_ChNbFrame;
0925 fCdelete++;
0926 }
0927 if (fVminD_SCs_ChNbBut != nullptr) {
0928 delete fVminD_SCs_ChNbBut;
0929 fCdelete++;
0930 }
0931 if (fLayoutVminD_SCs_ChNbBut != nullptr) {
0932 delete fLayoutVminD_SCs_ChNbBut;
0933 fCdelete++;
0934 }
0935 if (fVminD_SCs_ChNbText != nullptr) {
0936 fVminD_SCs_ChNbText->Delete();
0937 fCdelete++;
0938 }
0939 if (fEntryVminD_SCs_ChNbNumber != nullptr) {
0940 delete fEntryVminD_SCs_ChNbNumber;
0941 fCdelete++;
0942 }
0943 if (fLayoutVminD_SCs_ChNbFieldText != nullptr) {
0944 delete fLayoutVminD_SCs_ChNbFieldText;
0945 fCdelete++;
0946 }
0947 if (fLayoutVminD_SCs_ChNbFrame != nullptr) {
0948 delete fLayoutVminD_SCs_ChNbFrame;
0949 fCdelete++;
0950 }
0951
0952 if (fMenuD_SCs_ChNb != nullptr) {
0953 delete fMenuD_SCs_ChNb;
0954 fCdelete++;
0955 }
0956 if (fMenuBarD_SCs_ChNb != nullptr) {
0957 fMenuBarD_SCs_ChNb->Delete();
0958 fCdelete++;
0959 }
0960 if (fLayoutMenuBarD_SCs_ChNb != nullptr) {
0961 delete fLayoutMenuBarD_SCs_ChNb;
0962 fCdelete++;
0963 }
0964
0965 if (fLayoutVmmD_SCs_ChNbFrame != nullptr) {
0966 delete fLayoutVmmD_SCs_ChNbFrame;
0967 fCdelete++;
0968 }
0969
0970 if (fLayoutStexHozFrame != nullptr) {
0971 delete fLayoutStexHozFrame;
0972 fCdelete++;
0973 }
0974
0975
0976
0977
0978 if (fVmmLHFccFrame != nullptr) {
0979 delete fVmmLHFccFrame;
0980 fCdelete++;
0981 }
0982
0983 if (fVmaxLHFccFrame != nullptr) {
0984 delete fVmaxLHFccFrame;
0985 fCdelete++;
0986 }
0987 if (fVmaxLHFccBut != nullptr) {
0988 delete fVmaxLHFccBut;
0989 fCdelete++;
0990 }
0991 if (fLayoutVmaxLHFccBut != nullptr) {
0992 delete fLayoutVmaxLHFccBut;
0993 fCdelete++;
0994 }
0995 if (fVmaxLHFccText != nullptr) {
0996 fVmaxLHFccText->Delete();
0997 fCdelete++;
0998 }
0999 if (fEntryVmaxLHFccNumber != nullptr) {
1000 delete fEntryVmaxLHFccNumber;
1001 fCdelete++;
1002 }
1003 if (fLayoutVmaxLHFccFieldText != nullptr) {
1004 delete fLayoutVmaxLHFccFieldText;
1005 fCdelete++;
1006 }
1007 if (fLayoutVmaxLHFccFrame != nullptr) {
1008 delete fLayoutVmaxLHFccFrame;
1009 fCdelete++;
1010 }
1011
1012 if (fVminLHFccFrame != nullptr) {
1013 delete fVminLHFccFrame;
1014 fCdelete++;
1015 }
1016 if (fVminLHFccBut != nullptr) {
1017 delete fVminLHFccBut;
1018 fCdelete++;
1019 }
1020 if (fLayoutVminLHFccBut != nullptr) {
1021 delete fLayoutVminLHFccBut;
1022 fCdelete++;
1023 }
1024 if (fVminLHFccText != nullptr) {
1025 fVminLHFccText->Delete();
1026 fCdelete++;
1027 }
1028 if (fEntryVminLHFccNumber != nullptr) {
1029 delete fEntryVminLHFccNumber;
1030 fCdelete++;
1031 }
1032 if (fLayoutVminLHFccFieldText != nullptr) {
1033 delete fLayoutVminLHFccFieldText;
1034 fCdelete++;
1035 }
1036 if (fLayoutVminLHFccFrame != nullptr) {
1037 delete fLayoutVminLHFccFrame;
1038 fCdelete++;
1039 }
1040
1041 if (fMenuLHFcc != nullptr) {
1042 delete fMenuLHFcc;
1043 fCdelete++;
1044 }
1045 if (fMenuBarLHFcc != nullptr) {
1046 fMenuBarLHFcc->Delete();
1047 fCdelete++;
1048 }
1049 if (fLayoutMenuBarLHFcc != nullptr) {
1050 delete fLayoutMenuBarLHFcc;
1051 fCdelete++;
1052 }
1053
1054 if (fLayoutVmmLHFccFrame != nullptr) {
1055 delete fLayoutVmmLHFccFrame;
1056 fCdelete++;
1057 }
1058
1059
1060 if (fVmmLFccMosFrame != nullptr) {
1061 delete fVmmLFccMosFrame;
1062 fCdelete++;
1063 }
1064
1065 if (fVmaxLFccMosFrame != nullptr) {
1066 delete fVmaxLFccMosFrame;
1067 fCdelete++;
1068 }
1069 if (fVmaxLFccMosBut != nullptr) {
1070 delete fVmaxLFccMosBut;
1071 fCdelete++;
1072 }
1073 if (fLayoutVmaxLFccMosBut != nullptr) {
1074 delete fLayoutVmaxLFccMosBut;
1075 fCdelete++;
1076 }
1077 if (fVmaxLFccMosText != nullptr) {
1078 fVmaxLFccMosText->Delete();
1079 fCdelete++;
1080 }
1081 if (fEntryVmaxLFccMosNumber != nullptr) {
1082 delete fEntryVmaxLFccMosNumber;
1083 fCdelete++;
1084 }
1085 if (fLayoutVmaxLFccMosFieldText != nullptr) {
1086 delete fLayoutVmaxLFccMosFieldText;
1087 fCdelete++;
1088 }
1089 if (fLayoutVmaxLFccMosFrame != nullptr) {
1090 delete fLayoutVmaxLFccMosFrame;
1091 fCdelete++;
1092 }
1093
1094 if (fVminLFccMosFrame != nullptr) {
1095 delete fVminLFccMosFrame;
1096 fCdelete++;
1097 }
1098 if (fVminLFccMosBut != nullptr) {
1099 delete fVminLFccMosBut;
1100 fCdelete++;
1101 }
1102 if (fLayoutVminLFccMosBut != nullptr) {
1103 delete fLayoutVminLFccMosBut;
1104 fCdelete++;
1105 }
1106 if (fVminLFccMosText != nullptr) {
1107 fVminLFccMosText->Delete();
1108 fCdelete++;
1109 }
1110 if (fEntryVminLFccMosNumber != nullptr) {
1111 delete fEntryVminLFccMosNumber;
1112 fCdelete++;
1113 }
1114 if (fLayoutVminLFccMosFieldText != nullptr) {
1115 delete fLayoutVminLFccMosFieldText;
1116 fCdelete++;
1117 }
1118 if (fLayoutVminLFccMosFrame != nullptr) {
1119 delete fLayoutVminLFccMosFrame;
1120 fCdelete++;
1121 }
1122
1123 if (fMenuLFccMos != nullptr) {
1124 delete fMenuLFccMos;
1125 fCdelete++;
1126 }
1127 if (fMenuBarLFccMos != nullptr) {
1128 fMenuBarLFccMos->Delete();
1129 fCdelete++;
1130 }
1131 if (fLayoutMenuBarLFccMos != nullptr) {
1132 delete fLayoutMenuBarLFccMos;
1133 fCdelete++;
1134 }
1135
1136 if (fLayoutVmmLFccMosFrame != nullptr) {
1137 delete fLayoutVmmLFccMosFrame;
1138 fCdelete++;
1139 }
1140
1141
1142 if (fVmmHFccMosFrame != nullptr) {
1143 delete fVmmHFccMosFrame;
1144 fCdelete++;
1145 }
1146
1147 if (fVmaxHFccMosFrame != nullptr) {
1148 delete fVmaxHFccMosFrame;
1149 fCdelete++;
1150 }
1151 if (fVmaxHFccMosBut != nullptr) {
1152 delete fVmaxHFccMosBut;
1153 fCdelete++;
1154 }
1155 if (fLayoutVmaxHFccMosBut != nullptr) {
1156 delete fLayoutVmaxHFccMosBut;
1157 fCdelete++;
1158 }
1159 if (fVmaxHFccMosText != nullptr) {
1160 fVmaxHFccMosText->Delete();
1161 fCdelete++;
1162 }
1163 if (fEntryVmaxHFccMosNumber != nullptr) {
1164 delete fEntryVmaxHFccMosNumber;
1165 fCdelete++;
1166 }
1167 if (fLayoutVmaxHFccMosFieldText != nullptr) {
1168 delete fLayoutVmaxHFccMosFieldText;
1169 fCdelete++;
1170 }
1171 if (fLayoutVmaxHFccMosFrame != nullptr) {
1172 delete fLayoutVmaxHFccMosFrame;
1173 fCdelete++;
1174 }
1175
1176 if (fVminHFccMosFrame != nullptr) {
1177 delete fVminHFccMosFrame;
1178 fCdelete++;
1179 }
1180 if (fVminHFccMosBut != nullptr) {
1181 delete fVminHFccMosBut;
1182 fCdelete++;
1183 }
1184 if (fLayoutVminHFccMosBut != nullptr) {
1185 delete fLayoutVminHFccMosBut;
1186 fCdelete++;
1187 }
1188 if (fVminHFccMosText != nullptr) {
1189 fVminHFccMosText->Delete();
1190 fCdelete++;
1191 }
1192 if (fEntryVminHFccMosNumber != nullptr) {
1193 delete fEntryVminHFccMosNumber;
1194 fCdelete++;
1195 }
1196 if (fLayoutVminHFccMosFieldText != nullptr) {
1197 delete fLayoutVminHFccMosFieldText;
1198 fCdelete++;
1199 }
1200 if (fLayoutVminHFccMosFrame != nullptr) {
1201 delete fLayoutVminHFccMosFrame;
1202 fCdelete++;
1203 }
1204
1205 if (fMenuHFccMos != nullptr) {
1206 delete fMenuHFccMos;
1207 fCdelete++;
1208 }
1209 if (fMenuBarHFccMos != nullptr) {
1210 fMenuBarHFccMos->Delete();
1211 fCdelete++;
1212 }
1213 if (fLayoutMenuBarHFccMos != nullptr) {
1214 delete fLayoutMenuBarHFccMos;
1215 fCdelete++;
1216 }
1217
1218 if (fLayoutVmmHFccMosFrame != nullptr) {
1219 delete fLayoutVmmHFccMosFrame;
1220 fCdelete++;
1221 }
1222
1223 if (fLayoutStexUpFrame != nullptr) {
1224 delete fLayoutStexUpFrame;
1225 fCdelete++;
1226 }
1227
1228
1229 if (fStinSpFrame != nullptr) {
1230 delete fStinSpFrame;
1231 fCdelete++;
1232 }
1233
1234
1235 if (fTxSubFrame != nullptr) {
1236 delete fTxSubFrame;
1237 fCdelete++;
1238 }
1239
1240 if (fStinAFrame != nullptr) {
1241 delete fStinAFrame;
1242 fCdelete++;
1243 }
1244 if (fStinABut != nullptr) {
1245 delete fStinABut;
1246 fCdelete++;
1247 }
1248 if (fLayoutStinABut != nullptr) {
1249 delete fLayoutStinABut;
1250 fCdelete++;
1251 }
1252 if (fEntryStinANumber != nullptr) {
1253 delete fEntryStinANumber;
1254 fCdelete++;
1255 }
1256 if (fStinAText != nullptr) {
1257 fStinAText->Delete();
1258 fCdelete++;
1259 }
1260 if (fLayoutStinAField != nullptr) {
1261 delete fLayoutStinAField;
1262 fCdelete++;
1263 }
1264
1265
1266 if (fButChNb != nullptr) {
1267 delete fButChNb;
1268 fCdelete++;
1269 }
1270 if (fLayoutChNbBut != nullptr) {
1271 delete fLayoutChNbBut;
1272 fCdelete++;
1273 }
1274
1275
1276 if (fMenuCorssAll != nullptr) {
1277 delete fMenuCorssAll;
1278 fCdelete++;
1279 }
1280 if (fMenuBarCorssAll != nullptr) {
1281 fMenuBarCorssAll->Delete();
1282 fCdelete++;
1283 }
1284
1285
1286
1287
1288 if (fLayoutTxSubFrame != nullptr) {
1289 delete fLayoutTxSubFrame;
1290 fCdelete++;
1291 }
1292
1293
1294
1295 if (fTySubFrame != nullptr) {
1296 delete fTySubFrame;
1297 fCdelete++;
1298 }
1299
1300 if (fStinBFrame != nullptr) {
1301 delete fStinBFrame;
1302 fCdelete++;
1303 }
1304 if (fStinBBut != nullptr) {
1305 delete fStinBBut;
1306 fCdelete++;
1307 }
1308 if (fLayoutStinBBut != nullptr) {
1309 delete fLayoutStinBBut;
1310 fCdelete++;
1311 }
1312 if (fEntryStinBNumber != nullptr) {
1313 delete fEntryStinBNumber;
1314 fCdelete++;
1315 }
1316 if (fStinBText != nullptr) {
1317 fStinBText->Delete();
1318 fCdelete++;
1319 }
1320 if (fLayoutStinBField != nullptr) {
1321 delete fLayoutStinBField;
1322 fCdelete++;
1323 }
1324
1325 if (fLayoutTySubFrame != nullptr) {
1326 delete fLayoutTySubFrame;
1327 fCdelete++;
1328 }
1329
1330 if (fLayoutStinSpFrame != nullptr) {
1331 delete fLayoutStinSpFrame;
1332 fCdelete++;
1333 }
1334
1335
1336
1337 if (fMenuLFCorcc != nullptr) {
1338 delete fMenuLFCorcc;
1339 fCdelete++;
1340 }
1341 if (fMenuBarLFCorcc != nullptr) {
1342 fMenuBarLFCorcc->Delete();
1343 fCdelete++;
1344 }
1345
1346 if (fMenuHFCorcc != nullptr) {
1347 delete fMenuHFCorcc;
1348 fCdelete++;
1349 }
1350 if (fMenuBarHFCorcc != nullptr) {
1351 fMenuBarHFCorcc->Delete();
1352 fCdelete++;
1353 }
1354
1355
1356 if (fChSpFrame != nullptr) {
1357 delete fChSpFrame;
1358 fCdelete++;
1359 }
1360
1361
1362
1363 if (fChSubFrame != nullptr) {
1364 delete fChSubFrame;
1365 fCdelete++;
1366 }
1367
1368 if (fChanFrame != nullptr) {
1369 delete fChanFrame;
1370 fCdelete++;
1371 }
1372 if (fChanBut != nullptr) {
1373 delete fChanBut;
1374 fCdelete++;
1375 }
1376 if (fLayoutChanBut != nullptr) {
1377 delete fLayoutChanBut;
1378 fCdelete++;
1379 }
1380 if (fEntryChanNumber != nullptr) {
1381 delete fEntryChanNumber;
1382 fCdelete++;
1383 }
1384 if (fChanText != nullptr) {
1385 fChanText->Delete();
1386 fCdelete++;
1387 }
1388 if (fLayoutChanField != nullptr) {
1389 delete fLayoutChanField;
1390 fCdelete++;
1391 }
1392
1393
1394 if (fMenuCorss != nullptr) {
1395 delete fMenuCorss;
1396 fCdelete++;
1397 }
1398 if (fMenuBarCorss != nullptr) {
1399 fMenuBarCorss->Delete();
1400 fCdelete++;
1401 }
1402
1403 if (fMenuCovss != nullptr) {
1404 delete fMenuCovss;
1405 fCdelete++;
1406 }
1407 if (fMenuBarCovss != nullptr) {
1408 fMenuBarCovss->Delete();
1409 fCdelete++;
1410 }
1411
1412 if (fMenuD_MSp_SpNb != nullptr) {
1413 delete fMenuD_MSp_SpNb;
1414 fCdelete++;
1415 }
1416 if (fMenuBarD_MSp_SpNb != nullptr) {
1417 fMenuBarD_MSp_SpNb->Delete();
1418 fCdelete++;
1419 }
1420 if (fMenuD_MSp_SpDs != nullptr) {
1421 delete fMenuD_MSp_SpDs;
1422 fCdelete++;
1423 }
1424 if (fMenuBarD_MSp_SpDs != nullptr) {
1425 fMenuBarD_MSp_SpDs->Delete();
1426 fCdelete++;
1427 }
1428
1429 if (fMenuD_SSp_SpNb != nullptr) {
1430 delete fMenuD_SSp_SpNb;
1431 fCdelete++;
1432 }
1433 if (fMenuBarD_SSp_SpNb != nullptr) {
1434 fMenuBarD_SSp_SpNb->Delete();
1435 fCdelete++;
1436 }
1437 if (fMenuD_SSp_SpDs != nullptr) {
1438 delete fMenuD_SSp_SpDs;
1439 fCdelete++;
1440 }
1441 if (fMenuBarD_SSp_SpDs != nullptr) {
1442 fMenuBarD_SSp_SpDs->Delete();
1443 fCdelete++;
1444 }
1445
1446 if (fLayoutChSubFrame != nullptr) {
1447 delete fLayoutChSubFrame;
1448 fCdelete++;
1449 }
1450
1451
1452 if (fSpSubFrame != nullptr) {
1453 delete fSpSubFrame;
1454 fCdelete++;
1455 }
1456 if (fSampFrame != nullptr) {
1457 delete fSampFrame;
1458 fCdelete++;
1459 }
1460 if (fSampBut != nullptr) {
1461 delete fSampBut;
1462 fCdelete++;
1463 }
1464 if (fLayoutSampBut != nullptr) {
1465 delete fLayoutSampBut;
1466 fCdelete++;
1467 }
1468 if (fEntrySampNumber != nullptr) {
1469 delete fEntrySampNumber;
1470 fCdelete++;
1471 }
1472 if (fSampText != nullptr) {
1473 fSampText->Delete();
1474 fCdelete++;
1475 }
1476 if (fLayoutSampField != nullptr) {
1477 delete fLayoutSampField;
1478 fCdelete++;
1479 }
1480 if (fLayoutSpSubFrame != nullptr) {
1481 delete fLayoutSpSubFrame;
1482 fCdelete++;
1483 }
1484
1485
1486
1487
1488
1489 if (fLayoutChSpFrame != nullptr) {
1490 delete fLayoutChSpFrame;
1491 fCdelete++;
1492 }
1493
1494
1495 if (fMenuAdcProj != nullptr) {
1496 delete fMenuAdcProj;
1497 fCdelete++;
1498 }
1499 if (fMenuBarAdcProj != nullptr) {
1500 fMenuBarAdcProj->Delete();
1501 fCdelete++;
1502 }
1503 if (fLayoutMenuBarAdcProj != nullptr) {
1504 delete fLayoutMenuBarAdcProj;
1505 fCdelete++;
1506 }
1507
1508
1509 if (fRulFrame != nullptr) {
1510 delete fRulFrame;
1511 fCdelete++;
1512 }
1513 if (fRulBut != nullptr) {
1514 delete fRulBut;
1515 fCdelete++;
1516 }
1517 if (fLayoutRulBut != nullptr) {
1518 delete fLayoutRulBut;
1519 fCdelete++;
1520 }
1521 if (fEntryRulNumber != nullptr) {
1522 delete fEntryRulNumber;
1523 fCdelete++;
1524 }
1525 if (fRulText != nullptr) {
1526 fRulText->Delete();
1527 fCdelete++;
1528 }
1529 if (fLayoutRulFieldText != nullptr) {
1530 delete fLayoutRulFieldText;
1531 fCdelete++;
1532 }
1533 if (fLayoutRulFieldFrame != nullptr) {
1534 delete fLayoutRulFieldFrame;
1535 fCdelete++;
1536 }
1537
1538
1539 if (fMenuHistory != nullptr) {
1540 delete fMenuHistory;
1541 fCdelete++;
1542 }
1543 if (fMenuBarHistory != nullptr) {
1544 fMenuBarHistory->Delete();
1545 fCdelete++;
1546 }
1547
1548
1549 if (fLinLogFrame != nullptr) {
1550 delete fLinLogFrame;
1551 fCdelete++;
1552 }
1553
1554
1555 if (fButLogx != nullptr) {
1556 delete fButLogx;
1557 fCdelete++;
1558 }
1559 if (fLayoutLogxBut != nullptr) {
1560 delete fLayoutLogxBut;
1561 fCdelete++;
1562 }
1563
1564 if (fButLogy != nullptr) {
1565 delete fButLogy;
1566 fCdelete++;
1567 }
1568 if (fLayoutLogyBut != nullptr) {
1569 delete fLayoutLogyBut;
1570 fCdelete++;
1571 }
1572
1573 if (fButProjy != nullptr) {
1574 delete fButProjy;
1575 fCdelete++;
1576 }
1577 if (fLayoutProjyBut != nullptr) {
1578 delete fLayoutProjyBut;
1579 fCdelete++;
1580 }
1581
1582
1583 if (fGentFrame != nullptr) {
1584 delete fGentFrame;
1585 fCdelete++;
1586 }
1587 if (fGentBut != nullptr) {
1588 delete fGentBut;
1589 fCdelete++;
1590 }
1591 if (fLayoutGentBut != nullptr) {
1592 delete fLayoutGentBut;
1593 fCdelete++;
1594 }
1595 if (fEntryGentNumber != nullptr) {
1596 delete fEntryGentNumber;
1597 fCdelete++;
1598 }
1599 if (fGentText != nullptr) {
1600 fGentText->Delete();
1601 fCdelete++;
1602 }
1603 if (fLayoutGentFieldText != nullptr) {
1604 delete fLayoutGentFieldText;
1605 fCdelete++;
1606 }
1607 if (fLayoutGentFieldFrame != nullptr) {
1608 delete fLayoutGentFieldFrame;
1609 fCdelete++;
1610 }
1611
1612
1613 if (fColorExitFrame != nullptr) {
1614 delete fColorExitFrame;
1615 fCdelete++;
1616 }
1617 if (fLayoutColorExitFrame != nullptr) {
1618 delete fLayoutColorExitFrame;
1619 fCdelete++;
1620 }
1621
1622
1623 if (fButColPal != nullptr) {
1624 delete fButColPal;
1625 fCdelete++;
1626 }
1627 if (fLayoutColPalBut != nullptr) {
1628 delete fLayoutColPalBut;
1629 fCdelete++;
1630 }
1631
1632 if (fButExit != nullptr) {
1633 delete fButExit;
1634 fCdelete++;
1635 }
1636 if (fLayoutExitBut != nullptr) {
1637 delete fLayoutExitBut;
1638 fCdelete++;
1639 }
1640
1641
1642 if (fLastFrame != nullptr) {
1643 delete fLastFrame;
1644 fCdelete++;
1645 }
1646
1647
1648 if (fButClone != nullptr) {
1649 delete fButClone;
1650 fCdelete++;
1651 }
1652 if (fLayoutCloneBut != nullptr) {
1653 delete fLayoutCloneBut;
1654 fCdelete++;
1655 }
1656
1657
1658 if (fButRoot != nullptr) {
1659 delete fButRoot;
1660 fCdelete++;
1661 }
1662 if (fLayoutRootBut != nullptr) {
1663 delete fLayoutRootBut;
1664 fCdelete++;
1665 }
1666
1667
1668 if (fButHelp != nullptr) {
1669 delete fButHelp;
1670 fCdelete++;
1671 }
1672 if (fLayoutHelpBut != nullptr) {
1673 delete fLayoutHelpBut;
1674 fCdelete++;
1675 }
1676
1677
1678
1679 if (fCnew != fCdelete) {
1680 std::cout << "*TEcnaGui> WRONG MANAGEMENT OF ALLOCATIONS: fCnew = " << fCnew << ", fCdelete = " << fCdelete
1681 << std::endl;
1682 } else {
1683
1684
1685 }
1686
1687 #endif
1688
1689 #define MGRA
1690 #ifndef MGRA
1691 if (fCnewRoot != fCdeleteRoot) {
1692 std::cout << "*TEcnaGui> WRONG MANAGEMENT OF ROOT ALLOCATIONS: fCnewRoot = " << fCnewRoot
1693 << ", fCdeleteRoot = " << fCdeleteRoot << std::endl;
1694 } else {
1695 std::cout << "*TEcnaGui> BRAVO! GOOD MANAGEMENT OF ROOT ALLOCATIONS:"
1696 << " fCnewRoot = " << fCnewRoot << ", fCdeleteRoot = " << fCdeleteRoot << std::endl;
1697 }
1698 #endif
1699
1700
1701
1702
1703
1704 }
1705
1706
1707
1708
1709
1710
1711
1712
1713 TEcnaGui::TEcnaGui() { Init(); }
1714
1715 TEcnaGui::TEcnaGui(TEcnaObject* pObjectManager, const TString& SubDet, const TGWindow* p, UInt_t w, UInt_t h)
1716 : TGMainFrame(p, w, h) {
1717
1718
1719
1720
1721
1722 Init();
1723
1724 fObjectManager = (TEcnaObject*)pObjectManager;
1725 Long_t i_this = (Long_t)this;
1726 pObjectManager->RegisterPointer("TEcnaGui", i_this);
1727
1728 Int_t MaxCar = fgMaxCar;
1729 fSubDet.Resize(MaxCar);
1730 fSubDet = SubDet.Data();
1731
1732
1733 fCnaParCout = nullptr;
1734 Long_t iCnaParCout = pObjectManager->GetPointerValue("TEcnaParCout");
1735 if (iCnaParCout == 0) {
1736 fCnaParCout = new TEcnaParCout(pObjectManager);
1737 } else {
1738 fCnaParCout = (TEcnaParCout*)iCnaParCout;
1739 }
1740
1741
1742
1743
1744
1745
1746
1747
1748 fCnaParPaths = nullptr;
1749 Long_t iCnaParPaths = pObjectManager->GetPointerValue("TEcnaParPaths");
1750 if (iCnaParPaths == 0) {
1751 fCnaParPaths = new TEcnaParPaths(pObjectManager);
1752 } else {
1753 fCnaParPaths = (TEcnaParPaths*)iCnaParPaths;
1754 }
1755
1756 fCnaParPaths->GetPaths();
1757 fCnaParPaths->GetCMSSWParameters();
1758
1759
1760 fEcal = nullptr;
1761 Long_t iParEcal = pObjectManager->GetPointerValue("TEcnaParEcal");
1762 if (iParEcal == 0) {
1763 fEcal = new TEcnaParEcal(pObjectManager, SubDet.Data());
1764 } else {
1765 fEcal = (TEcnaParEcal*)iParEcal;
1766 }
1767
1768
1769 fEcalNumbering = nullptr;
1770 Long_t iEcalNumbering = pObjectManager->GetPointerValue("TEcnaNumbering");
1771 if (iEcalNumbering == 0) {
1772 fEcalNumbering = new TEcnaNumbering(pObjectManager, SubDet.Data());
1773 } else {
1774 fEcalNumbering = (TEcnaNumbering*)iEcalNumbering;
1775 }
1776
1777
1778 fCnaParHistos = nullptr;
1779 Long_t iCnaParHistos = pObjectManager->GetPointerValue("TEcnaParHistos");
1780 if (iCnaParHistos == 0) {
1781 fCnaParHistos = new TEcnaParHistos(pObjectManager, SubDet.Data());
1782 } else {
1783 fCnaParHistos = (TEcnaParHistos*)iCnaParHistos;
1784 }
1785
1786
1787 fCnaWrite = nullptr;
1788 Long_t iCnaWrite = pObjectManager->GetPointerValue("TEcnaWrite");
1789 if (iCnaWrite == 0) {
1790 fCnaWrite = new TEcnaWrite(pObjectManager, SubDet.Data());
1791 } else {
1792 fCnaWrite = (TEcnaWrite*)iCnaWrite;
1793 }
1794
1795
1796
1797
1798
1799
1800 fHistos = nullptr;
1801 Long_t iHistos = pObjectManager->GetPointerValue("TEcnaHistos");
1802 if (iHistos == 0) {
1803 fHistos = new TEcnaHistos(pObjectManager, SubDet.Data());
1804 } else {
1805 fHistos = (TEcnaHistos*)iHistos;
1806 }
1807
1808
1809
1810 InitGuiParameters();
1811 }
1812
1813 void TEcnaGui::Init() {
1814
1815 fCnew = 0;
1816 fCdelete = 0;
1817 fCnewRoot = 0;
1818 fCdeleteRoot = 0;
1819
1820 fgMaxCar = (Int_t)512;
1821 fTTBELL = '\007';
1822 }
1823
1824 void TEcnaGui::InitGuiParameters() {
1825
1826
1827
1828
1829 if (fSubDet == "EB") {
1830 fStexName = "SM";
1831 fStinName = "tower";
1832 }
1833 if (fSubDet == "EE") {
1834 fStexName = "Dee";
1835 fStinName = "SC";
1836 }
1837
1838
1839 InitKeys();
1840
1841
1842 fCnaCommand = 0;
1843 fCnaError = 0;
1844
1845 fConfirmSubmit = 0;
1846 fConfirmRunNumber = 0;
1847 fConfirmCalcScc = 0;
1848
1849
1850
1851 fLayoutGeneral = nullptr;
1852 fLayoutBottLeft = nullptr;
1853 fLayoutBottRight = nullptr;
1854 fLayoutTopLeft = nullptr;
1855 fLayoutTopRight = nullptr;
1856 fLayoutCenterYLeft = nullptr;
1857 fLayoutCenterYRight = nullptr;
1858
1859 fVoidFrame = nullptr;
1860
1861
1862 fAnaNorsRunFrame = nullptr;
1863 fLayoutAnaNorsRunFrame = nullptr;
1864
1865 fAnaFrame = nullptr;
1866 fAnaBut = nullptr;
1867 fLayoutAnaBut = nullptr;
1868 fAnaText = nullptr;
1869 fEntryAnaNumber = nullptr;
1870 fLayoutAnaField = nullptr;
1871
1872 fFevFrame = nullptr;
1873 fFevBut = nullptr;
1874 fLayoutFevBut = nullptr;
1875 fFevText = nullptr;
1876 fEntryFevNumber = nullptr;
1877 fLayoutFevFieldText = nullptr;
1878 fLayoutFevFieldFrame = nullptr;
1879
1880 fRunFrame = nullptr;
1881 fRunBut = nullptr;
1882 fLayoutRunBut = nullptr;
1883 fRunText = nullptr;
1884 fEntryRunNumber = nullptr;
1885 fLayoutRunField = nullptr;
1886
1887
1888 fFevLevStexFrame = nullptr;
1889 fLayoutFevLevStexFrame = nullptr;
1890
1891 fNorsFrame = nullptr;
1892 fNorsBut = nullptr;
1893 fLayoutNorsBut = nullptr;
1894 fNorsText = nullptr;
1895 fEntryNorsNumber = nullptr;
1896 fLayoutNorsField = nullptr;
1897
1898 fLevFrame = nullptr;
1899 fLevBut = nullptr;
1900 fLayoutLevBut = nullptr;
1901 fLevText = nullptr;
1902 fEntryLevNumber = nullptr;
1903 fLayoutLevFieldText = nullptr;
1904 fLayoutLevFieldFrame = nullptr;
1905
1906 fMenuClean = nullptr;
1907 fMenuBarClean = nullptr;
1908
1909 fMenuSubmit = nullptr;
1910 fMenuBarSubmit = nullptr;
1911
1912
1913 fCompStRqFrame = nullptr;
1914 fLayoutCompStRqFrame = nullptr;
1915
1916
1917 fStexFrame = nullptr;
1918 fStexBut = nullptr;
1919 fLayoutStexBut = nullptr;
1920 fStexText = nullptr;
1921 fEntryStexNumber = nullptr;
1922 fLayoutStexFieldText = nullptr;
1923 fLayoutStexFieldFrame = nullptr;
1924
1925
1926 fRevFrame = nullptr;
1927 fRevBut = nullptr;
1928 fLayoutRevBut = nullptr;
1929 fRevText = nullptr;
1930 fEntryRevNumber = nullptr;
1931 fLayoutRevFieldText = nullptr;
1932 fLayoutRevFieldFrame = nullptr;
1933
1934
1935 fCompStnbFrame = nullptr;
1936 fLayoutCompStnbFrame = nullptr;
1937
1938
1939 fButStexNb = nullptr;
1940 fLayoutStexNbBut = nullptr;
1941
1942
1943 fNbSampForCalcFrame = nullptr;
1944 fNbSampForCalcBut = nullptr;
1945 fLayoutNbSampForCalcBut = nullptr;
1946 fNbSampForCalcText = nullptr;
1947 fEntryNbSampForCalcNumber = nullptr;
1948 fLayoutNbSampForCalcFieldText = nullptr;
1949 fLayoutNbSampForCalcFieldFrame = nullptr;
1950
1951
1952 fMenuComput = nullptr;
1953 fMenuBarComput = nullptr;
1954
1955
1956
1957
1958 fStexUpFrame = nullptr;
1959
1960
1961
1962
1963 fVmmD_NOE_ChNbFrame = nullptr;
1964
1965 fVmaxD_NOE_ChNbFrame = nullptr;
1966 fVmaxD_NOE_ChNbBut = nullptr;
1967 fLayoutVmaxD_NOE_ChNbBut = nullptr;
1968 fVmaxD_NOE_ChNbText = nullptr;
1969 fEntryVmaxD_NOE_ChNbNumber = nullptr;
1970 fLayoutVmaxD_NOE_ChNbFieldText = nullptr;
1971 fLayoutVmaxD_NOE_ChNbFrame = nullptr;
1972
1973 fVminD_NOE_ChNbFrame = nullptr;
1974 fVminD_NOE_ChNbBut = nullptr;
1975 fLayoutVminD_NOE_ChNbBut = nullptr;
1976 fVminD_NOE_ChNbText = nullptr;
1977 fEntryVminD_NOE_ChNbNumber = nullptr;
1978 fLayoutVminD_NOE_ChNbFieldText = nullptr;
1979 fLayoutVminD_NOE_ChNbFrame = nullptr;
1980
1981 fMenuD_NOE_ChNb = nullptr;
1982 fMenuBarD_NOE_ChNb = nullptr;
1983 fLayoutMenuBarD_NOE_ChNb = nullptr;
1984
1985 fLayoutVmmD_NOE_ChNbFrame = nullptr;
1986
1987
1988 fVmmD_Ped_ChNbFrame = nullptr;
1989
1990 fVmaxD_Ped_ChNbFrame = nullptr;
1991 fVmaxD_Ped_ChNbBut = nullptr;
1992 fLayoutVmaxD_Ped_ChNbBut = nullptr;
1993 fVmaxD_Ped_ChNbText = nullptr;
1994 fEntryVmaxD_Ped_ChNbNumber = nullptr;
1995 fLayoutVmaxD_Ped_ChNbFieldText = nullptr;
1996 fLayoutVmaxD_Ped_ChNbFrame = nullptr;
1997
1998 fVminD_Ped_ChNbFrame = nullptr;
1999 fVminD_Ped_ChNbBut = nullptr;
2000 fLayoutVminD_Ped_ChNbBut = nullptr;
2001 fVminD_Ped_ChNbText = nullptr;
2002 fEntryVminD_Ped_ChNbNumber = nullptr;
2003 fLayoutVminD_Ped_ChNbFieldText = nullptr;
2004 fLayoutVminD_Ped_ChNbFrame = nullptr;
2005
2006 fMenuD_Ped_ChNb = nullptr;
2007 fMenuBarD_Ped_ChNb = nullptr;
2008 fLayoutMenuBarD_Ped_ChNb = nullptr;
2009
2010 fLayoutVmmD_Ped_ChNbFrame = nullptr;
2011
2012
2013 fVmmD_TNo_ChNbFrame = nullptr;
2014
2015 fVmaxD_TNo_ChNbFrame = nullptr;
2016 fVmaxD_TNo_ChNbBut = nullptr;
2017 fLayoutVmaxD_TNo_ChNbBut = nullptr;
2018 fVmaxD_TNo_ChNbText = nullptr;
2019 fEntryVmaxD_TNo_ChNbNumber = nullptr;
2020 fLayoutVmaxD_TNo_ChNbFieldText = nullptr;
2021
2022 fVminD_TNo_ChNbFrame = nullptr;
2023 fVminD_TNo_ChNbBut = nullptr;
2024 fLayoutVminD_TNo_ChNbBut = nullptr;
2025 fVminD_TNo_ChNbText = nullptr;
2026 fEntryVminD_TNo_ChNbNumber = nullptr;
2027 fLayoutVminD_TNo_ChNbFieldText = nullptr;
2028 fLayoutVminD_TNo_ChNbFrame = nullptr;
2029
2030 fMenuD_TNo_ChNb = nullptr;
2031 fMenuBarD_TNo_ChNb = nullptr;
2032 fLayoutMenuBarD_TNo_ChNb = nullptr;
2033 fLayoutVmaxD_TNo_ChNbFrame = nullptr;
2034
2035 fLayoutVmmD_TNo_ChNbFrame = nullptr;
2036
2037
2038 fVmmD_MCs_ChNbFrame = nullptr;
2039
2040 fVmaxD_MCs_ChNbFrame = nullptr;
2041 fVmaxD_MCs_ChNbBut = nullptr;
2042 fLayoutVmaxD_MCs_ChNbBut = nullptr;
2043 fVmaxD_MCs_ChNbText = nullptr;
2044 fEntryVmaxD_MCs_ChNbNumber = nullptr;
2045 fLayoutVmaxD_MCs_ChNbFieldText = nullptr;
2046 fLayoutVmaxD_MCs_ChNbFrame = nullptr;
2047
2048 fVminD_MCs_ChNbFrame = nullptr;
2049 fVminD_MCs_ChNbBut = nullptr;
2050 fLayoutVminD_MCs_ChNbBut = nullptr;
2051 fVminD_MCs_ChNbText = nullptr;
2052 fEntryVminD_MCs_ChNbNumber = nullptr;
2053 fLayoutVminD_MCs_ChNbFieldText = nullptr;
2054 fLayoutVminD_MCs_ChNbFrame = nullptr;
2055
2056 fMenuD_MCs_ChNb = nullptr;
2057 fMenuBarD_MCs_ChNb = nullptr;
2058 fLayoutMenuBarD_MCs_ChNb = nullptr;
2059 fLayoutVmmD_MCs_ChNbFrame = nullptr;
2060
2061
2062 fStexHozFrame = nullptr;
2063
2064
2065 fVmmD_LFN_ChNbFrame = nullptr;
2066
2067 fVmaxD_LFN_ChNbFrame = nullptr;
2068 fVmaxD_LFN_ChNbBut = nullptr;
2069 fLayoutVmaxD_LFN_ChNbBut = nullptr;
2070 fVmaxD_LFN_ChNbText = nullptr;
2071 fEntryVmaxD_LFN_ChNbNumber = nullptr;
2072 fLayoutVmaxD_LFN_ChNbFieldText = nullptr;
2073 fLayoutVmaxD_LFN_ChNbFrame = nullptr;
2074
2075 fVminD_LFN_ChNbFrame = nullptr;
2076 fVminD_LFN_ChNbBut = nullptr;
2077 fLayoutVminD_LFN_ChNbBut = nullptr;
2078 fVminD_LFN_ChNbText = nullptr;
2079 fEntryVminD_LFN_ChNbNumber = nullptr;
2080 fLayoutVminD_LFN_ChNbFieldText = nullptr;
2081 fLayoutVminD_LFN_ChNbFrame = nullptr;
2082
2083 fMenuD_LFN_ChNb = nullptr;
2084 fMenuBarD_LFN_ChNb = nullptr;
2085 fLayoutMenuBarD_LFN_ChNb = nullptr;
2086
2087 fLayoutVmmD_LFN_ChNbFrame = nullptr;
2088
2089
2090 fVmmD_HFN_ChNbFrame = nullptr;
2091
2092 fVmaxD_HFN_ChNbFrame = nullptr;
2093 fVmaxD_HFN_ChNbBut = nullptr;
2094 fLayoutVmaxD_HFN_ChNbBut = nullptr;
2095 fVmaxD_HFN_ChNbText = nullptr;
2096 fEntryVmaxD_HFN_ChNbNumber = nullptr;
2097 fLayoutVmaxD_HFN_ChNbFieldText = nullptr;
2098 fLayoutVmaxD_HFN_ChNbFrame = nullptr;
2099
2100 fVminD_HFN_ChNbFrame = nullptr;
2101 fVminD_HFN_ChNbBut = nullptr;
2102 fLayoutVminD_HFN_ChNbBut = nullptr;
2103 fVminD_HFN_ChNbText = nullptr;
2104 fEntryVminD_HFN_ChNbNumber = nullptr;
2105 fLayoutVminD_HFN_ChNbFieldText = nullptr;
2106 fLayoutVminD_HFN_ChNbFrame = nullptr;
2107
2108 fMenuD_HFN_ChNb = nullptr;
2109 fMenuBarD_HFN_ChNb = nullptr;
2110 fLayoutMenuBarD_HFN_ChNb = nullptr;
2111
2112 fLayoutVmmD_HFN_ChNbFrame = nullptr;
2113
2114
2115 fVmmD_SCs_ChNbFrame = nullptr;
2116
2117 fVmaxD_SCs_ChNbFrame = nullptr;
2118 fVmaxD_SCs_ChNbBut = nullptr;
2119 fLayoutVmaxD_SCs_ChNbBut = nullptr;
2120 fVmaxD_SCs_ChNbText = nullptr;
2121 fEntryVmaxD_SCs_ChNbNumber = nullptr;
2122 fLayoutVmaxD_SCs_ChNbFieldText = nullptr;
2123 fLayoutVmaxD_SCs_ChNbFrame = nullptr;
2124
2125 fVminD_SCs_ChNbFrame = nullptr;
2126 fVminD_SCs_ChNbBut = nullptr;
2127 fLayoutVminD_SCs_ChNbBut = nullptr;
2128 fVminD_SCs_ChNbText = nullptr;
2129 fEntryVminD_SCs_ChNbNumber = nullptr;
2130 fLayoutVminD_SCs_ChNbFieldText = nullptr;
2131 fLayoutVminD_SCs_ChNbFrame = nullptr;
2132
2133 fMenuD_SCs_ChNb = nullptr;
2134 fMenuBarD_SCs_ChNb = nullptr;
2135 fLayoutMenuBarD_SCs_ChNb = nullptr;
2136
2137 fLayoutVmmD_SCs_ChNbFrame = nullptr;
2138
2139
2140
2141
2142 fVmmLFccMosFrame = nullptr;
2143
2144 fVmaxLFccMosFrame = nullptr;
2145 fVmaxLFccMosBut = nullptr;
2146 fLayoutVmaxLFccMosBut = nullptr;
2147 fVmaxLFccMosText = nullptr;
2148 fEntryVmaxLFccMosNumber = nullptr;
2149 fLayoutVmaxLFccMosFieldText = nullptr;
2150 fLayoutVmaxLFccMosFrame = nullptr;
2151
2152 fVminLFccMosFrame = nullptr;
2153 fVminLFccMosBut = nullptr;
2154 fLayoutVminLFccMosBut = nullptr;
2155 fVminLFccMosText = nullptr;
2156 fEntryVminLFccMosNumber = nullptr;
2157 fLayoutVminLFccMosFieldText = nullptr;
2158 fLayoutVminLFccMosFrame = nullptr;
2159
2160 fMenuLFccMos = nullptr;
2161 fMenuBarLFccMos = nullptr;
2162 fLayoutMenuBarLFccMos = nullptr;
2163
2164 fLayoutVmmLFccMosFrame = nullptr;
2165
2166
2167 fVmmHFccMosFrame = nullptr;
2168
2169 fVmaxHFccMosFrame = nullptr;
2170 fVmaxHFccMosBut = nullptr;
2171 fLayoutVmaxHFccMosBut = nullptr;
2172 fVmaxHFccMosText = nullptr;
2173 fEntryVmaxHFccMosNumber = nullptr;
2174 fLayoutVmaxHFccMosFieldText = nullptr;
2175 fLayoutVmaxHFccMosFrame = nullptr;
2176
2177 fVminHFccMosFrame = nullptr;
2178 fVminHFccMosBut = nullptr;
2179 fLayoutVminHFccMosBut = nullptr;
2180 fVminHFccMosText = nullptr;
2181 fEntryVminHFccMosNumber = nullptr;
2182 fLayoutVminHFccMosFieldText = nullptr;
2183 fLayoutVminHFccMosFrame = nullptr;
2184
2185 fMenuHFccMos = nullptr;
2186 fMenuBarHFccMos = nullptr;
2187 fLayoutMenuBarHFccMos = nullptr;
2188
2189 fLayoutVmmHFccMosFrame = nullptr;
2190
2191
2192 fVmmLHFccFrame = nullptr;
2193
2194 fVmaxLHFccFrame = nullptr;
2195 fVmaxLHFccBut = nullptr;
2196 fLayoutVmaxLHFccBut = nullptr;
2197 fVmaxLHFccText = nullptr;
2198 fEntryVmaxLHFccNumber = nullptr;
2199 fLayoutVmaxLHFccFieldText = nullptr;
2200 fLayoutVmaxLHFccFrame = nullptr;
2201
2202 fVminLHFccFrame = nullptr;
2203 fVminLHFccBut = nullptr;
2204 fLayoutVminLHFccBut = nullptr;
2205 fVminLHFccText = nullptr;
2206 fEntryVminLHFccNumber = nullptr;
2207 fLayoutVminLHFccFieldText = nullptr;
2208 fLayoutVminLHFccFrame = nullptr;
2209
2210 fMenuLHFcc = nullptr;
2211 fMenuBarLHFcc = nullptr;
2212 fLayoutMenuBarLHFcc = nullptr;
2213
2214 fLayoutVmmLHFccFrame = nullptr;
2215
2216 fLayoutStexHozFrame = nullptr;
2217
2218 fLayoutStexUpFrame = nullptr;
2219
2220
2221 fStinSpFrame = nullptr;
2222 fLayoutStinSpFrame = nullptr;
2223
2224
2225
2226 fTxSubFrame = nullptr;
2227 fLayoutTxSubFrame = nullptr;
2228
2229 fStinAFrame = nullptr;
2230 fStinABut = nullptr;
2231 fLayoutStinABut = nullptr;
2232
2233 fStinAText = nullptr;
2234 fEntryStinANumber = nullptr;
2235 fLayoutStinAField = nullptr;
2236
2237
2238 fButChNb = nullptr;
2239 fLayoutChNbBut = nullptr;
2240
2241
2242 fMenuCorssAll = nullptr;
2243 fMenuBarCorssAll = nullptr;
2244
2245
2246
2247
2248
2249 fTySubFrame = nullptr;
2250 fLayoutTySubFrame = nullptr;
2251
2252 fStinBFrame = nullptr;
2253 fStinBBut = nullptr;
2254 fLayoutStinBBut = nullptr;
2255
2256 fStinBText = nullptr;
2257 fEntryStinBNumber = nullptr;
2258 fLayoutStinBField = nullptr;
2259
2260
2261 fMenuBarLFCorcc = nullptr;
2262 fMenuLFCorcc = nullptr;
2263
2264 fMenuBarHFCorcc = nullptr;
2265 fMenuHFCorcc = nullptr;
2266
2267
2268 fChSpFrame = nullptr;
2269 fLayoutChSpFrame = nullptr;
2270
2271
2272 fChanFrame = nullptr;
2273 fChanBut = nullptr;
2274 fChanText = nullptr;
2275 fEntryChanNumber = nullptr;
2276 fLayoutChanBut = nullptr;
2277 fLayoutChanField = nullptr;
2278
2279 fChSubFrame = nullptr;
2280 fLayoutChSubFrame = nullptr;
2281
2282
2283 fMenuCorss = nullptr;
2284 fMenuBarCorss = nullptr;
2285
2286 fMenuCovss = nullptr;
2287 fMenuBarCovss = nullptr;
2288
2289 fMenuD_MSp_SpNb = nullptr;
2290 fMenuBarD_MSp_SpNb = nullptr;
2291 fMenuD_MSp_SpDs = nullptr;
2292 fMenuBarD_MSp_SpDs = nullptr;
2293
2294 fMenuD_SSp_SpNb = nullptr;
2295 fMenuBarD_SSp_SpNb = nullptr;
2296 fMenuD_SSp_SpDs = nullptr;
2297 fMenuBarD_SSp_SpDs = nullptr;
2298
2299
2300 fSampFrame = nullptr;
2301 fSampBut = nullptr;
2302
2303 fSampText = nullptr;
2304 fEntrySampNumber = nullptr;
2305 fLayoutSampBut = nullptr;
2306 fLayoutSampField = nullptr;
2307
2308 fSpSubFrame = nullptr;
2309 fLayoutSpSubFrame = nullptr;
2310
2311
2312
2313
2314
2315
2316 fRulFrame = nullptr;
2317 fRulBut = nullptr;
2318 fLayoutRulBut = nullptr;
2319 fRulText = nullptr;
2320 fEntryRulNumber = nullptr;
2321 fLayoutRulFieldText = nullptr;
2322 fLayoutRulFieldFrame = nullptr;
2323
2324
2325 fMenuHistory = nullptr;
2326 fMenuBarHistory = nullptr;
2327
2328
2329 fMenuAdcProj = nullptr;
2330 fMenuBarAdcProj = nullptr;
2331 fLayoutMenuBarAdcProj = nullptr;
2332
2333
2334 fLinLogFrame = nullptr;
2335
2336
2337 fButLogx = nullptr;
2338 fLayoutLogxBut = nullptr;
2339
2340 fButLogy = nullptr;
2341 fLayoutLogyBut = nullptr;
2342
2343 fButProjy = nullptr;
2344 fLayoutProjyBut = nullptr;
2345
2346
2347 fGentFrame = nullptr;
2348 fGentBut = nullptr;
2349 fLayoutGentBut = nullptr;
2350 fGentText = nullptr;
2351 fEntryGentNumber = nullptr;
2352 fLayoutGentFieldText = nullptr;
2353 fLayoutGentFieldFrame = nullptr;
2354
2355
2356
2357 fButColPal = nullptr;
2358 fLayoutColPalBut = nullptr;
2359
2360 fButExit = nullptr;
2361 fLayoutExitBut = nullptr;
2362
2363
2364 fLastFrame = nullptr;
2365
2366
2367 fButClone = nullptr;
2368 fLayoutCloneBut = nullptr;
2369
2370
2371 fButRoot = nullptr;
2372 fLayoutRootBut = nullptr;
2373
2374
2375 fButHelp = nullptr;
2376 fLayoutHelpBut = nullptr;
2377
2378
2379
2380
2381
2382
2383 fAnaButC = 1;
2384 fRunButC = 2;
2385
2386
2387
2388 fMenuSubmit8nmC = 2011;
2389 fMenuSubmit1nhC = 2012;
2390 fMenuSubmit8nhC = 2013;
2391 fMenuSubmit1ndC = 2014;
2392 fMenuSubmit1nwC = 2015;
2393
2394 fMenuCleanSubC = 3011;
2395 fMenuCleanJobC = 3012;
2396 fMenuCleanPythC = 3013;
2397 fMenuCleanAllC = 3014;
2398
2399 fMenuComputStdC = 3111;
2400 fMenuComputSccC = 3112;
2401 fMenuComputSttC = 3113;
2402
2403 fMenuD_NOE_ChNbFullC = 600101;
2404 fMenuD_NOE_ChNbSameC = 600102;
2405 fMenuD_NOE_ChNbAsciiFileC = 600104;
2406
2407 fMenuD_Ped_ChNbFullC = 123051;
2408 fMenuD_Ped_ChNbSameC = 123052;
2409 fMenuD_Ped_ChNbAsciiFileC = 123054;
2410
2411 fMenuD_TNo_ChNbFullC = 123061;
2412 fMenuD_TNo_ChNbSameC = 123062;
2413 fMenuD_TNo_ChNbSamePC = 123063;
2414 fMenuD_TNo_ChNbAsciiFileC = 123064;
2415
2416 fMenuD_MCs_ChNbFullC = 123071;
2417 fMenuD_MCs_ChNbSameC = 123072;
2418 fMenuD_MCs_ChNbSamePC = 123073;
2419 fMenuD_MCs_ChNbAsciiFileC = 123074;
2420
2421 fMenuD_LFN_ChNbFullC = 800051;
2422 fMenuD_LFN_ChNbSameC = 800052;
2423 fMenuD_LFN_ChNbSamePC = 800053;
2424 fMenuD_LFN_ChNbAsciiFileC = 800054;
2425
2426 fMenuD_HFN_ChNbFullC = 800061;
2427 fMenuD_HFN_ChNbSameC = 800062;
2428 fMenuD_HFN_ChNbSamePC = 800063;
2429 fMenuD_HFN_ChNbAsciiFileC = 800064;
2430
2431 fMenuD_SCs_ChNbFullC = 800071;
2432 fMenuD_SCs_ChNbSameC = 800072;
2433 fMenuD_SCs_ChNbSamePC = 800073;
2434 fMenuD_SCs_ChNbAsciiFileC = 800074;
2435
2436 fMenuLFccColzC = 70010;
2437 fMenuLFccLegoC = 70011;
2438 fMenuHFccColzC = 70020;
2439 fMenuHFccLegoC = 70021;
2440
2441 fMenuLFccMosColzC = 70110;
2442 fMenuLFccMosLegoC = 70111;
2443 fMenuHFccMosColzC = 70120;
2444 fMenuHFccMosLegoC = 70121;
2445
2446 fMenuD_NOE_ChNbHocoVecoC = 524051;
2447 fMenuD_Ped_ChNbHocoVecoC = 524052;
2448 fMenuD_TNo_ChNbHocoVecoC = 524053;
2449 fMenuD_MCs_ChNbHocoVecoC = 524054;
2450 fMenuD_LFN_ChNbHocoVecoC = 524055;
2451 fMenuD_HFN_ChNbHocoVecoC = 524056;
2452 fMenuD_SCs_ChNbHocoVecoC = 524057;
2453
2454 fStinAButC = 90009;
2455 fStinBButC = 90010;
2456
2457 fChanButC = 6;
2458 fSampButC = 7;
2459
2460 fMenuCorssAllColzC = 10;
2461 fMenuCovssAllColzC = 11;
2462
2463 fMenuCorssColzC = 221;
2464 fMenuCorssBoxC = 222;
2465 fMenuCorssTextC = 223;
2466 fMenuCorssContzC = 224;
2467 fMenuCorssLegoC = 225;
2468 fMenuCorssSurf1C = 226;
2469 fMenuCorssSurf2C = 227;
2470 fMenuCorssSurf3C = 228;
2471 fMenuCorssSurf4C = 229;
2472 fMenuCorssAsciiFileC = 220;
2473
2474 fMenuCovssColzC = 231;
2475 fMenuCovssBoxC = 232;
2476 fMenuCovssTextC = 233;
2477 fMenuCovssContzC = 234;
2478 fMenuCovssLegoC = 235;
2479 fMenuCovssSurf1C = 236;
2480 fMenuCovssSurf2C = 237;
2481 fMenuCovssSurf3C = 238;
2482 fMenuCovssSurf4C = 239;
2483 fMenuCovssAsciiFileC = 230;
2484
2485 fMenuD_MSp_SpNbLineFullC = 411;
2486 fMenuD_MSp_SpNbLineSameC = 412;
2487 fMenuD_MSp_SpNbLineAllStinC = 413;
2488 fMenuD_MSp_SpDsLineFullC = 414;
2489 fMenuD_MSp_SpDsLineSameC = 415;
2490 fMenuD_MSp_SpDsLineAllStinC = 416;
2491
2492 fMenuD_SSp_SpNbLineFullC = 421;
2493 fMenuD_SSp_SpNbLineSameC = 422;
2494 fMenuD_SSp_SpNbLineAllStinC = 423;
2495 fMenuD_SSp_SpDsLineFullC = 424;
2496 fMenuD_SSp_SpDsLineSameC = 425;
2497 fMenuD_SSp_SpDsLineAllStinC = 426;
2498
2499 fMenuLFCorccColzC = 51;
2500 fMenuLFCorccLegoC = 52;
2501
2502 fMenuHFCorccColzC = 61;
2503 fMenuHFCorccLegoC = 62;
2504
2505 fMenuAdcProjSampLineFullC = 711;
2506 fMenuAdcProjSampLineSameC = 712;
2507 fMenuAdcProjLineLinyFullC = 713;
2508 fMenuAdcProjLineLinySameC = 714;
2509
2510 fMenuH_Ped_DatePolmFullC = 811;
2511 fMenuH_Ped_DatePolmSameC = 812;
2512
2513 fMenuH_TNo_DatePolmFullC = 821;
2514 fMenuH_TNo_DatePolmSameC = 822;
2515 fMenuH_TNo_DatePolmSamePC = 823;
2516
2517 fMenuH_LFN_DatePolmFullC = 824;
2518 fMenuH_LFN_DatePolmSameC = 825;
2519 fMenuH_LFN_DatePolmSamePC = 826;
2520
2521 fMenuH_HFN_DatePolmFullC = 827;
2522 fMenuH_HFN_DatePolmSameC = 828;
2523 fMenuH_HFN_DatePolmSamePC = 829;
2524
2525 fMenuH_MCs_DatePolmFullC = 831;
2526 fMenuH_MCs_DatePolmSameC = 832;
2527 fMenuH_MCs_DatePolmSamePC = 833;
2528
2529 fMenuH_SCs_DatePolmFullC = 841;
2530 fMenuH_SCs_DatePolmSameC = 842;
2531 fMenuH_SCs_DatePolmSamePC = 843;
2532
2533
2534 fButStexNbC = 90;
2535 fButChNbC = 91;
2536 fButCloneC = 95;
2537 fButRootC = 96;
2538 fButHelpC = 97;
2539 fButExitC = 98;
2540
2541
2542 Int_t MaxCar = fgMaxCar;
2543 fMemoScaleX.Resize(MaxCar);
2544 fMemoScaleX = "LIN";
2545
2546 MaxCar = fgMaxCar;
2547 fMemoScaleY.Resize(MaxCar);
2548 fMemoScaleY = "LIN";
2549
2550 MaxCar = fgMaxCar;
2551 fMemoProjY.Resize(MaxCar);
2552 fMemoProjY = "normal";
2553
2554 MaxCar = fgMaxCar;
2555 fMemoColPal.Resize(MaxCar);
2556 fMemoColPal = "ECCNAColor";
2557
2558
2559
2560 MaxCar = fgMaxCar;
2561 fOptPlotFull.Resize(MaxCar);
2562 fOptPlotFull = "ONLYONE";
2563
2564 MaxCar = fgMaxCar;
2565 fOptPlotSame.Resize(MaxCar);
2566 fOptPlotSame = "SAME";
2567
2568 MaxCar = fgMaxCar;
2569 fOptPlotSameP.Resize(MaxCar);
2570 fOptPlotSameP = "SAME n";
2571
2572 MaxCar = fgMaxCar;
2573 fOptPlotSameInStin.Resize(MaxCar);
2574 fOptPlotSameInStin = "SAME in Stin";
2575
2576 MaxCar = fgMaxCar;
2577 fOptAscii.Resize(MaxCar);
2578 fOptAscii = "ASCII";
2579
2580 }
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592 void TEcnaGui::DialogBox() {
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604 Pixel_t SubDetColor = GetBackground();
2605
2606 if (fSubDet == "EB") {
2607 SubDetColor = GetBackground();
2608 }
2609 if (fSubDet == "EE") {
2610 SubDetColor = GetBackground();
2611 }
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635 fLayoutGeneral = new TGLayoutHints(kLHintsCenterX | kLHintsCenterY);
2636 fCnew++;
2637 fLayoutBottLeft = new TGLayoutHints(kLHintsLeft | kLHintsBottom);
2638 fCnew++;
2639 fLayoutTopLeft = new TGLayoutHints(kLHintsLeft | kLHintsTop);
2640 fCnew++;
2641 fLayoutBottRight = new TGLayoutHints(kLHintsRight | kLHintsBottom);
2642 fCnew++;
2643 fLayoutTopRight = new TGLayoutHints(kLHintsRight | kLHintsTop);
2644 fCnew++;
2645 fLayoutCenterYLeft = new TGLayoutHints(kLHintsLeft | kLHintsCenterY);
2646 fCnew++;
2647 fLayoutCenterYRight = new TGLayoutHints(kLHintsRight | kLHintsCenterY);
2648 fCnew++;
2649 fLayoutCenterXTop = new TGLayoutHints(kLHintsCenterX | kLHintsTop);
2650 fCnew++;
2651
2652 fVoidFrame = new TGCompositeFrame(this, 60, 20, kVerticalFrame, kSunkenFrame);
2653 fCnew++;
2654 AddFrame(fVoidFrame, fLayoutGeneral);
2655
2656
2657 Int_t xB1 = 0;
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670 fAnaNorsRunFrame = new TGCompositeFrame(this, 60, 20, kHorizontalFrame, GetDefaultFrameBackground());
2671 fCnew++;
2672
2673
2674 TString xAnaButText = " Analysis ";
2675 Int_t typ_of_ana_buf_lenght = 80;
2676 fAnaFrame = new TGCompositeFrame(fAnaNorsRunFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
2677 fCnew++;
2678
2679 fAnaBut = new TGTextButton(fAnaFrame, xAnaButText, fAnaButC);
2680 fCnew++;
2681 fAnaBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonAna()");
2682
2683 fAnaBut->SetToolTipText("Click here to register the analysis name written on the right");
2684 fAnaBut->SetBackgroundColor(SubDetColor);
2685
2686 fLayoutAnaBut = new TGLayoutHints(kLHintsLeft | kLHintsTop, xB1, xB1, xB1, xB1);
2687 fCnew++;
2688 fAnaFrame->AddFrame(fAnaBut, fLayoutAnaBut);
2689
2690 fEntryAnaNumber = new TGTextBuffer();
2691 fCnew++;
2692 fAnaText = new TGTextEntry(fAnaFrame, fEntryAnaNumber);
2693 fCnew++;
2694 fAnaText->SetToolTipText("Click and enter the analysis name (code for type of analysis)");
2695 fAnaText->Resize(typ_of_ana_buf_lenght, fAnaText->GetDefaultHeight());
2696 DisplayInEntryField(fAnaText, fKeyAnaType);
2697 fAnaText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonAna()");
2698 fLayoutAnaField = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
2699 fCnew++;
2700 fAnaFrame->AddFrame(fAnaText, fLayoutAnaField);
2701
2702
2703 TString xFirstReqEvtNumberButText = " 1st event# ";
2704 Int_t first_evt_buf_lenght = 65;
2705 fFevFrame = new TGCompositeFrame(fAnaNorsRunFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
2706 fCnew++;
2707
2708 fFevBut = new TGTextButton(fFevFrame, xFirstReqEvtNumberButText);
2709 fCnew++;
2710 fFevBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonFev()");
2711 fFevBut->SetToolTipText("Click here to register the number of the first requested event number");
2712 fFevBut->SetBackgroundColor(SubDetColor);
2713 fLayoutFevBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
2714 fCnew++;
2715 fFevFrame->AddFrame(fFevBut, fLayoutFevBut);
2716
2717 fEntryFevNumber = new TGTextBuffer();
2718 fCnew++;
2719 fFevText = new TGTextEntry(fFevFrame, fEntryFevNumber);
2720 fCnew++;
2721 fFevText->SetToolTipText("Click and enter the first requested event number");
2722 fFevText->Resize(first_evt_buf_lenght, fFevText->GetDefaultHeight());
2723 DisplayInEntryField(fFevText, fKeyFirstReqEvtNumber);
2724 fFevText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonFev()");
2725 fLayoutFevFieldText = new TGLayoutHints(kLHintsBottom | kLHintsLeft, xB1, xB1, xB1, xB1);
2726 fCnew++;
2727 fFevFrame->AddFrame(fFevText, fLayoutFevFieldText);
2728
2729
2730 TString xRunButText = " Run ";
2731 Int_t run_buf_lenght = 65;
2732 fRunFrame = new TGCompositeFrame(fAnaNorsRunFrame, 0, 0, kHorizontalFrame, kSunkenFrame);
2733 fCnew++;
2734 fRunBut = new TGTextButton(fRunFrame, xRunButText, fRunButC);
2735 fCnew++;
2736 fRunBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonRun()");
2737 fRunBut->SetToolTipText("Click here to register the run number");
2738 fRunBut->SetBackgroundColor(SubDetColor);
2739
2740 fLayoutRunBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
2741 fCnew++;
2742 fRunFrame->AddFrame(fRunBut, fLayoutRunBut);
2743 fEntryRunNumber = new TGTextBuffer();
2744 fCnew++;
2745 fRunText = new TGTextEntry(fRunFrame, fEntryRunNumber);
2746 fCnew++;
2747 fRunText->SetToolTipText("Click and enter the run number");
2748 fRunText->Resize(run_buf_lenght, fRunText->GetDefaultHeight());
2749 DisplayInEntryField(fRunText, fKeyRunNumber);
2750 fRunText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonRun()");
2751 fLayoutRunField = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
2752 fCnew++;
2753 fRunFrame->AddFrame(fRunText, fLayoutRunField);
2754
2755
2756 fAnaNorsRunFrame->AddFrame(fAnaFrame, fLayoutTopLeft);
2757 fAnaNorsRunFrame->AddFrame(fFevFrame, fLayoutTopLeft);
2758 fAnaNorsRunFrame->AddFrame(fRunFrame, fLayoutTopRight);
2759 fLayoutAnaNorsRunFrame = new TGLayoutHints(kLHintsTop | kLHintsExpandX, xB1, xB1, xB1, xB1);
2760 fCnew++;
2761
2762 AddFrame(fAnaNorsRunFrame, fLayoutAnaNorsRunFrame);
2763
2764
2765
2766
2767
2768
2769 fFevLevStexFrame = new TGCompositeFrame(this, 60, 20, kHorizontalFrame, GetDefaultFrameBackground());
2770 fCnew++;
2771
2772
2773 TString xNorsButText = "Nb Samp in File";
2774 Int_t nors_buf_lenght = 45;
2775 fNorsFrame = new TGCompositeFrame(fFevLevStexFrame, 0, 0, kHorizontalFrame, kSunkenFrame);
2776 fCnew++;
2777
2778 fNorsBut = new TGTextButton(fNorsFrame, xNorsButText, fNorsButC);
2779 fCnew++;
2780 fNorsBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonNors()");
2781
2782 fNorsBut->SetToolTipText("Click here to register the value written on the right");
2783 fNorsBut->SetBackgroundColor(SubDetColor);
2784
2785 fLayoutNorsBut = new TGLayoutHints(kLHintsLeft | kLHintsTop, xB1, xB1, xB1, xB1);
2786 fCnew++;
2787 fNorsFrame->AddFrame(fNorsBut, fLayoutNorsBut);
2788
2789 fEntryNorsNumber = new TGTextBuffer();
2790 fCnew++;
2791 fNorsText = new TGTextEntry(fNorsFrame, fEntryNorsNumber);
2792 fCnew++;
2793 fNorsText->SetToolTipText("Click and enter the number of required samples");
2794 fNorsText->Resize(nors_buf_lenght, fNorsText->GetDefaultHeight());
2795 DisplayInEntryField(fNorsText, fKeyNbOfSamples);
2796 fNorsText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonNors()");
2797 fLayoutNorsField = new TGLayoutHints(kLHintsTop | kLHintsCenterX, xB1, xB1, xB1, xB1);
2798 fCnew++;
2799 fNorsFrame->AddFrame(fNorsText, fLayoutNorsField);
2800
2801
2802 TString xLastReqEvtButText = " Last event# ";
2803 Int_t last_evt_buf_lenght = 65;
2804 fLevFrame = new TGCompositeFrame(fFevLevStexFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
2805 fCnew++;
2806
2807 fLevBut = new TGTextButton(fLevFrame, xLastReqEvtButText);
2808 fCnew++;
2809 fLevBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonLev()");
2810 fLevBut->SetToolTipText("Click here to register the last requested event number");
2811 fLevBut->SetBackgroundColor(SubDetColor);
2812 fLayoutLevBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
2813 fCnew++;
2814 fLevFrame->AddFrame(fLevBut, fLayoutLevBut);
2815
2816 fEntryLevNumber = new TGTextBuffer();
2817 fCnew++;
2818 fLevText = new TGTextEntry(fLevFrame, fEntryLevNumber);
2819 fCnew++;
2820 fLevText->SetToolTipText("Click and enter the last requested event number");
2821 fLevText->Resize(last_evt_buf_lenght, fLevText->GetDefaultHeight());
2822 DisplayInEntryField(fLevText, fKeyLastReqEvtNumber);
2823 fLevText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonLev()");
2824 fLayoutLevFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
2825 fCnew++;
2826 fLevFrame->AddFrame(fLevText, fLayoutLevFieldText);
2827
2828
2829 TString xMenuBarClean = "Clean ";
2830
2831 fMenuClean = new TGPopupMenu(gClient->GetRoot());
2832 fCnew++;
2833 fMenuClean->AddEntry("Submission scripts", fMenuCleanSubC);
2834 fMenuClean->AddEntry("LSFJOB reports", fMenuCleanJobC);
2835 fMenuClean->AddEntry("Python files", fMenuCleanPythC);
2836 fMenuClean->AddEntry("All", fMenuCleanAllC);
2837
2838 fMenuClean->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
2839 fMenuBarClean = new TGMenuBar(fFevLevStexFrame, 1, 1, kHorizontalFrame);
2840 fCnew++;
2841 fMenuBarClean->AddPopup(xMenuBarClean, fMenuClean, fLayoutTopLeft);
2842
2843
2844 TString xMenuBarSubmit = " Submit ";
2845 fMenuSubmit = new TGPopupMenu(gClient->GetRoot());
2846 fCnew++;
2847
2848 fMenuSubmit->AddEntry(" -q 8nm ", fMenuSubmit8nmC);
2849 fMenuSubmit->AddEntry(" -q 1nh ", fMenuSubmit1nhC);
2850 fMenuSubmit->AddEntry(" -q 8nh ", fMenuSubmit8nhC);
2851 fMenuSubmit->AddEntry(" -q 1nd ", fMenuSubmit1ndC);
2852 fMenuSubmit->AddEntry(" -q 1nw ", fMenuSubmit1nwC);
2853
2854 fMenuSubmit->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
2855 fMenuBarSubmit = new TGMenuBar(fFevLevStexFrame, 1, 1, kHorizontalFrame);
2856 fCnew++;
2857 fMenuBarSubmit->AddPopup(xMenuBarSubmit, fMenuSubmit, fLayoutTopLeft);
2858
2859
2860 fFevLevStexFrame->AddFrame(fNorsFrame, fLayoutTopLeft);
2861 fFevLevStexFrame->AddFrame(fLevFrame, fLayoutTopLeft);
2862 fFevLevStexFrame->AddFrame(fMenuBarSubmit, fLayoutTopRight);
2863 fFevLevStexFrame->AddFrame(fMenuBarClean, fLayoutTopRight);
2864
2865 fLayoutFevLevStexFrame = new TGLayoutHints(kLHintsTop | kLHintsExpandX, xB1, xB1, xB1, xB1);
2866 fCnew++;
2867
2868 AddFrame(fFevLevStexFrame, fLayoutFevLevStexFrame);
2869
2870
2871
2872
2873
2874
2875 fCompStRqFrame = new TGCompositeFrame(this, 60, 20, kHorizontalFrame, GetDefaultFrameBackground());
2876 fCnew++;
2877
2878
2879 TString xSumoButText;
2880 if (fSubDet == "EB") {
2881 xSumoButText = " SM# (0=EB) ";
2882 }
2883 if (fSubDet == "EE") {
2884 xSumoButText = " Dee# (0=EE) ";
2885 }
2886
2887 Int_t stex_number_buf_lenght = 36;
2888 fStexFrame = new TGCompositeFrame(fCompStRqFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
2889 fCnew++;
2890
2891 fStexBut = new TGTextButton(fStexFrame, xSumoButText);
2892 fCnew++;
2893 fStexBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonStex()");
2894 fStexBut->SetToolTipText("Click here to register the number written on the right");
2895 fStexBut->SetBackgroundColor(SubDetColor);
2896
2897 fLayoutStexBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
2898 fCnew++;
2899 fStexFrame->AddFrame(fStexBut, fLayoutStexBut);
2900
2901 fEntryStexNumber = new TGTextBuffer();
2902 fCnew++;
2903 fStexText = new TGTextEntry(fStexFrame, fEntryStexNumber);
2904 fCnew++;
2905
2906 TString xStexNumber;
2907 if (fSubDet == "EB") {
2908 xStexNumber = "Click and enter the SM number";
2909 }
2910 if (fSubDet == "EE") {
2911 xStexNumber = "Click and enter the Dee number";
2912 }
2913 fStexText->SetToolTipText(xStexNumber);
2914 fStexText->Resize(stex_number_buf_lenght, fStexText->GetDefaultHeight());
2915 DisplayInEntryField(fStexText, fKeyStexNumber);
2916 fStexText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonStex()");
2917
2918 fLayoutStexFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
2919 fCnew++;
2920 fStexFrame->AddFrame(fStexText, fLayoutStexFieldText);
2921
2922
2923 TString xNbOfReqEvtButText = " Nb of events ";
2924 Int_t nbof_evt_buf_lenght = 65;
2925 fRevFrame = new TGCompositeFrame(fCompStRqFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
2926 fCnew++;
2927
2928 fRevBut = new TGTextButton(fRevFrame, xNbOfReqEvtButText);
2929 fCnew++;
2930 fRevBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonRev()");
2931 fRevBut->SetToolTipText("Click here to register the requested number of events");
2932 fRevBut->SetBackgroundColor(SubDetColor);
2933 fLayoutRevBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
2934 fCnew++;
2935 fRevFrame->AddFrame(fRevBut, fLayoutRevBut);
2936
2937 fEntryRevNumber = new TGTextBuffer();
2938 fCnew++;
2939 fRevText = new TGTextEntry(fRevFrame, fEntryRevNumber);
2940 fCnew++;
2941 fRevText->SetToolTipText("Click and enter the requested number of events");
2942 fRevText->Resize(nbof_evt_buf_lenght, fRevText->GetDefaultHeight());
2943 DisplayInEntryField(fRevText, fKeyReqNbOfEvts);
2944 fRevText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonRev()");
2945 fLayoutRevFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
2946 fCnew++;
2947 fRevFrame->AddFrame(fRevText, fLayoutRevFieldText);
2948
2949
2950 fCompStRqFrame->AddFrame(fStexFrame, fLayoutTopLeft);
2951 fCompStRqFrame->AddFrame(fRevFrame, fLayoutTopLeft);
2952
2953 fLayoutCompStRqFrame = new TGLayoutHints(kLHintsTop | kLHintsExpandX, xB1, xB1, xB1, xB1);
2954 fCnew++;
2955 AddFrame(fCompStRqFrame, fLayoutCompStRqFrame);
2956 AddFrame(fVoidFrame, fLayoutGeneral);
2957
2958
2959
2960
2961
2962
2963 fCompStnbFrame = new TGCompositeFrame(this, 60, 20, kHorizontalFrame, GetDefaultFrameBackground());
2964 fCnew++;
2965
2966
2967
2968 TString xStexNbButText;
2969 if (fSubDet == "EB") {
2970 xStexNbButText = "SM Tower Numbering";
2971 }
2972 if (fSubDet == "EE") {
2973 xStexNbButText = "Dee SC Numbering";
2974 }
2975 fButStexNb = new TGTextButton(fCompStnbFrame, xStexNbButText, fButStexNbC);
2976 fCnew++;
2977 fButStexNb->Connect("Clicked()", "TEcnaGui", this, "DoButtonStexNb()");
2978 fButStexNb->SetBackgroundColor(SubDetColor);
2979
2980
2981 TString xNbSampForCalcButText = "Nb Samp Calc";
2982 Int_t nb_of_samp_calc_buf_lenght = 28;
2983 fNbSampForCalcFrame = new TGCompositeFrame(fCompStnbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
2984 fCnew++;
2985
2986 fNbSampForCalcBut = new TGTextButton(fNbSampForCalcFrame, xNbSampForCalcButText);
2987 fCnew++;
2988 fNbSampForCalcBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonNbSampForCalc()");
2989 fNbSampForCalcBut->SetToolTipText("Click here to register the number written on the right");
2990 fNbSampForCalcBut->SetBackgroundColor(SubDetColor);
2991
2992 fLayoutNbSampForCalcBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
2993 fCnew++;
2994 fNbSampForCalcFrame->AddFrame(fNbSampForCalcBut, fLayoutNbSampForCalcBut);
2995
2996 fEntryNbSampForCalcNumber = new TGTextBuffer();
2997 fCnew++;
2998 fNbSampForCalcText = new TGTextEntry(fNbSampForCalcFrame, fEntryNbSampForCalcNumber);
2999 fCnew++;
3000
3001 TString xNbSampForCalcNumber = "Click and enter the nb of samples for calculations";
3002 fNbSampForCalcText->SetToolTipText(xNbSampForCalcNumber);
3003 fNbSampForCalcText->Resize(nb_of_samp_calc_buf_lenght, fNbSampForCalcText->GetDefaultHeight());
3004 DisplayInEntryField(fNbSampForCalcText, fKeyNbOfSampForCalc);
3005 fNbSampForCalcText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonNbSampForCalc()");
3006
3007 fLayoutNbSampForCalcFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3008 fCnew++;
3009 fNbSampForCalcFrame->AddFrame(fNbSampForCalcText, fLayoutNbSampForCalcFieldText);
3010
3011
3012 TString xMenuBarComput = "Calculations ";
3013 fMenuComput = new TGPopupMenu(gClient->GetRoot());
3014 fCnew++;
3015 fMenuComput->AddEntry("Standard ( Pedestals, Noises, Cor(s,s') )", fMenuComputStdC);
3016 fMenuComput->AddEntry("Standard + |Cor(t,t')| (long time)", fMenuComputSttC);
3017 fMenuComput->AddEntry("Standard + |Cor(t,t')| + |Cor(c,c')| (long time + big file)", fMenuComputSccC);
3018
3019 fMenuComput->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
3020 fMenuBarComput = new TGMenuBar(fCompStnbFrame, 1, 1, kHorizontalFrame);
3021 fCnew++;
3022 fMenuBarComput->AddPopup(xMenuBarComput, fMenuComput, fLayoutTopLeft);
3023
3024
3025 fCompStnbFrame->AddFrame(fButStexNb, fLayoutTopLeft);
3026 fCompStnbFrame->AddFrame(fMenuBarComput, fLayoutTopRight);
3027 fCompStnbFrame->AddFrame(fNbSampForCalcFrame, fLayoutTopRight);
3028
3029 fLayoutCompStnbFrame = new TGLayoutHints(kLHintsTop | kLHintsExpandX, xB1, xB1, xB1, xB1);
3030 fCnew++;
3031 AddFrame(fCompStnbFrame, fLayoutCompStnbFrame);
3032 AddFrame(fVoidFrame, fLayoutGeneral);
3033
3034
3035
3036
3037
3038
3039 Int_t minmax_buf_lenght = 45;
3040
3041 fStexUpFrame = new TGCompositeFrame(this, 60, 20, kVerticalFrame, GetDefaultFrameBackground());
3042 fCnew++;
3043 TString xYminButText = " Ymin ";
3044 TString xYmaxButText = " Ymax ";
3045
3046 fVmmD_NOE_ChNbFrame = new TGCompositeFrame(fStexUpFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3047 fCnew++;
3048
3049
3050
3051 fVmaxD_NOE_ChNbFrame = new TGCompositeFrame(fVmmD_NOE_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3052 fCnew++;
3053
3054 fVmaxD_NOE_ChNbBut = new TGTextButton(fVmaxD_NOE_ChNbFrame, xYmaxButText);
3055 fCnew++;
3056 fVmaxD_NOE_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVmaxD_NOE_ChNb()");
3057 fVmaxD_NOE_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
3058 fVmaxD_NOE_ChNbBut->SetBackgroundColor(SubDetColor);
3059 fLayoutVmaxD_NOE_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3060 fCnew++;
3061 fVmaxD_NOE_ChNbFrame->AddFrame(fVmaxD_NOE_ChNbBut, fLayoutVmaxD_NOE_ChNbBut);
3062 fEntryVmaxD_NOE_ChNbNumber = new TGTextBuffer();
3063 fCnew++;
3064 fVmaxD_NOE_ChNbText = new TGTextEntry(fVmaxD_NOE_ChNbFrame, fEntryVmaxD_NOE_ChNbNumber);
3065 fCnew++;
3066 fVmaxD_NOE_ChNbText->SetToolTipText("Click and enter ymax");
3067 fVmaxD_NOE_ChNbText->Resize(minmax_buf_lenght, fVmaxD_NOE_ChNbText->GetDefaultHeight());
3068 DisplayInEntryField(fVmaxD_NOE_ChNbText, fKeyVmaxD_NOE_ChNb);
3069 fVmaxD_NOE_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_NOE_ChNb()");
3070
3071 fLayoutVmaxD_NOE_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3072 fCnew++;
3073 fVmaxD_NOE_ChNbFrame->AddFrame(fVmaxD_NOE_ChNbText, fLayoutVmaxD_NOE_ChNbFieldText);
3074 fLayoutVmaxD_NOE_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3075 fCnew++;
3076 fVmmD_NOE_ChNbFrame->AddFrame(fVmaxD_NOE_ChNbFrame, fLayoutVmaxD_NOE_ChNbFrame);
3077
3078
3079 fVminD_NOE_ChNbFrame = new TGCompositeFrame(fVmmD_NOE_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3080 fCnew++;
3081
3082 fVminD_NOE_ChNbBut = new TGTextButton(fVminD_NOE_ChNbFrame, xYminButText);
3083 fCnew++;
3084 fVminD_NOE_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVminD_NOE_ChNb()");
3085 fVminD_NOE_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
3086 fVminD_NOE_ChNbBut->SetBackgroundColor(SubDetColor);
3087 fLayoutVminD_NOE_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3088 fCnew++;
3089 fVminD_NOE_ChNbFrame->AddFrame(fVminD_NOE_ChNbBut, fLayoutVminD_NOE_ChNbBut);
3090 fEntryVminD_NOE_ChNbNumber = new TGTextBuffer();
3091 fCnew++;
3092 fVminD_NOE_ChNbText = new TGTextEntry(fVminD_NOE_ChNbFrame, fEntryVminD_NOE_ChNbNumber);
3093 fCnew++;
3094 fVminD_NOE_ChNbText->SetToolTipText("Click and enter ymin");
3095 fVminD_NOE_ChNbText->Resize(minmax_buf_lenght, fVminD_NOE_ChNbText->GetDefaultHeight());
3096 DisplayInEntryField(fVminD_NOE_ChNbText, fKeyVminD_NOE_ChNb);
3097 fVminD_NOE_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_NOE_ChNb()");
3098 fLayoutVminD_NOE_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3099 fCnew++;
3100 fVminD_NOE_ChNbFrame->AddFrame(fVminD_NOE_ChNbText, fLayoutVminD_NOE_ChNbFieldText);
3101 fLayoutVminD_NOE_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3102 fCnew++;
3103 fVmmD_NOE_ChNbFrame->AddFrame(fVminD_NOE_ChNbFrame, fLayoutVminD_NOE_ChNbFrame);
3104
3105
3106 TString xHistoChannels = "1D Histo";
3107 TString xHistoChannelsSame = "1D Histo SAME";
3108 TString xHistoChannelsSameP = "1D Histo SAME n";
3109 TString xHistoProjection = "1D Histo Projection";
3110 TString xHistoProjectionSame = "1D Histo Projection SAME";
3111 TString xHistoProjectionSameP = "1D Histo Projection SAME n";
3112 TString xHocoVecoViewSorS = "2D, Histo";
3113 if (fSubDet == "EB") {
3114 xHocoVecoViewSorS = "2D, Histo (eta,phi)";
3115 }
3116 if (fSubDet == "EE") {
3117 xHocoVecoViewSorS = "2D, Histo (IX,IY)";
3118 }
3119 TString xAsciiFileStex = "1D Histo, write in ASCII file";
3120
3121
3122 TString xMenuD_NOE_ChNb = "Numbers of events ";
3123 fMenuD_NOE_ChNb = new TGPopupMenu(gClient->GetRoot());
3124 fCnew++;
3125 fMenuD_NOE_ChNb->AddEntry(xHistoChannels, fMenuD_NOE_ChNbFullC);
3126 fMenuD_NOE_ChNb->AddEntry(xHistoChannelsSame, fMenuD_NOE_ChNbSameC);
3127 fMenuD_NOE_ChNb->AddSeparator();
3128 fMenuD_NOE_ChNb->AddEntry(xHocoVecoViewSorS, fMenuD_NOE_ChNbHocoVecoC);
3129 fMenuD_NOE_ChNb->AddSeparator();
3130 fMenuD_NOE_ChNb->AddEntry(xAsciiFileStex, fMenuD_NOE_ChNbAsciiFileC);
3131 fMenuD_NOE_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
3132 fMenuBarD_NOE_ChNb = new TGMenuBar(fVmmD_NOE_ChNbFrame, 1, 1, kHorizontalFrame);
3133 fCnew++;
3134
3135
3136
3137 fMenuBarD_NOE_ChNb->AddPopup(xMenuD_NOE_ChNb, fMenuD_NOE_ChNb, fLayoutGeneral);
3138 fLayoutMenuBarD_NOE_ChNb = new TGLayoutHints(kLHintsRight, xB1, xB1, xB1, xB1);
3139 fCnew++;
3140 fVmmD_NOE_ChNbFrame->AddFrame(fMenuBarD_NOE_ChNb, fLayoutMenuBarD_NOE_ChNb);
3141 fLayoutVmmD_NOE_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3142 fCnew++;
3143 fStexUpFrame->AddFrame(fVmmD_NOE_ChNbFrame, fLayoutVmmD_NOE_ChNbFrame);
3144
3145
3146 fStexHozFrame = new TGCompositeFrame(fStexUpFrame, 60, 20, kVerticalFrame, GetDefaultFrameBackground());
3147 fCnew++;
3148
3149
3150 fVmmD_Ped_ChNbFrame = new TGCompositeFrame(fStexHozFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3151 fCnew++;
3152
3153
3154
3155
3156 fVmaxD_Ped_ChNbFrame = new TGCompositeFrame(fVmmD_Ped_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3157 fCnew++;
3158
3159 fVmaxD_Ped_ChNbBut = new TGTextButton(fVmaxD_Ped_ChNbFrame, xYmaxButText);
3160 fCnew++;
3161 fVmaxD_Ped_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVmaxD_Ped_ChNb()");
3162 fVmaxD_Ped_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
3163 fLayoutVmaxD_Ped_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3164 fCnew++;
3165 fVmaxD_Ped_ChNbBut->SetBackgroundColor(SubDetColor);
3166 fVmaxD_Ped_ChNbFrame->AddFrame(fVmaxD_Ped_ChNbBut, fLayoutVmaxD_Ped_ChNbBut);
3167 fEntryVmaxD_Ped_ChNbNumber = new TGTextBuffer();
3168 fCnew++;
3169 fVmaxD_Ped_ChNbText = new TGTextEntry(fVmaxD_Ped_ChNbFrame, fEntryVmaxD_Ped_ChNbNumber);
3170 fCnew++;
3171 fVmaxD_Ped_ChNbText->SetToolTipText("Click and enter ymax");
3172 fVmaxD_Ped_ChNbText->Resize(minmax_buf_lenght, fVmaxD_Ped_ChNbText->GetDefaultHeight());
3173 DisplayInEntryField(fVmaxD_Ped_ChNbText, fKeyVmaxD_Ped_ChNb);
3174 fVmaxD_Ped_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_Ped_ChNb()");
3175 fLayoutVmaxD_Ped_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3176 fCnew++;
3177 fVmaxD_Ped_ChNbFrame->AddFrame(fVmaxD_Ped_ChNbText, fLayoutVmaxD_Ped_ChNbFieldText);
3178 fLayoutVmaxD_Ped_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3179 fCnew++;
3180 fVmmD_Ped_ChNbFrame->AddFrame(fVmaxD_Ped_ChNbFrame, fLayoutVmaxD_Ped_ChNbFrame);
3181
3182
3183 fVminD_Ped_ChNbFrame = new TGCompositeFrame(fVmmD_Ped_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3184 fCnew++;
3185
3186 fVminD_Ped_ChNbBut = new TGTextButton(fVminD_Ped_ChNbFrame, xYminButText);
3187 fCnew++;
3188 fVminD_Ped_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVminD_Ped_ChNb()");
3189 fVminD_Ped_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
3190 fVminD_Ped_ChNbBut->SetBackgroundColor(SubDetColor);
3191 fLayoutVminD_Ped_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3192 fCnew++;
3193 fVminD_Ped_ChNbFrame->AddFrame(fVminD_Ped_ChNbBut, fLayoutVminD_Ped_ChNbBut);
3194
3195 fEntryVminD_Ped_ChNbNumber = new TGTextBuffer();
3196 fCnew++;
3197 fVminD_Ped_ChNbText = new TGTextEntry(fVminD_Ped_ChNbFrame, fEntryVminD_Ped_ChNbNumber);
3198 fCnew++;
3199 fVminD_Ped_ChNbText->SetToolTipText("Click and enter ymin");
3200 fVminD_Ped_ChNbText->Resize(minmax_buf_lenght, fVminD_Ped_ChNbText->GetDefaultHeight());
3201 DisplayInEntryField(fVminD_Ped_ChNbText, fKeyVminD_Ped_ChNb);
3202 fVminD_Ped_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_Ped_ChNb()");
3203 fLayoutVminD_Ped_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3204 fCnew++;
3205 fVminD_Ped_ChNbFrame->AddFrame(fVminD_Ped_ChNbText, fLayoutVminD_Ped_ChNbFieldText);
3206 fLayoutVminD_Ped_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3207 fCnew++;
3208 fVmmD_Ped_ChNbFrame->AddFrame(fVminD_Ped_ChNbFrame, fLayoutVminD_Ped_ChNbFrame);
3209
3210
3211 TString xMenuD_Ped_ChNb = " Pedestals ";
3212 fMenuD_Ped_ChNb = new TGPopupMenu(gClient->GetRoot());
3213 fCnew++;
3214 fMenuD_Ped_ChNb->AddEntry(xHistoChannels, fMenuD_Ped_ChNbFullC);
3215 fMenuD_Ped_ChNb->AddEntry(xHistoChannelsSame, fMenuD_Ped_ChNbSameC);
3216 fMenuD_Ped_ChNb->AddSeparator();
3217 fMenuD_Ped_ChNb->AddEntry(xHocoVecoViewSorS, fMenuD_Ped_ChNbHocoVecoC);
3218 fMenuD_Ped_ChNb->AddSeparator();
3219 fMenuD_Ped_ChNb->AddEntry(xAsciiFileStex, fMenuD_Ped_ChNbAsciiFileC);
3220 fMenuD_Ped_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
3221 fMenuBarD_Ped_ChNb = new TGMenuBar(fVmmD_Ped_ChNbFrame, 1, 1, kHorizontalFrame);
3222 fCnew++;
3223 fMenuBarD_Ped_ChNb->AddPopup(xMenuD_Ped_ChNb, fMenuD_Ped_ChNb, fLayoutGeneral);
3224 fLayoutMenuBarD_Ped_ChNb = new TGLayoutHints(kLHintsRight, xB1, xB1, xB1, xB1);
3225 fCnew++;
3226 fVmmD_Ped_ChNbFrame->AddFrame(fMenuBarD_Ped_ChNb, fLayoutMenuBarD_Ped_ChNb);
3227
3228 fLayoutVmmD_Ped_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3229 fCnew++;
3230 fStexHozFrame->AddFrame(fVmmD_Ped_ChNbFrame, fLayoutVmmD_Ped_ChNbFrame);
3231
3232
3233 fVmmD_TNo_ChNbFrame = new TGCompositeFrame(fStexHozFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3234 fCnew++;
3235
3236
3237
3238 fVmaxD_TNo_ChNbFrame = new TGCompositeFrame(fVmmD_TNo_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3239 fCnew++;
3240
3241 fVmaxD_TNo_ChNbBut = new TGTextButton(fVmaxD_TNo_ChNbFrame, xYmaxButText);
3242 fCnew++;
3243 fVmaxD_TNo_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVmaxD_TNo_ChNb()");
3244 fVmaxD_TNo_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
3245 fVmaxD_TNo_ChNbBut->SetBackgroundColor(SubDetColor);
3246 fLayoutVmaxD_TNo_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3247 fCnew++;
3248 fVmaxD_TNo_ChNbFrame->AddFrame(fVmaxD_TNo_ChNbBut, fLayoutVmaxD_TNo_ChNbBut);
3249 fEntryVmaxD_TNo_ChNbNumber = new TGTextBuffer();
3250 fCnew++;
3251 fVmaxD_TNo_ChNbText = new TGTextEntry(fVmaxD_TNo_ChNbFrame, fEntryVmaxD_TNo_ChNbNumber);
3252 fCnew++;
3253 fVmaxD_TNo_ChNbText->SetToolTipText("Click and enter ymax");
3254 fVmaxD_TNo_ChNbText->Resize(minmax_buf_lenght, fVmaxD_TNo_ChNbText->GetDefaultHeight());
3255 DisplayInEntryField(fVmaxD_TNo_ChNbText, fKeyVmaxD_TNo_ChNb);
3256 fVmaxD_TNo_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_TNo_ChNb()");
3257 fLayoutVmaxD_TNo_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3258 fCnew++;
3259 fVmaxD_TNo_ChNbFrame->AddFrame(fVmaxD_TNo_ChNbText, fLayoutVmaxD_TNo_ChNbFieldText);
3260 fLayoutVmaxD_TNo_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3261 fCnew++;
3262 fVmmD_TNo_ChNbFrame->AddFrame(fVmaxD_TNo_ChNbFrame, fLayoutVmaxD_TNo_ChNbFrame);
3263
3264
3265 fVminD_TNo_ChNbFrame = new TGCompositeFrame(fVmmD_TNo_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3266 fCnew++;
3267
3268 fVminD_TNo_ChNbBut = new TGTextButton(fVminD_TNo_ChNbFrame, xYminButText);
3269 fCnew++;
3270 fVminD_TNo_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVminD_TNo_ChNb()");
3271 fVminD_TNo_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
3272 fVminD_TNo_ChNbBut->SetBackgroundColor(SubDetColor);
3273 fLayoutVminD_TNo_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3274 fCnew++;
3275 fVminD_TNo_ChNbFrame->AddFrame(fVminD_TNo_ChNbBut, fLayoutVminD_TNo_ChNbBut);
3276
3277 fEntryVminD_TNo_ChNbNumber = new TGTextBuffer();
3278 fCnew++;
3279 fVminD_TNo_ChNbText = new TGTextEntry(fVminD_TNo_ChNbFrame, fEntryVminD_TNo_ChNbNumber);
3280 fCnew++;
3281 fVminD_TNo_ChNbText->SetToolTipText("Click and enter ymin");
3282 fVminD_TNo_ChNbText->Resize(minmax_buf_lenght, fVminD_TNo_ChNbText->GetDefaultHeight());
3283 DisplayInEntryField(fVminD_TNo_ChNbText, fKeyVminD_TNo_ChNb);
3284 fVminD_TNo_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_TNo_ChNb()");
3285 fLayoutVminD_TNo_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3286 fCnew++;
3287 fVminD_TNo_ChNbFrame->AddFrame(fVminD_TNo_ChNbText, fLayoutVminD_TNo_ChNbFieldText);
3288 fLayoutVminD_TNo_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3289 fCnew++;
3290 fVmmD_TNo_ChNbFrame->AddFrame(fVminD_TNo_ChNbFrame, fLayoutVminD_TNo_ChNbFrame);
3291
3292
3293 TString xMenuD_TNo_ChNb = " Total Noise ";
3294 fMenuD_TNo_ChNb = new TGPopupMenu(gClient->GetRoot());
3295 fCnew++;
3296 fMenuD_TNo_ChNb->AddEntry(xHistoChannels, fMenuD_TNo_ChNbFullC);
3297 fMenuD_TNo_ChNb->AddEntry(xHistoChannelsSame, fMenuD_TNo_ChNbSameC);
3298 fMenuD_TNo_ChNb->AddEntry(xHistoChannelsSameP, fMenuD_TNo_ChNbSamePC);
3299 fMenuD_TNo_ChNb->AddSeparator();
3300 fMenuD_TNo_ChNb->AddEntry(xHocoVecoViewSorS, fMenuD_TNo_ChNbHocoVecoC);
3301 fMenuD_TNo_ChNb->AddSeparator();
3302 fMenuD_TNo_ChNb->AddEntry(xAsciiFileStex, fMenuD_TNo_ChNbAsciiFileC);
3303 fMenuD_TNo_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
3304 fMenuBarD_TNo_ChNb = new TGMenuBar(fVmmD_TNo_ChNbFrame, 1, 1, kHorizontalFrame);
3305 fCnew++;
3306 fMenuBarD_TNo_ChNb->AddPopup(xMenuD_TNo_ChNb, fMenuD_TNo_ChNb, fLayoutGeneral);
3307 fLayoutMenuBarD_TNo_ChNb = new TGLayoutHints(kLHintsRight, xB1, xB1, xB1, xB1);
3308 fCnew++;
3309 fVmmD_TNo_ChNbFrame->AddFrame(fMenuBarD_TNo_ChNb, fLayoutMenuBarD_TNo_ChNb);
3310
3311 fLayoutVmmD_TNo_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3312 fCnew++;
3313 fStexHozFrame->AddFrame(fVmmD_TNo_ChNbFrame, fLayoutVmmD_TNo_ChNbFrame);
3314
3315
3316 fVmmD_LFN_ChNbFrame = new TGCompositeFrame(fStexHozFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3317 fCnew++;
3318
3319
3320
3321 fVmaxD_LFN_ChNbFrame = new TGCompositeFrame(fVmmD_LFN_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3322 fCnew++;
3323
3324 fVmaxD_LFN_ChNbBut = new TGTextButton(fVmaxD_LFN_ChNbFrame, xYmaxButText);
3325 fCnew++;
3326 fVmaxD_LFN_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVmaxD_LFN_ChNb()");
3327 fVmaxD_LFN_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
3328 fVmaxD_LFN_ChNbBut->SetBackgroundColor(SubDetColor);
3329 fLayoutVmaxD_LFN_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3330 fCnew++;
3331 fVmaxD_LFN_ChNbFrame->AddFrame(fVmaxD_LFN_ChNbBut, fLayoutVmaxD_LFN_ChNbBut);
3332 fEntryVmaxD_LFN_ChNbNumber = new TGTextBuffer();
3333 fCnew++;
3334 fVmaxD_LFN_ChNbText = new TGTextEntry(fVmaxD_LFN_ChNbFrame, fEntryVmaxD_LFN_ChNbNumber);
3335 fCnew++;
3336 fVmaxD_LFN_ChNbText->SetToolTipText("Click and enter ymax");
3337 fVmaxD_LFN_ChNbText->Resize(minmax_buf_lenght, fVmaxD_LFN_ChNbText->GetDefaultHeight());
3338 DisplayInEntryField(fVmaxD_LFN_ChNbText, fKeyVmaxD_LFN_ChNb);
3339 fVmaxD_LFN_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_LFN_ChNb()");
3340 fLayoutVmaxD_LFN_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3341 fCnew++;
3342 fVmaxD_LFN_ChNbFrame->AddFrame(fVmaxD_LFN_ChNbText, fLayoutVmaxD_LFN_ChNbFieldText);
3343 fLayoutVmaxD_LFN_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3344 fCnew++;
3345 fVmmD_LFN_ChNbFrame->AddFrame(fVmaxD_LFN_ChNbFrame, fLayoutVmaxD_LFN_ChNbFrame);
3346
3347
3348 fVminD_LFN_ChNbFrame = new TGCompositeFrame(fVmmD_LFN_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3349 fCnew++;
3350
3351 fVminD_LFN_ChNbBut = new TGTextButton(fVminD_LFN_ChNbFrame, xYminButText);
3352 fCnew++;
3353 fVminD_LFN_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVminD_LFN_ChNb()");
3354 fVminD_LFN_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
3355 fVminD_LFN_ChNbBut->SetBackgroundColor(SubDetColor);
3356 fLayoutVminD_LFN_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3357 fCnew++;
3358 fVminD_LFN_ChNbFrame->AddFrame(fVminD_LFN_ChNbBut, fLayoutVminD_LFN_ChNbBut);
3359 fEntryVminD_LFN_ChNbNumber = new TGTextBuffer();
3360 fCnew++;
3361 fVminD_LFN_ChNbText = new TGTextEntry(fVminD_LFN_ChNbFrame, fEntryVminD_LFN_ChNbNumber);
3362 fCnew++;
3363 fVminD_LFN_ChNbText->SetToolTipText("Click and enter ymin");
3364 fVminD_LFN_ChNbText->Resize(minmax_buf_lenght, fVminD_LFN_ChNbText->GetDefaultHeight());
3365 DisplayInEntryField(fVminD_LFN_ChNbText, fKeyVminD_LFN_ChNb);
3366 fVminD_LFN_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_LFN_ChNb()");
3367 fLayoutVminD_LFN_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3368 fCnew++;
3369 fVminD_LFN_ChNbFrame->AddFrame(fVminD_LFN_ChNbText, fLayoutVminD_LFN_ChNbFieldText);
3370 fLayoutVminD_LFN_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3371 fCnew++;
3372 fVmmD_LFN_ChNbFrame->AddFrame(fVminD_LFN_ChNbFrame, fLayoutVminD_LFN_ChNbFrame);
3373
3374
3375 TString xMenuD_LFN_ChNb = " Low Frequency Noise ";
3376 fMenuD_LFN_ChNb = new TGPopupMenu(gClient->GetRoot());
3377 fCnew++;
3378 fMenuD_LFN_ChNb->AddEntry(xHistoChannels, fMenuD_LFN_ChNbFullC);
3379 fMenuD_LFN_ChNb->AddEntry(xHistoChannelsSame, fMenuD_LFN_ChNbSameC);
3380 fMenuD_LFN_ChNb->AddEntry(xHistoChannelsSameP, fMenuD_LFN_ChNbSamePC);
3381 fMenuD_LFN_ChNb->AddSeparator();
3382 fMenuD_LFN_ChNb->AddEntry(xHocoVecoViewSorS, fMenuD_LFN_ChNbHocoVecoC);
3383 fMenuD_LFN_ChNb->AddSeparator();
3384 fMenuD_LFN_ChNb->AddEntry(xAsciiFileStex, fMenuD_LFN_ChNbAsciiFileC);
3385 fMenuD_LFN_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
3386 fMenuBarD_LFN_ChNb = new TGMenuBar(fVmmD_LFN_ChNbFrame, 1, 1, kHorizontalFrame);
3387 fCnew++;
3388 fMenuBarD_LFN_ChNb->AddPopup(xMenuD_LFN_ChNb, fMenuD_LFN_ChNb, fLayoutGeneral);
3389 fLayoutMenuBarD_LFN_ChNb = new TGLayoutHints(kLHintsRight, xB1, xB1, xB1, xB1);
3390 fCnew++;
3391 fVmmD_LFN_ChNbFrame->AddFrame(fMenuBarD_LFN_ChNb, fLayoutMenuBarD_LFN_ChNb);
3392 fLayoutVmmD_LFN_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3393 fCnew++;
3394 fStexHozFrame->AddFrame(fVmmD_LFN_ChNbFrame, fLayoutVmmD_LFN_ChNbFrame);
3395
3396
3397 fVmmD_HFN_ChNbFrame = new TGCompositeFrame(fStexHozFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3398 fCnew++;
3399
3400
3401
3402 fVmaxD_HFN_ChNbFrame = new TGCompositeFrame(fVmmD_HFN_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3403 fCnew++;
3404
3405 fVmaxD_HFN_ChNbBut = new TGTextButton(fVmaxD_HFN_ChNbFrame, xYmaxButText);
3406 fCnew++;
3407 fVmaxD_HFN_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVmaxD_HFN_ChNb()");
3408 fVmaxD_HFN_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
3409 fVmaxD_HFN_ChNbBut->SetBackgroundColor(SubDetColor);
3410 fLayoutVmaxD_HFN_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3411 fCnew++;
3412 fVmaxD_HFN_ChNbFrame->AddFrame(fVmaxD_HFN_ChNbBut, fLayoutVmaxD_HFN_ChNbBut);
3413 fEntryVmaxD_HFN_ChNbNumber = new TGTextBuffer();
3414 fCnew++;
3415 fVmaxD_HFN_ChNbText = new TGTextEntry(fVmaxD_HFN_ChNbFrame, fEntryVmaxD_HFN_ChNbNumber);
3416 fCnew++;
3417 fVmaxD_HFN_ChNbText->SetToolTipText("Click and enter ymax");
3418 fVmaxD_HFN_ChNbText->Resize(minmax_buf_lenght, fVmaxD_HFN_ChNbText->GetDefaultHeight());
3419 DisplayInEntryField(fVmaxD_HFN_ChNbText, fKeyVmaxD_HFN_ChNb);
3420 fVmaxD_HFN_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_HFN_ChNb()");
3421 fLayoutVmaxD_HFN_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3422 fCnew++;
3423 fVmaxD_HFN_ChNbFrame->AddFrame(fVmaxD_HFN_ChNbText, fLayoutVmaxD_HFN_ChNbFieldText);
3424 fLayoutVmaxD_HFN_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3425 fCnew++;
3426 fVmmD_HFN_ChNbFrame->AddFrame(fVmaxD_HFN_ChNbFrame, fLayoutVmaxD_HFN_ChNbFrame);
3427
3428
3429 fVminD_HFN_ChNbFrame = new TGCompositeFrame(fVmmD_HFN_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3430 fCnew++;
3431
3432 fVminD_HFN_ChNbBut = new TGTextButton(fVminD_HFN_ChNbFrame, xYminButText);
3433 fCnew++;
3434 fVminD_HFN_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVminD_HFN_ChNb()");
3435 fVminD_HFN_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
3436 fVminD_HFN_ChNbBut->SetBackgroundColor(SubDetColor);
3437 fLayoutVminD_HFN_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3438 fCnew++;
3439 fVminD_HFN_ChNbFrame->AddFrame(fVminD_HFN_ChNbBut, fLayoutVminD_HFN_ChNbBut);
3440 fEntryVminD_HFN_ChNbNumber = new TGTextBuffer();
3441 fCnew++;
3442 fVminD_HFN_ChNbText = new TGTextEntry(fVminD_HFN_ChNbFrame, fEntryVminD_HFN_ChNbNumber);
3443 fCnew++;
3444 fVminD_HFN_ChNbText->SetToolTipText("Click and enter ymin");
3445 fVminD_HFN_ChNbText->Resize(minmax_buf_lenght, fVminD_HFN_ChNbText->GetDefaultHeight());
3446 DisplayInEntryField(fVminD_HFN_ChNbText, fKeyVminD_HFN_ChNb);
3447 fVminD_HFN_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_HFN_ChNb()");
3448 fLayoutVminD_HFN_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3449 fCnew++;
3450 fVminD_HFN_ChNbFrame->AddFrame(fVminD_HFN_ChNbText, fLayoutVminD_HFN_ChNbFieldText);
3451 fLayoutVminD_HFN_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3452 fCnew++;
3453 fVmmD_HFN_ChNbFrame->AddFrame(fVminD_HFN_ChNbFrame, fLayoutVminD_HFN_ChNbFrame);
3454
3455
3456 TString xMenuD_HFN_ChNb = " High Frequency Noise ";
3457 fMenuD_HFN_ChNb = new TGPopupMenu(gClient->GetRoot());
3458 fCnew++;
3459 fMenuD_HFN_ChNb->AddEntry(xHistoChannels, fMenuD_HFN_ChNbFullC);
3460 fMenuD_HFN_ChNb->AddEntry(xHistoChannelsSame, fMenuD_HFN_ChNbSameC);
3461 fMenuD_HFN_ChNb->AddEntry(xHistoChannelsSameP, fMenuD_HFN_ChNbSamePC);
3462 fMenuD_HFN_ChNb->AddSeparator();
3463 fMenuD_HFN_ChNb->AddEntry(xHocoVecoViewSorS, fMenuD_HFN_ChNbHocoVecoC);
3464 fMenuD_HFN_ChNb->AddSeparator();
3465 fMenuD_HFN_ChNb->AddEntry(xAsciiFileStex, fMenuD_HFN_ChNbAsciiFileC);
3466 fMenuD_HFN_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
3467 fMenuBarD_HFN_ChNb = new TGMenuBar(fVmmD_HFN_ChNbFrame, 1, 1, kHorizontalFrame);
3468 fCnew++;
3469 fMenuBarD_HFN_ChNb->AddPopup(xMenuD_HFN_ChNb, fMenuD_HFN_ChNb, fLayoutGeneral);
3470 fLayoutMenuBarD_HFN_ChNb = new TGLayoutHints(kLHintsRight, xB1, xB1, xB1, xB1);
3471 fCnew++;
3472 fVmmD_HFN_ChNbFrame->AddFrame(fMenuBarD_HFN_ChNb, fLayoutMenuBarD_HFN_ChNb);
3473
3474 fLayoutVmmD_HFN_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3475 fCnew++;
3476 fStexHozFrame->AddFrame(fVmmD_HFN_ChNbFrame, fLayoutVmmD_HFN_ChNbFrame);
3477
3478
3479 fVmmD_MCs_ChNbFrame = new TGCompositeFrame(fStexHozFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3480 fCnew++;
3481
3482
3483
3484
3485 fVmaxD_MCs_ChNbFrame = new TGCompositeFrame(fVmmD_MCs_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3486 fCnew++;
3487
3488 fVmaxD_MCs_ChNbBut = new TGTextButton(fVmaxD_MCs_ChNbFrame, xYmaxButText);
3489 fCnew++;
3490 fVmaxD_MCs_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVmaxD_MCs_ChNb()");
3491 fVmaxD_MCs_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
3492 fVmaxD_MCs_ChNbBut->SetBackgroundColor(SubDetColor);
3493 fLayoutVmaxD_MCs_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3494 fCnew++;
3495 fVmaxD_MCs_ChNbFrame->AddFrame(fVmaxD_MCs_ChNbBut, fLayoutVmaxD_MCs_ChNbBut);
3496 fEntryVmaxD_MCs_ChNbNumber = new TGTextBuffer();
3497 fCnew++;
3498 fVmaxD_MCs_ChNbText = new TGTextEntry(fVmaxD_MCs_ChNbFrame, fEntryVmaxD_MCs_ChNbNumber);
3499 fCnew++;
3500 fVmaxD_MCs_ChNbText->SetToolTipText("Click and enter ymax");
3501 fVmaxD_MCs_ChNbText->Resize(minmax_buf_lenght, fVmaxD_MCs_ChNbText->GetDefaultHeight());
3502 DisplayInEntryField(fVmaxD_MCs_ChNbText, fKeyVmaxD_MCs_ChNb);
3503 fVmaxD_MCs_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_MCs_ChNb()");
3504 fLayoutVmaxD_MCs_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3505 fCnew++;
3506 fVmaxD_MCs_ChNbFrame->AddFrame(fVmaxD_MCs_ChNbText, fLayoutVmaxD_MCs_ChNbFieldText);
3507 fLayoutVmaxD_MCs_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3508 fCnew++;
3509 fVmmD_MCs_ChNbFrame->AddFrame(fVmaxD_MCs_ChNbFrame, fLayoutVmaxD_MCs_ChNbFrame);
3510
3511
3512 fVminD_MCs_ChNbFrame = new TGCompositeFrame(fVmmD_MCs_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3513 fCnew++;
3514
3515 fVminD_MCs_ChNbBut = new TGTextButton(fVminD_MCs_ChNbFrame, xYminButText);
3516 fCnew++;
3517 fVminD_MCs_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVminD_MCs_ChNb()");
3518 fVminD_MCs_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
3519 fVminD_MCs_ChNbBut->SetBackgroundColor(SubDetColor);
3520 fLayoutVminD_MCs_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3521 fCnew++;
3522 fVminD_MCs_ChNbFrame->AddFrame(fVminD_MCs_ChNbBut, fLayoutVminD_MCs_ChNbBut);
3523 fEntryVminD_MCs_ChNbNumber = new TGTextBuffer();
3524 fCnew++;
3525 fVminD_MCs_ChNbText = new TGTextEntry(fVminD_MCs_ChNbFrame, fEntryVminD_MCs_ChNbNumber);
3526 fCnew++;
3527 fVminD_MCs_ChNbText->SetToolTipText("Click and enter ymin");
3528 fVminD_MCs_ChNbText->Resize(minmax_buf_lenght, fVminD_MCs_ChNbText->GetDefaultHeight());
3529 DisplayInEntryField(fVminD_MCs_ChNbText, fKeyVminD_MCs_ChNb);
3530 fVminD_MCs_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_MCs_ChNb()");
3531 fLayoutVminD_MCs_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3532 fCnew++;
3533 fVminD_MCs_ChNbFrame->AddFrame(fVminD_MCs_ChNbText, fLayoutVminD_MCs_ChNbFieldText);
3534 fLayoutVminD_MCs_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3535 fCnew++;
3536 fVmmD_MCs_ChNbFrame->AddFrame(fVminD_MCs_ChNbFrame, fLayoutVminD_MCs_ChNbFrame);
3537
3538
3539 TString xMenuD_MCs_ChNb = " Mean cor(s,s') ";
3540 fMenuD_MCs_ChNb = new TGPopupMenu(gClient->GetRoot());
3541 fCnew++;
3542 fMenuD_MCs_ChNb->AddEntry(xHistoChannels, fMenuD_MCs_ChNbFullC);
3543 fMenuD_MCs_ChNb->AddEntry(xHistoChannelsSame, fMenuD_MCs_ChNbSameC);
3544 fMenuD_MCs_ChNb->AddEntry(xHistoChannelsSameP, fMenuD_MCs_ChNbSamePC);
3545 fMenuD_MCs_ChNb->AddSeparator();
3546 fMenuD_MCs_ChNb->AddEntry(xHocoVecoViewSorS, fMenuD_MCs_ChNbHocoVecoC);
3547 fMenuD_MCs_ChNb->AddSeparator();
3548 fMenuD_MCs_ChNb->AddEntry(xAsciiFileStex, fMenuD_MCs_ChNbAsciiFileC);
3549 fMenuD_MCs_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
3550 fMenuBarD_MCs_ChNb = new TGMenuBar(fVmmD_MCs_ChNbFrame, 1, 1, kHorizontalFrame);
3551 fCnew++;
3552 fMenuBarD_MCs_ChNb->AddPopup(xMenuD_MCs_ChNb, fMenuD_MCs_ChNb, fLayoutGeneral);
3553 fLayoutMenuBarD_MCs_ChNb = new TGLayoutHints(kLHintsRight, xB1, xB1, xB1, xB1);
3554 fCnew++;
3555 fVmmD_MCs_ChNbFrame->AddFrame(fMenuBarD_MCs_ChNb, fLayoutMenuBarD_MCs_ChNb);
3556
3557 fLayoutVmmD_MCs_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3558 fCnew++;
3559 fStexHozFrame->AddFrame(fVmmD_MCs_ChNbFrame, fLayoutVmmD_MCs_ChNbFrame);
3560
3561
3562 fVmmD_SCs_ChNbFrame = new TGCompositeFrame(fStexHozFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3563 fCnew++;
3564
3565
3566
3567 fVmaxD_SCs_ChNbFrame = new TGCompositeFrame(fVmmD_SCs_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3568 fCnew++;
3569
3570 fVmaxD_SCs_ChNbBut = new TGTextButton(fVmaxD_SCs_ChNbFrame, xYmaxButText);
3571 fCnew++;
3572 fVmaxD_SCs_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVmaxD_SCs_ChNb()");
3573 fVmaxD_SCs_ChNbBut->SetToolTipText("Click here to register ymax for the display of the quantity");
3574 fVmaxD_SCs_ChNbBut->SetBackgroundColor(SubDetColor);
3575 fLayoutVmaxD_SCs_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3576 fCnew++;
3577 fVmaxD_SCs_ChNbFrame->AddFrame(fVmaxD_SCs_ChNbBut, fLayoutVmaxD_SCs_ChNbBut);
3578 fEntryVmaxD_SCs_ChNbNumber = new TGTextBuffer();
3579 fCnew++;
3580 fVmaxD_SCs_ChNbText = new TGTextEntry(fVmaxD_SCs_ChNbFrame, fEntryVmaxD_SCs_ChNbNumber);
3581 fCnew++;
3582 fVmaxD_SCs_ChNbText->SetToolTipText("Click and enter ymax");
3583 fVmaxD_SCs_ChNbText->Resize(minmax_buf_lenght, fVmaxD_SCs_ChNbText->GetDefaultHeight());
3584 DisplayInEntryField(fVmaxD_SCs_ChNbText, fKeyVmaxD_SCs_ChNb);
3585 fVmaxD_SCs_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxD_SCs_ChNb()");
3586 fLayoutVmaxD_SCs_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3587 fCnew++;
3588 fVmaxD_SCs_ChNbFrame->AddFrame(fVmaxD_SCs_ChNbText, fLayoutVmaxD_SCs_ChNbFieldText);
3589 fLayoutVmaxD_SCs_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3590 fCnew++;
3591 fVmmD_SCs_ChNbFrame->AddFrame(fVmaxD_SCs_ChNbFrame, fLayoutVmaxD_SCs_ChNbFrame);
3592
3593
3594 fVminD_SCs_ChNbFrame = new TGCompositeFrame(fVmmD_SCs_ChNbFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3595 fCnew++;
3596
3597 fVminD_SCs_ChNbBut = new TGTextButton(fVminD_SCs_ChNbFrame, xYminButText);
3598 fCnew++;
3599 fVminD_SCs_ChNbBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVminD_SCs_ChNb()");
3600 fVminD_SCs_ChNbBut->SetToolTipText("Click here to register ymin for the display of the quantity");
3601 fVminD_SCs_ChNbBut->SetBackgroundColor(SubDetColor);
3602 fLayoutVminD_SCs_ChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3603 fCnew++;
3604 fVminD_SCs_ChNbFrame->AddFrame(fVminD_SCs_ChNbBut, fLayoutVminD_SCs_ChNbBut);
3605 fEntryVminD_SCs_ChNbNumber = new TGTextBuffer();
3606 fCnew++;
3607 fVminD_SCs_ChNbText = new TGTextEntry(fVminD_SCs_ChNbFrame, fEntryVminD_SCs_ChNbNumber);
3608 fCnew++;
3609 fVminD_SCs_ChNbText->SetToolTipText("Click and enter ymin");
3610 fVminD_SCs_ChNbText->Resize(minmax_buf_lenght, fVminD_SCs_ChNbText->GetDefaultHeight());
3611 DisplayInEntryField(fVminD_SCs_ChNbText, fKeyVminD_SCs_ChNb);
3612 fVminD_SCs_ChNbText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminD_SCs_ChNb()");
3613 fLayoutVminD_SCs_ChNbFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3614 fCnew++;
3615 fVminD_SCs_ChNbFrame->AddFrame(fVminD_SCs_ChNbText, fLayoutVminD_SCs_ChNbFieldText);
3616 fLayoutVminD_SCs_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3617 fCnew++;
3618 fVmmD_SCs_ChNbFrame->AddFrame(fVminD_SCs_ChNbFrame, fLayoutVminD_SCs_ChNbFrame);
3619
3620
3621 TString xMenuD_SCs_ChNb = " Sigma of cor(s,s') ";
3622 fMenuD_SCs_ChNb = new TGPopupMenu(gClient->GetRoot());
3623 fCnew++;
3624 fMenuD_SCs_ChNb->AddEntry(xHistoChannels, fMenuD_SCs_ChNbFullC);
3625 fMenuD_SCs_ChNb->AddEntry(xHistoChannelsSame, fMenuD_SCs_ChNbSameC);
3626 fMenuD_SCs_ChNb->AddEntry(xHistoChannelsSameP, fMenuD_SCs_ChNbSamePC);
3627 fMenuD_SCs_ChNb->AddSeparator();
3628 fMenuD_SCs_ChNb->AddEntry(xHocoVecoViewSorS, fMenuD_SCs_ChNbHocoVecoC);
3629 fMenuD_SCs_ChNb->AddSeparator();
3630 fMenuD_SCs_ChNb->AddEntry(xAsciiFileStex, fMenuD_SCs_ChNbAsciiFileC);
3631 fMenuD_SCs_ChNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
3632 fMenuBarD_SCs_ChNb = new TGMenuBar(fVmmD_SCs_ChNbFrame, 1, 1, kHorizontalFrame);
3633 fCnew++;
3634 fMenuBarD_SCs_ChNb->AddPopup(xMenuD_SCs_ChNb, fMenuD_SCs_ChNb, fLayoutGeneral);
3635 fLayoutMenuBarD_SCs_ChNb = new TGLayoutHints(kLHintsRight, xB1, xB1, xB1, xB1);
3636 fCnew++;
3637 fVmmD_SCs_ChNbFrame->AddFrame(fMenuBarD_SCs_ChNb, fLayoutMenuBarD_SCs_ChNb);
3638
3639 fLayoutVmmD_SCs_ChNbFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3640 fCnew++;
3641 fStexHozFrame->AddFrame(fVmmD_SCs_ChNbFrame, fLayoutVmmD_SCs_ChNbFrame);
3642
3643
3644
3645
3646 fLayoutStexHozFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3647 fCnew++;
3648 fStexUpFrame->AddFrame(fStexHozFrame, fLayoutStexHozFrame);
3649 AddFrame(fVoidFrame, fLayoutGeneral);
3650
3651
3652 fVmmLHFccFrame = new TGCompositeFrame(fStexUpFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3653 fCnew++;
3654
3655
3656
3657 fVmaxLHFccFrame = new TGCompositeFrame(fVmmLHFccFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3658 fCnew++;
3659
3660 fVmaxLHFccBut = new TGTextButton(fVmaxLHFccFrame, xYmaxButText);
3661 fCnew++;
3662 fVmaxLHFccBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVmaxLHFcc()");
3663 fVmaxLHFccBut->SetToolTipText("Click here to register ymax for the display of the quantity");
3664 fVmaxLHFccBut->SetBackgroundColor(SubDetColor);
3665 fLayoutVmaxLHFccBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3666 fCnew++;
3667 fVmaxLHFccFrame->AddFrame(fVmaxLHFccBut, fLayoutVmaxLHFccBut);
3668 fEntryVmaxLHFccNumber = new TGTextBuffer();
3669 fCnew++;
3670 fVmaxLHFccText = new TGTextEntry(fVmaxLHFccFrame, fEntryVmaxLHFccNumber);
3671 fCnew++;
3672 fVmaxLHFccText->SetToolTipText("Click and enter ymax");
3673 fVmaxLHFccText->Resize(minmax_buf_lenght, fVmaxLHFccText->GetDefaultHeight());
3674 DisplayInEntryField(fVmaxLHFccText, fKeyVmaxLHFcc);
3675 fVmaxLHFccText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxLHFcc()");
3676
3677 fLayoutVmaxLHFccFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3678 fCnew++;
3679 fVmaxLHFccFrame->AddFrame(fVmaxLHFccText, fLayoutVmaxLHFccFieldText);
3680 fLayoutVmaxLHFccFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3681 fCnew++;
3682 fVmmLHFccFrame->AddFrame(fVmaxLHFccFrame, fLayoutVmaxLHFccFrame);
3683
3684
3685 fVminLHFccFrame = new TGCompositeFrame(fVmmLHFccFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3686 fCnew++;
3687
3688 fVminLHFccBut = new TGTextButton(fVminLHFccFrame, xYminButText);
3689 fCnew++;
3690 fVminLHFccBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVminLHFcc()");
3691 fVminLHFccBut->SetToolTipText("Click here to register ymin for the display of the quantity");
3692 fVminLHFccBut->SetBackgroundColor(SubDetColor);
3693 fLayoutVminLHFccBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3694 fCnew++;
3695 fVminLHFccFrame->AddFrame(fVminLHFccBut, fLayoutVminLHFccBut);
3696 fEntryVminLHFccNumber = new TGTextBuffer();
3697 fCnew++;
3698 fVminLHFccText = new TGTextEntry(fVminLHFccFrame, fEntryVminLHFccNumber);
3699 fCnew++;
3700 fVminLHFccText->SetToolTipText("Click and enter ymin");
3701 fVminLHFccText->Resize(minmax_buf_lenght, fVminLHFccText->GetDefaultHeight());
3702 DisplayInEntryField(fVminLHFccText, fKeyVminLHFcc);
3703 fVminLHFccText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminLHFcc()");
3704 fLayoutVminLHFccFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3705 fCnew++;
3706 fVminLHFccFrame->AddFrame(fVminLHFccText, fLayoutVminLHFccFieldText);
3707 fLayoutVminLHFccFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3708 fCnew++;
3709 fVmmLHFccFrame->AddFrame(fVminLHFccFrame, fLayoutVminLHFccFrame);
3710
3711
3712 TString xMenuLHFcc = "GeoView LF,HF Cor(c,c') (expert)";
3713 TString xLFccViewSorS;
3714 if (fSubDet == "EB") {
3715 xLFccViewSorS = "Low Frequency Cor(c,c'), tower place -> Cor matrix";
3716 }
3717 if (fSubDet == "EE") {
3718 xLFccViewSorS = "Low Frequency Cor(c,c'), SC place -> Cor matrix";
3719 }
3720 TString xHFccViewSorS;
3721 if (fSubDet == "EB") {
3722 xHFccViewSorS = "High Frequency Cor(c,c'), tower place -> Cor matrix";
3723 }
3724 if (fSubDet == "EE") {
3725 xHFccViewSorS = "High Frequency Cor(c,c'), SC place -> Cor matrix";
3726 }
3727
3728 fMenuLHFcc = new TGPopupMenu(gClient->GetRoot());
3729 fCnew++;
3730 fMenuLHFcc->AddEntry(xLFccViewSorS, fMenuLFccColzC);
3731 fMenuLHFcc->AddEntry(xHFccViewSorS, fMenuHFccColzC);
3732 fMenuLHFcc->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
3733 fMenuBarLHFcc = new TGMenuBar(fVmmLHFccFrame, 1, 1, kHorizontalFrame);
3734 fCnew++;
3735 fMenuBarLHFcc->AddPopup(xMenuLHFcc, fMenuLHFcc, fLayoutGeneral);
3736 fLayoutMenuBarLHFcc = new TGLayoutHints(kLHintsRight, xB1, xB1, xB1, xB1);
3737 fCnew++;
3738 fVmmLHFccFrame->AddFrame(fMenuBarLHFcc, fLayoutMenuBarLHFcc);
3739 fLayoutVmmLHFccFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3740 fCnew++;
3741 fStexUpFrame->AddFrame(fVmmLHFccFrame, fLayoutVmmLHFccFrame);
3742
3743
3744 fVmmLFccMosFrame = new TGCompositeFrame(fStexUpFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3745 fCnew++;
3746
3747
3748
3749 fVmaxLFccMosFrame = new TGCompositeFrame(fVmmLFccMosFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3750 fCnew++;
3751
3752 fVmaxLFccMosBut = new TGTextButton(fVmaxLFccMosFrame, xYmaxButText);
3753 fCnew++;
3754 fVmaxLFccMosBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVmaxLFccMos()");
3755 fVmaxLFccMosBut->SetToolTipText("Click here to register ymax for the display of the quantity");
3756 fVmaxLFccMosBut->SetBackgroundColor(SubDetColor);
3757 fLayoutVmaxLFccMosBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3758 fCnew++;
3759 fVmaxLFccMosFrame->AddFrame(fVmaxLFccMosBut, fLayoutVmaxLFccMosBut);
3760 fEntryVmaxLFccMosNumber = new TGTextBuffer();
3761 fCnew++;
3762 fVmaxLFccMosText = new TGTextEntry(fVmaxLFccMosFrame, fEntryVmaxLFccMosNumber);
3763 fCnew++;
3764 fVmaxLFccMosText->SetToolTipText("Click and enter ymax");
3765 fVmaxLFccMosText->Resize(minmax_buf_lenght, fVmaxLFccMosText->GetDefaultHeight());
3766 DisplayInEntryField(fVmaxLFccMosText, fKeyVmaxLFccMos);
3767 fVmaxLFccMosText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxLFccMos()");
3768
3769 fLayoutVmaxLFccMosFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3770 fCnew++;
3771 fVmaxLFccMosFrame->AddFrame(fVmaxLFccMosText, fLayoutVmaxLFccMosFieldText);
3772 fLayoutVmaxLFccMosFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3773 fCnew++;
3774 fVmmLFccMosFrame->AddFrame(fVmaxLFccMosFrame, fLayoutVmaxLFccMosFrame);
3775
3776
3777 fVminLFccMosFrame = new TGCompositeFrame(fVmmLFccMosFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3778 fCnew++;
3779
3780 fVminLFccMosBut = new TGTextButton(fVminLFccMosFrame, xYminButText);
3781 fCnew++;
3782 fVminLFccMosBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVminLFccMos()");
3783 fVminLFccMosBut->SetToolTipText("Click here to register ymin for the display of the quantity");
3784 fVminLFccMosBut->SetBackgroundColor(SubDetColor);
3785 fLayoutVminLFccMosBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3786 fCnew++;
3787 fVminLFccMosFrame->AddFrame(fVminLFccMosBut, fLayoutVminLFccMosBut);
3788 fEntryVminLFccMosNumber = new TGTextBuffer();
3789 fCnew++;
3790 fVminLFccMosText = new TGTextEntry(fVminLFccMosFrame, fEntryVminLFccMosNumber);
3791 fCnew++;
3792 fVminLFccMosText->SetToolTipText("Click and enter ymin");
3793 fVminLFccMosText->Resize(minmax_buf_lenght, fVminLFccMosText->GetDefaultHeight());
3794 DisplayInEntryField(fVminLFccMosText, fKeyVminLFccMos);
3795 fVminLFccMosText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminLFccMos()");
3796 fLayoutVminLFccMosFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3797 fCnew++;
3798 fVminLFccMosFrame->AddFrame(fVminLFccMosText, fLayoutVminLFccMosFieldText);
3799 fLayoutVminLFccMosFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3800 fCnew++;
3801 fVmmLFccMosFrame->AddFrame(fVminLFccMosFrame, fLayoutVminLFccMosFrame);
3802
3803
3804 TString xMenuLFccMos;
3805 if (fSubDet == "EB") {
3806 xMenuLFccMos = "Mean LF |Cor(c,c')| in (tow,tow')";
3807 }
3808 if (fSubDet == "EE") {
3809 xMenuLFccMos = "Mean LF |Cor(c,c')| in (SC,SC')";
3810 }
3811
3812 fMenuLFccMos = new TGPopupMenu(gClient->GetRoot());
3813 fCnew++;
3814 fMenuLFccMos->AddEntry("2D, COLZ ", fMenuLFccMosColzC);
3815 fMenuLFccMos->AddEntry("3D, LEGO2Z", fMenuLFccMosLegoC);
3816 fMenuLFccMos->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
3817 fMenuBarLFccMos = new TGMenuBar(fVmmLFccMosFrame, 1, 1, kHorizontalFrame);
3818 fCnew++;
3819 fMenuBarLFccMos->AddPopup(xMenuLFccMos, fMenuLFccMos, fLayoutGeneral);
3820 fLayoutMenuBarLFccMos = new TGLayoutHints(kLHintsRight, xB1, xB1, xB1, xB1);
3821 fCnew++;
3822 fVmmLFccMosFrame->AddFrame(fMenuBarLFccMos, fLayoutMenuBarLFccMos);
3823 fLayoutVmmLFccMosFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3824 fCnew++;
3825 fStexUpFrame->AddFrame(fVmmLFccMosFrame, fLayoutVmmLFccMosFrame);
3826
3827
3828 fVmmHFccMosFrame = new TGCompositeFrame(fStexUpFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3829 fCnew++;
3830
3831
3832
3833 fVmaxHFccMosFrame = new TGCompositeFrame(fVmmHFccMosFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3834 fCnew++;
3835
3836 fVmaxHFccMosBut = new TGTextButton(fVmaxHFccMosFrame, xYmaxButText);
3837 fCnew++;
3838 fVmaxHFccMosBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVmaxHFccMos()");
3839 fVmaxHFccMosBut->SetToolTipText("Click here to register ymax for the display of the quantity");
3840 fVmaxHFccMosBut->SetBackgroundColor(SubDetColor);
3841 fLayoutVmaxHFccMosBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3842 fCnew++;
3843 fVmaxHFccMosFrame->AddFrame(fVmaxHFccMosBut, fLayoutVmaxHFccMosBut);
3844 fEntryVmaxHFccMosNumber = new TGTextBuffer();
3845 fCnew++;
3846 fVmaxHFccMosText = new TGTextEntry(fVmaxHFccMosFrame, fEntryVmaxHFccMosNumber);
3847 fCnew++;
3848 fVmaxHFccMosText->SetToolTipText("Click and enter ymax");
3849 fVmaxHFccMosText->Resize(minmax_buf_lenght, fVmaxHFccMosText->GetDefaultHeight());
3850 DisplayInEntryField(fVmaxHFccMosText, fKeyVmaxHFccMos);
3851 fVmaxHFccMosText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVmaxHFccMos()");
3852
3853 fLayoutVmaxHFccMosFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3854 fCnew++;
3855 fVmaxHFccMosFrame->AddFrame(fVmaxHFccMosText, fLayoutVmaxHFccMosFieldText);
3856 fLayoutVmaxHFccMosFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3857 fCnew++;
3858 fVmmHFccMosFrame->AddFrame(fVmaxHFccMosFrame, fLayoutVmaxHFccMosFrame);
3859
3860
3861 fVminHFccMosFrame = new TGCompositeFrame(fVmmHFccMosFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3862 fCnew++;
3863
3864 fVminHFccMosBut = new TGTextButton(fVminHFccMosFrame, xYminButText);
3865 fCnew++;
3866 fVminHFccMosBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonVminHFccMos()");
3867 fVminHFccMosBut->SetToolTipText("Click here to register ymin for the display of the quantity");
3868 fVminHFccMosBut->SetBackgroundColor(SubDetColor);
3869 fLayoutVminHFccMosBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3870 fCnew++;
3871 fVminHFccMosFrame->AddFrame(fVminHFccMosBut, fLayoutVminHFccMosBut);
3872 fEntryVminHFccMosNumber = new TGTextBuffer();
3873 fCnew++;
3874 fVminHFccMosText = new TGTextEntry(fVminHFccMosFrame, fEntryVminHFccMosNumber);
3875 fCnew++;
3876 fVminHFccMosText->SetToolTipText("Click and enter ymin");
3877 fVminHFccMosText->Resize(minmax_buf_lenght, fVminHFccMosText->GetDefaultHeight());
3878 DisplayInEntryField(fVminHFccMosText, fKeyVminHFccMos);
3879 fVminHFccMosText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonVminHFccMos()");
3880 fLayoutVminHFccMosFieldText = new TGLayoutHints(kLHintsBottom | kLHintsRight, xB1, xB1, xB1, xB1);
3881 fCnew++;
3882 fVminHFccMosFrame->AddFrame(fVminHFccMosText, fLayoutVminHFccMosFieldText);
3883 fLayoutVminHFccMosFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3884 fCnew++;
3885 fVmmHFccMosFrame->AddFrame(fVminHFccMosFrame, fLayoutVminHFccMosFrame);
3886
3887
3888 TString xMenuHFccMos;
3889 if (fSubDet == "EB") {
3890 xMenuHFccMos = "Mean HF |Cor(c,c')| in (tow,tow')";
3891 }
3892 if (fSubDet == "EE") {
3893 xMenuHFccMos = "Mean HF |Cor(c,c')| in (SC,SC')";
3894 }
3895
3896 fMenuHFccMos = new TGPopupMenu(gClient->GetRoot());
3897 fCnew++;
3898 fMenuHFccMos->AddEntry("2D, COLZ ", fMenuHFccMosColzC);
3899 fMenuHFccMos->AddEntry("3D, LEGO2Z", fMenuHFccMosLegoC);
3900 fMenuHFccMos->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
3901 fMenuBarHFccMos = new TGMenuBar(fVmmHFccMosFrame, 1, 1, kHorizontalFrame);
3902 fCnew++;
3903 fMenuBarHFccMos->AddPopup(xMenuHFccMos, fMenuHFccMos, fLayoutGeneral);
3904 fLayoutMenuBarHFccMos = new TGLayoutHints(kLHintsRight, xB1, xB1, xB1, xB1);
3905 fCnew++;
3906 fVmmHFccMosFrame->AddFrame(fMenuBarHFccMos, fLayoutMenuBarHFccMos);
3907 fLayoutVmmHFccMosFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
3908 fCnew++;
3909 fStexUpFrame->AddFrame(fVmmHFccMosFrame, fLayoutVmmHFccMosFrame);
3910
3911
3912 fLayoutStexUpFrame = new TGLayoutHints(kLHintsTop | kLHintsCenterX, xB1, xB1, xB1, xB1);
3913 fCnew++;
3914 AddFrame(fStexUpFrame, fLayoutStexUpFrame);
3915
3916 AddFrame(fVoidFrame, fLayoutGeneral);
3917
3918
3919
3920
3921
3922
3923
3924
3925 fStinSpFrame = new TGCompositeFrame(this, 60, 20, kHorizontalFrame, GetDefaultFrameBackground());
3926 fCnew++;
3927
3928 TString xStinAButText = "?";
3929 TString xStinBButText = "?";
3930 Int_t Stin_buf_lenght = 10;
3931
3932 if (fSubDet == "EB") {
3933 xStinAButText = " Tower# [1,68] ";
3934 xStinBButText = " Tower'# [1,68] ";
3935 Stin_buf_lenght = 50;
3936 }
3937 if (fSubDet == "EE" && (fKeyStexNumber == 1 || fKeyStexNumber == 3)) {
3938 xStinAButText = "SC# for const. [150,298] ";
3939 xStinBButText = "SC'# for const. [150,298] ";
3940 Stin_buf_lenght = 50;
3941 }
3942 if (fSubDet == "EE" && (fKeyStexNumber == 2 || fKeyStexNumber == 4)) {
3943 xStinAButText = "SC# for const. [ 1,149] ";
3944 xStinBButText = "SC'# for const. [ 1,149] ";
3945 Stin_buf_lenght = 50;
3946 }
3947
3948
3949 TString xStinNumberText;
3950 if (fSubDet == "EB") {
3951 xStinNumberText = "Click here to register the tower number written on the right";
3952 }
3953 if (fSubDet == "EE") {
3954 xStinNumberText = "Click here to register the SC number written on the right";
3955 }
3956
3957 TString xStinNumberValue;
3958 if (fSubDet == "EB") {
3959 xStinNumberValue = "Click and enter the tower number";
3960 }
3961 if (fSubDet == "EE") {
3962 xStinNumberValue = "Click and enter the SC number";
3963 }
3964
3965 fTxSubFrame = new TGCompositeFrame(fStinSpFrame, 60, 20, kVerticalFrame, GetDefaultFrameBackground());
3966 fCnew++;
3967
3968 fStinAFrame = new TGCompositeFrame(fTxSubFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
3969 fCnew++;
3970
3971 fStinABut = new TGTextButton(fStinAFrame, xStinAButText, fStinAButC);
3972 fCnew++;
3973 fStinABut->Connect("Clicked()", "TEcnaGui", this, "DoButtonStinA()");
3974 fStinABut->SetToolTipText(xStinNumberText);
3975 fStinABut->Resize(Stin_buf_lenght, fStinABut->GetDefaultHeight());
3976 fStinABut->SetBackgroundColor(SubDetColor);
3977 fLayoutStinABut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3978 fCnew++;
3979 fStinAFrame->AddFrame(fStinABut, fLayoutStinABut);
3980
3981 fEntryStinANumber = new TGTextBuffer();
3982 fCnew++;
3983 fStinAText = new TGTextEntry(fStinAFrame, fEntryStinANumber);
3984 fCnew++;
3985 fStinAText->SetToolTipText(xStinNumberValue);
3986 fStinAText->Resize(Stin_buf_lenght, fStinAText->GetDefaultHeight());
3987
3988 Int_t StinAValue = 0;
3989 if (fSubDet == "EB") {
3990 StinAValue = fKeyStinANumber;
3991 }
3992 if (fSubDet == "EE" && fKeyStexNumber != 0) {
3993 StinAValue = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber, fKeyStinANumber);
3994 }
3995 DisplayInEntryField(fStinAText, StinAValue);
3996
3997 fStinAText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonStinA()");
3998 fLayoutStinAField = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
3999 fCnew++;
4000 fStinAFrame->AddFrame(fStinAText, fLayoutStinAField);
4001 fTxSubFrame->AddFrame(fStinAFrame, fLayoutGeneral);
4002
4003
4004 TString xChNbButText;
4005 if (fSubDet == "EB") {
4006 xChNbButText = "Tower Xtal Numbering ";
4007 }
4008 if (fSubDet == "EE") {
4009 xChNbButText = " SC Xtal Numbering ";
4010 }
4011
4012 fButChNb = new TGTextButton(fTxSubFrame, xChNbButText, fButChNbC);
4013 fCnew++;
4014 fButChNb->Connect("Clicked()", "TEcnaGui", this, "DoButtonChNb()");
4015 fButChNb->SetBackgroundColor(SubDetColor);
4016 fLayoutChNbBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4017 fCnew++;
4018 fTxSubFrame->AddFrame(fButChNb, fLayoutChNbBut);
4019
4020
4021
4022
4023 TString xMenuBarCorGlob;
4024 if (fSubDet == "EB") {
4025 xMenuBarCorGlob = " GeoView Cor(s,s') (expert)";
4026 }
4027 if (fSubDet == "EE") {
4028 xMenuBarCorGlob = " GeoView Cor(s,s') (expert)";
4029 }
4030
4031 TString xMenuBarCovGlob;
4032 if (fSubDet == "EB") {
4033 xMenuBarCovGlob = " GeoView Cov(s,s') (expert)";
4034 }
4035 if (fSubDet == "EE") {
4036 xMenuBarCovGlob = " GeoView Cov(s,s') (expert)";
4037 }
4038
4039
4040 fMenuCorssAll = new TGPopupMenu(gClient->GetRoot());
4041 fCnew++;
4042 fMenuCorssAll->AddEntry(" Cor(s,s'), Xtal place -> Cor matrix", fMenuCorssAllColzC);
4043 fMenuCorssAll->AddEntry(" Cov(s,s'), Xtal place -> Cov matrix", fMenuCovssAllColzC);
4044 fMenuCorssAll->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
4045 fMenuBarCorssAll = new TGMenuBar(fTxSubFrame, 1, 1, kHorizontalFrame);
4046 fCnew++;
4047 fMenuBarCorssAll->AddPopup(xMenuBarCorGlob, fMenuCorssAll, fLayoutGeneral);
4048 fTxSubFrame->AddFrame(fMenuBarCorssAll, fLayoutTopLeft);
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059 fLayoutTxSubFrame = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4060 fCnew++;
4061 fStinSpFrame->AddFrame(fTxSubFrame, fLayoutTxSubFrame);
4062
4063
4064 fTySubFrame = new TGCompositeFrame(fStinSpFrame, 60, 20, kVerticalFrame, GetDefaultFrameBackground());
4065 fCnew++;
4066
4067 fStinBFrame = new TGCompositeFrame(fTySubFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
4068 fCnew++;
4069
4070 fStinBBut = new TGTextButton(fStinBFrame, xStinBButText, fStinBButC);
4071 fCnew++;
4072 fStinBBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonStinB()");
4073 fStinBBut->SetToolTipText(xStinNumberText);
4074 fStinBBut->Resize(Stin_buf_lenght, fStinBBut->GetDefaultHeight());
4075 fStinBBut->SetBackgroundColor(SubDetColor);
4076 fLayoutStinBBut = new TGLayoutHints(kLHintsLeft, xB1, xB1, xB1, xB1);
4077 fCnew++;
4078 fStinBFrame->AddFrame(fStinBBut, fLayoutStinBBut);
4079
4080 fEntryStinBNumber = new TGTextBuffer();
4081 fCnew++;
4082 fStinBText = new TGTextEntry(fStinBFrame, fEntryStinBNumber);
4083 fCnew++;
4084 fStinBText->SetToolTipText(xStinNumberValue);
4085 fStinBText->Resize(Stin_buf_lenght, fStinBText->GetDefaultHeight());
4086
4087 Int_t StinBValue = 0;
4088 if (fSubDet == "EB") {
4089 StinBValue = fKeyStinBNumber;
4090 }
4091 if (fSubDet == "EE" && fKeyStexNumber != 0) {
4092 StinBValue = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber, fKeyStinBNumber);
4093 }
4094 DisplayInEntryField(fStinBText, StinBValue);
4095
4096 fStinBText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonStinB()");
4097 fLayoutStinBField = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4098 fCnew++;
4099 fStinBFrame->AddFrame(fStinBText, fLayoutStinBField);
4100 fTySubFrame->AddFrame(fStinBFrame, fLayoutGeneral);
4101
4102
4103
4104
4105
4106
4107 fLayoutTySubFrame = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4108 fCnew++;
4109
4110 fStinSpFrame->AddFrame(fTySubFrame, fLayoutTySubFrame);
4111
4112
4113 fLayoutStinSpFrame = new TGLayoutHints(kLHintsTop | kLHintsCenterX, xB1, xB1, xB1, xB1);
4114 fCnew++;
4115 AddFrame(fStinSpFrame, fLayoutStinSpFrame);
4116
4117
4118 TString xMenuBarLFCorcc;
4119 if (fSubDet == "EB") {
4120 xMenuBarLFCorcc = " Low Frequency Cor(Xtal tower, Xtal tower')";
4121 }
4122 if (fSubDet == "EE") {
4123 xMenuBarLFCorcc = " Low Frequency Cor(Xtal SC, Xtal SC')";
4124 }
4125
4126 TString xMenuBarHFCorcc;
4127 if (fSubDet == "EB") {
4128 xMenuBarHFCorcc = " High Frequency Cor(Xtal tower, Xtal tower')";
4129 }
4130 if (fSubDet == "EE") {
4131 xMenuBarHFCorcc = " High Frequency Cor(Xtal SC, Xtal SC')";
4132 }
4133
4134
4135 fMenuLFCorcc = new TGPopupMenu(gClient->GetRoot());
4136 fCnew++;
4137 fMenuLFCorcc->AddEntry("2D, COLZ", fMenuLFCorccColzC);
4138 fMenuLFCorcc->AddSeparator();
4139 fMenuLFCorcc->AddEntry("3D, LEGO2Z", fMenuLFCorccLegoC);
4140 fMenuLFCorcc->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
4141 fMenuBarLFCorcc = new TGMenuBar(this, 1, 1, kHorizontalFrame);
4142 fCnew++;
4143 fMenuBarLFCorcc->AddPopup(xMenuBarLFCorcc, fMenuLFCorcc, fLayoutTopRight);
4144 AddFrame(fMenuBarLFCorcc, fLayoutGeneral);
4145
4146
4147 fMenuHFCorcc = new TGPopupMenu(gClient->GetRoot());
4148 fCnew++;
4149 fMenuHFCorcc->AddEntry("2D, COLZ", fMenuHFCorccColzC);
4150 fMenuHFCorcc->AddSeparator();
4151 fMenuHFCorcc->AddEntry("3D, LEGO2Z", fMenuHFCorccLegoC);
4152 fMenuHFCorcc->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
4153 fMenuBarHFCorcc = new TGMenuBar(this, 1, 1, kHorizontalFrame);
4154 fCnew++;
4155 fMenuBarHFCorcc->AddPopup(xMenuBarHFCorcc, fMenuHFCorcc, fLayoutTopRight);
4156 AddFrame(fMenuBarHFCorcc, fLayoutGeneral);
4157
4158
4159
4160
4161
4162
4163
4164 fChSpFrame = new TGCompositeFrame(this, 60, 20, kHorizontalFrame, GetDefaultFrameBackground());
4165 fCnew++;
4166
4167 TString xChanButText;
4168 if (fSubDet == "EB") {
4169 xChanButText = " Channel# in tower [0,24] ";
4170 }
4171 if (fSubDet == "EE") {
4172 xChanButText = " Crystal# in SC [1,25] ";
4173 }
4174
4175 TString xSampButText = " Sample# [1,10] ";
4176
4177 Int_t chan_buf_lenght = 50;
4178 Int_t samp_buf_lenght = 50;
4179
4180 TString xMenuBarCorss = " Correlations between samples";
4181 TString xMenuBarCovss = " Covariances between samples";
4182 TString xMenuBarEvs = " Sample means";
4183 TString xMenuBarSigs = " Sample sigmas";
4184
4185
4186 fChSubFrame = new TGCompositeFrame(fChSpFrame, 60, 20, kVerticalFrame, GetDefaultFrameBackground());
4187 fCnew++;
4188
4189 fChanFrame = new TGCompositeFrame(fChSubFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
4190 fCnew++;
4191
4192 fChanBut = new TGTextButton(fChanFrame, xChanButText, fChanButC);
4193 fCnew++;
4194 fChanBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonChan()");
4195 fChanBut->SetToolTipText("Click here to register the channel number written to the right");
4196 fChanBut->Resize(chan_buf_lenght, fChanBut->GetDefaultHeight());
4197 fChanBut->SetBackgroundColor(SubDetColor);
4198 fLayoutChanBut = new TGLayoutHints(kLHintsLeft, xB1, xB1, xB1, xB1);
4199 fCnew++;
4200 fChanFrame->AddFrame(fChanBut, fLayoutChanBut);
4201
4202 fEntryChanNumber = new TGTextBuffer();
4203 fCnew++;
4204 fChanText = new TGTextEntry(fChanFrame, fEntryChanNumber);
4205 fCnew++;
4206 fChanText->SetToolTipText("Click and enter the channel number");
4207 fChanText->Resize(chan_buf_lenght, fChanText->GetDefaultHeight());
4208
4209 Int_t xReadChanNumber = 0;
4210 if (fSubDet == "EB") {
4211 xReadChanNumber = 0;
4212 }
4213 if (fSubDet == "EE") {
4214 xReadChanNumber = 1;
4215 }
4216 DisplayInEntryField(fChanText, xReadChanNumber);
4217
4218 fChanText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonChan()");
4219 fLayoutChanField = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4220 fCnew++;
4221 fChanFrame->AddFrame(fChanText, fLayoutChanField);
4222 fChSubFrame->AddFrame(fChanFrame, fLayoutGeneral);
4223
4224
4225
4226
4227 fMenuCorss = new TGPopupMenu(gClient->GetRoot());
4228 fCnew++;
4229 fMenuCorss->AddEntry("2D, COLZ", fMenuCorssColzC);
4230 fMenuCorss->AddEntry("2D, BOX", fMenuCorssBoxC);
4231 fMenuCorss->AddEntry("2D, TEXT", fMenuCorssTextC);
4232 fMenuCorss->AddEntry("2D, CONTZ", fMenuCorssContzC);
4233 fMenuCorss->AddSeparator();
4234 fMenuCorss->AddEntry("3D, LEGO2Z", fMenuCorssLegoC);
4235 fMenuCorss->AddEntry("3D, SURF1Z", fMenuCorssSurf1C);
4236 fMenuCorss->AddEntry("3D, SURF2Z", fMenuCorssSurf2C);
4237 fMenuCorss->AddEntry("3D, SURF3Z", fMenuCorssSurf3C);
4238 fMenuCorss->AddEntry("3D, SURF4", fMenuCorssSurf4C);
4239 fMenuCorss->AddSeparator();
4240 fMenuCorss->AddEntry("2D, Write in ASCII file", fMenuCorssAsciiFileC);
4241 fMenuCorss->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
4242 fMenuBarCorss = new TGMenuBar(fChSubFrame, 1, 1, kHorizontalFrame);
4243 fCnew++;
4244 fMenuBarCorss->AddPopup(xMenuBarCorss, fMenuCorss, fLayoutTopLeft);
4245 fChSubFrame->AddFrame(fMenuBarCorss, fLayoutTopLeft);
4246
4247
4248
4249 fMenuCovss = new TGPopupMenu(gClient->GetRoot());
4250 fCnew++;
4251 fMenuCovss->AddEntry("2D, COLZ", fMenuCovssColzC);
4252 fMenuCovss->AddEntry("2D, BOX", fMenuCovssBoxC);
4253 fMenuCovss->AddEntry("2D, TEXT", fMenuCovssTextC);
4254 fMenuCovss->AddEntry("2D, CONTZ", fMenuCovssContzC);
4255 fMenuCovss->AddSeparator();
4256 fMenuCovss->AddEntry("3D, LEGO2Z", fMenuCovssLegoC);
4257 fMenuCovss->AddEntry("3D, SURF1Z", fMenuCovssSurf1C);
4258 fMenuCovss->AddEntry("3D, SURF2Z", fMenuCovssSurf2C);
4259 fMenuCovss->AddEntry("3D, SURF3Z", fMenuCovssSurf3C);
4260 fMenuCovss->AddEntry("3D, SURF4", fMenuCovssSurf4C);
4261 fMenuCovss->AddSeparator();
4262 fMenuCovss->AddEntry("2D, Write in ASCII file", fMenuCovssAsciiFileC);
4263 fMenuCovss->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
4264 fMenuBarCovss = new TGMenuBar(fChSubFrame, 1, 1, kHorizontalFrame);
4265 fCnew++;
4266 fMenuBarCovss->AddPopup(xMenuBarCovss, fMenuCovss, fLayoutTopLeft);
4267 fChSubFrame->AddFrame(fMenuBarCovss, fLayoutTopLeft);
4268
4269
4270
4271 fMenuD_MSp_SpNb = new TGPopupMenu(gClient->GetRoot());
4272 fCnew++;
4273 fMenuD_MSp_SpNb->AddEntry("1D Histo ", fMenuD_MSp_SpNbLineFullC);
4274 fMenuD_MSp_SpNb->AddEntry("1D Histo SAME", fMenuD_MSp_SpNbLineSameC);
4275 fMenuD_MSp_SpNb->AddEntry("1D Histo 25 Xtals", fMenuD_MSp_SpNbLineAllStinC);
4276 fMenuD_MSp_SpNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
4277 fMenuBarD_MSp_SpNb = new TGMenuBar(fChSubFrame, 1, 1, kHorizontalFrame);
4278 fCnew++;
4279 fMenuBarD_MSp_SpNb->AddPopup(xMenuBarEvs, fMenuD_MSp_SpNb, fLayoutTopLeft);
4280 fChSubFrame->AddFrame(fMenuBarD_MSp_SpNb, fLayoutTopLeft);
4281
4282
4283
4284 fMenuD_SSp_SpNb = new TGPopupMenu(gClient->GetRoot());
4285 fCnew++;
4286 fMenuD_SSp_SpNb->AddEntry("1D Histo ", fMenuD_SSp_SpNbLineFullC);
4287 fMenuD_SSp_SpNb->AddEntry("1D Histo SAME", fMenuD_SSp_SpNbLineSameC);
4288 fMenuD_SSp_SpNb->AddEntry("1D Histo 25 Xtals", fMenuD_SSp_SpNbLineAllStinC);
4289 fMenuD_SSp_SpNb->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
4290 fMenuBarD_SSp_SpNb = new TGMenuBar(fChSubFrame, 1, 1, kHorizontalFrame);
4291 fCnew++;
4292 fMenuBarD_SSp_SpNb->AddPopup(xMenuBarSigs, fMenuD_SSp_SpNb, fLayoutTopLeft);
4293 fChSubFrame->AddFrame(fMenuBarD_SSp_SpNb, fLayoutTopLeft);
4294
4295
4296 fLayoutChSubFrame = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4297 fCnew++;
4298 fChSpFrame->AddFrame(fChSubFrame, fLayoutChSubFrame);
4299
4300
4301 fSpSubFrame = new TGCompositeFrame(fChSpFrame, 60, 20, kVerticalFrame, GetDefaultFrameBackground());
4302 fCnew++;
4303
4304 fSampFrame = new TGCompositeFrame(fSpSubFrame, 60, 20, kHorizontalFrame, kSunkenFrame);
4305 fCnew++;
4306
4307 fSampBut = new TGTextButton(fSampFrame, xSampButText, fSampButC);
4308 fCnew++;
4309 fSampBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonSamp()");
4310 fSampBut->SetToolTipText("Click here to register the sample number written to the right");
4311 fSampBut->Resize(samp_buf_lenght, fSampBut->GetDefaultHeight());
4312 fSampBut->SetBackgroundColor(SubDetColor);
4313 fLayoutSampBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4314 fCnew++;
4315 fSampFrame->AddFrame(fSampBut, fLayoutSampBut);
4316
4317 fEntrySampNumber = new TGTextBuffer();
4318 fCnew++;
4319 fSampText = new TGTextEntry(fSampFrame, fEntrySampNumber);
4320 fCnew++;
4321 fSampText->SetToolTipText("Click and enter the sample number");
4322 fSampText->Resize(samp_buf_lenght, fSampText->GetDefaultHeight());
4323 Int_t xKeySampNumber = fKeySampNumber + 1;
4324 DisplayInEntryField(fSampText, xKeySampNumber);
4325 fSampText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonSamp()");
4326 fLayoutSampField = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
4327 fCnew++;
4328 fSampFrame->AddFrame(fSampText, fLayoutSampField);
4329
4330 fSpSubFrame->AddFrame(fSampFrame, fLayoutGeneral);
4331
4332 fLayoutSpSubFrame = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
4333 fCnew++;
4334 fChSpFrame->AddFrame(fSpSubFrame, fLayoutSpSubFrame);
4335
4336
4337 fLayoutChSpFrame = new TGLayoutHints(kLHintsTop | kLHintsCenterX, xB1, xB1, xB1, xB1);
4338 fCnew++;
4339 AddFrame(fChSpFrame, fLayoutChSpFrame);
4340
4341
4342
4343 fMenuAdcProj = new TGPopupMenu(gClient->GetRoot());
4344 fCnew++;
4345 fMenuAdcProj->AddEntry("1D Histo ", fMenuAdcProjSampLineFullC);
4346 fMenuAdcProj->AddEntry("1D Histo SAME", fMenuAdcProjSampLineSameC);
4347 fMenuAdcProj->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
4348
4349 fMenuBarAdcProj = new TGMenuBar(this, 1, 1, kHorizontalFrame);
4350 fCnew++;
4351
4352 TString xEvtDistrib;
4353 xEvtDistrib = "ADC sample values for (Xtal, Sample)";
4354
4355 fMenuBarAdcProj->AddPopup(xEvtDistrib, fMenuAdcProj, fLayoutGeneral);
4356
4357 fLayoutMenuBarAdcProj = new TGLayoutHints(kLHintsCenterX, xB1, xB1, xB1, xB1);
4358 fCnew++;
4359 AddFrame(fMenuBarAdcProj, fLayoutMenuBarAdcProj);
4360
4361 AddFrame(fVoidFrame, fLayoutGeneral);
4362
4363
4364
4365
4366
4367
4368 TString xRunListButText = " List of run file name for history plots ";
4369 Int_t run_list_buf_lenght = 170;
4370
4371 fRulFrame = new TGCompositeFrame(this, 60, 20, kHorizontalFrame, kSunkenFrame);
4372 fCnew++;
4373
4374 fRulBut = new TGTextButton(fRulFrame, xRunListButText);
4375 fCnew++;
4376 fRulBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonRul()");
4377 fRulBut->SetToolTipText(
4378 "Click here to register the name of the file \n containing the run list (written on the right)");
4379 fRulBut->SetBackgroundColor(SubDetColor);
4380 fLayoutRulBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4381 fCnew++;
4382 fRulFrame->AddFrame(fRulBut, fLayoutRulBut);
4383
4384 fEntryRulNumber = new TGTextBuffer();
4385 fCnew++;
4386 fRulText = new TGTextEntry(fRulFrame, fEntryRulNumber);
4387 fCnew++;
4388 fRulText->SetToolTipText("Click and enter the name of the file \n containing the run list");
4389 fRulText->Resize(run_list_buf_lenght, fRulText->GetDefaultHeight());
4390 fRulText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonRul()");
4391 fLayoutRulFieldText = new TGLayoutHints(kLHintsBottom | kLHintsLeft, xB1, xB1, xB1, xB1);
4392 fCnew++;
4393 fRulFrame->AddFrame(fRulText, fLayoutRulFieldText);
4394
4395 fLayoutRulFieldFrame = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4396 fCnew++;
4397 AddFrame(fRulFrame, fLayoutRulFieldFrame);
4398
4399
4400 TString xMenuBarHistory = " Menu for history plots";
4401 fMenuHistory = new TGPopupMenu(gClient->GetRoot());
4402 fCnew++;
4403 fMenuHistory->AddEntry("1D, Pedestals ", fMenuH_Ped_DatePolmFullC);
4404 fMenuHistory->AddEntry("1D, Pedestals SAME", fMenuH_Ped_DatePolmSameC);
4405 fMenuHistory->AddSeparator();
4406 fMenuHistory->AddEntry("1D, Total Noise ", fMenuH_TNo_DatePolmFullC);
4407 fMenuHistory->AddEntry("1D, Total Noise SAME", fMenuH_TNo_DatePolmSameC);
4408 fMenuHistory->AddEntry("1D, Total Noise SAME n", fMenuH_TNo_DatePolmSamePC);
4409 fMenuHistory->AddSeparator();
4410 fMenuHistory->AddEntry("1D, Low Frequency Noise ", fMenuH_LFN_DatePolmFullC);
4411 fMenuHistory->AddEntry("1D, Low Frequency Noise SAME", fMenuH_LFN_DatePolmSameC);
4412 fMenuHistory->AddEntry("1D, Low Frequency Noise SAME n", fMenuH_LFN_DatePolmSamePC);
4413 fMenuHistory->AddSeparator();
4414 fMenuHistory->AddEntry("1D, High Frequency Noise ", fMenuH_HFN_DatePolmFullC);
4415 fMenuHistory->AddEntry("1D, High Frequency Noise SAME", fMenuH_HFN_DatePolmSameC);
4416 fMenuHistory->AddEntry("1D, High Frequency Noise SAME n", fMenuH_HFN_DatePolmSamePC);
4417 fMenuHistory->AddSeparator();
4418 fMenuHistory->AddEntry("1D, Mean cor(s,s') ", fMenuH_MCs_DatePolmFullC);
4419 fMenuHistory->AddEntry("1D, Mean cor(s,s') SAME", fMenuH_MCs_DatePolmSameC);
4420 fMenuHistory->AddEntry("1D, Mean cor(s,s') SAME n", fMenuH_MCs_DatePolmSamePC);
4421 fMenuHistory->AddSeparator();
4422 fMenuHistory->AddEntry("1D, Sigma of cor(s,s') ", fMenuH_SCs_DatePolmFullC);
4423 fMenuHistory->AddEntry("1D, Sigma of cor(s,s') SAME", fMenuH_SCs_DatePolmSameC);
4424 fMenuHistory->AddEntry("1D, Sigma of cor(s,s') SAME n", fMenuH_SCs_DatePolmSamePC);
4425
4426 fMenuHistory->Connect("Activated(Int_t)", "TEcnaGui", this, "HandleMenu(Int_t)");
4427 fMenuBarHistory = new TGMenuBar(this, 1, 1, kHorizontalFrame);
4428 fCnew++;
4429 fMenuBarHistory->AddPopup(xMenuBarHistory, fMenuHistory, fLayoutTopLeft);
4430 AddFrame(fMenuBarHistory, fLayoutTopLeft);
4431
4432 AddFrame(fVoidFrame, fLayoutGeneral);
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445 fLinLogFrame = new TGCompositeFrame(this, 60, 20, kHorizontalFrame, kSunkenFrame);
4446 fCnew++;
4447
4448
4449 TString xLogxButText = " LOG X ";
4450 fButLogx = new TGCheckButton(fLinLogFrame, xLogxButText, fButLogxC);
4451 fCnew++;
4452 fButLogx->Connect("Clicked()", "TEcnaGui", this, "DoButtonLogx()");
4453 fButLogx->SetBackgroundColor(SubDetColor);
4454 fLayoutLogxBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4455 fCnew++;
4456 fLinLogFrame->AddFrame(fButLogx, fLayoutLogxBut);
4457
4458
4459 TString xLogyButText = " LOG Y ";
4460 fButLogy = new TGCheckButton(fLinLogFrame, xLogyButText, fButLogyC);
4461 fCnew++;
4462 fButLogy->Connect("Clicked()", "TEcnaGui", this, "DoButtonLogy()");
4463 fButLogy->SetBackgroundColor(SubDetColor);
4464 fLayoutLogyBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4465 fCnew++;
4466 fLinLogFrame->AddFrame(fButLogy, fLayoutLogyBut);
4467
4468
4469 TString xProjyButText = " Y projection ";
4470 fButProjy = new TGCheckButton(fLinLogFrame, xProjyButText, fButProjyC);
4471 fCnew++;
4472 fButProjy->Connect("Clicked()", "TEcnaGui", this, "DoButtonProjy()");
4473 fButProjy->SetBackgroundColor(SubDetColor);
4474 fLayoutProjyBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4475 fCnew++;
4476 fLinLogFrame->AddFrame(fButProjy, fLayoutProjyBut);
4477
4478 AddFrame(fVoidFrame, fLayoutBottRight);
4479 AddFrame(fLinLogFrame, fLayoutGeneral);
4480
4481
4482 TString xGenTitleButText = " General title for plots ";
4483 Int_t gen_title_buf_lenght = 220;
4484
4485 fGentFrame = new TGCompositeFrame(this, 60, 20, kHorizontalFrame, kSunkenFrame);
4486 fCnew++;
4487
4488 fGentBut = new TGTextButton(fGentFrame, xGenTitleButText);
4489 fCnew++;
4490 fGentBut->Connect("Clicked()", "TEcnaGui", this, "DoButtonGent()");
4491 fGentBut->SetToolTipText("Click here to register the general title (written on the right)");
4492 fGentBut->SetBackgroundColor(SubDetColor);
4493 fLayoutGentBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4494 fCnew++;
4495 fGentFrame->AddFrame(fGentBut, fLayoutGentBut);
4496
4497 fEntryGentNumber = new TGTextBuffer();
4498 fCnew++;
4499 fGentText = new TGTextEntry(fGentFrame, fEntryGentNumber);
4500 fCnew++;
4501 fGentText->SetToolTipText("Click and enter the general title");
4502 fGentText->Resize(gen_title_buf_lenght, fGentText->GetDefaultHeight());
4503 DisplayInEntryField(fGentText, fKeyGeneralTitle);
4504 fGentText->Connect("ReturnPressed()", "TEcnaGui", this, "DoButtonGent()");
4505 fLayoutGentFieldText = new TGLayoutHints(kLHintsBottom | kLHintsLeft, xB1, xB1, xB1, xB1);
4506 fCnew++;
4507 fGentFrame->AddFrame(fGentText, fLayoutGentFieldText);
4508
4509 fLayoutGentFieldFrame = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4510 fCnew++;
4511 AddFrame(fGentFrame, fLayoutGentFieldFrame);
4512 AddFrame(fVoidFrame);
4513
4514
4515 fColorExitFrame = new TGCompositeFrame(this, 60, 20, kHorizontalFrame, GetDefaultFrameBackground());
4516 fCnew++;
4517
4518
4519 TString xColPalButText = " Colors ";
4520 fButColPal = new TGCheckButton(fColorExitFrame, xColPalButText, fButColPalC);
4521 fCnew++;
4522 fButColPal->Connect("Clicked()", "TEcnaGui", this, "DoButtonColPal()");
4523 fButColPal->SetBackgroundColor(SubDetColor);
4524 fLayoutColPalBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4525 fCnew++;
4526 fColorExitFrame->AddFrame(fButColPal, fLayoutColPalBut);
4527
4528
4529 TString xExitButText = " Exit ";
4530 fButExit = new TGTextButton(fColorExitFrame, xExitButText, fButExitC);
4531 fCnew++;
4532 fButExit->Connect("Clicked()", "TEcnaGui", this, "DoButtonExit()");
4533 fButExit->SetBackgroundColor(SubDetColor);
4534 fLayoutExitBut = new TGLayoutHints(kLHintsTop | kLHintsRight, xB1, xB1, xB1, xB1);
4535 fCnew++;
4536 fColorExitFrame->AddFrame(fButExit, fLayoutExitBut);
4537
4538 fLayoutColorExitFrame = new TGLayoutHints(kLHintsTop | kLHintsExpandX, xB1, xB1, xB1, xB1);
4539 fCnew++;
4540
4541
4542 AddFrame(fColorExitFrame, fLayoutColorExitFrame);
4543
4544
4545
4546 fLastFrame = new TGCompositeFrame(this, 60, 20, kHorizontalFrame, kSunkenFrame);
4547 fCnew++;
4548
4549
4550 TString xCloneButText = " Clone Last Canvas ";
4551 fButClone = new TGTextButton(fLastFrame, xCloneButText, fButCloneC);
4552 fCnew++;
4553 fButClone->Connect("Clicked()", "TEcnaGui", this, "DoButtonClone()");
4554 fButClone->SetBackgroundColor(SubDetColor);
4555 fLayoutCloneBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4556 fCnew++;
4557 fLastFrame->AddFrame(fButClone, fLayoutCloneBut);
4558
4559
4560 TString xRootButText = " ROOT Version ";
4561 fButRoot = new TGTextButton(fLastFrame, xRootButText, fButRootC);
4562 fCnew++;
4563 fButRoot->Connect("Clicked()", "TEcnaGui", this, "DoButtonRoot()");
4564 fButRoot->SetBackgroundColor(SubDetColor);
4565 fLayoutRootBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4566 fCnew++;
4567 fLastFrame->AddFrame(fButRoot, fLayoutRootBut);
4568
4569
4570 TString xHelpButText = " Help ";
4571 fButHelp = new TGTextButton(fLastFrame, xHelpButText, fButHelpC);
4572 fCnew++;
4573 fButHelp->Connect("Clicked()", "TEcnaGui", this, "DoButtonHelp()");
4574 fButHelp->SetBackgroundColor(SubDetColor);
4575 fLayoutHelpBut = new TGLayoutHints(kLHintsTop | kLHintsLeft, xB1, xB1, xB1, xB1);
4576 fCnew++;
4577 fLastFrame->AddFrame(fButHelp, fLayoutHelpBut);
4578
4579 AddFrame(fLastFrame, fLayoutGeneral);
4580
4581
4582
4583 MapSubwindows();
4584 Layout();
4585
4586 if (fSubDet == "EB") {
4587 SetWindowName("CMS Ecal Correlated Noise Analysis <EB>");
4588 }
4589 if (fSubDet == "EE") {
4590 SetWindowName("CMS Ecal Correlated Noise Analysis <EE>");
4591 }
4592
4593 SetBackgroundColor(SubDetColor);
4594 SetIconName("CNA");
4595 MapWindow();
4596
4597 }
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628 void TEcnaGui::DoButtonAna() {
4629
4630
4631 const char* bufferchain = fAnaText->GetBuffer()->GetString();
4632
4633 fKeyAnaType = bufferchain;
4634
4635 fCnaCommand++;
4636 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of analysis name -> " << fKeyAnaType << std::endl;
4637 }
4638
4639
4640 void TEcnaGui::DoButtonNors() {
4641
4642
4643 const char* bufferchain = fNorsText->GetBuffer()->GetString();
4644 fKeyNbOfSamplesString = bufferchain;
4645 fKeyNbOfSamples = atoi(bufferchain);
4646
4647 if (!(fKeyNbOfSamples >= 1 && fKeyNbOfSamples <= fEcal->MaxSampADC())) {
4648 fCnaError++;
4649 std::cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===>"
4650 << " Number of required samples for reading ROOT file = " << fKeyNbOfSamples << ": OUT OF RANGE, "
4651 << std::endl
4652 << " forced to the default value (=" << fEcal->MaxSampADC() << ")."
4653 << fTTBELL << std::endl;
4654 fKeyNbOfSamples = fEcal->MaxSampADC();
4655 DisplayInEntryField(fNorsText, fKeyNbOfSamples);
4656 }
4657
4658
4659 TString xSampButText = " Sample [?,?] ";
4660
4661 if (fKeyNbOfSamples == 1) {
4662 xSampButText = " Sample [1,1] ";
4663 }
4664 if (fKeyNbOfSamples == 2) {
4665 xSampButText = " Sample [1,2] ";
4666 }
4667 if (fKeyNbOfSamples == 3) {
4668 xSampButText = " Sample [1,3] ";
4669 }
4670 if (fKeyNbOfSamples == 4) {
4671 xSampButText = " Sample [1,4] ";
4672 }
4673 if (fKeyNbOfSamples == 5) {
4674 xSampButText = " Sample [1,5] ";
4675 }
4676 if (fKeyNbOfSamples == 6) {
4677 xSampButText = " Sample [1,6] ";
4678 }
4679 if (fKeyNbOfSamples == 7) {
4680 xSampButText = " Sample [1,7] ";
4681 }
4682 if (fKeyNbOfSamples == 8) {
4683 xSampButText = " Sample [1,8] ";
4684 }
4685 if (fKeyNbOfSamples == 9) {
4686 xSampButText = " Sample [1,9] ";
4687 }
4688 if (fKeyNbOfSamples == 10) {
4689 xSampButText = " Sample [1,10] ";
4690 }
4691
4692 fSampBut->SetText(xSampButText);
4693
4694 fCnaCommand++;
4695 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of number of samples in ROOT file -> "
4696 << fKeyNbOfSamples << std::endl;
4697 }
4698
4699 void TEcnaGui::DoButtonNbSampForCalc() {
4700
4701
4702 const char* bufferchain = fNbSampForCalcText->GetBuffer()->GetString();
4703 fKeyNbOfSampForCalcString = bufferchain;
4704 fKeyNbOfSampForCalc = atoi(bufferchain);
4705
4706 if (!(fKeyNbOfSampForCalc >= 1 && fKeyNbOfSampForCalc <= fKeyNbOfSamples)) {
4707 fCnaError++;
4708 std::cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===>"
4709 << " Number of required samples for calculations = " << fKeyNbOfSampForCalc << ": OUT OF RANGE, "
4710 << std::endl
4711 << " forced to the default value (=" << fKeyNbOfSamples << ")."
4712 << fTTBELL << std::endl;
4713 fKeyNbOfSampForCalc = fKeyNbOfSamples;
4714 DisplayInEntryField(fNbSampForCalcText, fKeyNbOfSampForCalc);
4715 }
4716 fCnaCommand++;
4717 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of number of samples for calculations -> "
4718 << fKeyNbOfSampForCalc << std::endl;
4719 }
4720
4721
4722 void TEcnaGui::DoButtonRun() {
4723
4724
4725
4726 const char* bufferchain = fRunText->GetBuffer()->GetString();
4727 fKeyRunNumberString = bufferchain;
4728 fKeyRunNumber = atoi(bufferchain);
4729 fCnaCommand++;
4730 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of run number -> " << fKeyRunNumber << std::endl;
4731 }
4732
4733
4734 void TEcnaGui::DoButtonFev() {
4735
4736
4737 const char* bufferchain = fFevText->GetBuffer()->GetString();
4738 fKeyFirstReqEvtNumberString = bufferchain;
4739 fKeyFirstReqEvtNumber = atoi(bufferchain);
4740
4741 if (fKeyFirstReqEvtNumber <= 0) {
4742 fCnaError++;
4743 std::cout << " !TEcnaGui (" << fCnaError << ") *ERROR* ===> "
4744 << " First event number = " << fKeyFirstReqEvtNumber << ": negative. " << std::endl
4745 << fTTBELL << std::endl;
4746 }
4747
4748 fCnaCommand++;
4749 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of first requested event number -> "
4750 << fKeyFirstReqEvtNumber << std::endl;
4751 }
4752
4753 void TEcnaGui::DoButtonLev() {
4754
4755
4756 const char* bufferchain = fLevText->GetBuffer()->GetString();
4757 fKeyLastReqEvtNumberString = bufferchain;
4758 fKeyLastReqEvtNumber = atoi(bufferchain);
4759
4760 if (fKeyLastReqEvtNumber <= fKeyFirstReqEvtNumber) {
4761 fCnaError++;
4762 std::cout << " !TEcnaGui (" << fCnaError << ") *WARNING* ===> "
4763 << " Last requested event number = " << fKeyLastReqEvtNumber
4764 << ": less than first requested event number (= " << fKeyFirstReqEvtNumber << ")." << std::endl;
4765 }
4766
4767 fCnaCommand++;
4768 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of last requested event number -> "
4769 << fKeyLastReqEvtNumber << std::endl;
4770 }
4771
4772 void TEcnaGui::DoButtonRev() {
4773
4774
4775 const char* bufferchain = fRevText->GetBuffer()->GetString();
4776 fKeyReqNbOfEvtsString = bufferchain;
4777 fKeyReqNbOfEvts = atoi(bufferchain);
4778
4779 Int_t nb_range_evts = fKeyLastReqEvtNumber - fKeyFirstReqEvtNumber + 1;
4780
4781 if (fKeyLastReqEvtNumber < fKeyFirstReqEvtNumber) {
4782 fCnaError++;
4783 std::cout << " !TEcnaGui (" << fCnaError << ") *WARNING* ===> "
4784 << " Last requested event number = " << fKeyLastReqEvtNumber
4785 << " less than first requested event number = " << fKeyFirstReqEvtNumber << std::endl;
4786 }
4787
4788 if (fKeyLastReqEvtNumber >= fKeyFirstReqEvtNumber && fKeyReqNbOfEvts > nb_range_evts) {
4789 fCnaError++;
4790 std::cout << " !TEcnaGui (" << fCnaError << ") *WARNING* ===> "
4791 << " Nb of requested events = " << fKeyReqNbOfEvts << ": out of range (range = " << fKeyFirstReqEvtNumber
4792 << "," << fKeyLastReqEvtNumber << ") => " << nb_range_evts << " events." << std::endl;
4793 }
4794
4795 fCnaCommand++;
4796 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of requested number of events -> " << fKeyReqNbOfEvts
4797 << std::endl;
4798 }
4799
4800
4801 void TEcnaGui::DoButtonStex() {
4802
4803
4804 const char* bufferchain = fStexText->GetBuffer()->GetString();
4805 fKeyStexNumberString = bufferchain;
4806 fKeyStexNumber = atoi(bufferchain);
4807
4808 if (fSubDet == "EB") {
4809 fCnaCommand++;
4810 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of SuperModule number -> " << fKeyStexNumber
4811 << std::endl;
4812
4813
4814 if (fKeyStexNumber < 0) {
4815 fKeyStexNumber = -fKeyStexNumber + fEcal->MaxSMInEB() / 2;
4816 }
4817
4818 if ((fKeyStexNumber < 0) || (fKeyStexNumber > fEcal->MaxSMInEB())) {
4819 fCnaError++;
4820 std::cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> "
4821 << " EB / SM number = " << fKeyStexNumber << ": out of range. Range = 0 (EB) or [ 1 ,"
4822 << fEcal->MaxSMInEB() << " ] (SM)"
4823 << " or [ -" << fEcal->MaxSMInEBMinus() << ", +" << fEcal->MaxSMInEBPlus() << "] (SM)" << fTTBELL
4824 << std::endl;
4825 }
4826 }
4827
4828 if (fSubDet == "EE") {
4829
4830 TString xStinAButText = "?";
4831 TString xStinBButText = "?";
4832 if (fSubDet == "EE" && (fKeyStexNumber == 1 || fKeyStexNumber == 3)) {
4833 xStinAButText = "SC for const. [150,298] ";
4834 xStinBButText = "SC' for const. [150,298] ";
4835 fStinABut->SetText(xStinAButText);
4836 fStinBBut->SetText(xStinBButText);
4837 }
4838 if (fSubDet == "EE" && (fKeyStexNumber == 2 || fKeyStexNumber == 4)) {
4839 xStinAButText = "SC for const. [ 1,149] ";
4840 xStinBButText = "SC' for const. [ 1,149] ";
4841 fStinABut->SetText(xStinAButText);
4842 fStinBBut->SetText(xStinBButText);
4843 }
4844
4845 if (fSubDet == "EE" && (fKeyStexNumber == 0)) {
4846 xStinAButText = "SC for const. ";
4847 xStinBButText = "SC' for const. ";
4848 fStinABut->SetText(xStinAButText);
4849 fStinBBut->SetText(xStinBButText);
4850 }
4851
4852
4853 if (fKeyStexNumber > 0) {
4854 Int_t StinAValue = fKeyStinANumber;
4855 if (fSubDet == "EE") {
4856 StinAValue = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber, fKeyStinANumber);
4857 }
4858 DisplayInEntryField(fStinAText, StinAValue);
4859 Int_t StinBValue = fKeyStinBNumber;
4860 if (fSubDet == "EE") {
4861 StinBValue = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber, fKeyStinBNumber);
4862 }
4863 DisplayInEntryField(fStinBText, StinBValue);
4864 }
4865
4866 fCnaCommand++;
4867 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Dee number -> " << fKeyStexNumber << std::endl;
4868
4869 if ((fKeyStexNumber < 0) || (fKeyStexNumber > fEcal->MaxDeeInEE())) {
4870 fCnaError++;
4871 std::cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> "
4872 << " EE / Dee number = " << fKeyStexNumber << ": out of range. Range = 0 (EE) or [ 1 ,"
4873 << fEcal->MaxDeeInEE() << " ] (Dee)" << fTTBELL << std::endl;
4874 }
4875 }
4876 }
4877
4878
4879 void TEcnaGui::DoButtonVminD_NOE_ChNb() {
4880
4881
4882 const char* bufferchain = fVminD_NOE_ChNbText->GetBuffer()->GetString();
4883
4884 fKeyVminD_NOE_ChNb = (Double_t)atof(bufferchain);
4885
4886 fCnaCommand++;
4887 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymin for plot 'number of events' -> "
4888 << fKeyVminD_NOE_ChNb << std::endl;
4889 }
4890
4891
4892 void TEcnaGui::DoButtonVmaxD_NOE_ChNb() {
4893
4894
4895 const char* bufferchain = fVmaxD_NOE_ChNbText->GetBuffer()->GetString();
4896
4897 fKeyVmaxD_NOE_ChNb = (Double_t)atof(bufferchain);
4898
4899 fCnaCommand++;
4900 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymax for plot 'number of events' -> "
4901 << fKeyVmaxD_NOE_ChNb << std::endl;
4902 }
4903
4904
4905 void TEcnaGui::DoButtonVminD_Ped_ChNb() {
4906
4907
4908 const char* bufferchain = fVminD_Ped_ChNbText->GetBuffer()->GetString();
4909
4910 fKeyVminD_Ped_ChNb = (Double_t)atof(bufferchain);
4911
4912 fCnaCommand++;
4913 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymin for plot 'pedestal' -> "
4914 << fKeyVminD_Ped_ChNb << std::endl;
4915 }
4916
4917
4918 void TEcnaGui::DoButtonVmaxD_Ped_ChNb() {
4919
4920
4921 const char* bufferchain = fVmaxD_Ped_ChNbText->GetBuffer()->GetString();
4922
4923 fKeyVmaxD_Ped_ChNb = (Double_t)atof(bufferchain);
4924
4925 fCnaCommand++;
4926 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymax for plot 'pedestal' -> "
4927 << fKeyVmaxD_Ped_ChNb << std::endl;
4928 }
4929
4930
4931 void TEcnaGui::DoButtonVminD_TNo_ChNb() {
4932
4933
4934 const char* bufferchain = fVminD_TNo_ChNbText->GetBuffer()->GetString();
4935
4936 fKeyVminD_TNo_ChNb = (Double_t)atof(bufferchain);
4937
4938 fCnaCommand++;
4939 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymin for plot 'total noise' -> "
4940 << fKeyVminD_TNo_ChNb << std::endl;
4941 }
4942
4943
4944 void TEcnaGui::DoButtonVmaxD_TNo_ChNb() {
4945
4946
4947 const char* bufferchain = fVmaxD_TNo_ChNbText->GetBuffer()->GetString();
4948
4949 fKeyVmaxD_TNo_ChNb = (Double_t)atof(bufferchain);
4950
4951 fCnaCommand++;
4952 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymax for plot 'total noise' -> "
4953 << fKeyVmaxD_TNo_ChNb << std::endl;
4954 }
4955
4956
4957 void TEcnaGui::DoButtonVminD_MCs_ChNb() {
4958
4959
4960 const char* bufferchain = fVminD_MCs_ChNbText->GetBuffer()->GetString();
4961
4962 fKeyVminD_MCs_ChNb = (Double_t)atof(bufferchain);
4963
4964 fCnaCommand++;
4965 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymin for plot 'mean cor(s,s')' -> "
4966 << fKeyVminD_MCs_ChNb << std::endl;
4967 }
4968
4969
4970 void TEcnaGui::DoButtonVmaxD_MCs_ChNb() {
4971
4972
4973 const char* bufferchain = fVmaxD_MCs_ChNbText->GetBuffer()->GetString();
4974
4975 fKeyVmaxD_MCs_ChNb = (Double_t)atof(bufferchain);
4976
4977 fCnaCommand++;
4978 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymax for plot 'mean cor(s,s')' -> "
4979 << fKeyVmaxD_MCs_ChNb << std::endl;
4980 }
4981
4982
4983 void TEcnaGui::DoButtonVminD_LFN_ChNb() {
4984
4985
4986 const char* bufferchain = fVminD_LFN_ChNbText->GetBuffer()->GetString();
4987
4988 fKeyVminD_LFN_ChNb = (Double_t)atof(bufferchain);
4989
4990 fCnaCommand++;
4991 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymin for plot 'low frequency noise' -> "
4992 << fKeyVminD_LFN_ChNb << std::endl;
4993 }
4994
4995
4996 void TEcnaGui::DoButtonVmaxD_LFN_ChNb() {
4997
4998
4999 const char* bufferchain = fVmaxD_LFN_ChNbText->GetBuffer()->GetString();
5000
5001 fKeyVmaxD_LFN_ChNb = (Double_t)atof(bufferchain);
5002
5003 fCnaCommand++;
5004 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymax for plot 'low frequency noise' -> "
5005 << fKeyVmaxD_LFN_ChNb << std::endl;
5006 }
5007
5008
5009 void TEcnaGui::DoButtonVminD_HFN_ChNb() {
5010
5011
5012 const char* bufferchain = fVminD_HFN_ChNbText->GetBuffer()->GetString();
5013
5014 fKeyVminD_HFN_ChNb = (Double_t)atof(bufferchain);
5015
5016 fCnaCommand++;
5017 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymin for plot 'high frequency noise' -> "
5018 << fKeyVminD_HFN_ChNb << std::endl;
5019 }
5020
5021
5022 void TEcnaGui::DoButtonVmaxD_HFN_ChNb() {
5023
5024
5025 const char* bufferchain = fVmaxD_HFN_ChNbText->GetBuffer()->GetString();
5026
5027 fKeyVmaxD_HFN_ChNb = (Double_t)atof(bufferchain);
5028
5029 fCnaCommand++;
5030 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymax for plot 'high frequency noise' -> "
5031 << fKeyVmaxD_HFN_ChNb << std::endl;
5032 }
5033
5034
5035 void TEcnaGui::DoButtonVminD_SCs_ChNb() {
5036
5037
5038 const char* bufferchain = fVminD_SCs_ChNbText->GetBuffer()->GetString();
5039
5040 fKeyVminD_SCs_ChNb = (Double_t)atof(bufferchain);
5041
5042 fCnaCommand++;
5043 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymin for plot 'sigma of cor(s,s')' -> "
5044 << fKeyVminD_SCs_ChNb << std::endl;
5045 }
5046
5047
5048 void TEcnaGui::DoButtonVmaxD_SCs_ChNb() {
5049
5050
5051 const char* bufferchain = fVmaxD_SCs_ChNbText->GetBuffer()->GetString();
5052
5053 fKeyVmaxD_SCs_ChNb = (Double_t)atof(bufferchain);
5054
5055 fCnaCommand++;
5056 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymax for plot 'sigma of cor(s,s')' -> "
5057 << fKeyVmaxD_SCs_ChNb << std::endl;
5058 }
5059
5060
5061 void TEcnaGui::DoButtonVminLFccMos() {
5062
5063
5064 const char* bufferchain = fVminLFccMosText->GetBuffer()->GetString();
5065
5066 fKeyVminLFccMos = (Double_t)atof(bufferchain);
5067
5068 fCnaCommand++;
5069 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymin for plot 'mean LF |cor(c,c')|' -> "
5070 << fKeyVminLFccMos << std::endl;
5071 }
5072
5073
5074 void TEcnaGui::DoButtonVmaxLFccMos() {
5075
5076
5077 const char* bufferchain = fVmaxLFccMosText->GetBuffer()->GetString();
5078
5079 fKeyVmaxLFccMos = (Double_t)atof(bufferchain);
5080
5081 fCnaCommand++;
5082 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymax for plot 'mean LF |cor(c,c')|' -> "
5083 << fKeyVmaxLFccMos << std::endl;
5084 }
5085
5086
5087 void TEcnaGui::DoButtonVminHFccMos() {
5088
5089
5090 const char* bufferchain = fVminHFccMosText->GetBuffer()->GetString();
5091
5092 fKeyVminHFccMos = (Double_t)atof(bufferchain);
5093
5094 fCnaCommand++;
5095 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymin for plot 'mean HF |cor(c,c')|' -> "
5096 << fKeyVminHFccMos << std::endl;
5097 }
5098
5099
5100 void TEcnaGui::DoButtonVmaxHFccMos() {
5101
5102
5103 const char* bufferchain = fVmaxHFccMosText->GetBuffer()->GetString();
5104
5105 fKeyVmaxHFccMos = (Double_t)atof(bufferchain);
5106
5107 fCnaCommand++;
5108 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymax for plot 'mean HF |cor(c,c')|' -> "
5109 << fKeyVmaxHFccMos << std::endl;
5110 }
5111
5112
5113
5114 void TEcnaGui::DoButtonVminLHFcc() {
5115
5116
5117 const char* bufferchain = fVminLHFccText->GetBuffer()->GetString();
5118
5119 fKeyVminLHFcc = (Double_t)atof(bufferchain);
5120
5121 fCnaCommand++;
5122 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymin for plot 'cor(c,c') in " << fStinName.Data()
5123 << "s' -> " << fKeyVminLHFcc << std::endl;
5124 }
5125
5126
5127 void TEcnaGui::DoButtonVmaxLHFcc() {
5128
5129
5130 const char* bufferchain = fVmaxLHFccText->GetBuffer()->GetString();
5131
5132 fKeyVmaxLHFcc = (Double_t)atof(bufferchain);
5133
5134 fCnaCommand++;
5135 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of Ymax for plot 'cor(c,c') in " << fStinName.Data()
5136 << "s' -> " << fKeyVmaxLHFcc << std::endl;
5137 }
5138
5139
5140
5141 void TEcnaGui::DoButtonStexNb() {
5142 ViewStexStinNumbering();
5143 }
5144
5145 void TEcnaGui::DoButtonStinA() {
5146
5147
5148 const char* bufferchain = fStinAText->GetBuffer()->GetString();
5149
5150 Int_t xReadStinANumberForCons = atoi(bufferchain);
5151
5152 if (fSubDet == "EB") {
5153 fKeyStinANumber = xReadStinANumberForCons;
5154 }
5155 if (fSubDet == "EE") {
5156 fKeyStinANumber = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fKeyStexNumber, xReadStinANumberForCons);
5157 }
5158
5159 if (fSubDet == "EB") {
5160 fCnaCommand++;
5161 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of " << fStinName.Data() << " number -> "
5162 << xReadStinANumberForCons << std::endl;
5163
5164 if ((fKeyStinANumber < 1) || (fKeyStinANumber > fEcal->MaxStinEcnaInStex())) {
5165 fCnaError++;
5166 std::cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> " << fStinName.Data()
5167 << " number = " << fKeyStinANumber << ": out of range ( range = [ 1 ," << fEcal->MaxStinEcnaInStex()
5168 << " ] ) " << fTTBELL << std::endl;
5169 }
5170 }
5171
5172 if (fSubDet == "EE") {
5173 fCnaCommand++;
5174 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of " << fStinName.Data()
5175 << " number for construction -> " << xReadStinANumberForCons << std::endl;
5176
5177 if (fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxDeeInEE()) {
5178 Int_t off_set_cons = 0;
5179 if (fKeyStexNumber == 1 || fKeyStexNumber == 3) {
5180 off_set_cons = fEcal->MaxSCForConsInDee();
5181 }
5182
5183 if (xReadStinANumberForCons <= off_set_cons ||
5184 xReadStinANumberForCons > fEcal->MaxSCForConsInDee() + off_set_cons) {
5185 fCnaError++;
5186 std::cout << " !TEcnaGui (" << fCnaError
5187 << ") *** ERROR *** ===> SC nb for construction = " << xReadStinANumberForCons
5188 << ". Out of range ( range = [ " << off_set_cons + 1 << ","
5189 << fEcal->MaxSCForConsInDee() + off_set_cons << "] )" << fTTBELL << std::endl;
5190 }
5191 } else {
5192 fCnaError++;
5193 std::cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> DeeNumber = " << fKeyStexNumber
5194 << ". Out of range ( range = [1," << fEcal->MaxDeeInEE() << "] )" << fTTBELL << std::endl;
5195 }
5196 }
5197 }
5198
5199
5200 void TEcnaGui::DoButtonStinB() {
5201
5202
5203 const char* bufferchain = fStinBText->GetBuffer()->GetString();
5204
5205 Int_t xReadStinBNumberForCons = atoi(bufferchain);
5206
5207 if (fSubDet == "EB") {
5208 fKeyStinBNumber = xReadStinBNumberForCons;
5209 }
5210 if (fSubDet == "EE") {
5211 fKeyStinBNumber = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fKeyStexNumber, xReadStinBNumberForCons);
5212 }
5213
5214 fCnaCommand++;
5215 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of " << fStinName.Data() << "' number -> "
5216 << xReadStinBNumberForCons << std::endl;
5217
5218 if (fSubDet == "EB") {
5219 if ((fKeyStinBNumber < 1) || (fKeyStinBNumber > fEcal->MaxStinEcnaInStex())) {
5220 fCnaError++;
5221 std::cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> " << fStinName.Data()
5222 << "' number = " << fKeyStinBNumber << ": out of range ( range = [ 1 ," << fEcal->MaxStinEcnaInStex()
5223 << " ] ) " << fTTBELL << std::endl;
5224 }
5225 }
5226
5227 if (fSubDet == "EE") {
5228 if (fKeyStexNumber > 0 && fKeyStexNumber <= fEcal->MaxDeeInEE()) {
5229 Int_t off_set_cons = 0;
5230 if (fKeyStexNumber == 1 || fKeyStexNumber == 3) {
5231 off_set_cons = fEcal->MaxSCForConsInDee();
5232 }
5233
5234 if (xReadStinBNumberForCons < off_set_cons ||
5235 xReadStinBNumberForCons > fEcal->MaxSCForConsInDee() + off_set_cons) {
5236 fCnaError++;
5237 std::cout << " !TEcnaGui (" << fCnaError
5238 << ") *** ERROR *** ===> SC nb for construction = " << xReadStinBNumberForCons
5239 << ". Out of range ( range = [ " << off_set_cons + 1 << ","
5240 << fEcal->MaxSCForConsInDee() + off_set_cons << "] )" << fTTBELL << std::endl;
5241 }
5242 } else {
5243 fCnaError++;
5244 std::cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> DeeNumber = " << fKeyStexNumber
5245 << ". Out of range ( range = [1," << fEcal->MaxDeeInEE() << "] )" << fTTBELL << std::endl;
5246 }
5247 }
5248 }
5249
5250 void TEcnaGui::DoButtonChNb() {
5251
5252 ViewStinCrystalNumbering(fKeyStinANumber);
5253 }
5254
5255
5256 void TEcnaGui::DoButtonChan() {
5257
5258
5259 const char* bufferchain = fChanText->GetBuffer()->GetString();
5260 Int_t xReadNumber = atoi(bufferchain);
5261
5262 Int_t Choffset = -1;
5263 TString ChString = "?";
5264
5265 if (fSubDet == "EB") {
5266 Choffset = 0;
5267 ChString = "channel";
5268 }
5269 if (fSubDet == "EE") {
5270 Choffset = 1;
5271 ChString = "crystal";
5272 }
5273
5274 fKeyChanNumber = xReadNumber - Choffset;
5275 fCnaCommand++;
5276 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of " << ChString.Data() << " number -> "
5277 << xReadNumber << std::endl;
5278
5279 if ((fKeyChanNumber < 0) || (fKeyChanNumber > fEcal->MaxCrysInStin() - 1)) {
5280 fCnaError++;
5281 std::cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> " << ChString.Data() << " number in "
5282 << fStinName.Data() << " = " << xReadNumber << ": out of range ( range = [" << Choffset << ","
5283 << fEcal->MaxCrysInStin() - 1 + Choffset << "] )" << fTTBELL << std::endl;
5284 }
5285 }
5286
5287 void TEcnaGui::DoButtonSamp() {
5288
5289
5290 const char* bufferchain = fSampText->GetBuffer()->GetString();
5291 Int_t xKeySampNumber = atoi(bufferchain);
5292
5293 fCnaCommand++;
5294 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of sample number -> " << xKeySampNumber << std::endl;
5295
5296 if ((xKeySampNumber < 1) || (xKeySampNumber > fKeyNbOfSamples)) {
5297 fCnaError++;
5298 std::cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> "
5299 << " Sample number = " << xKeySampNumber << ": out of range ( range = [ 1 ," << fKeyNbOfSamples << " ] )"
5300 << fTTBELL << std::endl;
5301 }
5302
5303 fKeySampNumber = xKeySampNumber - 1;
5304 }
5305
5306
5307 void TEcnaGui::DoButtonRul() {
5308
5309
5310
5311 const char* listchain = fRulText->GetBuffer()->GetString();
5312 if (listchain[0] == '\0') {
5313 fCnaError++;
5314 std::cout << " !TEcnaGui (" << fCnaError << ") *ERROR* ===> "
5315 << " Empty file name in entry for TIME EVOLUTION plots." << fTTBELL << std::endl;
5316 fKeyFileNameRunList = fKeyRunListInitCode;
5317 } else {
5318 char tchiffr[10] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
5319
5320
5321 if (listchain[0] == tchiffr[0] || listchain[0] == tchiffr[1] || listchain[0] == tchiffr[2] ||
5322 listchain[0] == tchiffr[3] || listchain[0] == tchiffr[4] || listchain[0] == tchiffr[5] ||
5323 listchain[0] == tchiffr[6] || listchain[0] == tchiffr[7] || listchain[0] == tchiffr[8] ||
5324 listchain[0] == tchiffr[9]) {
5325 fCnaError++;
5326 std::cout << " !TEcnaGui (" << fCnaError << ") *ERROR* ===> "
5327 << " Please, enter a file name beginning with an alphabetic letter." << fTTBELL << std::endl;
5328 } else {
5329 fKeyFileNameRunList = listchain;
5330
5331 fCnaCommand++;
5332 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of run list file name for history plots -> "
5333 << fKeyFileNameRunList.Data() << std::endl;
5334 }
5335 }
5336 }
5337
5338
5339 void TEcnaGui::DoButtonGent() {
5340
5341
5342 const char* listchain = fGentText->GetBuffer()->GetString();
5343 fKeyGeneralTitle = listchain;
5344
5345 fCnaCommand++;
5346 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Registration of general title -> " << fKeyGeneralTitle.Data()
5347 << std::endl;
5348 }
5349
5350
5351
5352
5353
5354
5355
5356 void TEcnaGui::DoButtonLogx() {
5357 if (fMemoScaleX == "LOG") {
5358 fKeyScaleX = "LIN";
5359 }
5360 if (fMemoScaleX == "LIN") {
5361 fKeyScaleX = "LOG";
5362 }
5363 fMemoScaleX = fKeyScaleX;
5364
5365 fCnaCommand++;
5366 std::cout << " *TEcnaGui [" << fCnaCommand << "]> X axis -> " << fKeyScaleX << " scale " << std::endl;
5367 }
5368 void TEcnaGui::DoButtonLogy() {
5369 if (fMemoScaleY == "LOG") {
5370 fKeyScaleY = "LIN";
5371 }
5372 if (fMemoScaleY == "LIN") {
5373 fKeyScaleY = "LOG";
5374 }
5375 fMemoScaleY = fKeyScaleY;
5376
5377 fCnaCommand++;
5378 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Y axis -> " << fKeyScaleY << " scale " << std::endl;
5379 }
5380
5381 void TEcnaGui::DoButtonProjy() {
5382 if (fMemoProjY == "Y projection") {
5383 fKeyProjY = "normal";
5384 }
5385 if (fMemoProjY == "normal") {
5386 fKeyProjY = "Y projection";
5387 }
5388 fMemoProjY = fKeyProjY;
5389
5390 fCnaCommand++;
5391 std::cout << " *TEcnaGui [" << fCnaCommand << "]> 1D Histo display -> " << fKeyProjY << " mode " << std::endl;
5392 }
5393
5394
5395
5396 void TEcnaGui::DoButtonColPal() {
5397 if (fMemoColPal == "ECCNAColor") {
5398 fKeyColPal = "Rainbow";
5399 }
5400 if (fMemoColPal == "Rainbow") {
5401 fKeyColPal = "ECCNAColor";
5402 }
5403 fMemoColPal = fKeyColPal;
5404
5405 TString sColPalComment = "?";
5406 if (fKeyColPal == "ECCNAColor") {
5407 sColPalComment = "ECNAColor option: black-red-blue-green-brown-purple (default)";
5408 }
5409 if (fKeyColPal == "Rainbow") {
5410 sColPalComment = "Rainbow option: red-orange-yellow-green-blue-indigo-purple";
5411 }
5412
5413 fCnaCommand++;
5414 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Color palette -> " << sColPalComment << std::endl;
5415 }
5416
5417 void TEcnaGui::DoButtonExit() {
5418 fCnaCommand++;
5419 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Exit CNA session." << std::endl;
5420
5421 fButExit->SetCommand(".q");
5422 }
5423
5424
5425
5426 void TEcnaGui::DoButtonClone() {
5427 fCnaCommand++;
5428 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Clone last canvas. " << std::endl;
5429
5430 if (fHistos == nullptr) {
5431 fHistos = new TEcnaHistos(fObjectManager, fSubDet.Data());
5432 ;
5433 }
5434 fHistos->PlotCloneOfCurrentCanvas();
5435 }
5436
5437 void TEcnaGui::DoButtonRoot() {
5438 fCnaCommand++;
5439 std::cout << " *TEcnaGui [" << fCnaCommand << "]> This is ROOT version " << gROOT->GetVersion() << std::endl;
5440 }
5441
5442 void TEcnaGui::DoButtonHelp() {
5443 fCnaCommand++;
5444 std::cout << " *TEcnaGui [" << fCnaCommand << "]> HELP: for documentation, see the ECNA web page: " << std::endl
5445 << " http://cms-fabbro.web.cern.ch/cms-fabbro/cna_new/Correlated_Noise_Analysis/ECNA_main_page.htm"
5446 << std::endl;
5447 }
5448
5449
5450
5451
5452
5453
5454 void TEcnaGui::HandleMenu(Int_t id) {
5455
5456
5457
5458 if (id == fMenuSubmit8nmC) {
5459 SubmitOnBatchSystem("8nm");
5460 }
5461 if (id == fMenuSubmit1nhC) {
5462 SubmitOnBatchSystem("1nh");
5463 }
5464 if (id == fMenuSubmit8nhC) {
5465 SubmitOnBatchSystem("8nh");
5466 }
5467 if (id == fMenuSubmit1ndC) {
5468 SubmitOnBatchSystem("1nd");
5469 }
5470 if (id == fMenuSubmit1nwC) {
5471 SubmitOnBatchSystem("1nw");
5472 }
5473
5474
5475 if (id == fMenuCleanSubC) {
5476 CleanBatchFiles("Sub");
5477 }
5478 if (id == fMenuCleanJobC) {
5479 CleanBatchFiles("Job");
5480 }
5481 if (id == fMenuCleanPythC) {
5482 CleanBatchFiles("Pyth");
5483 }
5484 if (id == fMenuCleanAllC) {
5485 CleanBatchFiles("All");
5486 }
5487
5488
5489 if (id == fMenuComputStdC) {
5490 Calculations("Std");
5491 }
5492 if (id == fMenuComputSttC) {
5493 Calculations("Stt");
5494 }
5495 if (id == fMenuComputSccC) {
5496 Calculations("Scc");
5497 }
5498
5499
5500 if (id == fMenuD_NOE_ChNbFullC) {
5501 if (fMemoProjY == "normal") {
5502 ViewHistoSorSNumberOfEventsOfCrystals(fOptPlotFull);
5503 }
5504 if (fMemoProjY == "Y projection") {
5505 ViewHistoSorSNumberOfEventsDistribution(fOptPlotFull);
5506 }
5507 }
5508 if (id == fMenuD_NOE_ChNbSameC) {
5509 if (fMemoProjY == "normal") {
5510 ViewHistoSorSNumberOfEventsOfCrystals(fOptPlotSame);
5511 }
5512 if (fMemoProjY == "Y projection") {
5513 ViewHistoSorSNumberOfEventsDistribution(fOptPlotSame);
5514 }
5515 }
5516 if (id == fMenuD_NOE_ChNbHocoVecoC) {
5517 ViewSorSNumberOfEvents();
5518 }
5519 if (id == fMenuD_NOE_ChNbAsciiFileC) {
5520 ViewHistoSorSNumberOfEventsOfCrystals(fOptAscii);
5521 }
5522
5523
5524 if (id == fMenuD_Ped_ChNbFullC) {
5525 if (fMemoProjY == "normal") {
5526 ViewHistoSorSPedestalsOfCrystals(fOptPlotFull);
5527 }
5528 if (fMemoProjY == "Y projection") {
5529 ViewHistoSorSPedestalsDistribution(fOptPlotFull);
5530 }
5531 }
5532 if (id == fMenuD_Ped_ChNbSameC) {
5533 if (fMemoProjY == "normal") {
5534 ViewHistoSorSPedestalsOfCrystals(fOptPlotSame);
5535 }
5536 if (fMemoProjY == "Y projection") {
5537 ViewHistoSorSPedestalsDistribution(fOptPlotSame);
5538 }
5539 }
5540 if (id == fMenuD_Ped_ChNbHocoVecoC) {
5541 ViewSorSPedestals();
5542 }
5543 if (id == fMenuD_Ped_ChNbAsciiFileC) {
5544 ViewHistoSorSPedestalsOfCrystals(fOptAscii);
5545 }
5546
5547
5548 if (id == fMenuD_TNo_ChNbFullC) {
5549 if (fMemoProjY == "normal") {
5550 ViewHistoSorSTotalNoiseOfCrystals(fOptPlotFull);
5551 }
5552 if (fMemoProjY == "Y projection") {
5553 ViewHistoSorSTotalNoiseDistribution(fOptPlotFull);
5554 }
5555 }
5556 if (id == fMenuD_TNo_ChNbSameC) {
5557 if (fMemoProjY == "normal") {
5558 ViewHistoSorSTotalNoiseOfCrystals(fOptPlotSame);
5559 }
5560 if (fMemoProjY == "Y projection") {
5561 ViewHistoSorSTotalNoiseDistribution(fOptPlotSame);
5562 }
5563 }
5564 if (id == fMenuD_TNo_ChNbSamePC) {
5565 if (fMemoProjY == "normal") {
5566 ViewHistoSorSTotalNoiseOfCrystals(fOptPlotSameP);
5567 }
5568 if (fMemoProjY == "Y projection") {
5569 ViewHistoSorSTotalNoiseDistribution(fOptPlotSameP);
5570 }
5571 }
5572 if (id == fMenuD_TNo_ChNbHocoVecoC) {
5573 ViewSorSTotalNoise();
5574 }
5575 if (id == fMenuD_TNo_ChNbAsciiFileC) {
5576 ViewHistoSorSTotalNoiseOfCrystals(fOptAscii);
5577 }
5578
5579
5580 if (id == fMenuD_LFN_ChNbFullC) {
5581 if (fMemoProjY == "normal") {
5582 ViewHistoSorSLowFrequencyNoiseOfCrystals(fOptPlotFull);
5583 }
5584 if (fMemoProjY == "Y projection") {
5585 ViewHistoSorSLowFrequencyNoiseDistribution(fOptPlotFull);
5586 }
5587 }
5588 if (id == fMenuD_LFN_ChNbSameC) {
5589 if (fMemoProjY == "normal") {
5590 ViewHistoSorSLowFrequencyNoiseOfCrystals(fOptPlotSame);
5591 }
5592 if (fMemoProjY == "Y projection") {
5593 ViewHistoSorSLowFrequencyNoiseDistribution(fOptPlotSame);
5594 }
5595 }
5596 if (id == fMenuD_LFN_ChNbSamePC) {
5597 if (fMemoProjY == "normal") {
5598 ViewHistoSorSLowFrequencyNoiseOfCrystals(fOptPlotSameP);
5599 }
5600 if (fMemoProjY == "Y projection") {
5601 ViewHistoSorSLowFrequencyNoiseDistribution(fOptPlotSameP);
5602 }
5603 }
5604 if (id == fMenuD_LFN_ChNbHocoVecoC) {
5605 ViewSorSLowFrequencyNoise();
5606 }
5607 if (id == fMenuD_LFN_ChNbAsciiFileC) {
5608 ViewHistoSorSLowFrequencyNoiseOfCrystals(fOptAscii);
5609 }
5610
5611
5612 if (id == fMenuD_HFN_ChNbFullC) {
5613 if (fMemoProjY == "normal") {
5614 ViewHistoSorSHighFrequencyNoiseOfCrystals(fOptPlotFull);
5615 }
5616 if (fMemoProjY == "Y projection") {
5617 ViewHistoSorSHighFrequencyNoiseDistribution(fOptPlotFull);
5618 }
5619 }
5620 if (id == fMenuD_HFN_ChNbSameC) {
5621 if (fMemoProjY == "normal") {
5622 ViewHistoSorSHighFrequencyNoiseOfCrystals(fOptPlotSame);
5623 }
5624 if (fMemoProjY == "Y projection") {
5625 ViewHistoSorSHighFrequencyNoiseDistribution(fOptPlotSame);
5626 }
5627 }
5628 if (id == fMenuD_HFN_ChNbSamePC) {
5629 if (fMemoProjY == "normal") {
5630 ViewHistoSorSHighFrequencyNoiseOfCrystals(fOptPlotSameP);
5631 }
5632 if (fMemoProjY == "Y projection") {
5633 ViewHistoSorSHighFrequencyNoiseDistribution(fOptPlotSameP);
5634 }
5635 }
5636 if (id == fMenuD_HFN_ChNbHocoVecoC) {
5637 ViewSorSHighFrequencyNoise();
5638 }
5639 if (id == fMenuD_HFN_ChNbAsciiFileC) {
5640 ViewHistoSorSHighFrequencyNoiseOfCrystals(fOptAscii);
5641 }
5642
5643
5644 if (id == fMenuD_MCs_ChNbFullC) {
5645 if (fMemoProjY == "normal") {
5646 ViewHistoSorSMeanCorssOfCrystals(fOptPlotFull);
5647 }
5648 if (fMemoProjY == "Y projection") {
5649 ViewHistoSorSMeanCorssDistribution(fOptPlotFull);
5650 }
5651 }
5652 if (id == fMenuD_MCs_ChNbSameC) {
5653 if (fMemoProjY == "normal") {
5654 ViewHistoSorSMeanCorssOfCrystals(fOptPlotSame);
5655 }
5656 if (fMemoProjY == "Y projection") {
5657 ViewHistoSorSMeanCorssDistribution(fOptPlotSame);
5658 }
5659 }
5660 if (id == fMenuD_MCs_ChNbSamePC) {
5661 if (fMemoProjY == "normal") {
5662 ViewHistoSorSMeanCorssOfCrystals(fOptPlotSameP);
5663 }
5664 if (fMemoProjY == "Y projection") {
5665 ViewHistoSorSMeanCorssDistribution(fOptPlotSameP);
5666 }
5667 }
5668 if (id == fMenuD_MCs_ChNbHocoVecoC) {
5669 ViewSorSMeanCorss();
5670 }
5671 if (id == fMenuD_MCs_ChNbAsciiFileC) {
5672 ViewHistoSorSMeanCorssOfCrystals(fOptAscii);
5673 }
5674
5675
5676 if (id == fMenuD_SCs_ChNbFullC) {
5677 if (fMemoProjY == "normal") {
5678 ViewHistoSorSSigmaOfCorssOfCrystals(fOptPlotFull);
5679 }
5680 if (fMemoProjY == "Y projection") {
5681 ViewHistoSorSSigmaOfCorssDistribution(fOptPlotFull);
5682 }
5683 }
5684 if (id == fMenuD_SCs_ChNbSameC) {
5685 if (fMemoProjY == "normal") {
5686 ViewHistoSorSSigmaOfCorssOfCrystals(fOptPlotSame);
5687 }
5688 if (fMemoProjY == "Y projection") {
5689 ViewHistoSorSSigmaOfCorssDistribution(fOptPlotSame);
5690 }
5691 }
5692 if (id == fMenuD_SCs_ChNbSamePC) {
5693 if (fMemoProjY == "normal") {
5694 ViewHistoSorSSigmaOfCorssOfCrystals(fOptPlotSameP);
5695 }
5696 if (fMemoProjY == "Y projection") {
5697 ViewHistoSorSSigmaOfCorssDistribution(fOptPlotSameP);
5698 }
5699 }
5700 if (id == fMenuD_SCs_ChNbHocoVecoC) {
5701 ViewSorSSigmaOfCorss();
5702 }
5703 if (id == fMenuD_SCs_ChNbAsciiFileC) {
5704 ViewHistoSorSSigmaOfCorssOfCrystals(fOptAscii);
5705 }
5706
5707
5708 if (id == fMenuLFccMosColzC) {
5709 ViewMatrixLowFrequencyMeanCorrelationsBetweenStins("COLZ");
5710 }
5711 if (id == fMenuLFccMosLegoC) {
5712 ViewMatrixLowFrequencyMeanCorrelationsBetweenStins("LEGO2Z");
5713 }
5714
5715 if (id == fMenuHFccMosColzC) {
5716 ViewMatrixHighFrequencyMeanCorrelationsBetweenStins("COLZ");
5717 }
5718 if (id == fMenuHFccMosLegoC) {
5719 ViewMatrixHighFrequencyMeanCorrelationsBetweenStins("LEGO2Z");
5720 }
5721
5722
5723 if (id == fMenuLFccColzC) {
5724 ViewStexLowFrequencyCorcc();
5725 }
5726 if (id == fMenuHFccColzC) {
5727 ViewStexHighFrequencyCorcc();
5728 }
5729
5730
5731 Int_t cKeyStinANumber = fKeyStinANumber;
5732 if (fSubDet == "EE" && fKeyStexNumber != 0) {
5733 cKeyStinANumber = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber, fKeyStinANumber);
5734 }
5735 Int_t cKeyStinBNumber = fKeyStinBNumber;
5736 if (fSubDet == "EE" && fKeyStexNumber != 0) {
5737 cKeyStinBNumber = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fKeyStexNumber, fKeyStinBNumber);
5738 }
5739
5740
5741 if (id == fMenuLFCorccColzC) {
5742 ViewMatrixLowFrequencyCorrelationsBetweenChannels(cKeyStinANumber, cKeyStinBNumber, "COLZ");
5743 }
5744 if (id == fMenuLFCorccLegoC) {
5745 ViewMatrixLowFrequencyCorrelationsBetweenChannels(cKeyStinANumber, cKeyStinBNumber, "LEGO2Z");
5746 }
5747
5748 if (id == fMenuHFCorccColzC) {
5749 ViewMatrixHighFrequencyCorrelationsBetweenChannels(cKeyStinANumber, cKeyStinBNumber, "COLZ");
5750 }
5751 if (id == fMenuHFCorccLegoC) {
5752 ViewMatrixHighFrequencyCorrelationsBetweenChannels(cKeyStinANumber, cKeyStinBNumber, "LEGO2Z");
5753 }
5754
5755
5756 if (id == fMenuCorssColzC) {
5757 ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "COLZ");
5758 }
5759 if (id == fMenuCorssBoxC) {
5760 ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "BOX");
5761 }
5762 if (id == fMenuCorssTextC) {
5763 ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "TEXT");
5764 }
5765 if (id == fMenuCorssContzC) {
5766 ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "CONTZ");
5767 }
5768 if (id == fMenuCorssLegoC) {
5769 ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "LEGO2Z");
5770 }
5771 if (id == fMenuCorssSurf1C) {
5772 ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "SURF1Z");
5773 }
5774 if (id == fMenuCorssSurf2C) {
5775 ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "SURF2Z");
5776 }
5777 if (id == fMenuCorssSurf3C) {
5778 ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "SURF3Z");
5779 }
5780 if (id == fMenuCorssSurf4C) {
5781 ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "SURF4");
5782 }
5783 if (id == fMenuCorssAsciiFileC) {
5784 ViewMatrixCorrelationSamples(cKeyStinANumber, fKeyChanNumber, "ASCII");
5785 }
5786
5787 if (id == fMenuCovssColzC) {
5788 ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "COLZ");
5789 }
5790 if (id == fMenuCovssBoxC) {
5791 ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "BOX");
5792 }
5793 if (id == fMenuCovssTextC) {
5794 ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "TEXT");
5795 }
5796 if (id == fMenuCovssContzC) {
5797 ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "CONTZ");
5798 }
5799 if (id == fMenuCovssLegoC) {
5800 ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "LEGO2Z");
5801 }
5802 if (id == fMenuCovssSurf1C) {
5803 ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "SURF1Z");
5804 }
5805 if (id == fMenuCovssSurf2C) {
5806 ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "SURF2Z");
5807 }
5808 if (id == fMenuCovssSurf3C) {
5809 ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "SURF3Z");
5810 }
5811 if (id == fMenuCovssSurf4C) {
5812 ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "SURF4");
5813 }
5814 if (id == fMenuCovssAsciiFileC) {
5815 ViewMatrixCovarianceSamples(cKeyStinANumber, fKeyChanNumber, "ASCII");
5816 }
5817
5818
5819 if (id == fMenuCorssAllColzC) {
5820 ViewStinCorrelationSamples(cKeyStinANumber);
5821 }
5822 if (id == fMenuCovssAllColzC) {
5823 ViewStinCovarianceSamples(cKeyStinANumber);
5824 }
5825
5826
5827 if (id == fMenuD_MSp_SpNbLineFullC) {
5828 if (fMemoProjY == "normal") {
5829 ViewHistoCrystalSampleMeans(cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
5830 }
5831 if (fMemoProjY == "Y projection") {
5832 ViewHistoCrystalSampleMeansDistribution(cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
5833 }
5834 }
5835
5836 if (id == fMenuD_MSp_SpNbLineSameC) {
5837 if (fMemoProjY == "normal") {
5838 ViewHistoCrystalSampleMeans(cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
5839 }
5840 if (fMemoProjY == "Y projection") {
5841 ViewHistoCrystalSampleMeansDistribution(cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
5842 }
5843 }
5844 if (id == fMenuD_MSp_SpNbLineAllStinC) {
5845 if (fMemoProjY == "normal") {
5846 ViewHistoCrystalSampleMeans(cKeyStinANumber, fKeyChanNumber, fOptPlotSameInStin);
5847 }
5848 if (fMemoProjY == "Y projection") {
5849 ViewHistoCrystalSampleMeansDistribution(cKeyStinANumber, fKeyChanNumber, fOptPlotSameInStin);
5850 }
5851 }
5852
5853
5854 if (id == fMenuD_SSp_SpNbLineFullC) {
5855 if (fMemoProjY == "normal") {
5856 ViewHistoCrystalSampleSigmas(cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
5857 }
5858 if (fMemoProjY == "Y projection") {
5859 ViewHistoCrystalSampleSigmasDistribution(cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
5860 }
5861 }
5862 if (id == fMenuD_SSp_SpNbLineSameC) {
5863 if (fMemoProjY == "normal") {
5864 ViewHistoCrystalSampleSigmas(cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
5865 }
5866 if (fMemoProjY == "Y projection") {
5867 ViewHistoCrystalSampleSigmasDistribution(cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
5868 }
5869 }
5870 if (id == fMenuD_SSp_SpNbLineAllStinC) {
5871 if (fMemoProjY == "normal") {
5872 ViewHistoCrystalSampleSigmas(cKeyStinANumber, fKeyChanNumber, fOptPlotSameInStin);
5873 }
5874 if (fMemoProjY == "Y projection") {
5875 ViewHistoCrystalSampleSigmasDistribution(cKeyStinANumber, fKeyChanNumber, fOptPlotSameInStin);
5876 }
5877 }
5878
5879
5880 if (id == fMenuH_Ped_DatePolmFullC || id == fMenuH_Ped_DatePolmSameC || id == fMenuH_TNo_DatePolmFullC ||
5881 id == fMenuH_TNo_DatePolmSameC || id == fMenuH_TNo_DatePolmSamePC || id == fMenuH_LFN_DatePolmFullC ||
5882 id == fMenuH_LFN_DatePolmSameC || id == fMenuH_LFN_DatePolmSamePC || id == fMenuH_HFN_DatePolmFullC ||
5883 id == fMenuH_HFN_DatePolmSameC || id == fMenuH_HFN_DatePolmSamePC || id == fMenuH_MCs_DatePolmFullC ||
5884 id == fMenuH_MCs_DatePolmSameC || id == fMenuH_MCs_DatePolmSamePC || id == fMenuH_SCs_DatePolmFullC ||
5885 id == fMenuH_SCs_DatePolmSameC || id == fMenuH_SCs_DatePolmSamePC) {
5886 if (fKeyFileNameRunList == fKeyRunListInitCode) {
5887 fCnaError++;
5888 std::cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===> "
5889 << " EMPTY STRING for list of run file name (TIME EVOLUTION plots)." << fTTBELL << std::endl;
5890 } else {
5891
5892 if (id == fMenuH_Ped_DatePolmFullC) {
5893 if (fMemoProjY == "normal") {
5894 ViewHistimeCrystalPedestals(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
5895 }
5896 if (fMemoProjY == "Y projection") {
5897 ViewHistimeCrystalPedestalsRuns(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
5898 }
5899 }
5900 if (id == fMenuH_Ped_DatePolmSameC) {
5901 if (fMemoProjY == "normal") {
5902 ViewHistimeCrystalPedestals(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
5903 }
5904 if (fMemoProjY == "Y projection") {
5905 ViewHistimeCrystalPedestalsRuns(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
5906 }
5907 }
5908
5909
5910 if (id == fMenuH_TNo_DatePolmFullC) {
5911 if (fMemoProjY == "normal") {
5912 ViewHistimeCrystalTotalNoise(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
5913 }
5914 if (fMemoProjY == "Y projection") {
5915 ViewHistimeCrystalTotalNoiseRuns(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
5916 }
5917 }
5918 if (id == fMenuH_TNo_DatePolmSameC) {
5919 if (fMemoProjY == "normal") {
5920 ViewHistimeCrystalTotalNoise(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
5921 }
5922 if (fMemoProjY == "Y projection") {
5923 ViewHistimeCrystalTotalNoiseRuns(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
5924 }
5925 }
5926 if (id == fMenuH_TNo_DatePolmSamePC) {
5927 if (fMemoProjY == "normal") {
5928 ViewHistimeCrystalTotalNoise(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);
5929 }
5930 if (fMemoProjY == "Y projection") {
5931 ViewHistimeCrystalTotalNoiseRuns(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);
5932 }
5933 }
5934
5935
5936 if (id == fMenuH_LFN_DatePolmFullC) {
5937 if (fMemoProjY == "normal") {
5938 ViewHistimeCrystalLowFrequencyNoise(
5939 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
5940 }
5941 if (fMemoProjY == "Y projection") {
5942 ViewHistimeCrystalLowFrequencyNoiseRuns(
5943 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
5944 }
5945 }
5946 if (id == fMenuH_LFN_DatePolmSameC) {
5947 if (fMemoProjY == "normal") {
5948 ViewHistimeCrystalLowFrequencyNoise(
5949 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
5950 }
5951 if (fMemoProjY == "Y projection") {
5952 ViewHistimeCrystalLowFrequencyNoiseRuns(
5953 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
5954 }
5955 }
5956 if (id == fMenuH_LFN_DatePolmSamePC) {
5957 if (fMemoProjY == "normal") {
5958 ViewHistimeCrystalLowFrequencyNoise(
5959 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);
5960 }
5961 if (fMemoProjY == "Y projection") {
5962 ViewHistimeCrystalLowFrequencyNoiseRuns(
5963 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);
5964 }
5965 }
5966
5967
5968 if (id == fMenuH_HFN_DatePolmFullC) {
5969 if (fMemoProjY == "normal") {
5970 ViewHistimeCrystalHighFrequencyNoise(
5971 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
5972 }
5973 if (fMemoProjY == "Y projection") {
5974 ViewHistimeCrystalHighFrequencyNoiseRuns(
5975 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
5976 }
5977 }
5978 if (id == fMenuH_HFN_DatePolmSameC) {
5979 if (fMemoProjY == "normal") {
5980 ViewHistimeCrystalHighFrequencyNoise(
5981 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
5982 }
5983 if (fMemoProjY == "Y projection") {
5984 ViewHistimeCrystalHighFrequencyNoiseRuns(
5985 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
5986 }
5987 }
5988 if (id == fMenuH_HFN_DatePolmSamePC) {
5989 if (fMemoProjY == "normal") {
5990 ViewHistimeCrystalHighFrequencyNoise(
5991 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);
5992 }
5993 if (fMemoProjY == "Y projection") {
5994 ViewHistimeCrystalHighFrequencyNoiseRuns(
5995 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);
5996 }
5997 }
5998
5999
6000 if (id == fMenuH_MCs_DatePolmFullC) {
6001 if (fMemoProjY == "normal") {
6002 ViewHistimeCrystalMeanCorss(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
6003 }
6004 if (fMemoProjY == "Y projection") {
6005 ViewHistimeCrystalMeanCorssRuns(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
6006 }
6007 }
6008 if (id == fMenuH_MCs_DatePolmSameC) {
6009 if (fMemoProjY == "normal") {
6010 ViewHistimeCrystalMeanCorss(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
6011 }
6012 if (fMemoProjY == "Y projection") {
6013 ViewHistimeCrystalMeanCorssRuns(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
6014 }
6015 }
6016 if (id == fMenuH_MCs_DatePolmSamePC) {
6017 if (fMemoProjY == "normal") {
6018 ViewHistimeCrystalMeanCorss(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);
6019 }
6020 if (fMemoProjY == "Y projection") {
6021 ViewHistimeCrystalMeanCorssRuns(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);
6022 }
6023 }
6024
6025
6026 if (id == fMenuH_SCs_DatePolmFullC) {
6027 if (fMemoProjY == "normal") {
6028 ViewHistimeCrystalSigmaOfCorss(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
6029 }
6030 if (fMemoProjY == "Y projection") {
6031 ViewHistimeCrystalSigmaOfCorssRuns(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotFull);
6032 }
6033 }
6034 if (id == fMenuH_SCs_DatePolmSameC) {
6035 if (fMemoProjY == "normal") {
6036 ViewHistimeCrystalSigmaOfCorss(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
6037 }
6038 if (fMemoProjY == "Y projection") {
6039 ViewHistimeCrystalSigmaOfCorssRuns(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSame);
6040 }
6041 }
6042 if (id == fMenuH_SCs_DatePolmSamePC) {
6043 if (fMemoProjY == "normal") {
6044 ViewHistimeCrystalSigmaOfCorss(fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);
6045 }
6046 if (fMemoProjY == "Y projection") {
6047 ViewHistimeCrystalSigmaOfCorssRuns(
6048 fKeyFileNameRunList.Data(), cKeyStinANumber, fKeyChanNumber, fOptPlotSameP);
6049 }
6050 }
6051 }
6052 }
6053
6054
6055 if (id == fMenuAdcProjSampLineFullC) {
6056 if (fMemoProjY == "normal") {
6057 ViewHistoCrystalSampleValues(cKeyStinANumber, fKeyChanNumber, fKeySampNumber, fOptPlotFull);
6058 }
6059 if (fMemoProjY == "Y projection") {
6060 ViewHistoSampleEventDistribution(cKeyStinANumber, fKeyChanNumber, fKeySampNumber, fOptPlotFull);
6061 }
6062 }
6063 if (id == fMenuAdcProjSampLineSameC) {
6064 if (fMemoProjY == "normal") {
6065 ViewHistoCrystalSampleValues(cKeyStinANumber, fKeyChanNumber, fKeySampNumber, fOptPlotSame);
6066 }
6067 if (fMemoProjY == "Y projection") {
6068 ViewHistoSampleEventDistribution(cKeyStinANumber, fKeyChanNumber, fKeySampNumber, fOptPlotSame);
6069 }
6070 }
6071 }
6072
6073
6074
6075
6076
6077
6078
6079 void TEcnaGui::SubmitOnBatchSystem(const TString& QueueCode) {
6080
6081
6082 if ((fConfirmSubmit == 1) && (fConfirmRunNumber == fKeyRunNumber)) {
6083 fCnaCommand++;
6084 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Submitting job in batch mode for run " << fConfirmRunNumber
6085 << std::endl;
6086
6087
6088
6089 TString ModulesdataPath = fCnaParPaths->PathModulesData();
6090
6091
6092 TString CnaPythonCommand = ModulesdataPath;
6093
6094
6095 TString PythonScriptName = "EcnaSystemScriptPython";
6096 const Text_t* t_PythonScriptName = (const Text_t*)PythonScriptName.Data();
6097 CnaPythonCommand.Append(t_PythonScriptName);
6098
6099
6100
6101
6102
6103
6104 CnaPythonCommand.Append(' ');
6105 CnaPythonCommand.Append(fConfirmRunNumberString);
6106
6107
6108
6109 CnaPythonCommand.Append(' ');
6110 CnaPythonCommand.Append('\\');
6111 CnaPythonCommand.Append('\"');
6112 const Text_t* t_StringAnaType = (const Text_t*)fKeyAnaType.Data();
6113 CnaPythonCommand.Append(t_StringAnaType);
6114 CnaPythonCommand.Append('\\');
6115 CnaPythonCommand.Append('\"');
6116
6117
6118 CnaPythonCommand.Append(' ');
6119 CnaPythonCommand.Append('\\');
6120 CnaPythonCommand.Append('\"');
6121 const Text_t* t_NbOfSamplesString = (const Text_t*)fKeyNbOfSamplesString.Data();
6122 CnaPythonCommand.Append(t_NbOfSamplesString);
6123 CnaPythonCommand.Append('\\');
6124 CnaPythonCommand.Append('\"');
6125
6126
6127 CnaPythonCommand.Append(' ');
6128 CnaPythonCommand.Append('\\');
6129 CnaPythonCommand.Append('\"');
6130 const Text_t* t_FirstReqEvtNumberString = (const Text_t*)fKeyFirstReqEvtNumberString.Data();
6131 CnaPythonCommand.Append(t_FirstReqEvtNumberString);
6132 CnaPythonCommand.Append('\\');
6133 CnaPythonCommand.Append('\"');
6134
6135
6136 CnaPythonCommand.Append(' ');
6137 CnaPythonCommand.Append('\\');
6138 CnaPythonCommand.Append('\"');
6139 const Text_t* t_LastReqEvtNumberString = (const Text_t*)fKeyLastReqEvtNumberString.Data();
6140 CnaPythonCommand.Append(t_LastReqEvtNumberString);
6141 CnaPythonCommand.Append('\\');
6142 CnaPythonCommand.Append('\"');
6143
6144
6145 CnaPythonCommand.Append(' ');
6146 CnaPythonCommand.Append('\\');
6147 CnaPythonCommand.Append('\"');
6148 const Text_t* t_ReqNbOfEvtsString = (const Text_t*)fKeyReqNbOfEvtsString.Data();
6149 CnaPythonCommand.Append(t_ReqNbOfEvtsString);
6150 CnaPythonCommand.Append('\\');
6151 CnaPythonCommand.Append('\"');
6152
6153
6154 CnaPythonCommand.Append(' ');
6155 CnaPythonCommand.Append('\\');
6156 CnaPythonCommand.Append('\"');
6157 const Text_t* t_fStexName = (const Text_t*)fStexName.Data();
6158 CnaPythonCommand.Append(t_fStexName);
6159 CnaPythonCommand.Append('\\');
6160 CnaPythonCommand.Append('\"');
6161
6162
6163 CnaPythonCommand.Append(' ');
6164 CnaPythonCommand.Append('\\');
6165 CnaPythonCommand.Append('\"');
6166 const Text_t* t_StexNumberString = (const Text_t*)fKeyStexNumberString.Data();
6167 CnaPythonCommand.Append(t_StexNumberString);
6168 CnaPythonCommand.Append('\\');
6169 CnaPythonCommand.Append('\"');
6170
6171
6172
6173
6174 fPythonFileName = "EcnaPython_";
6175
6176 fPythonFileName.Append(t_StringAnaType);
6177 fPythonFileName.Append('_');
6178
6179 fPythonFileName.Append('S');
6180 fPythonFileName.Append('1');
6181 fPythonFileName.Append('_');
6182 fPythonFileName.Append(t_NbOfSamplesString);
6183 fPythonFileName.Append('_');
6184 fPythonFileName.Append('R');
6185
6186 const Text_t* t_fConfirmRunNumberString = (const Text_t*)fConfirmRunNumberString.Data();
6187 fPythonFileName.Append(t_fConfirmRunNumberString);
6188 fPythonFileName.Append('_');
6189
6190 fPythonFileName.Append(t_FirstReqEvtNumberString);
6191 fPythonFileName.Append('_');
6192
6193 fPythonFileName.Append(t_LastReqEvtNumberString);
6194 fPythonFileName.Append('_');
6195
6196 fPythonFileName.Append(t_ReqNbOfEvtsString);
6197 fPythonFileName.Append('_');
6198
6199 fPythonFileName.Append(t_fStexName);
6200
6201 fPythonFileName.Append(t_StexNumberString);
6202
6203
6204 CnaPythonCommand.Append(' ');
6205 const Text_t* t_fPythonFileName = (const Text_t*)fPythonFileName.Data();
6206 CnaPythonCommand.Append(t_fPythonFileName);
6207
6208
6209
6210 CnaPythonCommand.Append(' ');
6211 const Text_t* t_modules_data_path = (const Text_t*)ModulesdataPath.Data();
6212 CnaPythonCommand.Append(t_modules_data_path);
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226 const Text_t* t_cnapythoncommand = (const Text_t*)CnaPythonCommand.Data();
6227 TString CnaExecPythonCommand = "csh ";
6228 CnaExecPythonCommand.Append(t_cnapythoncommand);
6229
6230 Int_t i_exec_python = gSystem->Exec(CnaExecPythonCommand.Data());
6231
6232 if (i_exec_python != 0) {
6233 std::cout << "*TEcnaGui> Script for python file building was executed with error code = " << i_exec_python << "."
6234 << std::endl
6235 << " python file: " << fPythonFileName.Data() << ".py" << std::endl
6236 << " Command: " << CnaExecPythonCommand.Data() << std::endl
6237 << fTTBELL << std::endl;
6238 } else {
6239 std::cout << "*TEcnaGui> Script for python file building was successfully executed." << std::endl
6240 << " python file: " << fPythonFileName.Data() << ".py" << std::endl
6241 << " (Command: " << CnaExecPythonCommand.Data() << ")" << std::endl;
6242
6243
6244 TString CnaSubmitCommand = ModulesdataPath;
6245
6246
6247 TString SubmitScriptName = "EcnaSystemScriptSubmit";
6248 const Text_t* t_SubmitScriptName = (const Text_t*)SubmitScriptName.Data();
6249 CnaSubmitCommand.Append(t_SubmitScriptName);
6250 CnaSubmitCommand.Append(' ');
6251
6252
6253 const Text_t* t_cmssw_base = (const Text_t*)fCnaParPaths->CMSSWBase().Data();
6254 CnaSubmitCommand.Append(t_cmssw_base);
6255 CnaSubmitCommand.Append(' ');
6256
6257 const Text_t* t_cmssw_subsystem = (const Text_t*)fCnaParPaths->CMSSWSubsystem().Data();
6258 CnaSubmitCommand.Append(t_cmssw_subsystem);
6259 CnaSubmitCommand.Append(' ');
6260
6261 const Text_t* t_cfgp_file = (const Text_t*)fPythonFileName.Data();
6262 CnaSubmitCommand.Append(t_cfgp_file);
6263 CnaSubmitCommand.Append(' ');
6264
6265 const Text_t* t_QueueCode = (const Text_t*)QueueCode.Data();
6266 CnaSubmitCommand.Append(t_QueueCode);
6267
6268
6269 const Text_t* t_cnasubmitcommand = (const Text_t*)CnaSubmitCommand.Data();
6270 TString CnaExecSubmitCommand = "csh ";
6271 CnaExecSubmitCommand.Append(t_cnasubmitcommand);
6272
6273 Int_t i_exec_submit = gSystem->Exec(CnaExecSubmitCommand.Data());
6274
6275 if (i_exec_submit != 0) {
6276 std::cout << "*TEcnaGui> Script for job submission was executed with error code = " << i_exec_submit << "."
6277 << std::endl
6278 << " Command: " << CnaExecSubmitCommand.Data() << std::endl
6279 << fTTBELL << std::endl;
6280 } else {
6281 std::cout << "*TEcnaGui> Job with configuration file: " << fPythonFileName.Data()
6282 << " was successfully submitted." << std::endl
6283 << " (Command: " << CnaExecSubmitCommand.Data() << ")" << std::endl;
6284 }
6285
6286 fConfirmSubmit = 0;
6287 fConfirmRunNumber = 0;
6288 fConfirmRunNumberString = "0";
6289 }
6290 } else {
6291 if (fKeyAnaType.BeginsWith("Adc")) {
6292 fCnaCommand++;
6293 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Request for submitting job in batch mode for run "
6294 << fKeyRunNumber << ". Syntax OK. Please, click again to confirm." << fTTBELL << std::endl;
6295
6296 fConfirmSubmit = 1;
6297 fConfirmRunNumber = fKeyRunNumber;
6298 fConfirmRunNumberString = fKeyRunNumberString;
6299 } else {
6300 fCnaError++;
6301 std::cout << " !TEcnaGui (" << fCnaError << ") *** ERROR *** ===>"
6302 << " Analysis name = " << fKeyAnaType << ": should begin with 'Adc'."
6303 << " Please, change the analysis name." << fTTBELL << std::endl;
6304
6305 fConfirmSubmit = 0;
6306 fConfirmRunNumber = 0;
6307 fConfirmRunNumberString = "0";
6308 }
6309 }
6310 }
6311
6312
6313
6314
6315
6316
6317
6318 void TEcnaGui::CleanBatchFiles(const TString& clean_code) {
6319
6320
6321 fCnaCommand++;
6322 std::cout << " *TEcnaGui [" << fCnaCommand << "]> Clean requested with code: " << clean_code << std::endl;
6323
6324
6325 if (clean_code == "Sub" || clean_code == "All") {
6326
6327
6328