Page 1 of 1

rcoll gives no change in trajectories for a finite length

Posted: 15 Dec 2008, 09:57
by Max
Error when using rcollimator element

Tracking the trajectory before and after the collimator gives:
s (m) Elem.Name Cx (m) Cxp (rad)

1.926628e+002 BPM_SFEL1.3 8.510574e-007 -7.735563e-007
1.926728e+002 M81 8.433218e-007 -7.735563e-007
1.931728e+002 ECOL_SFEL1.1 8.433218e-007 -7.735563e-007
1.951628e+002 M82 -2.330915e-008 -3.057425e-007

ie the x coordinate does not change across the length of the collimator.

Max Cornacchia and Simone DiMitri

Re: rcoll gives no change in trajectories for a finite length

Posted: 15 Dec 2008, 10:27
by michael_borland
Max and Simone,

I ran a test just now and it seems ok. I also looked at the code and it looks fine.

Can you send me the input files?

Thanks--Michael

Re: rcoll gives no change in trajectories for a finite length

Posted: 16 Dec 2008, 09:23
by michael_borland
I've confirmed this problem. It occurs when the X_MAX and Y_MAX values are both zero.

As a workaround, these can be set to a large value (e.g., 1e10) when no collimation is desired.

Thanks for reporting the bug and sending your input files.

--Michael