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

Referenced by readIndex().

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

Definition at line 34 of file getHLTprescales.py.

References getPrescalesFromKey(), and createfilelist.int.

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

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