CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
MCScenario_CRAFT1_22X.Alignable Class Reference

Public Member Functions

def __init__ (self, alignabletype, location)
 
def writeXML (self)
 

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.

77  def __init__(self, alignabletype, **location):
78  self.alignabletype = alignabletype
79  self.location = location
80 
def __init__(self, alignabletype, location)

Member Function Documentation

def MCScenario_CRAFT1_22X.Alignable.writeXML (   self)

Definition at line 81 of file MCScenario_CRAFT1_22X.py.

References MCScenario_CRAFT1_22X.Alignable.alignabletype, join(), MCScenario_CRAFT1_22X.Alignable.location, and harvestTrackValidationPlots.str.

81  def writeXML(self):
82  parameters = self.location.keys()
83  if self.alignabletype[0:2] == "DT":
84  parameters.sort(DTsorter)
85  else:
86  parameters.sort(CSCsorter)
87 
88  output = ["<", self.alignabletype, " "]
89  for parameter in parameters:
90  output.extend([parameter, "=\"", str(self.location[parameter]), "\" "])
91  output.append("/>")
92 
93  return "".join(output)
94 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18

Member Data Documentation

MCScenario_CRAFT1_22X.Alignable.alignabletype

Definition at line 78 of file MCScenario_CRAFT1_22X.py.

Referenced by MCScenario_CRAFT1_22X.Alignable.writeXML().

MCScenario_CRAFT1_22X.Alignable.location