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 21 of file getHLTprescales.py.

Referenced by readIndex().

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

Definition at line 35 of file getHLTprescales.py.

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

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

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