CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
asciidump Namespace Reference

Functions

def boolean_components
 
def box_action
 
def comp_action
 
def cone_action
 
def examine_section
 
def generic_solid
 Solid actions. More...
 
def get_docs
 
def intersectionsolid_action
 
def log_action
 
def poly_section_action
 
def polycone_action
 
def polyhedra_action
 
def pos_action
 
def pseudotrap_action
 
def qname
 
def reflectionsolid_action
 
def rot_action
 other actions More...
 
def shapelesssolid_action
 
def subtractionsolid_action
 
def trapezoid_action
 
def trd1_action
 
def tube_action
 
def tubs_action
 
def unionsolid_action
 
def unitc
 

Variables

list action = i[3]
 
list at = at[1:]
 
tuple attr = e.getAttribute(at)
 
list attributes = i[2]
 
dictionary CATEGORIES = {}
 
string cmd = "rm -rf "
 
string CONFIGFILE = "configuration.xml"
 
tuple doc = xml.dom.minidom.parse(open(doc[0],'r'))
 
tuple docs_ns = get_docs("configuration.xml")
 
list document_path = doc[0]
 
int elCount = -1
 
list elements = i[1]
 
tuple els = doc.getElementsByTagName(el)
 
tuple file = open(outdir+tablename,'a')
 
 filename = outdir+tablename
 
int flagQ = 0
 
int flagU = 0
 
dictionary GENSOLID_ONCE = {}
 
int le = 0
 
tuple LOGFILE = open("log.txt",'w')
 
list namespace = doc[1]
 
string outdir = "./data/"
 
list PPCOUNT = [ 0 ]
 
int rad_to_deg = math.pi/180
 
string s = ""
 
string soldir = ""
 
dictionary SOLIDTYPES
 
list table
 
list tablename = i[0]
 
dictionary UNITS
 

Function Documentation

def asciidump.boolean_components (   r,
  ns 
)

Definition at line 133 of file asciidump.py.

References TriggerAnalyzer.__str__(), qname(), and unitc().

Referenced by intersectionsolid_action(), subtractionsolid_action(), and unionsolid_action().

134 def boolean_components(r,ns):
135  s = ""
136  for c in r.getElementsByTagName("rSolid"):
137  s = s + qname(c.getAttribute("name"),ns) + ","
138  t = r.getElementsByTagName("Translation")
139  if len(t) != 0:
140  s = s + unitc(t[0].getAttribute("x")).__str__() + ","
141  s = s + unitc(t[0].getAttribute("y")).__str__() + ","
142  s = s + unitc(t[0].getAttribute("z")).__str__() + ","
143  else:
144  s = s + "0,0,0,"
145  r = r.getElementsByTagName("rRotation")
146  if len(r) != 0:
147  s = s + qname(r[0].getAttribute("name"),ns) + ","
148  else:
149  s = s + "rotations:UNIT,"
150  return s
151 
152 # Solid-action ##########################################################################
153 # called during the SOLIDS-table generation
154 # each action creates a sub-table containing the data for the solids
155 # some actions create several sub-tables (e.g. polycones, rz-sectsion ...)
def unitc
Definition: asciidump.py:274
def qname
Definition: asciidump.py:315
def boolean_components
Definition: asciidump.py:133
def asciidump.box_action (   r,
  s,
  ns 
)

Definition at line 156 of file asciidump.py.

References generic_solid().

157 def box_action(r,s,ns):
158  s = s + r.tagName +','
159  generic_solid("BOXES.dat",r,ns)
160  return s
def generic_solid
Solid actions.
Definition: asciidump.py:39
def box_action
Definition: asciidump.py:156
def asciidump.comp_action (   e,
  s,
  ns 
)

Definition at line 320 of file asciidump.py.

References qname().

321 def comp_action(e,s,ns):
322  file = open(outdir+"MATERIALFRACTIONS.dat",'a')
323  fracs = e.getElementsByTagName("MaterialFraction")
324  for frac in fracs:
325  fm = frac.getAttribute("fraction")
326  mat = qname(frac.getElementsByTagName("rMaterial")[0].getAttribute("name"),ns)
327  result = "" + qname(e.getAttribute("name"),ns) + ',' + mat + ',' + fm + "\n"
328  file.write(result)
329  return s
def comp_action
Definition: asciidump.py:320
def qname
Definition: asciidump.py:315
def asciidump.cone_action (   r,
  s,
  ns 
)

Definition at line 204 of file asciidump.py.

References generic_solid().

205 def cone_action(r,s,ns):
206  s = s + r.tagName +','
207  generic_solid("CONES.dat",r,ns)
208  return s
def generic_solid
Solid actions.
Definition: asciidump.py:39
def cone_action
Definition: asciidump.py:204
def asciidump.examine_section (   r,
  ns,
  kind 
)

Definition at line 63 of file asciidump.py.

References qname(), and unitc().

Referenced by poly_section_action().

63 
64 def examine_section(r,ns,kind):
65  # currently only z-sections
66  if kind != "ZS,":
67  return
68  sections = r.getElementsByTagName("ZSection")
69  z = []
70  rmin = []
71  rmax = []
72  for s in sections:
73  z.append(unitc(s.getAttribute("z")))
74  rmin.append(unitc(s.getAttribute("rMin")))
75  rmax.append(unitc(s.getAttribute("rMax")))
76  #print z
77  # check, whether z-values come in order
78  xmin = z[0]
79  for x in z:
80  if x < xmin:
81  LOGFILE.write(r.tagName + " " + qname(r.getAttribute("name"),ns) + " z values not z1 <= z2\n")
82  xmin = x
83  for i in range(0,len(rmin)):
84  if rmin[i] == rmax[i]:
85  LOGFILE.write(r.tagName + " " + qname(r.getAttribute("name"),ns) + " rmin = rmax\n")
86  if (i != 0) and (i != (len(rmin)-1)):
87  LOGFILE.write(" the one above might be a problem!\n")
88  print r.tagName + " " + qname(r.getAttribute("name"),ns) + " rmin = rmax\n", i, range(0,len(rmin))
89 
90  for i in range(0,len(rmin)):
91  if rmin[i] > rmax[i]:
92  LOGFILE.write(r.tagName + " " + qname(r.getAttribute("name"),ns) + " rmin > rmax\n")
93  # check pairs of same z-values
94  zz = {}
95  for i in range(0,len(rmin)):
96  zz[z[i]] = 1
97  #print z[i], zz
98  if i < len(rmin)-1:
99  err = 0
100  if z[i] == z[i+1]:
101  if rmax[i+1] < rmin[i]:
102  err = 1
103  if rmin[i+1] > rmax[i]:
104  err = 2
105  if err>0:
106  LOGFILE.write(r.tagName + " " + qname(r.getAttribute("name"),ns) + " discontinuity at " + i.__str__() + "\n")
107  if len(zz) == 2:
108  #print zz, qname(r.getAttribute("name"),ns)
109  #print n
110  LOGFILE.write(r.tagName + " " + qname(r.getAttribute("name"),ns) + " simpler solid possible\n")
def unitc
Definition: asciidump.py:274
def examine_section
Definition: asciidump.py:63
def qname
Definition: asciidump.py:315
def asciidump.generic_solid (   table,
  element,
  ns,
  postfix = "",
  prefix = "",
  docpost = "[postfix]",
  docpre = "[prefix] 
)

Solid actions.

Definition at line 39 of file asciidump.py.

References TriggerAnalyzer.__str__(), qname(), and unitc().

Referenced by box_action(), cone_action(), intersectionsolid_action(), poly_section_action(), polycone_action(), polyhedra_action(), pseudotrap_action(), reflectionsolid_action(), shapelesssolid_action(), subtractionsolid_action(), trapezoid_action(), trd1_action(), tube_action(), tubs_action(), and unionsolid_action().

39 
40 def generic_solid(table,element,ns,postfix="",prefix="",docpost="[postfix]",docpre="[prefix],"):
41  if GENSOLID_ONCE.has_key(table) == 0:
42  GENSOLID_ONCE[table]=1
43  f = open(outdir+soldir+table+".cdl",'w')
44  s = "-- "
45  if len(prefix):
46  s = s + docpre
47  for att in element.attributes.values():
48  s = s + att.name + ','
49  if len(postfix):
50  s = s + docpost
51  f.write(s[:-1]+"\n")
52  f.close()
53  file = open(outdir+soldir+table,'a')
54  s=prefix
55  for att in element.attributes.values():
56  if att.name == "name":
57  s = s + qname(att.value,ns) + ','
58  else:
59  s = s + unitc(att.value).__str__() + ','
60  s = s + postfix
61  file.write(s[:-1]+"\n")
62 
# examines the sensfullness of the pcone/phedra z-sections or rz-points (currently z-section only)
def unitc
Definition: asciidump.py:274
def generic_solid
Solid actions.
Definition: asciidump.py:39
def qname
Definition: asciidump.py:315
def asciidump.get_docs (   config)

Definition at line 287 of file asciidump.py.

288 def get_docs(config):
289  result = []
290  print CONFIGFILE
291  doc = xml.dom.minidom.parse(open(CONFIGFILE,'r'))
292  file_elements = doc.getElementsByTagName("File")
293  print `file_elements`
294  for file_element in file_elements:
295  file_name = file_element.getAttribute("name")
296  url_name = file_element.getAttribute("url")
297  print url_name + file_name
298  path = url_name+file_name
299  ns = string.split(path,'/')[-1][:-4]
300  result.append([url_name+file_name,ns])
301  return result
def get_docs
Definition: asciidump.py:287
def asciidump.intersectionsolid_action (   r,
  s,
  ns 
)

Definition at line 219 of file asciidump.py.

References boolean_components(), and generic_solid().

220 def intersectionsolid_action(r,s,ns):
221  s = s + r.tagName +','
222  comp = boolean_components(r,ns)
223  generic_solid("BOOLEANSOLIDS.dat",r,ns,"I,"+comp,"","operation,solidA,solidB,x,y,z,rot")
224  return s
def generic_solid
Solid actions.
Definition: asciidump.py:39
def intersectionsolid_action
Definition: asciidump.py:219
def boolean_components
Definition: asciidump.py:133
def asciidump.log_action (   logp,
  s,
  ns 
)

Definition at line 330 of file asciidump.py.

References qname().

331 def log_action(logp,s,ns):
332  # isolate the category, name_cat[0]=name, name_cat[1]=category
333  name_cat = string.split(s,',')
334  CATEGORIES[name_cat[1]] ='' # put category in global dictionary
335  #print name_cat[1]
336  nodelist = logp.childNodes
337  l = nodelist.length
338  mat =""
339  sol =""
340  for i in range(0,l-1):
341  if string.find(nodelist[i].nodeName,"Ma") != -1:
342  mat = qname(nodelist[i].getAttribute("name"),ns)
343  if string.find(nodelist[i].nodeName,"So") != -1:
344  sol = qname(nodelist[i].getAttribute("name"),ns)
345  result = name_cat[0] + ',' + sol + ',' + mat + ',' + name_cat[1] + ','
346  return result
def qname
Definition: asciidump.py:315
def log_action
Definition: asciidump.py:330
def asciidump.poly_section_action (   r,
  ns,
  kind 
)

Definition at line 111 of file asciidump.py.

References examine_section(), generic_solid(), and qname().

Referenced by polycone_action(), and polyhedra_action().

112 def poly_section_action(r,ns,kind):
113  count = 0
114  name = qname(r.getAttribute("name"),ns) + ","
115  if r.tagName == "Polycone":
116  name = name + ","
117  else:
118  name = "," + name
119  #print kind
120  if kind=="ZS,":
121  for i in r.getElementsByTagName("ZSection"):
122  prefix = count.__str__() + ","
123  generic_solid("ZSECTIONS.dat",i,ns,name,prefix,"polycone_solid_name,polyhedra_solid_name,","sequence_no,")
124  count = count + 1
125  else:
126  for i in r.getElementsByTagName("RZPoint"):
127  prefix = count.__str__() + ","
128  generic_solid("RZPOINTS.dat",i,ns,name,prefix,"polycone_solid_name,polyhedra_solid_name,","sequence_no,")
129  count = count + 1
130  #if count<5:
131  # LOGFILE.write("ZSECTION:" +" " + r.tagName + " " + name + "\n")
132  examine_section(r,ns,kind)
def generic_solid
Solid actions.
Definition: asciidump.py:39
def examine_section
Definition: asciidump.py:63
def poly_section_action
Definition: asciidump.py:111
def qname
Definition: asciidump.py:315
def asciidump.polycone_action (   r,
  s,
  ns 
)

Definition at line 195 of file asciidump.py.

References generic_solid(), and poly_section_action().

196 def polycone_action(r,s,ns):
197  kind = "RZ"
198  if len(r.getElementsByTagName("ZSection"))>0:
199  kind = "ZS,"
200  poly_section_action(r,ns,kind)
201  generic_solid("POLYCONES.dat",r,ns,kind,"","RZ_or_ZS,")
202  s = s + r.tagName +','
203  return s
def generic_solid
Solid actions.
Definition: asciidump.py:39
def polycone_action
Definition: asciidump.py:195
def poly_section_action
Definition: asciidump.py:111
def asciidump.polyhedra_action (   r,
  s,
  ns 
)

Definition at line 186 of file asciidump.py.

References generic_solid(), and poly_section_action().

187 def polyhedra_action(r,s,ns):
188  kind = "RZ"
189  if len(r.getElementsByTagName("ZSection"))>0:
190  kind = "ZS,"
191  poly_section_action(r,ns,kind)
192  s = s + r.tagName +','
193  generic_solid("POLYHEDRAS.dat",r,ns,kind,"","RZ_or_ZS,")
194  return s
def generic_solid
Solid actions.
Definition: asciidump.py:39
def polyhedra_action
Definition: asciidump.py:186
def poly_section_action
Definition: asciidump.py:111
def asciidump.pos_action (   posp,
  s,
  ns 
)

Definition at line 347 of file asciidump.py.

References TriggerAnalyzer.__str__(), qname(), and unitc().

348 def pos_action(posp,s,ns):
349  PPCOUNT[0] = PPCOUNT[0] + 1
350  nodelist = posp.childNodes
351  l = nodelist.length
352  parent = ""
353  child = ""
354  tra = []
355  rot = ""
356  for i in range(0,l-1):
357  nn = nodelist[i].nodeName
358  if string.find(nn,'Pa') != -1:
359  parent = qname(nodelist[i].getAttribute("name"),ns)
360  if string.find(nn,'Child') != -1:
361  child = qname(nodelist[i].getAttribute("name"),ns)
362  if string.find(nn,'Tra') != -1:
363  tra.append(unitc(nodelist[i].getAttribute("x")))
364  tra.append(unitc(nodelist[i].getAttribute("y")))
365  tra.append(unitc(nodelist[i].getAttribute("z")))
366  if string.find(nn,'Rot') != -1:
367  rot = qname(nodelist[i].getAttribute("name"),ns)
368  result = PPCOUNT[0].__str__() + ',' + s
369  if len(tra) != 0:
370  result = result + tra[0].__str__() + ',' + tra[1].__str__() + ',' + tra[2].__str__() + ','
371  else:
372  result = result + ",,,"
373  result = result + rot + ',' + parent + ',' + child + ','
374  return result
def unitc
Definition: asciidump.py:274
def pos_action
Definition: asciidump.py:347
def qname
Definition: asciidump.py:315
def asciidump.pseudotrap_action (   r,
  s,
  ns 
)

Definition at line 209 of file asciidump.py.

References generic_solid().

210 def pseudotrap_action(r,s,ns):
211  s = s + r.tagName +','
212  generic_solid("PSEUDOTRAPEZOIDS.dat",r,ns)
213  return s
def generic_solid
Solid actions.
Definition: asciidump.py:39
def pseudotrap_action
Definition: asciidump.py:209
def asciidump.qname (   s,
  ns 
)

Definition at line 315 of file asciidump.py.

Referenced by boolean_components(), comp_action(), examine_section(), generic_solid(), log_action(), poly_section_action(), pos_action(), and edm::TypeWithDict.qualifiedName().

316 def qname(s,ns):
317  if string.find(s,':') == -1:
318  s = ns +':' + s
319  return s
def qname
Definition: asciidump.py:315
def asciidump.reflectionsolid_action (   r,
  s,
  ns 
)

Definition at line 161 of file asciidump.py.

References generic_solid().

162 def reflectionsolid_action(r,s,ns):
163  s = s + r.tagName +','
164  generic_solid("REFLECTIONSOLIDS.dat",r,ns)
165  return s
def generic_solid
Solid actions.
Definition: asciidump.py:39
def reflectionsolid_action
Definition: asciidump.py:161
def asciidump.rot_action (   r,
  s,
  ns 
)

other actions

Definition at line 306 of file asciidump.py.

307 def rot_action(r,s,ns):
308  #print r.tagName
309  if r.tagName=="ReflectionRotation":
310  s = s + "1,"
311  else:
312  s = s + "0,"
313  return s
314 
# "ABC:abc" -> "ABC:abc", "abc" -> "ns:abc"
def rot_action
other actions
Definition: asciidump.py:306
def asciidump.shapelesssolid_action (   r,
  s,
  ns 
)

Definition at line 166 of file asciidump.py.

References generic_solid().

167 def shapelesssolid_action(r,s,ns):
168  s = s + r.tagName +','
169  generic_solid("SHAPELESSSOLIDS.dat",r,ns)
170  return s
def generic_solid
Solid actions.
Definition: asciidump.py:39
def shapelesssolid_action
Definition: asciidump.py:166
def asciidump.subtractionsolid_action (   r,
  s,
  ns 
)

Definition at line 231 of file asciidump.py.

References boolean_components(), and generic_solid().

232 def subtractionsolid_action(r,s,ns):
233  s = s + r.tagName +','
234  comp = boolean_components(r,ns)
235  generic_solid("BOOLEANSOLIDS.dat",r,ns,"S,"+comp,"","operation,solidA,solidB,x,y,z,rot")
236  return s
237 
# global things
def subtractionsolid_action
Definition: asciidump.py:231
def generic_solid
Solid actions.
Definition: asciidump.py:39
def boolean_components
Definition: asciidump.py:133
def asciidump.trapezoid_action (   r,
  s,
  ns 
)

Definition at line 214 of file asciidump.py.

References generic_solid().

215 def trapezoid_action(r,s,ns):
216  s = s + r.tagName +','
217  generic_solid("TRAPEZOIDS.dat",r,ns)
218  return s
def generic_solid
Solid actions.
Definition: asciidump.py:39
def trapezoid_action
Definition: asciidump.py:214
def asciidump.trd1_action (   r,
  s,
  ns 
)

Definition at line 181 of file asciidump.py.

References generic_solid().

182 def trd1_action(r,s,ns):
183  s = s + r.tagName +','
184  generic_solid("TRD1S.dat",r,ns)
185  return s
def generic_solid
Solid actions.
Definition: asciidump.py:39
def trd1_action
Definition: asciidump.py:181
def asciidump.tube_action (   r,
  s,
  ns 
)

Definition at line 176 of file asciidump.py.

References generic_solid().

177 def tube_action(r,s,ns):
178  s = s + r.tagName +','
179  generic_solid("TUBES.dat",r,ns)
180  return s
def generic_solid
Solid actions.
Definition: asciidump.py:39
def tube_action
Definition: asciidump.py:176
def asciidump.tubs_action (   r,
  s,
  ns 
)

Definition at line 171 of file asciidump.py.

References generic_solid().

172 def tubs_action(r,s,ns):
173  s = s + r.tagName +','
174  generic_solid("TUBESECTIONS.dat",r,ns)
175  return s
def generic_solid
Solid actions.
Definition: asciidump.py:39
def tubs_action
Definition: asciidump.py:171
def asciidump.unionsolid_action (   r,
  s,
  ns 
)

Definition at line 225 of file asciidump.py.

References boolean_components(), and generic_solid().

226 def unionsolid_action(r,s,ns):
227  s = s + r.tagName +','
228  comp = boolean_components(r,ns)
229  generic_solid("BOOLDEANSOLIDS.dat",r,ns,"U,"+comp,"","operation,solidA,solidB,x,y,z,rot")
230  return s
def unionsolid_action
Definition: asciidump.py:225
def generic_solid
Solid actions.
Definition: asciidump.py:39
def boolean_components
Definition: asciidump.py:133
def asciidump.unitc (   s)

Definition at line 274 of file asciidump.py.

Referenced by boolean_components(), examine_section(), generic_solid(), and pos_action().

275 def unitc(s):
276  try:
277  s = string.strip(s)
278  x = string.split(s,'*')
279  if len(x) == 1:
280  return s
281  if len(x) == 2:
282  return string.atof(x[0])*UNITS[x[1]]
283  except:
284  print "ERROR IN unitc: >" + s + "<"
285  print x
286  print UNITS[x[1]]
def unitc
Definition: asciidump.py:274

Variable Documentation

list asciidump.action = i[3]

Definition at line 416 of file asciidump.py.

list asciidump.at = at[1:]

Definition at line 428 of file asciidump.py.

Referenced by HcaluLUTTPGCoder.adc2Linear(), TAPD.addEntry(), PFCandConnector.analyseNuclearWSec(), MultiTrackValidatorGenPs.analyze(), MultiTrackValidator.analyze(), TrackerSeedValidator.analyze(), MuonTrackValidator.analyze(), CaloSimParameters.CaloSimParameters(), Cleaning(), pat::TriggerEvent.conditionCollections(), reco::HcalNoiseRBXArray.endHPD(), EcalLaserAnalyzer2.endJob(), EcalLaserAnalyzer.endJob(), TriggerJSONMonitoring.endLuminosityBlockSummary(), TtFullHadSignalSel.EtSin2Theta(), L1GtHwValidation.excludedAlgoList(), edm::IndexIntoFile.fillEventNumbersOrEntries(), pat::TriggerEvent.filterCollections(), reco::HcalNoiseRBXArray.findHPD(), TkLasBeamFitter.fitter(), l1t::MuCondition.getCandidate(), l1t::CaloCondition.getCandidate(), L1GtVhdlWriterCore.getCondChipVhdContentFromTriggerMenu(), edm::service::TriggerNamesService.getEndPathModule(), L1GlobalCaloTrigger.getHFBitCountsCollection(), L1GlobalCaloTrigger.getHFRingEtSumsCollection(), SiStripSubStructure.getTECDetectors(), SiStripSubStructure.getTIBDetectors(), SiStripSubStructure.getTOBDetectors(), CastorTTRecord.getTriggerDecisions(), CastorTTRecord.getTriggerDecisionsPerOctant(), edm::service::TriggerNamesService.getTrigPathModule(), reco::HcalNoiseRBXArray.HcalNoiseRBXArray(), pat::TriggerEvent.indexAlgorithm(), pat::TriggerEvent.indexCondition(), pat::TriggerEvent.indexFilter(), pat::TriggerEvent.indexPath(), CastorPulseShapes::Shape.integrate(), TtFullHadSignalSel.jet_etaetaMoment(), TtFullHadSignalSel.jet_etaphiMoment(), TtFullHadSignalSel.jet_phiphiMoment(), ListOut(), L1RCTORCAMap.makeBarrelData(), HLTLevel1GTSeed.objectTypeVec(), edm::RefToBaseVector< T >.operator[](), HLTConfigProvider.prescaleValues(), HLTConfigProvider.prescaleValuesInDetail(), Combinatorics.Print(), FWGeoTopNode.printSelected(), L1GtTriggerMenuTester.printWiki(), L1GtVhdlWriterCore.processAlgorithmMap(), TrackListMerger.produce(), CaloGeometryDBEP< T, U >.produceAligned(), FWOverlapTableView.recalculate(), ecaldqm::RawDataTask.runOnRawData(), FWGeoTopNode.selectPhysicalFromTable(), HBHEStatusBitSetter.SetFlagsFromDigi(), FWGeometryTableView.setPath(), FWGeometryTableViewBase.setPath(), L1DummyProducer.SimpleDigi(), TtFullHadSignalSel.sinTheta(), TtFullHadSignalSel.theta(), SETFilter.transform(), pat::TriggerObjectStandAlone.triggerObject(), and L1GtVmeWriterCore.writeVME().

string asciidump.attr = e.getAttribute(at)

Definition at line 432 of file asciidump.py.

Referenced by lhef::LHEReader::XMLHandler.endElement(), XrdAdaptor::Source.getXrootdSiteFromURL(), FWGUIManager.measureWMOffsets(), SimpleSAXParser.parse(), SummaryPlotXmlParser.parseXML(), and FWXMLConfigParser.pushConfig().

list asciidump.attributes = i[2]

Definition at line 415 of file asciidump.py.

Referenced by FWDialogBuilder.addLabel(), CmsShowCommonPopup.CmsShowCommonPopup(), cscdqm::Collection.getNodeProperties(), L1GtTriggerMenuXmlParser.getXMLAttribute(), l1t::TriggerMenuXmlParser.getXMLAttribute(), popcon::EcalSRPHandler.importDccConfigFile(), fireworks.italicGC(), MiscalibReaderFromXML.parseXMLMiscalibFile(), CmsShowMainFrame.showFWorksInfo(), LumiCorrectionSource.toParentString(), and LumiProducer.toParentString().

dictionary asciidump.CATEGORIES = {}

Definition at line 238 of file asciidump.py.

string asciidump.cmd = "rm -rf "

Definition at line 19 of file asciidump.py.

Referenced by WatcherStreamFileReader.closeFile(), RunManagerMT.initG4(), and RunManager.initG4().

string asciidump.CONFIGFILE = "configuration.xml"

Definition at line 9 of file asciidump.py.

tuple asciidump.doc = xml.dom.minidom.parse(open(doc[0],'r'))

Definition at line 381 of file asciidump.py.

Referenced by dqmservices::DQMFileIterator.advanceToLumi(), HcalLutManager.create_lut_loader(), DBlmapWriter.createLMap(), dumpObject_(), EcalTPGCrystalStatusXMLTranslator.dumpXML(), ESGainXMLTranslator.dumpXML(), EcalTimeBiasCorrectionsXMLTranslator.dumpXML(), EcalAlignmentXMLTranslator.dumpXML(), EcalTPGStripStatusXMLTranslator.dumpXML(), EcalTPGTowerStatusXMLTranslator.dumpXML(), EcalDCSTowerStatusXMLTranslator.dumpXML(), EcalChannelStatusXMLTranslator.dumpXML(), EcalPedestalsXMLTranslator.dumpXML(), EcalPulseCovariancesXMLTranslator.dumpXML(), EcalPulseShapesXMLTranslator.dumpXML(), EcalTPGLinearizationConstXMLTranslator.dumpXML(), EcalGainRatiosXMLTranslator.dumpXML(), EcalClusterCrackCorrXMLTranslator.dumpXML(), EcalTimeOffsetXMLTranslator.dumpXML(), EcalADCToGeVXMLTranslator.dumpXML(), EcalDAQTowerStatusXMLTranslator.dumpXML(), EcalClusterEnergyCorrectionObjectSpecificXMLTranslator.dumpXML(), EcalClusterEnergyCorrectionXMLTranslator.dumpXML(), EcalClusterLocalContCorrXMLTranslator.dumpXML(), EcalWeightGroupXMLTranslator.dumpXML(), EcalTBWeightsXMLTranslator.dumpXML(), EcalWeightSetXMLTranslator.dumpXML(), EcalLinearCorrectionsXMLTranslator.dumpXML(), EcalLaserAPDPNRatiosXMLTranslator.dumpXML(), EcalFloatCondObjectContainerXMLTranslator.dumpXML(), DQMParserBase.getDocument(), DQMParserBase.getNewDocument(), RivetHarvesting.getPoint2DValsErrs(), TiXmlNode.Identify(), edm::FileLocator.init(), cscdqm::Collection.load(), QTestConfigurationParser.monitorElementTestsMap(), dqmservices::DQMFileIterator.monUpdateLumi(), MuonAlignmentInputXML.newAlignableMuon(), dqmservices::DQMMonitoringService.outputLumiUpdate(), edm::service::SiteLocalConfigService.parse(), L1GtTriggerMenuXmlParser.parseAlgorithms(), L1GtTriggerMenuXmlParser.parseConditions(), L1GtTriggerMenuXmlParser.parseId(), L1GtTriggerMenuXmlParser.parseTechTriggers(), l1t::TriggerMenuXmlParser.parseTechTriggers(), L1GtTriggerMenuXmlParser.parseVmeXML(), l1t::TriggerMenuXmlParser.parseVmeXML(), SummaryPlotXmlParser.parseXML(), MiscalibReaderFromXML.parseXMLMiscalibFile(), QTestConfigurationParser.qtestsConfig(), dqmservices::DQMFileIterator.reset(), PhysicsTools.saveMatrix(), PhysicsTools.saveVector(), LumiCorrectionSource.servletTranslation(), LumiProducer.servletTranslation(), TiXmlAttribute.SetDocument(), dqmservices::DQMFileIterator.update_state(), L1GtTriggerMenuXmlParser.workXML(), xuti.WriteNodeWithValue(), and EcalTBWeightsXMLTranslator.writeWeightSet().

tuple asciidump.docs_ns = get_docs("configuration.xml")

Definition at line 375 of file asciidump.py.

list asciidump.document_path = doc[0]

Definition at line 378 of file asciidump.py.

int asciidump.elCount = -1

Definition at line 417 of file asciidump.py.

Referenced by cond::PayLoadInspector< DataT >.trend_plot().

list asciidump.elements = i[1]

Definition at line 414 of file asciidump.py.

Referenced by ora::MappingRawData.addElement(), DiJetAnalyzer.analyze(), GammaJetAnalysis.analyze(), PFRecoTauAlgorithm.buildPFTau(), FWPFBlockProxyBuilder.buildViewType(), calo_filter(), reco::PFDisplacedVertexCandidate.Dump(), dumpObject_(), PFPhotonAlgo.EvaluateGCorrMVA(), PFPhotonAlgo.EvaluateResMVA(), PFPhotonAlgo.EvaluateSingleLegMVA(), PFEGammaAlgo.EvaluateSingleLegMVA(), CalibratableTest.extractCandidate(), METAnalyzer.fillMonitorElement(), edm::eventsetup::EventSetupsController.getESProducerAndRegisterProcess(), edm::eventsetup::EventSetupsController.getESProducerPSet(), edm::eventsetup::EventSetupsController.getESSourceAndRegisterProcess(), init_filter(), PFEGammaAlgo.isAMuon(), edm::eventsetup::EventSetupsController.isFirstMatch(), edm::eventsetup::EventSetupsController.isLastMatch(), edm::eventsetup::EventSetupsController.isMatchingESProducer(), edm::eventsetup::EventSetupsController.isMatchingESSource(), edm::eventsetup::EventSetupsController.lookForMatches(), reco::modules::HICaloCompatibleTrackSelector.matchPFCandToTrack(), ElementsInAnnulus< math::XYZVector, DeltaR< math::XYZVector, math::XYZPoint >, Angle< math::XYZVector, math::XYZPoint >, std::pair< math::XYZPoint, float > >.operator()(), ElementsInCone< math::XYZVector, DeltaR< math::XYZVector, math::XYZPoint >, std::pair< math::XYZPoint, float > >.operator()(), ElementsInEllipse< reco::PFCandidate, reco::PFCandidate >.operator()(), reco::tau::RecoTauElectronRejectionPlugin.operator()(), ElementsInAnnulus< T, M, N, std::pair< math::XYZPoint, float > >.operator()(), ElementsInAnnulusRef< T, M, N, std::pair< math::XYZPoint, float > >.operator()(), ElementsInConeRef< T, M, std::pair< math::XYZPoint, float > >.operator()(), ElementsInCone< T, M, std::pair< math::XYZPoint, float > >.operator()(), DTTPGParamsWriter.pharseLine(), PFAlgoTestBenchElectrons.processBlock(), PFAlgo.processBlock(), PFElectronTranslator.produce(), EgammaHLTPFPhotonIsolationProducer.produce(), IsolationProducer< C1, C2, Alg, OutputCollection, Setup >.produce(), reco::modulesNew::IsolationProducer< C1, C2, Alg, OutputCollection, Setup >.produce(), PFEGammaProducer.produce(), PFPhotonTranslator.produce(), PFAlgo.reconstructParticles(), PFPhotonAlgo.RunPFPhoton(), PFElectronAlgo.SetActive(), PFElectronAlgo.SetCandidates(), PFElectronAlgo.SetIDOutputs(), and PFElectronAlgo.SetLinks().

tuple asciidump.els = doc.getElementsByTagName(el)

Definition at line 420 of file asciidump.py.

Referenced by PFDisplacedVertexCandidateFinder.packLinks().

tuple asciidump.file = open(outdir+tablename,'a')

Definition at line 413 of file asciidump.py.

asciidump.filename = outdir+tablename

Definition at line 412 of file asciidump.py.

int asciidump.flagQ = 0

Definition at line 424 of file asciidump.py.

int asciidump.flagU = 0

Definition at line 425 of file asciidump.py.

dictionary asciidump.GENSOLID_ONCE = {}

Definition at line 15 of file asciidump.py.

tuple asciidump.le = 0

Definition at line 443 of file asciidump.py.

Referenced by SiPixelErrorEstimation.analyze(), WtoLNuSelector.filter(), PixelCPEBase.getParameters(), TkPixelMeasurementDet.hasBadComponents(), TkClonerImpl.makeShared(), TwoBodyDecayTrajectoryFactory.match(), Chi2MeasurementEstimatorBase.maximalLocalDisplacement(), ForwardMeasurementEstimator.maximalLocalDisplacement(), BarrelMeasurementEstimator.maximalLocalDisplacement(), TkClonerImpl.operator()(), ValidHitPairFilter.operator()(), RecHit2DLocalPos.parametersError(), TRecHit2DPosConstraint.parametersError(), RecHit1D.parametersError(), KFBasedPixelFitter::MyBeamSpotHit.parametersError(), BeamSpotTransientTrackingRecHit.parametersError(), cms::SiPixelRecHitConverter.run(), MultiTrajectoryStateTransform.stateOnSurface(), and TrackMultiSelector.TrackMultiSelector().

tuple asciidump.LOGFILE = open("log.txt",'w')

Definition at line 16 of file asciidump.py.

list asciidump.namespace = doc[1]

Definition at line 379 of file asciidump.py.

string asciidump.outdir = "./data/"

Definition at line 11 of file asciidump.py.

list asciidump.PPCOUNT = [ 0 ]

Definition at line 271 of file asciidump.py.

int asciidump.rad_to_deg = math.pi/180

Definition at line 256 of file asciidump.py.

list asciidump.s = ""

Definition at line 422 of file asciidump.py.

string asciidump.soldir = ""

Definition at line 13 of file asciidump.py.

dictionary asciidump.SOLIDTYPES
Initial value:
1 = {
2  'SubtractionSolid':subtractionsolid_action,
3  'UnionSolid':unionsolid_action,
4  'IntersectionSolid':intersectionsolid_action,
5  'Trapezoid':trapezoid_action,
6  'PseudoTrap':pseudotrap_action,
7  'Cone':cone_action,
8  'Polycone':polycone_action,
9  'Polyhedra':polyhedra_action,
10  'Trd1':trd1_action,
11  'Tube':tube_action,
12  'Tubs':tubs_action,
13  'ShapelessSolid':shapelesssolid_action,
14  'ReflectionSolid':reflectionsolid_action,
15  'Box':box_action,
16  }

Definition at line 239 of file asciidump.py.

list asciidump.table
Initial value:
1 = [
2  [ 'MATERIALS.dat', ['ElementaryMaterial', 'CompositeMaterial'] ,
3  [':name','density'] ,0 ],
4 
5  [ 'ELEMENTARYMATERIALS.dat', ['ElementaryMaterial'],
6  [':name', ';atomicNumber', 'atomicWeight', ';symbol' ], 0 ],
7 
8  [ 'COMPOSITEMATERIALS.dat', ['CompositeMaterial'],
9  [':name',';method' ], comp_action ],
10 
11  [ 'ROTATIONS.dat', ['Rotation', 'ReflectionRotation'],
12  [':name', 'thetaX', 'phiX', 'thetaY', 'phiY', 'thetaZ', 'phiZ'], rot_action ],
13 
14  [ 'LOGICALPARTS.dat', ['LogicalPart'],
15  [':name', ';category', 'itemid' ], log_action ],
16 
17  [ 'POSPARTS.dat', ['PosPart'],
18  ['copyNumber'], pos_action ],
19 
20  [ 'SOLIDS.dat', SOLIDTYPES.keys(),
21  [':name'], SOLIDTYPES.values() ]
22 
23  ]

Definition at line 386 of file asciidump.py.

list asciidump.tablename = i[0]

Definition at line 411 of file asciidump.py.

dictionary asciidump.UNITS
Initial value:
1 = { u'deg':rad_to_deg,
2  u'fm':1e-12,
3  u'nm':1e-9,
4  u'mum':1e-3,
5  u'mm':1.,
6  u'cm':10.,
7  u'm':1000.,
8  u'rad':1,
9  u'g/cm3':1,
10  u'mg/cm3':0.001,
11  u'g/mole':1.,
12  u'mg/mole':0.001
13  }

Definition at line 257 of file asciidump.py.

Referenced by SiPixelFedCablingMapBuilder.produce().