def init (   self,
  name,
  center,
  angle,
  extras 
)

Definition at line 479 of file general_optics.py.

00479                                                    :
00480                 
00481                 self.abcd=Numeric.identity(2).astype(numeric_float) #predefine this as a default abcd matrix (in 2 dimensions)
00482                 self.driftlength=0.0
00483                 
00484                 #copy any extra information directly into the class dictionary
00485                 for i in extras.keys():
00486                         setattr(self, i, extras[i])
00487 
00488                 if len(center)==2: #2-d optics live in the x-z plane
00489                         center=(center[0], 0, center[1])
00490                 
00491                 self.center=Numeric.array(center, numeric_float)
00492                 self.name=name
00493                 
00494                 self.reset_angle(angle)
00495                 self.post_init()
00496         
        def post_init(self):


Generated on Wed Nov 21 10:18:32 2007 for analysis by  doxygen 1.5.4