def __init__(self, name = "no name container"): """ Constructor. Creates empty accelerator actions container. """ NamedObject.__init__(self, name) #Array with entrance, body, and exit actions. self.__actionsArr = ([],[],[])
def __init__(self, name="no_name", type_in="ErrorForNodesModification"): NamedObject.__init__(self, name) TypedObject.__init__(self, type_in) self.nodes = [] self.error_controllers = [] self.node_to_cntrl_dict = {} self.lattice = None
def __init__(self, name="no name", type_in="generic"): """ Constructor. Creates an empty accelerator node. """ NamedObject.__init__(self, name) TypedObject.__init__(self, type_in) ParamsDictObject.__init__(self) self.AccNode = orbit.lattice.AccNode #------------------------------------------------ # nParts - number of parts in the body of node #------------------------------------------------ self.__nParts = 1 self.__lengthArr = [0.] self.__length = 0. self.__activePartIndex = 0 #------------------------------------------------ # Child nodes are placed at the entrance, inside the body, # or at the exit of this node. In the body, child nodes # can be added before or after any part. # Child nodes may be diagnostics, collective effects, # apertures, etc. # Body child nodes - list containing lists of two lists # (before and after each part) of nodes #------------------------------------------------ self.__childNodesArr = [[], [[[], []]], []] self._setPartsLengthEvenly(self.__nParts)
def __init__(self, name = "no name", type_in = "generic"): """ Constructor. Creates an empty accelerator node. """ NamedObject.__init__(self, name) TypedObject.__init__(self, type_in) ParamsDictObject.__init__(self) self.AccNode = orbit.lattice.AccNode #------------------------------------------------ # nParts - number of parts in the body of node #------------------------------------------------ self.__nParts = 1 self.__lengthArr = [0.] self.__length = 0. self.__activePartIndex = 0 #------------------------------------------------ # Child nodes are placed at the entrance, inside the body, # or at the exit of this node. In the body, child nodes # can be added before or after any part. # Child nodes may be diagnostics, collective effects, # apertures, etc. # Body child nodes - list containing lists of two lists # (before and after each part) of nodes #------------------------------------------------ self.__childNodesArr = [[],[[[],[]]],[]] self._setPartsLengthEvenly(self.__nParts)
def __init__(self, name = "none"): NamedObject.__init__(self, name) ParamsDictObject.__init__(self) self.__linacNodes = [] self.addParam("position",0.) self.addParam("length",0.) self.addParam("linacAccLattice",None)
def __init__(self, name = "root"): """ The XmlDataAdaptor constructor. The default name is 'root'. It is an analog of the XAL XmlDataAdaptor class. The Attributes are replaced by parameters. """ NamedObject.__init__(self,name) ParamsDictObject.__init__(self) self.data_adaptors = []
def __init__(self, name = "no name"): """ Constructor. Creates an empty accelerator lattice. """ NamedObject.__init__(self, name) TypedObject.__init__(self, "lattice") self.__length = 0. self.__isInitialized = False self.__children = [] self.__childPositions = {}
def __init__(self, name = "none"): NamedObject.__init__(self, name) ParamsDictObject.__init__(self) self.__rfGaps = [] self.addParam("frequency",0.) self.addParam("phase",0.) self.addParam("amp",0.) self.addParam("designPhase",0.) self.addParam("designAmp",0.) self.addParam("designArrivalTime",0.) self.addParam("isDesignSetUp",False)
def __init__(self, name = "no_name", type_in = "Base_Error_Controller"): NamedObject.__init__(self, name) TypedObject.__init__(self, type_in) ParamsDictObject.__init__(self) #-------------------------------------- #---- entrance and exit Error AccNodes self.entranceAccNode = None self.exitAccNode = None self.entranceAccNodeParent = None self.exitAccNodeParent = None self.accLattice = None
def __init__(self, name="none"): NamedObject.__init__(self, name) ParamsDictObject.__init__(self) self.__rfGaps = [] #---- firstGapEntrancePhase is used by gaps instead of phase in the case #---- of non-zero length gaps self.__firstGapEntrancePhase = 0. self.__firstGapEntranceDesignPhase = 0. self.addParam("frequency", 0.) self.addParam("phase", 0.) self.addParam("amp", 1.) self.addParam("designPhase", 0.) self.addParam("designAmp", 1.) self.addParam("designArrivalTime", 0.) self.addParam("isDesignSetUp", False) self.addParam("pos", 0.)
def __init__(self, name="node"): NamedObject.__init__(self, name) TypedObject.__init__(self, type_in="none") ParamsDictObject.__init__(self) self.setParam("length", 0.)
def __init__(self, name = "no name"): NamedObject.__init__(self, name) TypedObject.__init__(self, "base waveform")
def __init__(self, name="no_name", type_in="QuadFieldsErrorsDeployment"): NamedObject.__init__(self, name) TypedObject.__init__(self, type_in) #---- self.quad_and_field_arr[ind] = [[quad,field_init],...] self.quad_and_field_arr = []
def __init__(self, name="no name"): NamedObject.__init__(self, name) TypedObject.__init__(self, "base waveform")
def __init__(self,name = "node"): NamedObject.__init__(self,name) TypedObject.__init__(self,type_in = "none") ParamsDictObject.__init__(self) self.setParam("length",0.)
def __init__(self, name = "None"): NamedObject.__init__(self,name) TypedObject.__init__(self,type_in = "linac") ParamsDictObject.__init__(self) self.seqs = [] self.length = 0.
def __init__(self, name="None"): NamedObject.__init__(self, name) TypedObject.__init__(self, type_in="linac") ParamsDictObject.__init__(self) self.seqs = [] self.length = 0.