CMS 3D CMS Logo

Public Member Functions | Public Attributes

MCScenario_CRAFT1_22X::Alignable Class Reference

List of all members.

Public Member Functions

def __init__
def writeXML

Public Attributes

 alignabletype
 location

Detailed Description

Definition at line 76 of file MCScenario_CRAFT1_22X.py.


Constructor & Destructor Documentation

def MCScenario_CRAFT1_22X::Alignable::__init__ (   self,
  alignabletype,
  location 
)

Definition at line 77 of file MCScenario_CRAFT1_22X.py.

00078                                                  :
00079         self.alignabletype = alignabletype
00080         self.location = location


Member Function Documentation

def MCScenario_CRAFT1_22X::Alignable::writeXML (   self)

Definition at line 81 of file MCScenario_CRAFT1_22X.py.

00082                       :
00083         parameters = self.location.keys()
00084         if self.alignabletype[0:2] == "DT":
00085             parameters.sort(DTsorter)
00086         else:
00087             parameters.sort(CSCsorter)
00088 
00089         output = ["<", self.alignabletype, " "]
00090         for parameter in parameters:
00091             output.extend([parameter, "=\"", str(self.location[parameter]), "\" "])
00092         output.append("/>")
00093 
00094         return "".join(output)


Member Data Documentation

Definition at line 77 of file MCScenario_CRAFT1_22X.py.

Definition at line 77 of file MCScenario_CRAFT1_22X.py.