Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:48:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("READ")
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
0007 process.MessageLogger.cout = cms.untracked.PSet(INFO = cms.untracked.PSet(
0008     reportEvery = cms.untracked.int32(1000)
0009     ))
0010 
0011 # the module writing to DB
0012 from CondTools.HLT.alCaRecoTriggerBitsRcdRead_cfi import alCaRecoTriggerBitsRcdRead as _alCaRecoTriggerBitsRcdRead
0013 process.AlCaRecoTriggerBitsRcdRead = _alCaRecoTriggerBitsRcdRead.clone()
0014 # 'twiki' is default - others are text, python (future: html?)
0015 #process.AlCaRecoTriggerBitsRcdRead.outputType = 'twiki'
0016 # If rawFileName stays empty (default), use the message logger for output.
0017 # Otherwise use the file name specified, adding a suffix according to outputType:
0018 process.AlCaRecoTriggerBitsRcdRead.rawFileName = 'triggerBits'
0019 
0020 # No data, but might want to specify the 'firstRun' to check (default is 1):
0021 process.source = cms.Source("EmptySource",
0022                             numberEventsInRun = cms.untracked.uint32(1), # do not change!
0023                             firstRun = cms.untracked.uint32(1)
0024                             )
0025 # With 'numberEventsInRun = 1' above,
0026 # this will check IOVs until run (!) number specified as 'input' here,
0027 # so take care to choose a one that is not too small...:
0028 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(350000) )
0029 
0030 # Input for AlCaRecoTriggerBitsRcd,
0031 # either via GlobalTag
0032 # (loading of Configuration.StandardSequences.CondDBESSource_cff equivalent to CondCore.ESSources.CondDBESSource_cfi
0033 # as entry point for condition records in the EventSetup,
0034 # but sufficient and faster than Configuration.StandardSequences.FrontierConditions_GlobalTag_cff):
0035 from Configuration.AlCa.autoCond import autoCond
0036 process.load("Configuration.StandardSequences.CondDBESSource_cff")
0037 process.GlobalTag.globaltag = autoCond['run2_data'] #choose your tag
0038 
0039 # ...or specify database and tag:  
0040 #from CondCore.CondDB.CondDB_cfi import *
0041 #CondDBTriggerBits = CondDB.clone(connect = cms.string('frontier://FrontierProd/CMS_COND_31X_HLT'))
0042 ##CondDBTriggerBits = CondDB.clone(connect = cms.string('sqlite_file:AlCaRecoTriggerBits.db'))
0043 #process.dbInput = cms.ESSource("PoolDBESSource",
0044 #                               CondDBTriggerBits,
0045 #                               toGet = cms.VPSet(cms.PSet(record = cms.string('AlCaRecoTriggerBitsRcd'),
0046 ##                                                          tag = cms.string('TestTag') # choose tag you want
0047 #                                                          tag = cms.string('AlCaRecoHLTpaths8e29_1e31_v5_hlt') # choose tag you want
0048 #                                                          )
0049 #                                                 )
0050 #                               )
0051 
0052 # Put module in path:
0053 process.p = cms.Path(process.AlCaRecoTriggerBitsRcdRead)