CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
MCScenario_CRAFT1_22X.Position Class Reference

Public Member Functions

def __init__
 
def writeXML
 

Public Attributes

 location
 

Detailed Description

Definition at line 100 of file MCScenario_CRAFT1_22X.py.

Constructor & Destructor Documentation

def MCScenario_CRAFT1_22X.Position.__init__ (   self,
  location 
)

Definition at line 101 of file MCScenario_CRAFT1_22X.py.

102  def __init__(self, **location):
103  self.location = location

Member Function Documentation

def MCScenario_CRAFT1_22X.Position.writeXML (   self)

Definition at line 104 of file MCScenario_CRAFT1_22X.py.

References join(), MCScenario_CRAFT1_22X.Alignable.location, MCScenario_CRAFT1_22X.Position.location, and str.

105  def writeXML(self):
106  parameters = self.location.keys()
107  parameters.sort(sorter)
108 
109  output = ["<setposition relativeto=\"ideal\" "]
110  for parameter in parameters:
111  output.extend([parameter, "=\"", str(self.location[parameter]), "\" "])
112  output.append("/>")
113 
114  return "".join(output)
115 
# an instance of this class corresponds to one <operation> ... </operation> in the XML file
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
#define str(s)

Member Data Documentation

MCScenario_CRAFT1_22X.Position.location

Definition at line 102 of file MCScenario_CRAFT1_22X.py.

Referenced by MCScenario_CRAFT1_22X.Position.writeXML().