CMS 3D CMS Logo

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

Functions

def getCachedHLT
 
def loadCachedHltConfiguration
 

Variables

dictionary hltByRun
 

Function Documentation

def cachedHLT.getCachedHLT (   run)

Definition at line 16 of file cachedHLT.py.

Referenced by loadCachedHltConfiguration().

16 
17 def getCachedHLT(run) :
18  # make sure run is an integer
19  run = int(run)
20 
21  # look for a run range that contains the ginven run, and return the associated HLT key
22  for key in hltByRun:
23  if key[0] <= run <= key[1]:
24  return hltByRun[key]
25 
26  # the given run was not found in any supported run range
27  raise Exception('The given run number (%d) is not supported' % run)
28 
def getCachedHLT
Definition: cachedHLT.py:16
def cachedHLT.loadCachedHltConfiguration (   process,
  run,
  fastsim = False 
)

Definition at line 29 of file cachedHLT.py.

References getCachedHLT().

29 
30 def loadCachedHltConfiguration(process, run, fastsim = False):
31  if fastsim:
32  process.load('HLTrigger/Configuration/HLT_%s_Famos_cff' % getCachedHLT(run))
33  else:
34  process.load('HLTrigger/Configuration/HLT_%s_cff' % getCachedHLT(run))
def getCachedHLT
Definition: cachedHLT.py:16
def loadCachedHltConfiguration
Definition: cachedHLT.py:29

Variable Documentation

dictionary cachedHLT.hltByRun
Initial value:
1 = {
2  ( 190456, 193621 ) : '5E33v4',
3  ( 193834, 196531 ) : '7E33v2',
4  ( 198022, 199608 ) : '7E33v3',
5  ( 199698, 202504 ) : '7E33v4',
6  ( 202970, 203709 ) : '7E33v4',
7  ( 203777, 208686 ) : '8E33v2',
8 }

Definition at line 6 of file cachedHLT.py.