# Presentation: 851283

## EPICS Collaboration Meeting, November 14-16

**SNS Optics Database**

**N. Malitsky**

## Optics Database Requirements

**Consistency with the control system and simulation environments**** **
- The Optics Database should be considered as a _*particular*_ representation of a _*common*_ (object-oriented) Accelerator Model.
**Compatibility with the present accelerator models and descriptions**** **
- The Optics Database should be capable to store data described in MAD, ADXF, and other accelerator input formats.** **
**Minimal completeness**** **** **
- “All elements that can influence single particle motion and only those elements are contained” (Iselin - Keil - Talman)
**Extensibility**** **
- The introduction of new (any) element types and element attributes should be provided.
**Flexibility**** **
- The Optics Database should be adaptable to  different projects and able to support different versions of the same machine**.**

## UAL Accelerator Object Model

**Accelerator**** **is a hierarchical tree of accelerator nodes: elements and sequences of elements.
**Accelerator Node**** **is a basis class of an accelerator element and sequence of** **elements. There are many different types of accelerator nodes (e.g. *sbend, quadrupole, etc*.). But all of them have the same structure: an open collection of accelerator node buckets.
**Accelerator Node Bucket**** **is a set of attributes relevant to the single physical effect or feature (e.g. magnetic field, aperture, offset, rotation, *etc*.)

## UAL Accelerator Object Model (continued)

- Accelerator

- Accelerator Node

- Node Bucket

- Multipole Field

- Aperture

- Offset

- . . .

- Element

- Sequence

*design*

- Sbend

- Quadrupole

- RfCavity

- . . .

*insertions*

- *

*nodes*

*root*

- type

**Ancestors:**** ADXF, UAL/SMF, MAD**
**Applications:**** SNS, RHIC, LHC, CESR**

- Rotation

## Accelerator Model Representations

**Java Classes**

**XML file (ADXF)**

**Optics Database**

**Accelerator **
**Object Model**

##  Accelerator Model Representations (continued) 

**Off-line Simulation Package**

**Online Accelerator Model**** **

**Optics Database**

**ADXF file**

- Initialization and test of the Optics database
- Integration of the off-line simulation package with the Optics database
- Interface between off-line and online environments**  **

- ADXF-based Applications:

- JDBC

- Java
- XML Parser

- C++
- XML Parser

## Links to XML Software (Editors, Browsers, etc.)(www.cetus-links.org/oo_xml.html#oo_xml_other_software)

## DXF file with the HEBT and RTBT lattices (in the XML Instance    Editor: www.extensibility.com)

- A.Shishlo, J.Beebe-Wang, and J.Weng

**TM**

## Optics Database Tables (in the Forte   for Java IDE: www.sun.com/forte/ffj/ce/index.html) 

**TM**

## Optics Database Tables (continued)

- tested by HEBT and RTBT data

## Summary 

**Status : **
**schema of the SNS Optics Database is defined. ( N.Malitsky “A Prototype of the SNS Optics Database”, BNL/SNS Tech Note 85); **
**HEBT and RTBT lattices are inserted into the SNS Optics Database via the XML file.**
**Results :**
**consolidated physicist’s and engineer’s accelerator descriptions and raised questions about missing data (e.g. assemblies);**
**improved the Accelerator Object Model and consolidated its different representations; **
**provided accelerator physicists and developers with the first experience of the XML technology.**