LinacTrMatrixGenNode#

class orbit.py_linac.lattice.LinacTrMatrixGenNode(trMatricesController, name='TrMatrixGen')[source]#

Bases: orbit.py_linac.lattice.LinacAccNodes.MarkerLinacNode

Linac Accelerator Nodes for Transport Matrices generation. These nodes are using thethe Initial Coordinates particles Attrubutes. Each node (if it is not the first one) calculates the transport matrix between the previous node and itself. The matrix is a 7x7 matrix that transforms the initial particles coordinates to the final ones that are in the bu

Methods Summary

getBeta()

Returns relativistic beta at this node.

getDetXYZ([trMtrx])

Returns the determinants of the transformations in (x,y,z) directions.

getGamma()

Returns relativistic gamma at this node.

getNormDetXYZ()

Returns the normalized determinants of the transformations in (x,y,z) directions.

getTrMatricesController()

Returns the LinacTrMatricesController that keeps the references to the TrMatrxGenNodes.

getTransportMatrix()

Return transport matrix (7x7).

getTwissWeightUse()

Returns (use_x,use,use_z) tuple where use_{} == 1 means the Twiss weights will be used.

getTwoNodes()

Returns two LinacTrMatrixGenNode nodes.

printMatrix()

Print the matrix.

setInternalIndex(ind)

Sets the index of the TrMatrxGenNode in the controller

setTwissWeightUse(use_twiss_weight_x, ...)

Sets (use_x,use,use_z) tuple where use_{} == 1 means the Twiss weights will be used.

track(paramsDict)

It is tracking the bunch through the element.

trackDesign(paramsDict)

This method does nothing for the aperture case.

Methods Documentation

getBeta()[source]#

Returns relativistic beta at this node.

getDetXYZ(trMtrx=None)[source]#

Returns the determinants of the transformations in (x,y,z) directions.

getGamma()[source]#

Returns relativistic gamma at this node.

getNormDetXYZ()[source]#

Returns the normalized determinants of the transformations in (x,y,z) directions.

getTrMatricesController()[source]#

Returns the LinacTrMatricesController that keeps the references to the TrMatrxGenNodes.

getTransportMatrix()[source]#

Return transport matrix (7x7).

getTwissWeightUse()[source]#

Returns (use_x,use,use_z) tuple where use_{} == 1 means the Twiss weights will be used.

getTwoNodes()[source]#

Returns two LinacTrMatrixGenNode nodes. The transport matrix is between these nodes.

printMatrix()[source]#

Print the matrix.

setInternalIndex(ind)[source]#

Sets the index of the TrMatrxGenNode in the controller

setTwissWeightUse(use_twiss_weight_x, use_twiss_weight_y, use_twiss_weight_z)[source]#

Sets (use_x,use,use_z) tuple where use_{} == 1 means the Twiss weights will be used.

track(paramsDict)[source]#

It is tracking the bunch through the element. Each element should implement this method.

trackDesign(paramsDict)[source]#

This method does nothing for the aperture case.