Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PUT")
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.MessageLogger.HLTPrescaleRecorder=dict()
0007 
0008 process.source = cms.Source("EmptySource",
0009    firstRun = cms.untracked.uint32(1)
0010 )
0011 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0012 
0013 process.load("HLTrigger.HLTcore.hltPrescaleRecorder_cfi")
0014 process.hltPrescaleRecorder.src=4
0015 process.hltPrescaleRecorder.condDB=cms.bool(False)
0016 
0017 import CondCore.DBCommon.CondDBSetup_cfi
0018 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0019    CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
0020    connect = cms.string('sqlite_file:HLTPrescaleTable.db'),
0021    toGet = cms.VPSet(
0022     cms.PSet(
0023      record=cms.string("HLTPrescaleTableRcd"),
0024      tag = cms.string("/dev/null")
0025     )
0026    )
0027 )
0028 
0029 import CondCore.DBCommon.CondDBSetup_cfi
0030 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0031    CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
0032    connect = cms.string('sqlite_file:HLTPrescaleTable.db'),
0033    timetype = cms.untracked.string("timestamp"),
0034    toPut = cms.VPSet(
0035     cms.PSet(
0036      record=cms.string("HLTPrescaleTableRcd"),
0037      tag = cms.string("/dev/null")
0038     )
0039    )
0040 )
0041 
0042 from HLTrigger.HLTcore.tmpPrescaleService import HLTConfigVersion
0043 process.HLTConfigVersion = HLTConfigVersion
0044 process.PoolDBESSource.toGet[0].tag = HLTConfigVersion.tableName
0045 process.PoolDBOutputService.toPut[0].tag = HLTConfigVersion.tableName
0046 
0047 process.p = cms.Path(process.hltPrescaleRecorder)