Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-01-31 03:00:17

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 ### Load cfis ###
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 ### Individual module setups ###
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     # stream label
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 # ecalMonitorTask always looks for EcalRawData collection when running, even when not in use
0080 # Default value is cms.untracked.InputTag("ecalDigis")
0081 # Tag is changed below to avoid multiple warnings per event
0082 process.ecalMonitorTask.collectionTags.EcalRawData = cms.untracked.InputTag("hltEcalDigisLegacy")
0083 
0084 # Streams used for online GPU validation
0085 process.ecalMonitorTask.collectionTags.EBCpuDigi = cms.untracked.InputTag("hltEcalDigisLegacy", "ebDigis")
0086 process.ecalMonitorTask.collectionTags.EECpuDigi = cms.untracked.InputTag("hltEcalDigisLegacy", "eeDigis")
0087 process.ecalMonitorTask.collectionTags.EBGpuDigi = cms.untracked.InputTag("hltEcalDigisFromGPU", "ebDigis")
0088 process.ecalMonitorTask.collectionTags.EEGpuDigi = cms.untracked.InputTag("hltEcalDigisFromGPU", "eeDigis")
0089 process.ecalMonitorTask.collectionTags.EBCpuUncalibRecHit = cms.untracked.InputTag("hltEcalUncalibRecHitLegacy", "EcalUncalibRecHitsEB")
0090 process.ecalMonitorTask.collectionTags.EECpuUncalibRecHit = cms.untracked.InputTag("hltEcalUncalibRecHitLegacy", "EcalUncalibRecHitsEE")
0091 process.ecalMonitorTask.collectionTags.EBGpuUncalibRecHit = cms.untracked.InputTag("hltEcalUncalibRecHitFromSoA", "EcalUncalibRecHitsEB")
0092 process.ecalMonitorTask.collectionTags.EEGpuUncalibRecHit = cms.untracked.InputTag("hltEcalUncalibRecHitFromSoA", "EcalUncalibRecHitsEE")
0093 
0094 ### Paths ###
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 ### Schedule ###
0101 
0102 process.schedule = cms.Schedule(process.ecalMonitorPath,process.dqmEndPath,process.dqmOutputPath)
0103 
0104 ### process customizations included here
0105 from DQM.Integration.config.online_customizations_cfi import *
0106 print("Final Source settings:", process.source)
0107 process = customise(process)