AccErrorNode#

class orbit.py_linac.errors.AccErrorNode(name='no_name', type_in='Base_Error_Controller')[source]#

Bases: orbit.lattice.AccNodeBunchTracker.AccNodeBunchTracker

This is an abstract base class for Error nodes hierarchy. The sub-classes should implement track(self, paramsDict) method. Usually it will be call to /scr/orbit/Errors/errorbase.cc functions with parameters provided by the controller class through self.error_controller_params_func call.

Methods Summary

setErrorControllerParamFunc(...)

Sets the callable object error_controller_params_func from the error node controller.

track(paramsDict)

It is tracking the bunch through the node.

trackDesign(bunch[, paramsDict, actionContainer])

It tracks the design bunch through the AccErrorNode instance - does nothing.

Methods Documentation

setErrorControllerParamFunc(error_controller_params_func)[source]#

Sets the callable object error_controller_params_func from the error node controller.

track(paramsDict)[source]#

It is tracking the bunch through the node. Each subclass should implement this method. errorCntrl will provide parameters for tracking.

trackDesign(bunch, paramsDict={}, actionContainer=None)[source]#

It tracks the design bunch through the AccErrorNode instance - does nothing. The existence of this method allows to use this class in the Linac type lattice in addition to the Teapot lattices.