Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-14 00:30:14

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DQM")
0004 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0005 
0006 
0007 process.load("CondCore.CondDB.CondDB_cfi")
0008 process.BeamSpotDBSource = cms.ESSource("PoolDBESSource",
0009                                         process.CondDB,
0010                                         toGet = cms.VPSet(
0011                                             cms.PSet(
0012                                                 record = cms.string('BeamSpotOnlineLegacyObjectsRcd'),
0013                                                 tag = cms.string("BeamSpotOnlineLegacy"),
0014                                                 refreshTime = cms.uint64(2)
0015                                             ),
0016                                             cms.PSet(
0017                                                 record = cms.string('BeamSpotOnlineHLTObjectsRcd'),
0018                                                 tag = cms.string("BeamSpotOnlineHLT"),
0019                                                 refreshTime = cms.uint64(2)
0020 
0021                                             ),
0022                                 ),
0023                                         )
0024 process.BeamSpotDBSource.connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS') 
0025 import RecoVertex.BeamSpotProducer.onlineBeamSpotESProducer_cfi as _mod
0026 process.BeamSpotESProducer = _mod.onlineBeamSpotESProducer.clone(
0027         timeThreshold = 999999 # for express allow >48h old payloads for replays. DO NOT CHANGE
0028 )
0029 
0030 # initialize MessageLogger
0031 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0032 
0033 process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
0034 process.MessageLogger.cout = cms.untracked.PSet(
0035     threshold = cms.untracked.string('INFO'),
0036     default = cms.untracked.PSet(
0037        limit = cms.untracked.int32(0)
0038     ),
0039     OnlineBeamMonitor = cms.untracked.PSet(
0040         reportEvery = cms.untracked.int32(1), # every 1000th only
0041     limit = cms.untracked.int32(0)
0042     )
0043 )
0044 #process.MessageLogger.cout.enableStatistics = cms.untracked.bool(True)
0045 process.source = cms.Source("EmptySource")
0046 process.source.numberEventsInRun=cms.untracked.uint32(100)
0047 process.source.firstRun = cms.untracked.uint32(346512)
0048 process.source.firstLuminosityBlock = cms.untracked.uint32(614)
0049 process.source.numberEventsInLuminosityBlock = cms.untracked.uint32(1)
0050 process.maxEvents = cms.untracked.PSet(
0051             input = cms.untracked.int32(100)
0052 )
0053 
0054 #process.load("DQMServices.Core.DQMEDAnalyzer") 
0055 process.onlineBeamMonitor = cms.EDProducer("OnlineBeamMonitor",
0056 MonitorName         = cms.untracked.string("onlineBeamMonitor"),
0057 AppendRunToFileName = cms.untracked.bool(False),
0058 WriteDIPAscii       = cms.untracked.bool(True),
0059 DIPFileName         = cms.untracked.string("BeamFitResultsForDIP.txt")
0060 )
0061 
0062 
0063 # DQM Live Environment
0064 process.load("DQM.Integration.config.environment_cfi")
0065 process.dqmEnv.subSystemFolder = 'BeamMonitor'
0066 process.dqmSaver.tag           = 'BeamMonitor'
0067 
0068 process.dqmEnvPixelLess = process.dqmEnv.clone()
0069 process.dqmEnvPixelLess.subSystemFolder = 'BeamMonitor_PixelLess'
0070 
0071 
0072 
0073 #import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
0074 #process.offlineBeamSpotForDQM = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
0075 
0076 # # summary
0077 process.options = cms.untracked.PSet(
0078     wantSummary = cms.untracked.bool(True),
0079     numberOfThreads = cms.untracked.uint32(4),
0080     numberOfStreams = cms.untracked.uint32 (4),
0081     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(2)
0082 
0083     )
0084 
0085 process.pp = cms.Path(process.onlineBeamMonitor+process.dqmSaver)
0086 process.schedule = cms.Schedule(process.pp)