Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-08 02:27:15

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0004 
0005 from Configuration.Eras.Era_Run3_cff import Run3
0006 process = cms.Process("HARVESTING", Run3)
0007 
0008 #----------------------------
0009 #### Histograms Source
0010 #----------------------------
0011 # for live online DQM in P5
0012 process.load("DQM.Integration.config.pbsource_cfi")
0013 from DQM.Integration.config.pbsource_cfi import options
0014 process.source.loadFiles = cms.untracked.bool(False)
0015 process.source.streamLabel = cms.untracked.string("streamDQMPLT")
0016 process.source.nextLumiTimeoutMillis = cms.untracked.int32(500)
0017 
0018 #----------------------------
0019 #### DQM Environment
0020 #----------------------------
0021 process.load("DQM.Integration.config.environment_cfi")
0022 process.dqmEnv.subSystemFolder = 'BRIL'
0023 process.dqmEnv.eventInfoFolder = 'EventInfo'
0024 process.dqmSaver.tag = 'BRIL'
0025 process.dqmSaver.runNumber = options.runNumber
0026 process.dqmSaverPB.tag = 'BRIL'
0027 process.dqmSaverPB.runNumber = options.runNumber
0028 #-----------------------------
0029 
0030 if process.dqmRunConfig.type.value() == "production":
0031     rid = process.source.runInputDir.value()
0032     process.source.runInputDir = rid + ":" + "/cmsnfsscratch/globalscratch/cmsbril/PLT/DQM/"
0033     
0034     print("Modified input source:", process.source)
0035 
0036 # remove EventInfo
0037 process.dqmEnv.eventInfoFolder = 'EventInfo/Random'
0038 
0039 process.BrilClient = DQMEDHarvester("BrilClient")
0040 
0041 process.bril_path = cms.Path(process.BrilClient)
0042 process.p = cms.EndPath(process.dqmEnv + process.dqmSaver + process.dqmSaverPB)
0043 
0044 process.schedule = cms.Schedule(process.bril_path, process.p)