next up previous
Next: Show corrector values Up: Operations used in conjunction Previous: Set errors of elements

Set misalignment of elements

This operation specifies the random generation mode and the name of the elements that should actually be affected by the misalignment errors, and the intervals locations in the beam line where the errors are applied.

Input format 

SET Misalignment .....(maximum 80 characters)
nopt
nmis
name nint ${\rm nb}_{i}\ {\rm nf}_{i}$ for i from 1 to nint
.............
name nint ${\rm nb}_{i}\ {\rm nf}_{i}$ for i from 1 to nint
Parameter definitions

nopt choice option for the random generators

0 $\textstyle \parbox{10cm}{
the elements are misaligned by the fixed values given
in the MISA... operation. No randomness is introduced.}$

1 $\textstyle \parbox{10cm}{
The misalignment values are obtained by multiplying the
values given in the MISA... operation by +1 or -1
randomly generated.}$

2 $\textstyle \parbox{10cm}{
A uniform distribution is generated having the rms
values defined by the MISA... operation.}$

3 $\textstyle \parbox{10cm}{
A Gaussian distribution truncated above two standard
deviations is generated with the rms value defined by
the MISA... operation.}$

4 $\textstyle \parbox{10cm}{
A Gaussian distribution truncated above six standard
deviations is generated with the rms value defined by
the MISA... operation.}$

11,12,13,14 $\textstyle \parbox{10cm}{
the random error is the same as for 1,2,3 or 4
with...
... validity of your results with a family of
runs using the options 1,2,3 or 4.}$

nmis number of misaligned element type (names)

name name of the family of misaligned element

nint number of intervals in which element is misaligned

0 $\textstyle \parbox{10cm}{
all element with that name are misaligned. In this
case no interval range is given.}$

-1 $\textstyle \parbox{10cm}{
no element with the name are misaligned. In this case
no interval range is given.}$

nb nf $\textstyle \parbox{10cm}{
beginning and end of range of misaligned elements.
These numbers correspond to the order number in the
machine list.}$



Examples

The first example is taken from demo6.

In the second example a gaussian disbtribution truncated at 2 sigmas will be used for the alignment errors of the elements.

SETMISALIGNMENTS
12 9
DFCH 0 DDCH 0 HC 0
DSH  0 QS1D 0 QS2F 0 QS2D 0 QS3F 0 QS3D 0,

SETMISALIGNMENTS
13 9
DFCH 0 DDCH 0 HC 0
DSH  0 QS1D 0 QS2F 0 QS2D 0 QS3F 0 QS3D 0,


next up previous
Next: Show corrector values Up: Operations used in conjunction Previous: Set errors of elements
Dobrin Kaltchev 2004-10-20