Ignore:
Timestamp:
07/15/00 12:15:57 (24 years ago)
Author:
harald
Message:
Filled the Event distributions frame with live....
Location:
trunk/MagicSoft/Simulation/Corsika/GuiSimone
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.cxx

    r423 r424  
    1111
    1212
    13 
    1413MainFrameSimone::MainFrameSimone(const TGWindow *p, UInt_t w, UInt_t h)
    1514    : TGMainFrame(p, w, h)
     
    1716  sprintf (fInputPath, "\0" ) ;
    1817  fNumEvents = 0 ;
    19  
     18
     19  fEvtNb = 0 ;
     20
     21  //
     22  //  set up the NTuples
     23  //
    2024  fNtup = new TNtuple ("fNtup", "Ntuple with Run distributions",
    2125                       "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
    2231  //
    2332  // Create a main frame with a number of different buttons.
     
    377386    return ( kTRUE ) ;
    378387  }
    379  
    380   return (kFALSE) ;
     388
    381389}
    382390
     
    395403      canvas->Modified() ;
    396404      canvas->Update() ;
     405     
     406      return(kTRUE) ;
    397407    }
    398408  else 
    399     printf("No Ntuple exist!!\n");
     409    printf("No Ntuple exist!!\n");
     410
     411  return (kFALSE) ;
    400412}
    401413
     
    583595  Int_t retval = 0 ;
    584596  Char_t  wort[100] ;
     597  Char_t  wort2[10] ;
    585598  Char_t  testfile[100] ;
    586599  Char_t  extens[5] ;
     
    603616        sprintf ( fInputPath, "\0") ;
    604617        fSelectButton->SetState(kButtonDisabled) ;
     618
    605619        fDir2->RemoveEntry(1) ;
    606620        fDir2->AddEntry(fInputPath,1) ;
    607621        fDir2->MapSubwindows() ;
    608622        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
    610638        //
    611639        //  goto the parent directory
     
    651679            fDir2->Layout() ;   
    652680             
     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
    653693          }
    654694        }
     
    657697      case M_BUTTON_PRINT:
    658698        canvas->Print("simone.ps") ;
    659         //      gSystem->Exec("lpr simone.ps") ;
     699        gSystem->Exec("lpr simone.ps") ;
    660700        gSystem->Exec("rm -f simone.ps") ;
    661701        break;
     
    683723      case M_BUTTON_FIRSTINT:
    684724        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() ;
    685750        break; 
    686751
     
    762827              fDir2->AddEntry(fInputPath,1) ;
    763828              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 
    765842              //
    766843              //  goto directory
  • trunk/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.hxx

    r423 r424  
    5555  Char_t            fNtupPath[200] ;
    5656
     57  Int_t             fEvtNb ;
     58
    5759  TNtuple           *fNtup ;
     60  TNtuple           *fNtupEvt ;
    5861
    5962  TGMenuBar         *fMenuBar ;
  • trunk/MagicSoft/Simulation/Corsika/GuiSimone/Makefile

    r423 r424  
    1919#
    2020# $RCSfile: Makefile,v $
    21 # $Revision: 1.3 $
     21# $Revision: 1.4 $
    2222# $Author: harald $
    23 # $Date: 2000-07-15 09:31:07 $
     23# $Date: 2000-07-15 11:15:57 $
    2424#
    2525##################################################################
     
    168168../../Detector/include-CORSIKA/COREventHeader.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
    169169../../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
    174172../../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
    179174../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h
    180 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/select.h
    181 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/sigset.h
    182 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/sysmacros.h
    183 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/alloca.h
    184175../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/math.h
    185 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/huge_val.h
    186 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/mathdef.h
    187 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/mathcalls.h
    188 ../../Detector/include-CORSIKA/COREventHeader.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h
    189176../../Detector/include-CORSIKA/CORParticle.o: ../../Detector/include-CORSIKA/CORParticle.hxx
    190177../../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
    195180../../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
    200182../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/select.h
    201 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/select.h
    202 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/sigset.h
    203 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/sysmacros.h
    204 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/alloca.h
    205183../../Detector/include-CORSIKA/CORParticle.o: /usr/include/math.h
    206 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/huge_val.h
    207 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/mathdef.h
    208 ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/mathcalls.h
    209 ../../Detector/include-CORSIKA/CORParticle.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h
    210184../../Detector/include-CORSIKA/CORStatfile.o: ../../Detector/include-CORSIKA/CORStatfile.hxx
    211185../../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
    216188../../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
    221190../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h
    222 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/select.h
    223 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/sigset.h
    224 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/sysmacros.h
    225 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/alloca.h
    226191../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/math.h
    227 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/huge_val.h
    228 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/mathdef.h
    229 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/mathcalls.h
    230 ../../Detector/include-CORSIKA/CORStatfile.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h
    231192MainFrameSimone.o: MainFrameSimone.hxx
    232193MainFrameSimone.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
     194MainFrameSimone.o: /usr/include/stdlib.h /usr/include/standards.h
     195MainFrameSimone.o: /usr/include/getopt.h /usr/include/sys/types.h
     196MainFrameSimone.o: /usr/include/mach/machine/vm_types.h
     197MainFrameSimone.o: /usr/include/sys/select.h /usr/include/math.h
     198simone.o: /usr/include/stdlib.h /usr/include/standards.h
     199simone.o: /usr/include/getopt.h /usr/include/sys/types.h
     200simone.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
    252201simone.o: MainFrameSimone.hxx
    253202simone.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
     203simone.o: /usr/include/math.h
Note: See TracChangeset for help on using the changeset viewer.