File indexing completed on 2024-04-06 12:07:41
0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003
0004 from Configuration.Eras.Era_Run3_cff import Run3
0005 process = cms.Process("DQM", Run3)
0006
0007 unitTest = False
0008 if 'unitTest=True' in sys.argv:
0009 unitTest=True
0010
0011
0012 process.MessageLogger = cms.Service("MessageLogger",
0013 destinations = cms.untracked.vstring('cout'),
0014 cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'))
0015 )
0016
0017
0018
0019
0020 if unitTest:
0021 process.load("DQM.Integration.config.unittestinputsource_cfi")
0022 from DQM.Integration.config.unittestinputsource_cfi import options
0023 else:
0024
0025 process.load("DQM.Integration.config.inputsource_cfi")
0026 from DQM.Integration.config.inputsource_cfi import options
0027
0028
0029
0030
0031
0032
0033 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0034
0035
0036
0037
0038 process.load("DQM.Integration.config.environment_cfi")
0039 process.dqmEnv.subSystemFolder = 'Info'
0040 process.dqmSaver.tag = 'Info'
0041 process.dqmSaver.runNumber = options.runNumber
0042 process.dqmSaverPB.tag = 'Info'
0043 process.dqmSaverPB.runNumber = options.runNumber
0044
0045
0046
0047 process.load("EventFilter.ScalersRawToDigi.ScalersRawToDigi_cfi")
0048
0049 from EventFilter.OnlineMetaDataRawToDigi.tcdsRawToDigi_cfi import *
0050 process.tcdsDigis = tcdsRawToDigi.clone()
0051
0052
0053 process.load('EventFilter.OnlineMetaDataRawToDigi.onlineMetaDataRawToDigi_cfi')
0054 process.onlineMetaDataDigis = cms.EDProducer('OnlineMetaDataRawToDigi')
0055
0056
0057 process.load("DQMServices.Components.DQMProvInfo_cfi")
0058
0059
0060 process.dqmmodules = cms.Sequence(process.dqmEnv + process.dqmSaver + process.dqmSaverPB)
0061 process.evfDQMmodulesPath = cms.Path(
0062 process.scalersRawToDigi*
0063 process.tcdsDigis*
0064 process.onlineMetaDataRawToDigi*
0065 process.dqmProvInfo*
0066 process.dqmmodules
0067 )
0068 process.schedule = cms.Schedule(process.evfDQMmodulesPath)
0069
0070 process.dqmProvInfo.runType = process.runType.getRunTypeName()
0071
0072
0073 if (process.runType.getRunType() == process.runType.hi_run):
0074 process.scalersRawToDigi.scalersInputTag = "rawDataRepacker"
0075 process.tcdsDigis.InputLabel = "rawDataRepacker"
0076 else:
0077 process.scalersRawToDigi.scalersInputTag = "rawDataCollector"
0078 process.tcdsDigis.InputLabel = "rawDataCollector"
0079
0080
0081 from DQM.Integration.config.online_customizations_cfi import *
0082 process = customise(process)
0083 print("Final Source settings:", process.source)