70 likes | 175 Views
XAL for SLAC/LCLS. Paul Chu. Tasks. Database work Preparing a database to store static accelerator information. Querying the DB and creating XAL XML file Jython script + minor manual editing Eclipse BIRT and SLAC DB web interface as check up tools K <-> B conversion XAL work
E N D
XAL for SLAC/LCLS Paul Chu
Tasks • Database work • Preparing a database to store static accelerator information. • Querying the DB and creating XAL XML file • Jython script + minor manual editing • Eclipse BIRT and SLAC DB web interface as check up tools • K <-> B conversion • XAL work • SMF modification for LCLS specific devices • Using a “mapping” file for device type -> class, instead of hardwiring • Online model modification for LCLS specific devices • Cavities with end-focusing • Solenoids • LCLS CVS setup • Our own XAL since August • XAL jar files wrapped as an Eclipse plug-in • XAL classes are available to other SEAL plug-ins • Benchmark comparison between online model and MAD
XAL Work in More Detail • Due to tight schedule, hacked into XAL code directly for SMF, online model. • Still need to add *Lots* of very LCLS-specific device/PV support, e.g. the “beam synchronous acquisition” PVs. • Manually adding RF cavity “gaps” to XAL XML file.
XAL Setup • Besides the XAL XML file preparation, XAL setup is relatively easy • Following the “How-to” comes with the package • Set up a couple environment variables • Get source code, build JAR files • (optional) Set up JCA • (optional) Choose JCA/JNI or JCA/CAJ in Java Preferences • (optional) Set up “default” accelerator • (optional) Set up “default” database connectivity
XAL Applications for LCLS • Only these can be (almost) right out of box • Knobs • Launcher (Eclipse have its own) • Orbit display • Scan 1D and 2D • SCORE – with right database setup • Online model (MPX) • XIO • + a couple more…
Bringing up probe editor Accelerator/sequence Chooser plug-in Data display selector XAL plotting package And synoptic display XAL in SEAL • All but XAL frame GUI classes are available in SEAL.
Conclusion • Significant amount of work is for database -> XAL XML file setup • Experience • if not using Eclipse, things get slightly easier • XAL GUI frame can be used • So far, our difficulty is mainly from Eclipse, not XAL • But, we only did in “quick-and-dirty” way