EUROPEAN ORGANIZATION FOR NUCLEAR RESEARCH

Set Statements

set,format="...", sequence="...";
The set command allows 2 actions:

1) Format

The first command lets you vary the output precision.
parameter: format = s1, s2, s3
(up to) three strings defining the integer, floating, and string output format for the save, show, value, and table output. The formats can be given in any order and stay valid until replaced. The defaults are:
"10d","18.10g","-18s".
They follow the C convention. The quotes are mandatory. The allowed formats are:
"nd" for integer with n = field width.
"m.nf" or "m.ng" or "m.ne" for floating, m field width, n precision.
"ns" for string output.
The default is "right adjusted", a "-" changes it to "left adjusted". Example:
set,format="22.14e";
changes the current floating point format to 22.14e; the other formats remain untouched.
set,format="s","d","g";
sets all formats to automatic adjustment according to C conventions.

2) Sequence

The second command lets you choose the current sequence without having to use the "USE" command, which would bring you back to a bare lattice without errors. The command only works if the chosen sequence had been activated before with the "USE" command, otherwise a warning will be issued and MAD-X will continue with the unmodified current sequence. This command is particularly useful for commands that do not have the sequence as an argument like "EMIT" or "IBS".
hansg, frs, June 18, 2003