CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 22 of file getHLTprescales.py.

References sistrip::SpyUtilities.range().

22 
23 def getPrescalesFromKey(key):
24  #stderr.write("\t%s ...\n" % key);
25  cmd = ( edmCfgFromDB +" --configName "+key + " | grep -i "+ path + " | tail -1 | awk ' $2 ==\"%s\" {print $NL}' " ) % path
26  res = subprocess.getoutput(cmd)
27  res_split = res.split()
28  psCols = []
29  if len(res)>0:
30  for uu in range(3,len(res_split)-1):
31  if uu % 2 == 1:
32  psCols.append(res_split[uu])
33  return psCols
const uint16_t range(const Frame &aFrame)
def getPrescalesFromKey
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 
37 def readIndex():
38  asciiFile=open("columns.txt","read")
39  mapIndex={}
40  fl="go"
41  while fl:
42  fl=asciiFile.readline()
43  if len(fl)>0:
44  ll=fl.split()
45  runnumber=ll[0]
46  pindex=ll[1]
47  mapIndex[runnumber]=pindex
48  asciiFile.close()
49  return mapIndex
50 
51 
MapIndex=readIndex()

Variable Documentation

list getHLTprescales.Absent = []

Definition at line 54 of file getHLTprescales.py.

int getHLTprescales.absent = 0

Definition at line 63 of file getHLTprescales.py.

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

Definition at line 20 of file getHLTprescales.py.

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

Definition at line 68 of file getHLTprescales.py.

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

Definition at line 97 of file getHLTprescales.py.

dictionary getHLTprescales.jsout = {}

Definition at line 57 of file getHLTprescales.py.

list getHLTprescales.key = runKeys[run]

Definition at line 59 of file getHLTprescales.py.

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

Definition at line 8 of file getHLTprescales.py.

list getHLTprescales.path = args[0]

Definition at line 17 of file getHLTprescales.py.

dictionary getHLTprescales.prescaleTable = {}

Definition at line 53 of file getHLTprescales.py.

list getHLTprescales.psfactor = 1

Definition at line 62 of file getHLTprescales.py.

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

Definition at line 52 of file getHLTprescales.py.

tuple getHLTprescales.runs = runKeys.keys()

Definition at line 55 of file getHLTprescales.py.