next up previous contents index
Next: Index Up: The MAD Program Previous: Lines and Sequences


Physical Actions

In order to make matching much more flexible, the USE command has been removed. In MAD-8 the example


USE,PERIOD=LINE1
BEAM,...
SURVEY
TWISS
TRACK
...
ENDTRACK
allows only the use of one beam line at a time. In MAD-9, the equivalent commands are:

BEAM1:BEAM,...
SU1:SURVEY,LINE=LINE1;
TW1:TWISS,LINE=LINE1,BEAM=BEAM1;
TR1:TRACK,LINE=LINE1,BEAM=BEAM1;
...
ENDTRACK
The labels on the SURVEY, TWISS, and TRACK commands are optional, but they may be referred to in matching. The following should be noted:
  1. If the BEAM command is not labelled, its name defaults to UNNAMED_BEAM. If it is labelled, different subsequent commands can refer to different BEAM commands.
  2. If no BEAM command is given on TWISS or TRACK, the command UNNAMED_BEAM is used. Its default definition is:
    
    UNNAMED_BEAM:BEAM,PARTICLE=PROTON,PC=1,EX=1,EY=1,ET=1;
    
  3. The TWISS and SURVEY commands create a table object. All values contained in a table object can be referred to in matching with the syntax
    
    table-name@place->column-name
    
    To avoid re-computation of a table which does not change during matching, declare it as STATIC.



chris.iselin@cern.ch