CMS 3D CMS Logo

Classes | Functions | Variables
VIDSelectorBase Namespace Reference

Classes

class  VIDSelectorBase
 

Functions

def id_generator (size=6, chars=string.ascii_uppercase+string.digits)
 
def process_pset (builder, pythonpset, suffix)
 

Variables

 config_template
 

Function Documentation

def VIDSelectorBase.id_generator (   size = 6,
  chars = string.ascii_uppercase + string.digits 
)

Definition at line 32 of file VIDSelectorBase.py.

References join().

32 def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
33  return ''.join(random.choice(chars) for _ in range(size))
34 
def id_generator(size=6, chars=string.ascii_uppercase+string.digits)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def VIDSelectorBase.process_pset (   builder,
  pythonpset,
  suffix 
)
turn a python cms.PSet into a VID ID 

Definition at line 25 of file VIDSelectorBase.py.

References python.rootplot.root2matplotlib.replace().

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

25 def process_pset( builder, pythonpset, suffix ):
26  """ turn a python cms.PSet into a VID ID """
27  idname = pythonpset.idName.value().replace('-','_') + suffix
28  escaped_pset = config_template%(idname, pythonpset)
29 
30  return builder(escaped_pset,idname)
31 
def replace(string, replacements)
def process_pset(builder, pythonpset, suffix)

Variable Documentation

VIDSelectorBase.config_template

Definition at line 15 of file VIDSelectorBase.py.