File indexing completed on 2024-04-15 22:36:57
0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003
0004 from Configuration.Eras.Era_Run3_cff import Run3
0005 process = cms.Process("process", Run3)
0006
0007 unitTest = 'unitTest=True' in sys.argv
0008
0009
0010
0011 if unitTest:
0012 process.load("DQM.Integration.config.unitteststreamerinputsource_cfi")
0013 from DQM.Integration.config.unitteststreamerinputsource_cfi import options
0014 else:
0015 process.load("DQM.Integration.config.inputsource_cfi")
0016 from DQM.Integration.config.inputsource_cfi import options
0017
0018 process.load("DQM.Integration.config.environment_cfi")
0019 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0020
0021 process.load("FWCore.Modules.preScaler_cfi")
0022 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0023
0024 process.load("DQM.EcalMonitorTasks.EcalMonitorTask_cfi")
0025 process.load("DQM.EcalMonitorTasks.ecalGpuTask_cfi")
0026
0027
0028
0029 process.MessageLogger = cms.Service("MessageLogger",
0030 cerr = cms.untracked.PSet(
0031 default = cms.untracked.PSet(
0032 limit = cms.untracked.int32(-1)
0033 ),
0034 noTimeStamps = cms.untracked.bool(True),
0035 threshold = cms.untracked.string('WARNING'),
0036 noLineBreaks = cms.untracked.bool(True)
0037 ),
0038 cout = cms.untracked.PSet(
0039 default = cms.untracked.PSet(
0040 limit = cms.untracked.int32(0)
0041 ),
0042 EcalDQM = cms.untracked.PSet(
0043 limit = cms.untracked.int32(-1)
0044 ),
0045 threshold = cms.untracked.string('INFO')
0046 ),
0047 categories = cms.untracked.vstring('EcalDQM'),
0048 destinations = cms.untracked.vstring('cerr',
0049 'cout')
0050 )
0051
0052 process.maxEvents = cms.untracked.PSet(
0053 input = cms.untracked.int32(-1)
0054 )
0055
0056 process.preScaler.prescaleFactor = 1
0057
0058 if not options.inputFiles:
0059
0060 if process.runType.getRunType() == process.runType.hi_run:
0061 process.source.streamLabel = "streamHIDQMGPUvsCPU"
0062 else:
0063 process.source.streamLabel = "streamDQMGPUvsCPU"
0064
0065 process.dqmEnv.subSystemFolder = 'Ecal'
0066 process.dqmSaver.tag = 'EcalGPU'
0067 process.dqmSaver.runNumber = options.runNumber
0068 process.dqmSaverPB.tag = 'EcalGPU'
0069 process.dqmSaverPB.runNumber = options.runNumber
0070
0071 process.ecalGpuTask.params.runGpuTask = True
0072 process.ecalGpuTask.params.enableRecHit = False
0073 process.ecalMonitorTask.workers = ['GpuTask']
0074 process.ecalMonitorTask.workerParameters = cms.untracked.PSet(GpuTask = process.ecalGpuTask)
0075 process.ecalMonitorTask.verbosity = 0
0076 process.ecalMonitorTask.commonParameters.willConvertToEDM = False
0077 process.ecalMonitorTask.commonParameters.onlineMode = True
0078
0079
0080
0081
0082 process.ecalMonitorTask.collectionTags.EcalRawData = cms.untracked.InputTag("hltEcalDigisSerialSync")
0083
0084
0085 process.ecalMonitorTask.collectionTags.EBCpuDigi = cms.untracked.InputTag("hltEcalDigisSerialSync", "ebDigis")
0086 process.ecalMonitorTask.collectionTags.EECpuDigi = cms.untracked.InputTag("hltEcalDigisSerialSync", "eeDigis")
0087 process.ecalMonitorTask.collectionTags.EBGpuDigi = cms.untracked.InputTag("hltEcalDigis", "ebDigis")
0088 process.ecalMonitorTask.collectionTags.EEGpuDigi = cms.untracked.InputTag("hltEcalDigis", "eeDigis")
0089 process.ecalMonitorTask.collectionTags.EBCpuUncalibRecHit = cms.untracked.InputTag("hltEcalUncalibRecHitSerialSync", "EcalUncalibRecHitsEB")
0090 process.ecalMonitorTask.collectionTags.EECpuUncalibRecHit = cms.untracked.InputTag("hltEcalUncalibRecHitSerialSync", "EcalUncalibRecHitsEE")
0091 process.ecalMonitorTask.collectionTags.EBGpuUncalibRecHit = cms.untracked.InputTag("hltEcalUncalibRecHit", "EcalUncalibRecHitsEB")
0092 process.ecalMonitorTask.collectionTags.EEGpuUncalibRecHit = cms.untracked.InputTag("hltEcalUncalibRecHit", "EcalUncalibRecHitsEE")
0093
0094
0095
0096 process.ecalMonitorPath = cms.Path(process.preScaler+process.ecalMonitorTask)
0097 process.dqmEndPath = cms.EndPath(process.dqmEnv)
0098 process.dqmOutputPath = cms.EndPath(process.dqmSaver + process.dqmSaverPB)
0099
0100
0101
0102 process.schedule = cms.Schedule(process.ecalMonitorPath,process.dqmEndPath,process.dqmOutputPath)
0103
0104
0105 from DQM.Integration.config.online_customizations_cfi import *
0106 print("Final Source settings:", process.source)
0107 process = customise(process)