test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
getHLTprescales Namespace Reference

Functions

def getPrescalesFromKey
 my $pyPrintTable = "echo 'for X in process.PrescaleService.prescaleTable: print \"%s %s" % (X.pathName.value(), X.prescales[0])'"; More...
 
def readIndex
 

Variables

list Absent = []
 
int absent = 0
 
string edmCfgFromDB = "edmConfigFromDB --orcoff --format summary.ascii --paths "
 
tuple index = int(MapIndex[run])
 
tuple jsonFile = open(options.jsonOut, "w")
 
dictionary jsout = {}
 
list key = runKeys[run]
 
tuple parser = OptionParser(usage="usage: %prog [options] Trigger_Path")
 
list path = args[0]
 
dictionary prescaleTable = {}
 
int psfactor = 1
 
tuple runKeys = queryRR(options.firstRun,options.lastRun,options.groupName)
 
tuple runs = runKeys.keys()
 

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.

20 
21 def getPrescalesFromKey(key):
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
def getPrescalesFromKey
my $pyPrintTable = "echo 'for X in process.PrescaleService.prescaleTable: print \"%s %s" % (X...
def getHLTprescales.readIndex ( )

Definition at line 34 of file getHLTprescales.py.

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

34 
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 
MapIndex=readIndex()

Variable Documentation

list getHLTprescales.Absent = []

Definition at line 52 of file getHLTprescales.py.

int getHLTprescales.absent = 0

Definition at line 61 of file getHLTprescales.py.

string getHLTprescales.edmCfgFromDB = "edmConfigFromDB --orcoff --format summary.ascii --paths "

Definition at line 18 of file getHLTprescales.py.

int getHLTprescales.index = int(MapIndex[run])

Definition at line 66 of file getHLTprescales.py.

tuple getHLTprescales.jsonFile = open(options.jsonOut, "w")

Definition at line 95 of file getHLTprescales.py.

dictionary getHLTprescales.jsout = {}

Definition at line 55 of file getHLTprescales.py.

list getHLTprescales.key = runKeys[run]

Definition at line 57 of file getHLTprescales.py.

tuple getHLTprescales.parser = OptionParser(usage="usage: %prog [options] Trigger_Path")

Definition at line 6 of file getHLTprescales.py.

list getHLTprescales.path = args[0]

Definition at line 15 of file getHLTprescales.py.

dictionary getHLTprescales.prescaleTable = {}

Definition at line 51 of file getHLTprescales.py.

list getHLTprescales.psfactor = 1

Definition at line 60 of file getHLTprescales.py.

tuple getHLTprescales.runKeys = queryRR(options.firstRun,options.lastRun,options.groupName)

Definition at line 50 of file getHLTprescales.py.

tuple getHLTprescales.runs = runKeys.keys()

Definition at line 53 of file getHLTprescales.py.