Changeset 450 for trunk/MagicSoft/MarsOctober/mocttest/MGOctMain.cc
- Timestamp:
- 11/14/00 17:15:40 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/MarsOctober/mocttest/MGOctMain.cc
r447 r450 39 39 // 40 40 41 fFrameTop = new TGCompositeFrame (this, 300,100, kHorizontalFrame ) ; 42 43 fButEvtDisp = new TGTextButton(fFrameTop, "EventDisplay", M_BUTTON_EVTDISP ); 41 fFrameTop = new TGCompositeFrame (this, 300,100, kVerticalFrame ) ; 42 43 fTop1 = new TGHorizontalFrame (fFrameTop, 300, 100 ) ; 44 45 fButEvtDisp = new TGTextButton(fTop1, "EventDisplay", M_BUTTON_EVTDISP ); 44 46 fButEvtDisp->Associate(this) ; 45 fFrameTop->AddFrame (fButEvtDisp, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) ); 46 47 fButPedADC = new TGTextButton(fFrameTop, "ADC Spectra of Pedestals", M_BUTTON_PEDADC ); 47 fTop1->AddFrame (fButEvtDisp, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) ); 48 49 fFrameTop->AddFrame (fTop1, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) ); 50 51 52 fTop2 = new TGHorizontalFrame (fFrameTop, 300, 100 ) ; 53 54 fButPedADC = new TGTextButton(fTop2, "ADC Spectra of Pedestals", M_BUTTON_PEDADC ); 48 55 fButPedADC->Associate(this) ; 49 f FrameTop->AddFrame (fButPedADC, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) );50 51 fButCrADC = new TGTextButton(f FrameTop, "ADC Specta of Cosmics", M_BUTTON_CRADC );56 fTop2->AddFrame (fButPedADC, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) ); 57 58 fButCrADC = new TGTextButton(fTop2, "ADC Specta of Cosmics", M_BUTTON_CRADC ); 52 59 fButCrADC->Associate(this) ; 53 fFrameTop->AddFrame (fButCrADC, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) ); 60 fTop2->AddFrame (fButCrADC, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) ); 61 62 fFrameTop->AddFrame (fTop2, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) ); 63 64 65 fTop3 = new TGHorizontalFrame (fFrameTop, 300, 100 ) ; 66 67 fButPedTDC = new TGTextButton(fTop3, "TDC Spectra of Pedestals", M_BUTTON_PEDTDC ); 68 fButPedTDC->Associate(this) ; 69 fTop3->AddFrame (fButPedTDC, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) ); 70 71 fButCrTDC = new TGTextButton(fTop3, "TDC Specta of Cosmics", M_BUTTON_CRTDC ); 72 fButCrTDC->Associate(this) ; 73 fTop3->AddFrame (fButCrTDC, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) ); 74 75 fFrameTop->AddFrame (fTop3, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) ); 76 54 77 55 78 … … 259 282 260 283 fOctober.CrAdcSpectra(fInputFile) ; 284 285 break ; 286 287 case M_BUTTON_PEDTDC: 288 289 if ( InputFileSelected() == kFALSE ) { // it is not selected 290 291 new TGMsgBox(fClient->GetRoot(), this, "ERROR!", 292 "No Input (root) File selected!", kMBIconExclamation, buttons, &retval); 293 break ; 294 } 295 296 fOctober.PedTdcSpectra(fInputFile) ; 297 298 break ; 299 300 case M_BUTTON_CRTDC: 301 302 if ( InputFileSelected() == kFALSE ) { // it is not selected 303 304 new TGMsgBox(fClient->GetRoot(), this, "ERROR!", 305 "No Input (root) File selected!", kMBIconExclamation, buttons, &retval); 306 break ; 307 } 308 309 fOctober.CrTdcSpectra(fInputFile) ; 261 310 262 311 break ;
Note:
See TracChangeset
for help on using the changeset viewer.