Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
acc
acc
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Labels
    • Milestones
  • Packages
    • Packages
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • hla
  • accacc
  • Issues
  • #5

Closed
Open
Opened Sep 22, 2017 by Carla Barquest@cbarquest
  • Report abuse
  • New issue
Report abuse New issue

Bender position calculation in xml2optr/optr2xml

Found an offset before and after bends in emma.xml when running the following command on hlx:

/home/cbarquest/acc/lib/xml2optr.py '/home/cbarquest/acc/isac/path/emma.xml' -E 79.3591 -q 7 -m 33533.80 -Q 0 -t '/home/cbarquest/acc/isac/tune/emma.xml' -o '/home/cbarquest/acc/lib/emmatest/'

The output I put for the first version in beam/envelope highlights the drift that I had to manually change for the generated xml2optr sy.f file to match the reference sy.f output:

https://gitlab.triumf.ca/hla/beam/envelope/blob/c3c71a2e9bc9afb68587dfec0f7f05f7c0dc74b6/optr/isac/emma/sy.f#L37

Drifts before and after the bends were off by +/-26.18cm. Note the sequence emma.xml file was originally generated by optr2xml(I think?) so not sure if the position calculation is off in optr2xml or xml2optr.

Here are the relevant emma.xml path/sequence/tune files:

  • Path emma.xml
  • Sequence emma.xml
  • Tune emma.xml

And here are the reference sy.f and data.dat files:

  • Reference emma sy.f
  • Reference emma data.dat
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: hla/acc#5