CMS 3D CMS Logo

Functions | Variables
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 ()
 

Variables

 Absent
 
 absent
 
 args
 
 default
 
 dest
 
 edmCfgFromDB
 
 help
 
 index
 
 jsonFile
 
 jsout
 
 key
 
 metavar
 
 options
 
 parser
 
 path
 
 prescaleTable
 
 psfactor
 
 runKeys
 
 runs
 
 type
 
 usage
 

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.

References FastTimerService_cff.range.

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.

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()

Variable Documentation

getHLTprescales.Absent

Definition at line 54 of file getHLTprescales.py.

getHLTprescales.absent

Definition at line 63 of file getHLTprescales.py.

getHLTprescales.args

Definition at line 13 of file getHLTprescales.py.

getHLTprescales.default

Definition at line 9 of file getHLTprescales.py.

getHLTprescales.dest

Definition at line 9 of file getHLTprescales.py.

getHLTprescales.edmCfgFromDB

Definition at line 20 of file getHLTprescales.py.

getHLTprescales.help

Definition at line 9 of file getHLTprescales.py.

getHLTprescales.index

Definition at line 68 of file getHLTprescales.py.

getHLTprescales.jsonFile

Definition at line 97 of file getHLTprescales.py.

getHLTprescales.jsout

Definition at line 57 of file getHLTprescales.py.

getHLTprescales.key

Definition at line 59 of file getHLTprescales.py.

getHLTprescales.metavar

Definition at line 9 of file getHLTprescales.py.

getHLTprescales.options

Definition at line 13 of file getHLTprescales.py.

getHLTprescales.parser

Definition at line 8 of file getHLTprescales.py.

getHLTprescales.path

Definition at line 17 of file getHLTprescales.py.

getHLTprescales.prescaleTable

Definition at line 53 of file getHLTprescales.py.

getHLTprescales.psfactor

Definition at line 62 of file getHLTprescales.py.

getHLTprescales.runKeys

Definition at line 52 of file getHLTprescales.py.

getHLTprescales.runs

Definition at line 55 of file getHLTprescales.py.

getHLTprescales.type

Definition at line 9 of file getHLTprescales.py.

getHLTprescales.usage

Definition at line 8 of file getHLTprescales.py.