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 20 of file getHLTPrescaleColumns.py.

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