Python AccNodeBunchTracker Example

Introduction

The python accnodebunchtracker example is extracted from the most popular open source projects, you can refer to the following example for usage.

Programming language: Python

Namespace/package name: orbitlattice

Example#1
File: BaseMATRIX.pyProject: luxiaohan/py-orbit-code

	def __init__(self, name = "no name"):
		"""
		Constructor. Creates the base MATRIX element.
		"""
		AccNodeBunchTracker.__init__(self,name)
		self.setType("base matrix")
		self.matrix = Matrix(7,7)

Example#2
File: LinacAccNodes.pyProject: luxiaohan/py-orbit-code

	def __init__(self, name = "none"):
		"""
		Constructor. Creates the base linac element. This is a superclass for all linac elements.
		"""
		AccNodeBunchTracker.__init__(self,name)
		self.setType("baseLinacNode")
		self.__linacSeqence = None

Example#3
File: scAccNodes.pyProject: luxiaohan/py-orbit-code

	def __init__(self, sc_calculator, name = "no name"):			
		"""
		Constructor. Creates the Space Charge (SC) accelerator node element.
		"""
		AccNodeBunchTracker.__init__(self,name)
		self.setType("SC_Base")
		self.sc_length = 0.
		self.switcher = True
		self.sc_calculator = sc_calculator

Example#4
File: teapot.pyProject: luxiaohan/py-orbit-code

	def __init__(self, name = "no name"):
		"""
		Constructor. Creates the base TEAPOT element. This is a superclass for all TEAPOT elements.
		"""
		AccNodeBunchTracker.__init__(self,name)
		self.setType("base teapot")