Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:12

0001 # cfg file to test L1 GT trigger menu read from DB
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 # process
0006 process = cms.Process("L1GtTriggerMenuTest")
0007 process.l1GtTriggerMenuTest = cms.EDAnalyzer("L1GtTriggerMenuTester")
0008 
0009 # number of events and source
0010 process.maxEvents = cms.untracked.PSet(
0011     input = cms.untracked.int32(1)
0012 )
0013 process.source = cms.Source("EmptySource")
0014 
0015 # configuration
0016 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0017 
0018 # L1 db
0019 from CondCore.DBCommon.CondDBCommon_cfi import *
0020 from CondTools.L1Trigger.L1SubsystemParams_cfi import initL1Subsystems
0021 initL1Subsystems()
0022 
0023 process.l1pooldb = cms.ESSource("PoolDBESSource",
0024     CondDBCommon,
0025     toGet = initL1Subsystems.params.recordInfo
0026 )
0027 process.l1pooldb.connect = cms.string('sqlite_file:l1config.db')
0028 
0029 # Other statements
0030 process.GlobalTag.globaltag = 'IDEAL_V5::All'
0031 
0032 # path to be run
0033 process.p = cms.Path(process.l1GtTriggerMenuTest)
0034 
0035 # services
0036 
0037 # Message Logger
0038 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0039 process.MessageLogger.debugModules = ['l1GtTriggerMenuTest']
0040 process.MessageLogger.cout = cms.untracked.PSet(
0041     INFO = cms.untracked.PSet(
0042         limit = cms.untracked.int32(-1)
0043     ),
0044     threshold = cms.untracked.string('DEBUG'), ## DEBUG 
0045 
0046     DEBUG = cms.untracked.PSet( ## DEBUG, all messages  
0047 
0048         limit = cms.untracked.int32(-1)
0049     )
0050 )
0051 
0052