Sequence#

class orbit.py_linac.lattice.Sequence(name='none')[source]#

Bases: orbit.utils.NamedObject.NamedObject, orbit.utils.ParamsDictObject.ParamsDictObject

This 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.

getLength()

Returns the total length of the sequence [m].

getLinacAccLattice()

getNodes()

Returns the array with Linac Nodes.

getPosition()

Returns the position of the sequence.

getRF_Cavities()

Returns the array with RF cavities.

getRF_Cavity(name)

Returns the cavity instance according to the name

removeAllNodes()

Removes all nodes from the sequence.

reverseOrder()

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

addNode(node, index=- 1)[source]#

Adds the Linac Node to the sequence.

addRF_Cavity(cav)[source]#

Adds the RF cavity to the list inside this sequence.

getLength()[source]#

Returns the total length of the sequence [m].

getLinacAccLattice()[source]#
getNodes()[source]#

Returns the array with Linac Nodes.

getPosition()[source]#

Returns the position of the sequence.

getRF_Cavities()[source]#

Returns the array with RF cavities.

getRF_Cavity(name)[source]#

Returns the cavity instance according to the name

removeAllNodes()[source]#

Removes all nodes from the sequence.

reverseOrder()[source]#

Reverse order of nodes and RF cavities in sequence.

setLength(length)[source]#

Sets the total length of the sequence [m].

setLinacAccLattice(lattice)[source]#
setNodes(linacNodes)[source]#

Set a new set of Linac Nodes.

setPosition(pos)[source]#

Sets the position of the sequence.