CMS 3D CMS Logo

Functions
getHLTPrescaleColumns Namespace Reference

Functions

def getPrescalesFromKey (key)
 my $pyPrintTable = "echo 'for X in process.PrescaleService.prescaleTable: print \"%s %s" % (X.pathName.value(), X.prescales[0])'"; More...
 

Function Documentation

def getHLTPrescaleColumns.getPrescalesFromKey (   key)

my $pyPrintTable = "echo 'for X in process.PrescaleService.prescaleTable: print \"%s %s" % (X.pathName.value(), X.prescales[0])'";

Definition at line 22 of file getHLTPrescaleColumns.py.

References edm.print().

23  #stderr.write("\t%s ...\n" % key);
24  cmd = ( edmCfgFromDB +" --configName "+key + " | grep -i "+ path + " | tail -1 | awk ' $2 ==\"%s\" {print $NL}' " ) % path
25  res = commands.getoutput(cmd)
26  res_split = res.split()
27  psMap = {}
28  aa=""
29  if len(res)>0:
30  for uu in range(3,len(res_split)-1):
31  if uu % 2 == 1:
32  aa = aa + res_split[uu] + "\t"
33  psMap[path] = aa
34  else:
35  psMap[path] = 0
36  return psMap
37 
def getPrescalesFromKey(key)
my $pyPrintTable = "echo 'for X in process.PrescaleService.prescaleTable: print \"%s %s" % (X...