Changeset 424 for trunk/MagicSoft/Simulation
- Timestamp:
- 07/15/00 12:15:57 (24 years ago)
- Location:
- trunk/MagicSoft/Simulation/Corsika/GuiSimone
- Files:
-
- 3 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 -
trunk/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.hxx
r423 r424 55 55 Char_t fNtupPath[200] ; 56 56 57 Int_t fEvtNb ; 58 57 59 TNtuple *fNtup ; 60 TNtuple *fNtupEvt ; 58 61 59 62 TGMenuBar *fMenuBar ; -
trunk/MagicSoft/Simulation/Corsika/GuiSimone/Makefile
r423 r424 19 19 # 20 20 # $RCSfile: Makefile,v $ 21 # $Revision: 1. 3$21 # $Revision: 1.4 $ 22 22 # $Author: harald $ 23 # $Date: 2000-07-15 09:31:07 $23 # $Date: 2000-07-15 11:15:57 $ 24 24 # 25 25 ################################################################## … … 168 168 ../../Detector/include-CORSIKA/COREventHeader.o: ../../Detector/include-CORSIKA/COREventHeader.hxx 169 169 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h 170 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/features.h 171 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/cdefs.h 172 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/gnu/stubs.h 173 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h 170 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/standards.h 171 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/getopt.h 174 172 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h 175 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/types.h 176 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/time.h 177 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/endian.h 178 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/endian.h 173 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/mach/machine/vm_types.h 179 174 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h 180 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/select.h181 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/sigset.h182 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/sysmacros.h183 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/alloca.h184 175 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/math.h 185 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/huge_val.h186 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/mathdef.h187 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/mathcalls.h188 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h189 176 ../../Detector/include-CORSIKA/CORParticle.o: ../../Detector/include-CORSIKA/CORParticle.hxx 190 177 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/stdlib.h 191 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/features.h 192 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/cdefs.h 193 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/gnu/stubs.h 194 ../../Detector/include-CORSIKA/CORParticle.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h 178 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/standards.h 179 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/getopt.h 195 180 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/types.h 196 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/types.h 197 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/time.h 198 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/endian.h 199 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/endian.h 181 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/mach/machine/vm_types.h 200 182 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/select.h 201 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/select.h202 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/sigset.h203 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/sysmacros.h204 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/alloca.h205 183 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/math.h 206 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/huge_val.h207 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/mathdef.h208 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/mathcalls.h209 ../../Detector/include-CORSIKA/CORParticle.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h210 184 ../../Detector/include-CORSIKA/CORStatfile.o: ../../Detector/include-CORSIKA/CORStatfile.hxx 211 185 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/stdlib.h 212 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/features.h 213 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/cdefs.h 214 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/gnu/stubs.h 215 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h 186 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/standards.h 187 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/getopt.h 216 188 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/types.h 217 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/types.h 218 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/time.h 219 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/endian.h 220 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/endian.h 189 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/mach/machine/vm_types.h 221 190 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h 222 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/select.h223 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/sigset.h224 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/sysmacros.h225 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/alloca.h226 191 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/math.h 227 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/huge_val.h228 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/mathdef.h229 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/mathcalls.h230 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h231 192 MainFrameSimone.o: MainFrameSimone.hxx 232 193 MainFrameSimone.o: ../../Detector/include-CORSIKA/COREventHeader.hxx 233 MainFrameSimone.o: /usr/include/stdlib.h /usr/include/features.h 234 MainFrameSimone.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h 235 MainFrameSimone.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h 236 MainFrameSimone.o: /usr/include/sys/types.h /usr/include/bits/types.h 237 MainFrameSimone.o: /usr/include/time.h /usr/include/endian.h 238 MainFrameSimone.o: /usr/include/bits/endian.h /usr/include/sys/select.h 239 MainFrameSimone.o: /usr/include/bits/select.h /usr/include/bits/sigset.h 240 MainFrameSimone.o: /usr/include/sys/sysmacros.h /usr/include/alloca.h 241 MainFrameSimone.o: /usr/include/math.h /usr/include/bits/huge_val.h 242 MainFrameSimone.o: /usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h 243 MainFrameSimone.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h 244 simone.o: /usr/include/stdlib.h /usr/include/features.h 245 simone.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h 246 simone.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h 247 simone.o: /usr/include/sys/types.h /usr/include/bits/types.h 248 simone.o: /usr/include/time.h /usr/include/endian.h 249 simone.o: /usr/include/bits/endian.h /usr/include/sys/select.h 250 simone.o: /usr/include/bits/select.h /usr/include/bits/sigset.h 251 simone.o: /usr/include/sys/sysmacros.h /usr/include/alloca.h 194 MainFrameSimone.o: /usr/include/stdlib.h /usr/include/standards.h 195 MainFrameSimone.o: /usr/include/getopt.h /usr/include/sys/types.h 196 MainFrameSimone.o: /usr/include/mach/machine/vm_types.h 197 MainFrameSimone.o: /usr/include/sys/select.h /usr/include/math.h 198 simone.o: /usr/include/stdlib.h /usr/include/standards.h 199 simone.o: /usr/include/getopt.h /usr/include/sys/types.h 200 simone.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h 252 201 simone.o: MainFrameSimone.hxx 253 202 simone.o: ../../Detector/include-CORSIKA/COREventHeader.hxx 254 simone.o: /usr/include/math.h /usr/include/bits/huge_val.h 255 simone.o: /usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h 256 simone.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h 203 simone.o: /usr/include/math.h
Note:
See TracChangeset
for help on using the changeset viewer.