Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

startupGUI.py

00001 #!/usr/local/bin/python
00002 #
00003 #                               Copyright 2002
00004 #                                     by
00005 #                        The Board of Trustees of the
00006 #                     Leland Stanford Junior University.
00007 #                            All rights reserved.
00008 #
00009 
00010 __facility__ = "Online"
00011 __abstract__ = "GLAST LAT Online main program"
00012 __author__   = "R. Claus <Claus@SLAC.Stanford.edu> SLAC - GLAST LAT I&T/Online"
00013 __date__     = "11/12/2002"
00014 __version__  = "$Revision: 1.1 $"
00015 __credits__  = "SLAC"
00016 
00017 import LATTE.copyright_SLAC
00018 
00019 import sys, threading
00020 from qt import *
00021 from sihippo import *
00022 
00023 from LATTE.runcontrol.RunControlCommon import RunControlCommon
00024 from LATTE.runcontrol.RunControl       import RunControl
00025 
00026 def startup():
00027   # Start up run control
00028 
00029   rcCommon = RunControlCommon()
00030 
00031   app    = QApplication(sys.argv)
00032   QObject.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
00033 
00034   rcCommon.initialize()
00035   rcCommon.EBFdistribution()
00036 
00037   runCtl = RunControl(rcCommon)
00038   runCtl.connectClicked()
00039   app.setMainWidget(runCtl)
00040   runCtl.show()
00041 
00042   WindowController.instance().createInspector()
00043   canvas = CanvasWindow()
00044   canvas.show()
00045   ntc = NTupleController.instance()
00046   nt  = ntc.createNTuple()
00047   nt.setLabels(['Event Size'])
00048   nt.setTitle('Event Size')
00049   nt.setIntervalCount ( 1000000 )
00050   nt.setIntervalEnabled(1)
00051 
00052   DBN = rcCommon.getDBN()
00053   DBN['_canvas']          = canvas
00054   DBN['_event_size']      = 0
00055   DBN['_EventSizeNTuple'] = nt
00056   DBN['_prefs']           = rcCommon.prefMan().preferences()
00057 
00058   threading.currentThread().setName("LATTE_GUI")
00059   app.exec_loop()
00060 
00061 
00062 if __name__ == '__main__':
00063   startup()

Generated on Fri Jul 21 13:26:32 2006 for LATTE R04-12-00 by doxygen 1.4.3