CMS 3D CMS Logo

Functions
getHLTprescales 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...
 
def readIndex ()
 

Function Documentation

def getHLTprescales.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 getHLTprescales.py.

Referenced by readIndex().

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  psCols = []
28  if len(res)>0:
29  for uu in range(3,len(res_split)-1):
30  if uu % 2 == 1:
31  psCols.append(res_split[uu])
32  return psCols
33 
def getPrescalesFromKey(key)
my $pyPrintTable = "echo 'for X in process.PrescaleService.prescaleTable: print \"%s %s" % (X...
def getHLTprescales.readIndex ( )

Definition at line 36 of file getHLTprescales.py.

References getPrescalesFromKey(), createfilelist.int, and edm.print().

Referenced by evf::EvFDaqDirector.tryInitializeFuLockFile(), and evf::EvFDaqDirector.updateFuLock().

36 def readIndex():
37  asciiFile=open("columns.txt","read")
38  mapIndex={}
39  fl="go"
40  while fl:
41  fl=asciiFile.readline()
42  if len(fl)>0:
43  ll=fl.split()
44  runnumber=ll[0]
45  pindex=ll[1]
46  mapIndex[runnumber]=pindex
47  asciiFile.close()
48  return mapIndex
49 
50 
51 MapIndex=readIndex()