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 77 of file MCScenario_CRAFT1_22X.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 78 of file MCScenario_CRAFT1_22X.py.

78  def __init__(self, alignabletype, **location):
79  self.alignabletype = alignabletype
80  self.location = location
81 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ writeXML()

def MCScenario_CRAFT1_22X.Alignable.writeXML (   self)

Definition at line 82 of file MCScenario_CRAFT1_22X.py.

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

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

Member Data Documentation

◆ alignabletype

MCScenario_CRAFT1_22X.Alignable.alignabletype

Definition at line 79 of file MCScenario_CRAFT1_22X.py.

Referenced by MCScenario_CRAFT1_22X.Alignable.writeXML().

◆ location

MCScenario_CRAFT1_22X.Alignable.location