next up previous contents index
Next: Define Misalignments Up: Error Definitions Previous: Error Commands   Contents   Index


Error Mode

For all error-defining commands, the beam line or sequence to be affected must be specified with the command


ERROR,LINE=name,SEED=real,ADD=logical,CLEAR=logical;
It has the following attributes:
LINE
The line to be affected.
SEED
Selects a particular sequence of random values. A SEED value is an integer in the range [0...999999999] (default: 123456789). SEED can be an expression. See also: random values.
ADD
If this value is entered as true, the subsequent error definitions are added to any existing ones. Otherwise, the subsequent error definitions overwrite any existing ones.
CLEAR
If this value is true, all errors are erased from the given line.
After this command MAD enters ``error mode'', in which it accepts only the error defining commands. Normal mode is resumed by entering the command

ENDERROR;
It is possible to assign alignment errors and field errors to single beam elements or to ranges of beam elements. Errors can be entered both with given or with random values.


next up previous contents index
Next: Define Misalignments Up: Error Definitions Previous: Error Commands   Contents   Index
MAD User Guide, http://wwwslap.cern.ch/mad/