CMS 3D CMS Logo

Public Member Functions | Public Attributes

MCScenario_CRAFT1_22X::Position Class Reference

List of all members.

Public Member Functions

def __init__
def writeXML

Public Attributes

 location

Detailed Description

Definition at line 99 of file MCScenario_CRAFT1_22X.py.


Constructor & Destructor Documentation

def MCScenario_CRAFT1_22X::Position::__init__ (   self,
  location 
)

Definition at line 100 of file MCScenario_CRAFT1_22X.py.

00101                                   :
00102         self.location = location


Member Function Documentation

def MCScenario_CRAFT1_22X::Position::writeXML (   self)

Definition at line 103 of file MCScenario_CRAFT1_22X.py.

00104                       :
00105         parameters = self.location.keys()
00106         parameters.sort(sorter)
00107 
00108         output = ["<setposition relativeto=\"ideal\" "]
00109         for parameter in parameters:
00110             output.extend([parameter, "=\"", str(self.location[parameter]), "\" "])
00111         output.append("/>")
00112 
00113         return "".join(output)
00114 
# an instance of this class corresponds to one <operation> ... </operation> in the XML file

Member Data Documentation

Definition at line 100 of file MCScenario_CRAFT1_22X.py.