- Timestamp:
- 07/15/00 12:15:57 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.cxx
r423 r424 11 11 12 12 13 14 13 MainFrameSimone::MainFrameSimone(const TGWindow *p, UInt_t w, UInt_t h) 15 14 : TGMainFrame(p, w, h) … … 17 16 sprintf (fInputPath, "\0" ) ; 18 17 fNumEvents = 0 ; 19 18 19 fEvtNb = 0 ; 20 21 // 22 // set up the NTuples 23 // 20 24 fNtup = new TNtuple ("fNtup", "Ntuple with Run distributions", 21 25 "PartID:Energy:CoreX:CoreY:Theta:Phi:FirstInt") ; 26 27 fNtupEvt = new TNtuple ("fNtupEvt", "Ntuple with Event distributions", 28 "WaveLen:PosX:PoxY:Height:Time:DireX:DireY") ; 29 30 22 31 // 23 32 // Create a main frame with a number of different buttons. … … 377 386 return ( kTRUE ) ; 378 387 } 379 380 return (kFALSE) ; 388 381 389 } 382 390 … … 395 403 canvas->Modified() ; 396 404 canvas->Update() ; 405 406 return(kTRUE) ; 397 407 } 398 408 else 399 printf("No Ntuple exist!!\n"); 409 printf("No Ntuple exist!!\n"); 410 411 return (kFALSE) ; 400 412 } 401 413 … … 583 595 Int_t retval = 0 ; 584 596 Char_t wort[100] ; 597 Char_t wort2[10] ; 585 598 Char_t testfile[100] ; 586 599 Char_t extens[5] ; … … 603 616 sprintf ( fInputPath, "\0") ; 604 617 fSelectButton->SetState(kButtonDisabled) ; 618 605 619 fDir2->RemoveEntry(1) ; 606 620 fDir2->AddEntry(fInputPath,1) ; 607 621 fDir2->MapSubwindows() ; 608 622 fDir2->Layout() ; 609 623 624 fDir3->RemoveEntry(1) ; 625 fDir3->AddEntry(fInputPath,1) ; 626 fDir3->MapSubwindows() ; 627 fDir3->Layout() ; 628 629 630 sprintf (wort2, "\0" ) ; 631 fDirEvtNb->RemoveEntry(1) ; 632 fDirEvtNb->AddEntry( wort2, 1 ) ; 633 fDirEvtNb->MapSubwindows() ; 634 fDirEvtNb->Layout() ; 635 636 637 610 638 // 611 639 // goto the parent directory … … 651 679 fDir2->Layout() ; 652 680 681 fDir3->RemoveEntry(1) ; 682 fDir3->AddEntry(fInputPath,1) ; 683 fDir3->MapSubwindows() ; 684 fDir3->Layout() ; 685 686 fEvtNb = 0 ; 687 sprintf (wort2, "%d", fEvtNb ) ; 688 fDirEvtNb->RemoveEntry(1) ; 689 fDirEvtNb->AddEntry( wort2, 1 ) ; 690 fDirEvtNb->MapSubwindows() ; 691 fDirEvtNb->Layout() ; 692 653 693 } 654 694 } … … 657 697 case M_BUTTON_PRINT: 658 698 canvas->Print("simone.ps") ; 659 //gSystem->Exec("lpr simone.ps") ;699 gSystem->Exec("lpr simone.ps") ; 660 700 gSystem->Exec("rm -f simone.ps") ; 661 701 break; … … 683 723 case M_BUTTON_FIRSTINT: 684 724 DrawRunParam("FirstInt") ; 725 break; 726 727 728 729 case M_BUTTON_PREV: 730 fEvtNb-- ; 731 732 733 734 sprintf (wort2, "%d", fEvtNb ) ; 735 fDirEvtNb->RemoveEntry(1) ; 736 fDirEvtNb->AddEntry( wort2, 1 ) ; 737 fDirEvtNb->MapSubwindows() ; 738 fDirEvtNb->Layout() ; 739 break; 740 741 742 case M_BUTTON_NEXT: 743 fEvtNb++ ; 744 745 sprintf (wort2, "%d", fEvtNb ) ; 746 fDirEvtNb->RemoveEntry(1) ; 747 fDirEvtNb->AddEntry( wort2, 1 ) ; 748 fDirEvtNb->MapSubwindows() ; 749 fDirEvtNb->Layout() ; 685 750 break; 686 751 … … 762 827 fDir2->AddEntry(fInputPath,1) ; 763 828 fDir2->MapSubwindows() ; 764 fDir2->Layout() ; 829 fDir2->Layout() ; 830 831 fDir3->RemoveEntry(1) ; 832 fDir3->AddEntry(fInputPath,1) ; 833 fDir3->MapSubwindows() ; 834 fDir3->Layout() ; 835 836 sprintf (wort2, "\0" ) ; 837 fDirEvtNb->RemoveEntry(1) ; 838 fDirEvtNb->AddEntry( wort2, 1 ) ; 839 fDirEvtNb->MapSubwindows() ; 840 fDirEvtNb->Layout() ; 841 765 842 // 766 843 // goto directory
Note:
See TracChangeset
for help on using the changeset viewer.