Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Configuration
HLT
python
cachedHLT.py
Go to the documentation of this file.
1
# used by cmsDriver when called like
2
# cmsDiver.py hlt -s HLT:cached:<runnumber>
3
# or
4
# cmsDiver.py hlt -s HLT:cached:fromSource
5
6
hltByRun = {
7
( 190456, 193621 ) :
'5E33v4'
,
8
( 193834, 196531 ) :
'7E33v2'
,
9
( 198022, 199608 ) :
'7E33v3'
,
10
( 199698, 202504 ) :
'7E33v4'
,
11
( 202970, 203709 ) :
'7E33v4'
,
12
( 203777, 208686 ) :
'8E33v2'
,
13
}
14
15
16
def
getCachedHLT
(run) :
17
# make sure run is an integer
18
run = int(run)
19
20
# look for a run range that contains the ginven run, and return the associated HLT key
21
for
key
in
hltByRun:
22
if
key[0] <= run <= key[1]:
23
return
hltByRun[key]
24
25
# the given run was not found in any supported run range
26
raise
Exception
(
'The given run number (%d) is not supported'
% run)
27
28
29
def
loadCachedHltConfiguration
(process, run, fastsim = False):
30
if
fastsim:
31
process.load(
'HLTrigger/Configuration/HLT_%s_Famos_cff'
%
getCachedHLT
(run))
32
else
:
33
process.load(
'HLTrigger/Configuration/HLT_%s_cff'
%
getCachedHLT
(run))
34
35
import
FWCore.ParameterSet.Config
as
cms
36
cms.Process.loadCachedHltConfiguration = loadCachedHltConfiguration
Config
Exception
cachedHLT.getCachedHLT
def getCachedHLT
Definition:
cachedHLT.py:16
cachedHLT.loadCachedHltConfiguration
def loadCachedHltConfiguration
Definition:
cachedHLT.py:29
Generated for CMSSW Reference Manual by
1.8.5