Sequence#
- class orbit.py_linac.lattice.Sequence(name='none')[source]#
Bases:
orbit.utils.NamedObject.NamedObject,orbit.utils.ParamsDictObject.ParamsDictObjectThis is the class to keep refernces to AccNodes that constitute the accelerator sequence.
Methods Summary
addNode(node[, index])Adds the Linac Node to the sequence.
addRF_Cavity(cav)Adds the RF cavity to the list inside this sequence.
Returns the total length of the sequence [m].
getNodes()Returns the array with Linac Nodes.
Returns the position of the sequence.
Returns the array with RF cavities.
getRF_Cavity(name)Returns the cavity instance according to the name
Removes all nodes from the sequence.
Reverse order of nodes and RF cavities in sequence.
setLength(length)Sets the total length of the sequence [m].
setLinacAccLattice(lattice)setNodes(linacNodes)Set a new set of Linac Nodes.
setPosition(pos)Sets the position of the sequence.
Methods Documentation