Turn-by-turn data output

Moderators: cyao, michael_borland

Post Reply
wguo
Posts: 41
Joined: 13 Jun 2008, 12:54

Turn-by-turn data output

Post by wguo » 01 Jul 2016, 16:02

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

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Turn-by-turn data output

Post by michael_borland » 01 Jul 2016, 16:26

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

wguo
Posts: 41
Joined: 13 Jun 2008, 12:54

Re: Turn-by-turn data output

Post by wguo » 01 Jul 2016, 22:18

Michael,
Thanks for the quick reply!
Weiming

Post Reply