Paul Chu XAL for 10/14/2007 1 XAL for SLAC/LCLS Paul Chu.

7
Paul Chu XAL for LCLS [email protected]. edu 10/14/2007 1 XAL for SLAC/LCLS Paul Chu

description

Paul Chu XAL for 10/14/ 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.

Transcript of Paul Chu XAL for 10/14/2007 1 XAL for SLAC/LCLS Paul Chu.

Page 1: Paul Chu XAL for 10/14/2007 1 XAL for SLAC/LCLS Paul Chu.

Paul Chu

XAL for LCLS [email protected]

10/14/20071

XAL for SLAC/LCLS

Paul Chu

Page 2: Paul Chu XAL for 10/14/2007 1 XAL for SLAC/LCLS Paul Chu.

Paul Chu

XAL for LCLS [email protected]

10/14/20072

TasksDatabase work

Preparing a database to store static accelerator information.Querying the DB and creating XAL XML file

Jython script + minor manual editingEclipse BIRT and SLAC DB web interface as check up toolsK <-> B conversion

XAL workSMF modification for LCLS specific devices

Using a “mapping” file for device type -> class, instead of hardwiringOnline model modification for LCLS specific devices

Cavities with end-focusingSolenoids

LCLS CVS setupOur own XAL since August

XAL jar files wrapped as an Eclipse plug-inXAL classes are available to other SEAL plug-ins

Benchmark comparison between online model and MAD

Page 3: Paul Chu XAL for 10/14/2007 1 XAL for SLAC/LCLS Paul Chu.

Paul Chu

XAL for LCLS [email protected]

10/14/20073

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.

Page 4: Paul Chu XAL for 10/14/2007 1 XAL for SLAC/LCLS Paul Chu.

Paul Chu

XAL for LCLS [email protected]

10/14/20074

XAL Setup

Besides the XAL XML file preparation, XAL setup is relatively easy

Following the “How-to” comes with the packageSet up a couple environment variablesGet 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

Page 5: Paul Chu XAL for 10/14/2007 1 XAL for SLAC/LCLS Paul Chu.

Paul Chu

XAL for LCLS [email protected]

10/14/20075

XAL Applications for LCLS

Only these can be (almost) right out of boxKnobsLauncher (Eclipse have its own)Orbit displayScan 1D and 2DSCORE – with right database setupOnline model (MPX)XIO+ a couple more…

Page 6: Paul Chu XAL for 10/14/2007 1 XAL for SLAC/LCLS Paul Chu.

Paul Chu

XAL for LCLS [email protected]

10/14/20076

XAL in SEAL

XAL plotting packageAnd synoptic display

Bringing up probe editorAccelerator/sequence

Chooser plug-in Data display selector

All but XAL frame GUI classes are available in SEAL.

Page 7: Paul Chu XAL for 10/14/2007 1 XAL for SLAC/LCLS Paul Chu.

Paul Chu

XAL for LCLS [email protected]

10/14/20077

Conclusion

Significant amount of work is for database -> XAL XML file setupExperience

if not using Eclipse, things get slightly easierXAL GUI frame can be used

So far, our difficulty is mainly from Eclipse, not XALBut, we only did in “quick-and-dirty” way