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

33 def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
34  return ''.join(random.choice(chars) for _ in range(size))
35 

References join(), and FastTimerService_cff.range.

◆ process_pset()

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

Definition at line 26 of file VIDSelectorBase.py.

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 

References python.rootplot.root2matplotlib.replace().

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

Variable Documentation

◆ config_template

VIDSelectorBase.config_template

Definition at line 16 of file VIDSelectorBase.py.

FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
VIDSelectorBase.id_generator
def id_generator(size=6, chars=string.ascii_uppercase+string.digits)
Definition: VIDSelectorBase.py:33
VIDSelectorBase.process_pset
def process_pset(builder, pythonpset, suffix)
Definition: VIDSelectorBase.py:26
python.rootplot.root2matplotlib.replace
def replace(string, replacements)
Definition: root2matplotlib.py:444