Developing SES Browser Utility GUI Applications Lew Barrett
Developing SES Browser Utility GUI Applications Lew Barrett North Carolina State University Supervisor: Geoff Savage Fermilab
Fermilab Experiments Chicago p p 1. 96 Te. V Booster p CDF DØ Tevatron p source Main Injector & Recycler p
Dzero Detector Muon System Toroid protons Solenoid Calorimeters Tracker Electronics 20 m
Alarms ALL Alarms Filtered Alarms Significant Event System (SES) Alarm Display Controls System Examines SES Logger SES Server Log File
SE Messages • 14 fields – Example: v 4 ef() 1280784207 alarm CALS_CMCP_PA 04/FTB 0 d 0 olctl 132 0 none bad minor analog ai 6 -8. 98 15. 00 -10. 00 295. 00 • Network and file format – Text strings – Space separated – All the text at the end is grouped together
Developed Application within SES Scheme: Alarms ALL Alarms Report Filtered Alarms Configuration File Creator Configuration File Log File Message Viewer SES Browser Filtered Alarm File
Configuration File Python Expression : Filter add. Filter(id=“ONL 1”, filter=“contains(det, ‘ONL’)”, action=“print()”) Time : set. Time(start="2010 -06 -28 01: 00", end="2010 -06 -29 12: 00")
Configuration File Creator Need: Python program that can handle time and filter expressions Give user option which can be translated into python expression Allow user to Read/Save configuration File Development: Algorithm to Parse configuration file Recreate Python Expression Choose Graphical Tool for User Manipulate Object Oriented Data Structure Modify DOGUI Wrapper
SE Message Fields and Filters Message Field Filter Identifier version utility Example Values v 4 utility time stamp ef() 1280784207 message type mtype alarm name CALS_CMCP_PA 04/FTB priority host 0 host d 0 olctl 132 db 0 parent none children none transition bad severity minor alarm type analog parameters params ai 6 -8. 98 15. 00 -10. 00 -295. 00
Additional Filter Identifiers • Naming convention – CALS_CMCP_PA 04/FTB – Name = <det>_<devtype>_<loc>/<attr> – det = detector – devtype = device type – loc = location – attr = attribute • contains – Search for a string within a filter identifier – contains(name, ‘CAL’)
SES Browser Configuration File Creator The end time is initially set to the current time given it is not changed Display the Time Format Clear The Time Field
Configuration File Creator Action Parameters: Stat() Print() Hist() Dump() Count() Run Function Allows for user to see when run has started. Addition: Filter Expression can include comparison to add another dimension to the filter expression
SE Messages • 14 fields – Example: v 4 ef() 1280784207 alarm CALS_CMCP_PA 04/FTB 0 d 0 olctl 132 0 none bad minor analog ai 6 -8. 98 15. 00 -10. 00 295. 00 • Network and file format – Text strings – Space separated – All the text at the end is grouped together
Filtered Alarm File SES Browser Output: Prints the SE message
Message Viewer Need: Python program that can display SE messages Exclude internal SE message fields Create a report of these SE messages Design GUI View text without covering the screen Development: Object Oriented Structure Modify DOGUI Wrapper
SES MESSAGE VIEWER Color Code: -Message Type: ( command, info, alarm. . etc) -Alarm: based on transition and severity Report
Report Function
Developed Application within SES Scheme: Alarms ALL Alarms Report Filtered Alarms Configuration File Creator Configuration File Log File Message Viewer SES Browser Filtered Alarm File
Reflection – Creating an Algorithm to Parse Files – Debugging Code – GUI Programming – Python – Future Proposals: – Create GUI to handle Other SES Browser Outputs – Create GUI to display weekly alarm reports
Acknowledgement – Thanks to: – Geoff Savage, Bill Lee, Takahiro Yasuda and Vladimir Sirotenko other D 0 members for the support and assistance.
- Slides: 20