90 likes | 251 Views
Adapting XAL for LCLS. Paul Chu - SLAC May 1, 2009. What XAL can offer?. A hierarchical view of an accelerator Quick physics modeling tool A common look-and-feel graphical user interface (GUI) Use EPICS CA Oracle database adapter Many other utility packages Re-use as much as possible.
E N D
Adapting XAL for LCLS Paul Chu - SLAC May 1, 2009
What XAL can offer? • A hierarchical view of an accelerator • Quick physics modeling tool • A common look-and-feel graphical user interface (GUI) • Use EPICS CA • Oracle database adapter • Many other utility packages Re-use as much as possible
What to do before using XAL? • Set up LCLS own XAL repository • Need a database to hold input (configuration) data • Prototype in 1-2 weeks • Get right data to populate the DB take longer • Generate XAL XML input from DB • Still a little hand-edit • Online model modifications • Transfer matrices – all essential device types rewritten in MAD algorithm • Longitudinal coordinate system for electron beam • Fix some physics parameter calculation bugs • Get good design model calculation so far…
More to do… • Live machine model improvement • Chicane dipole bend angle based on field • Handle some magnets in string (can be done at EPICS level) • Back propagate Twiss parameters • Backward compatibility for apps • Existing apps use SLC model system • Set up Oracle database to store XAL model data • Use same AIDA interface to access saved models • Both XAL and SLC models available, default to XAL • Provide better feature than the SLC model system
Online Model QA • Validate XAL model (XAL vs. MAD) • R-matrix • Twiss parameters • Check whenever model code changed
Applications • Save, compare, restore (SCORE) • New columns added • Database configured • Callable API • Orbit display • Beam synchronous acquisition • Orbit fit • Linac Energy Manager (use XAL in Matlab) • Prototype, new version is under way • Virtual accelerator
Applications (cont.) • Online model manager • Run model • View available models – comparison • Tag GOLD model
Set up for LCLS/SLAC Environment • Messaging • E-log • ‘Help’ system – use wiki • GUI framework/layout • Common look-and-feel • Build and release system (ongoing) • Currently, using Ant/Eclipse • Decide to use Ant • Complete build from source for all dependant projects from CVS with specific version • ‘Framework’ is enforced to be the release version
Conclusions • LCLS XAL is working • XAL inline model for quick prototyping • Consideration • Model or no model • Need some training • GUI preference (not quite portable) • To do: • Better database schema • Speed up model run • More applications