CMS 3D CMS Logo

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

Public Member Functions

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

Public Attributes

 location
 

Detailed Description

Definition at line 100 of file MCScenario_CRAFT1_22X.py.

Constructor & Destructor Documentation

◆ __init__()

def MCScenario_CRAFT1_22X.Position.__init__ (   self,
  location 
)

Definition at line 101 of file MCScenario_CRAFT1_22X.py.

101  def __init__(self, **location):
102  self.location = location
103 
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.Position.writeXML (   self)

Definition at line 104 of file MCScenario_CRAFT1_22X.py.

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

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

Member Data Documentation

◆ location

MCScenario_CRAFT1_22X.Position.location

Definition at line 102 of file MCScenario_CRAFT1_22X.py.

Referenced by MCScenario_CRAFT1_22X.Position.writeXML().