CMS 3D CMS Logo

Functions | Variables
makeHLTPrescaleTable Namespace Reference

Functions

def getPrescaleTableFromProcessObject (process)
 
def getProcessObjectFromConfDB (hlt_key)
 

Variables

 action
 
 all_hlt_keys_seen
 
 all_hlt_path_names_seen
 
 all_path_names
 
 args
 
 column_names
 
 csv_output_file
 
 csv_writer
 
 default
 
 delimiter
 
 dest
 
 file
 
 fout
 
 help
 
 hlt_key
 
 hlt_path_names_table
 
 index
 
 metavar
 
 options
 
 parser
 
 prescales
 
 prescaleTable
 
 previous_hlt_key
 
 process
 
 runKeys
 
 runs
 
 tmp
 
 type
 
 usage
 
 values
 

Function Documentation

def makeHLTPrescaleTable.getPrescaleTableFromProcessObject (   process)
returns a dict of hlt key to vector of prescales
mapping 

Definition at line 56 of file makeHLTPrescaleTable.py.

57  """ returns a dict of hlt key to vector of prescales
58  mapping """
59 
60  retval = {}
61  for entry in process.PrescaleService.prescaleTable:
62  retval[entry.pathName.value()] = entry.prescales.value()
63 
64  return retval
65 
66 #----------------------------------------------------------------------
67 
def getPrescaleTableFromProcessObject(process)
def makeHLTPrescaleTable.getProcessObjectFromConfDB (   hlt_key)

Definition at line 68 of file makeHLTPrescaleTable.py.

References beamvalidation.exit(), and edm.print().

69  # print >> stderr,"\t%s ..." % hlt_key
70  cmd = "edmConfigFromDB --orcoff --configName " + hlt_key
71  # print >> stderr, "cmd=",cmd
72  res = commands.getoutput(cmd)
73 
74  # potentially dangerous: we're running python code here
75  # which we get from an external process (confDB).
76  # we trust that there are no file deletion commands
77  # in the HLT configurations...
78 
79  # for some keys, edmConfigFromDB seems to produce error messages.
80  # just return None in this case
81  try:
82  exec(res)
83  except:
84  return None
85 
86  return process
87 
88 #----------------------------------------------------------------------
def getProcessObjectFromConfDB(hlt_key)

Variable Documentation

makeHLTPrescaleTable.action

Definition at line 26 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.all_hlt_keys_seen

Definition at line 116 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.all_hlt_path_names_seen

Definition at line 110 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.all_path_names

Definition at line 133 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.args

Definition at line 44 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.column_names

Definition at line 194 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.csv_output_file

Definition at line 49 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.csv_writer

Definition at line 181 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.default

Definition at line 23 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.delimiter
makeHLTPrescaleTable.dest

Definition at line 23 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.file

Definition at line 52 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.fout

Definition at line 179 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.help

Definition at line 23 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.hlt_key

Definition at line 201 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.hlt_path_names_table

Definition at line 107 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.index

Definition at line 120 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.metavar

Definition at line 23 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.options

Definition at line 44 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.parser

Definition at line 8 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.prescales

Definition at line 251 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.prescaleTable

Definition at line 104 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.previous_hlt_key

Definition at line 177 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.process

Definition at line 125 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.runKeys

Definition at line 100 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.runs

Definition at line 112 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.tmp

Definition at line 154 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.type

Definition at line 23 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.usage

Definition at line 8 of file makeHLTPrescaleTable.py.

makeHLTPrescaleTable.values

Definition at line 224 of file makeHLTPrescaleTable.py.