CMS 3D CMS Logo

Functions
python.namespaceDict Namespace Reference

Functions

def getNamespaceDict ()
 

Detailed Description

parsing the LCGDict namespace and build dictionary
(quick'n'dirty solution)

benedikt.hegner@cern.ch

Function Documentation

◆ getNamespaceDict()

def python.namespaceDict.getNamespaceDict ( )

Definition at line 11 of file namespaceDict.py.

11 def getNamespaceDict():
12 
13  # execute SealPluginDump to get list of plugins
14  process = popen2.Popen3('SealPluginDump')
15  output = process.fromchild.read()
16 
17  namespaceDict = {}
18 
19  for line in output.split('\n'):
20  # search for Reflex, global namespace and non templates
21  if line.find('Reflex') !=-1 and line.find(':') ==-1 and line.find('<') ==-1:
22  className = line.replace('LCGReflex/', '').strip()
23  namespaceDict[className] = line.strip()
24 
25  return namespaceDict

References digitizers_cfi.strip.

digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
python.namespaceDict.getNamespaceDict
def getNamespaceDict()
Definition: namespaceDict.py:11