Page 1 of 1

Turn-by-turn data output

Posted: 01 Jul 2016, 16:02
by wguo
I am trying to output turn-by-turn data at BPMs from Elegant multi-pass tracking. I added the following two inputs in the run_setup:
centroid=test.cen
wrap_around=0
However Elegant outputs the centroid information at every element and tracking becomes very slow.
Is there a faster way to output the position (Cx) at the BPM locations only? The information is sufficient for comparison to the actual machine output.

Thanks a bunch,

Weiming

Re: Turn-by-turn data output

Posted: 01 Jul 2016, 16:26
by michael_borland
Weiming,

The best way is using WATCH elements, which you can insert after each BPM element using the insert_elements command:

Code: Select all

&insert_elements
name = *,
type = MONI,
element_def = "wbpm: watch,filename=\"%s-%04ld.sdds\",mode=\"centroid\""
&end
This will create a file for each BPM with a name like <rootname>-0000.sdds. The file has the location and name of the previous element as parameters, so you can use SDDS tools to regroup the data into trajectories.

--Michael

Re: Turn-by-turn data output

Posted: 01 Jul 2016, 22:18
by wguo
Michael,
Thanks for the quick reply!
Weiming