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

◆ getPrescaleTableFromProcessObject()

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)

◆ getProcessObjectFromConfDB()

def makeHLTPrescaleTable.getProcessObjectFromConfDB (   hlt_key)

Definition at line 68 of file makeHLTPrescaleTable.py.

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

68 def getProcessObjectFromConfDB(hlt_key):
69  # print >> stderr,"\t%s ..." % hlt_key
70  cmd = "edmConfigFromDB --orcoff --configName " + hlt_key
71  # print >> stderr, "cmd=",cmd
72  res = subprocess.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

◆ action

makeHLTPrescaleTable.action

Definition at line 26 of file makeHLTPrescaleTable.py.

◆ all_hlt_keys_seen

makeHLTPrescaleTable.all_hlt_keys_seen

Definition at line 116 of file makeHLTPrescaleTable.py.

◆ all_hlt_path_names_seen

makeHLTPrescaleTable.all_hlt_path_names_seen

Definition at line 110 of file makeHLTPrescaleTable.py.

◆ all_path_names

makeHLTPrescaleTable.all_path_names

Definition at line 133 of file makeHLTPrescaleTable.py.

◆ args

makeHLTPrescaleTable.args

Definition at line 44 of file makeHLTPrescaleTable.py.

◆ column_names

makeHLTPrescaleTable.column_names

Definition at line 194 of file makeHLTPrescaleTable.py.

◆ csv_output_file

makeHLTPrescaleTable.csv_output_file

Definition at line 49 of file makeHLTPrescaleTable.py.

◆ csv_writer

makeHLTPrescaleTable.csv_writer

Definition at line 181 of file makeHLTPrescaleTable.py.

◆ default

makeHLTPrescaleTable.default

Definition at line 23 of file makeHLTPrescaleTable.py.

◆ delimiter

makeHLTPrescaleTable.delimiter

◆ dest

makeHLTPrescaleTable.dest

Definition at line 23 of file makeHLTPrescaleTable.py.

◆ file

makeHLTPrescaleTable.file

Definition at line 52 of file makeHLTPrescaleTable.py.

◆ fout

makeHLTPrescaleTable.fout

Definition at line 179 of file makeHLTPrescaleTable.py.

◆ help

makeHLTPrescaleTable.help

Definition at line 23 of file makeHLTPrescaleTable.py.

◆ hlt_key

makeHLTPrescaleTable.hlt_key

Definition at line 201 of file makeHLTPrescaleTable.py.

◆ hlt_path_names_table

makeHLTPrescaleTable.hlt_path_names_table

Definition at line 107 of file makeHLTPrescaleTable.py.

◆ index

makeHLTPrescaleTable.index

Definition at line 120 of file makeHLTPrescaleTable.py.

◆ metavar

makeHLTPrescaleTable.metavar

Definition at line 23 of file makeHLTPrescaleTable.py.

◆ options

makeHLTPrescaleTable.options

Definition at line 44 of file makeHLTPrescaleTable.py.

◆ parser

makeHLTPrescaleTable.parser

Definition at line 8 of file makeHLTPrescaleTable.py.

◆ prescales

makeHLTPrescaleTable.prescales

Definition at line 251 of file makeHLTPrescaleTable.py.

◆ prescaleTable

makeHLTPrescaleTable.prescaleTable

Definition at line 104 of file makeHLTPrescaleTable.py.

◆ previous_hlt_key

makeHLTPrescaleTable.previous_hlt_key

Definition at line 177 of file makeHLTPrescaleTable.py.

◆ process

makeHLTPrescaleTable.process

Definition at line 125 of file makeHLTPrescaleTable.py.

◆ runKeys

makeHLTPrescaleTable.runKeys

Definition at line 100 of file makeHLTPrescaleTable.py.

◆ runs

makeHLTPrescaleTable.runs

Definition at line 112 of file makeHLTPrescaleTable.py.

◆ tmp

makeHLTPrescaleTable.tmp

Definition at line 154 of file makeHLTPrescaleTable.py.

◆ type

makeHLTPrescaleTable.type

Definition at line 23 of file makeHLTPrescaleTable.py.

◆ usage

makeHLTPrescaleTable.usage

Definition at line 8 of file makeHLTPrescaleTable.py.

◆ values

makeHLTPrescaleTable.values

Definition at line 224 of file makeHLTPrescaleTable.py.