next up previous contents index
Next: Beam Lines, Sequences, and Up: Physical Elements and Markers Previous: Beam-Beam Interactions   Contents   Index


Editing Element Definitions

An element definition can be changed in two ways:
Entering a new definition
The element definition will be replaced. A beam element, LINE, or SEQUENCE can be replaced by another beam element, beam line, or sequence; if the replaced item occurs in another beam line or sequence, all references in that line or sequence are replaced.
Entering the element name together with new attributes
The element will be updated in place, and the new attribute values will replace the old ones. When the type of the element should not change, replacement of an attribute is the more efficient way.
Element definitions can be changed freely. The changes do not affect already defined objects which belong to its class. This example shows two ways to change the strength of a quadrupole:

QF:QUADRUPOLE,L=1,K1=0.01; // Original definition of QF
QF:QUADRUPOLE,L=1,K1=0.02; // Replace whole definition of QF
QF,K1=0.02;                // Replace value of K1



MAD User Guide, http://wwwslap.cern.ch/mad/