Page 1 of 1

Scanning parameters of a bunched_beam

Posted: 25 Mar 2021, 04:58
by Björklund
Hi folks,

Maybe there's something obvious I'm missing, but I haven't been able to find a way to automatize the scanning of parameters of a @bunched_beam the way you can scan for example the strength of a magnet with @vary_element; in my application I want to scan the angular centroids in x and y.

Is there a simple way to do this?
Best regards,
Jonas Björklund Svensson

Re: Scanning parameters of a bunched_beam

Posted: 25 Mar 2021, 11:57
by michael_borland
Jonas,

If you want to scan the initial centroids, you can insert a MALIGN element at the start of the beamline and vary the DX, DXP, DY, DYP parameters.

--Michael

Re: Scanning parameters of a bunched_beam

Posted: 25 Mar 2021, 12:24
by Björklund
Hi Michael,

That is indeed such a simple solution that I'm looking for, thanks! :) I had totally missed that element.

EDIT:
Follow-up question: can I use the vary_element function to perform a 2D scan, of dxp and dyp in this case?

- Jonas