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

◆ getPrescalesFromKey()

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.

22 def getPrescalesFromKey(key):
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 = subprocess.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...

◆ readIndex()

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

◆ Absent

getHLTprescales.Absent

Definition at line 54 of file getHLTprescales.py.

◆ absent

getHLTprescales.absent

Definition at line 63 of file getHLTprescales.py.

◆ args

getHLTprescales.args

Definition at line 13 of file getHLTprescales.py.

◆ default

getHLTprescales.default

Definition at line 9 of file getHLTprescales.py.

◆ dest

getHLTprescales.dest

Definition at line 9 of file getHLTprescales.py.

◆ edmCfgFromDB

getHLTprescales.edmCfgFromDB

Definition at line 20 of file getHLTprescales.py.

◆ help

getHLTprescales.help

Definition at line 9 of file getHLTprescales.py.

◆ index

getHLTprescales.index

Definition at line 68 of file getHLTprescales.py.

◆ jsonFile

getHLTprescales.jsonFile

Definition at line 97 of file getHLTprescales.py.

◆ jsout

getHLTprescales.jsout

Definition at line 57 of file getHLTprescales.py.

◆ key

getHLTprescales.key

Definition at line 59 of file getHLTprescales.py.

◆ metavar

getHLTprescales.metavar

Definition at line 9 of file getHLTprescales.py.

◆ options

getHLTprescales.options

Definition at line 13 of file getHLTprescales.py.

◆ parser

getHLTprescales.parser

Definition at line 8 of file getHLTprescales.py.

◆ path

getHLTprescales.path

Definition at line 17 of file getHLTprescales.py.

◆ prescaleTable

getHLTprescales.prescaleTable

Definition at line 53 of file getHLTprescales.py.

◆ psfactor

getHLTprescales.psfactor

Definition at line 62 of file getHLTprescales.py.

◆ runKeys

getHLTprescales.runKeys

Definition at line 52 of file getHLTprescales.py.

◆ runs

getHLTprescales.runs

Definition at line 55 of file getHLTprescales.py.

◆ type

getHLTprescales.type

Definition at line 9 of file getHLTprescales.py.

◆ usage

getHLTprescales.usage

Definition at line 8 of file getHLTprescales.py.