Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:10

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("readDB")
0004 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0005 
0006 
0007 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0008 
0009 
0010 tesOnLineESProducer = True
0011 
0012 if tesOnLineESProducer:
0013     process.BeamSpotDBSource = cms.ESSource("PoolDBESSource",
0014                                         process.CondDBSetup,
0015                                         toGet = cms.VPSet(
0016                                             cms.PSet(
0017                                                 record = cms.string('BeamSpotOnlineLegacyObjectsRcd'),
0018                                                 tag = cms.string("BeamSpotOnlineTestLegacy"),
0019                                                 refreshTime = cms.uint64(1)
0020 
0021                                             ),
0022                                             #cms.PSet(
0023                                             #    record = cms.string('BeamSpotOnlineHLTObjectsRcd'),
0024                                             #    tag = cms.string('BSOnLineHLT_tag'),
0025                                             #    refreshTime = cms.uint64(1)
0026                                             #    )
0027 
0028                                 ),
0029                                         connect = cms.string('oracle://cms_orcon_prod/CMS_CONDITIONS')
0030 
0031                                         )
0032     process.BeamSpotESProducer = cms.ESProducer("OnlineBeamSpotESProducer")
0033 
0034 else:
0035     from Configuration.AlCa.GlobalTag import GlobalTag as customiseGlobalTag
0036     process.GlobalTag = customiseGlobalTag(globaltag = "auto:run3_hlt_GRun")
0037     process.BeamSpotESProducer = cms.ESProducer("OfflineToTransientBeamSpotESProducer")
0038 
0039 
0040 process.MessageLogger.cerr.enable = False
0041 process.MessageLogger.files.detailedInfo   = cms.untracked.PSet(threshold = cms.untracked.string('INFO'))
0042 
0043 process.source = cms.Source("EmptySource")
0044 process.source.numberEventsInRun=cms.untracked.uint32(2)
0045 process.source.firstRun = cms.untracked.uint32(336365)
0046 process.source.firstLuminosityBlock = cms.untracked.uint32(13)
0047 process.source.numberEventsInLuminosityBlock = cms.untracked.uint32(1)
0048 process.maxEvents = cms.untracked.PSet(
0049             input = cms.untracked.int32(5)
0050                     )
0051 process.beamspot = cms.EDAnalyzer("OnlineBeamSpotFromDB")
0052 
0053 
0054 process.p = cms.Path(process.beamspot)
0055