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 33 of file VIDSelectorBase.py.

References join(), and FastTimerService_cff.range.

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

Definition at line 26 of file VIDSelectorBase.py.

References python.rootplot.root2matplotlib.replace().

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

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

Variable Documentation

VIDSelectorBase.config_template

Definition at line 16 of file VIDSelectorBase.py.