Beispiel #1
0
 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
Beispiel #2
0
	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)
Beispiel #3
0
    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)
Beispiel #4
0
	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 = {}
Beispiel #5
0
	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 = "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
Beispiel #7
0
 def __init__(self, name="no name"):
     NamedObject.__init__(self, name)
     TypedObject.__init__(self, "base waveform")
Beispiel #8
0
	def __init__(self, name = "None"):
		NamedObject.__init__(self,name)
		TypedObject.__init__(self,type_in = "linac")
		ParamsDictObject.__init__(self)		
		self.seqs = []
		self.length = 0.
Beispiel #9
0
	def __init__(self,name = "node"):
		NamedObject.__init__(self,name)
		TypedObject.__init__(self,type_in = "none")
		ParamsDictObject.__init__(self)	
		self.setParam("length",0.)
Beispiel #10
0
 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 = []
Beispiel #11
0
	def __init__(self, name = "no name"):
		NamedObject.__init__(self, name)
		TypedObject.__init__(self, "base waveform")
Beispiel #12
0
 def __init__(self, name="None"):
     NamedObject.__init__(self, name)
     TypedObject.__init__(self, type_in="linac")
     ParamsDictObject.__init__(self)
     self.seqs = []
     self.length = 0.
Beispiel #13
0
 def __init__(self, name="node"):
     NamedObject.__init__(self, name)
     TypedObject.__init__(self, type_in="none")
     ParamsDictObject.__init__(self)
     self.setParam("length", 0.)