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

◆ id_generator()

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

Definition at line 61 of file VIDSelectorBase.py.

References join(), and FastTimerService_cff.range.

61 def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
62  return ''.join(random.choice(chars) for _ in range(size))
63 
def id_generator(size=6, chars=string.ascii_uppercase+string.digits)
static std::string join(char **cmd)
Definition: RemoteFile.cc:21

◆ process_pset()

def VIDSelectorBase.process_pset (   builder,
  pythonpset,
  suffix 
)
turn a python cms.PSet into a VID ID 

Definition at line 54 of file VIDSelectorBase.py.

References python.rootplot.root2matplotlib.replace().

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

54 def process_pset( builder, pythonpset, suffix ):
55  """ turn a python cms.PSet into a VID ID """
56  idname = pythonpset.idName.value().replace('-','_') + suffix
57  escaped_pset = config_template%(idname, pythonpset)
58 
59  return builder(escaped_pset,idname)
60 
def replace(string, replacements)
def process_pset(builder, pythonpset, suffix)

Variable Documentation

◆ config_template

VIDSelectorBase.config_template

Definition at line 44 of file VIDSelectorBase.py.