File indexing completed on 2024-04-06 12:18:26
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=-1
0015 process.hltPrescaleRecorder.condDB=cms.bool(True)
0016
0017
0018
0019
0020
0021
0022
0023
0024
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 process.PrescaleTable = cms.PSet()
0043 from HLTrigger.HLTcore.tmpPrescaleService import PrescaleService
0044 for pn, pv in PrescaleService.parameters_().items(): setattr(process.PrescaleTable, pn, pv)
0045 process.hltPrescaleRecorder.psetName=cms.string("PrescaleTable")
0046
0047 from HLTrigger.HLTcore.tmpPrescaleService import HLTConfigVersion
0048 process.HLTConfigVersion = HLTConfigVersion
0049
0050 process.PoolDBOutputService.toPut[0].tag = HLTConfigVersion.tableName
0051
0052 process.p = cms.Path(process.hltPrescaleRecorder)