I have a beam distribution in .sdds file. And I want to let this beam go through my lattice. But the distribution is 90 degree rotated relative to my complicated lattice setting and want to rotate the entire beam distribution by 90 (say, clockwise). Can I do it using sddsprocess? If so, how can I do it?
Thanks,
Gunn Tae
trick to rotate the beam distribution?
Moderators: cyao, michael_borland
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: trick to rotate the beam distribution?
Gunn Tae,
You can do this in elegant itself, by inserting a ROTATE element at the start of the beamline:
R1: ROTATE,TILT="pi 2 /"
If you want to do it externally, you can use sddsprocess:
--Michael
You can do this in elegant itself, by inserting a ROTATE element at the start of the beamline:
R1: ROTATE,TILT="pi 2 /"
If you want to do it externally, you can use sddsprocess:
Code: Select all
sddsprocess input.sdds inputRotated.sdds -define=col,y0,y -define=col,yp0,yp \
-redefine=col,y,x,units=m -redefine=col,yp,xp \
"-redefine=col,x,y chs,units=m" "-redefine=col,xp,yp chs"