CMS 3D CMS Logo

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

Functions

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

Variables

string edmCfgFromDB = "edmConfigFromDB --orcoff --format summary.ascii --paths "
 
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 getHLTPrescaleColumns.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 getHLTPrescaleColumns.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  psMap = {}
29  aa=""
30  if len(res)>0:
31  for uu in range(3,len(res_split)-1):
32  if uu % 2 == 1:
33  aa = aa + res_split[uu] + "\t"
34  psMap[path] = aa
35  else:
36  psMap[path] = 0
37  return psMap
const uint16_t range(const Frame &aFrame)
def getPrescalesFromKey
my $pyPrintTable = "echo 'for X in process.PrescaleService.prescaleTable: print \"%s %s" % (X...

Variable Documentation

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

Definition at line 20 of file getHLTPrescaleColumns.py.

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

Definition at line 57 of file getHLTPrescaleColumns.py.

dictionary getHLTPrescaleColumns.jsout = {}

Definition at line 44 of file getHLTPrescaleColumns.py.

list getHLTPrescaleColumns.key = runKeys[run]

Definition at line 46 of file getHLTPrescaleColumns.py.

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

Definition at line 8 of file getHLTPrescaleColumns.py.

list getHLTPrescaleColumns.path = args[0]

Definition at line 17 of file getHLTPrescaleColumns.py.

dictionary getHLTPrescaleColumns.prescaleTable = {}

Definition at line 41 of file getHLTPrescaleColumns.py.

int getHLTPrescaleColumns.psfactor = 1

Definition at line 49 of file getHLTPrescaleColumns.py.

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

Definition at line 40 of file getHLTPrescaleColumns.py.

tuple getHLTPrescaleColumns.runs = runKeys.keys()

Definition at line 42 of file getHLTPrescaleColumns.py.