Esempio n. 1
0
	def __init__(self, name = "tilt no name", angle = 0.):
		"""
		Constructor. Creates the Tilt element.
		"""
		AccNode.__init__(self,name)
		self.__angle = angle
		self.setType("tilt teapot")
Esempio n. 2
0
	def __init__(self,  parentNode,  trackFunction = None , name = "fringe field no name"):
		"""
		Constructor. Creates the Fringe Field element.
		"""
		AccNode.__init__(self,name)
		self.setParamsDict(parentNode.getParamsDict())
		self.__trackFunc = trackFunction
		self.__usage = False
		self.setType("fringeField teapot")
Esempio n. 3
0
	def __init__(self,  parentNode,  trackFunction = None , name = "fringe field no name"):
		"""
		Constructor. Creates the Fringe Field element.
		"""
		AccNode.__init__(self,name)
		self.setParamsDict(parentNode.getParamsDict())
		self.__trackFunc = trackFunction
		self.__usage = False
		self.setType("fringeField teapot")
Esempio n. 4
0
    def __init__(self, name="no name", type_in="bunch tracker"):
        """
		Constructor. Creates an empty bunch tracker accelerator node.
		"""
        AccNode.__init__(self, name, type_in)
Esempio n. 5
0
 def __init__(self, name="no name"):
     AccNode.__init__(self, name)
     self.setType("end node")