EUROPEAN ORGANIZATION FOR NUCLEAR RESEARCH

Edit a Beam Line Sequence

With the help of the commands explained below, a sequence may be modified in many ways: the starting point can be moved to another place; the order of elements can be inverted; elements can be inserted one by one, or as a whole group with one single command; single elements, or classes thereof can be removed; elements can be replaced by others; finally, the sequence can be "flattened", i.e. all inserted sequences are replaced by their actual elements, such that a flattened sequence contains only elements. It is good practice to add a flatten; statement at the end of a seqedit operation to ensure a fully operational sequence. And this is particularly useful for the save command to properly save shared sequences and to write out in MAD-8 format.