LinacTrMatrixGenNode#
- class orbit.py_linac.lattice.LinacTrMatrixGenNode(trMatricesController, name='TrMatrixGen')[source]#
Bases:
orbit.py_linac.lattice.LinacAccNodes.MarkerLinacNodeLinac 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.
Returns the normalized determinants of the transformations in (x,y,z) directions.
Returns the LinacTrMatricesController that keeps the references to the TrMatrxGenNodes.
Return transport matrix (7x7).
Returns (use_x,use,use_z) tuple where use_{} == 1 means the Twiss weights will be used.
Returns two LinacTrMatrixGenNode nodes.
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
- getDetXYZ(trMtrx=None)[source]#
Returns the determinants of the transformations in (x,y,z) directions.
- 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.
- 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.
- 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.