Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-09-18 22:46:48

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 = False
0008 if 'unitTest=True' in sys.argv:
0009     unitTest=True
0010 
0011 ### Load cfis ###
0012 
0013 if unitTest:
0014     process.load("DQM.Integration.config.unittestinputsource_cfi")
0015     from DQM.Integration.config.unittestinputsource_cfi import options
0016 else:
0017     process.load("DQM.Integration.config.inputsource_cfi")
0018     from DQM.Integration.config.inputsource_cfi import options
0019 
0020 process.load("DQM.Integration.config.environment_cfi")
0021 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0022 
0023 process.load("FWCore.Modules.preScaler_cfi")
0024 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0025 
0026 process.load("DQM.EcalMonitorTasks.EcalMonitorTask_cfi")
0027 process.load("DQM.EcalMonitorTasks.ecalGpuTask_cfi")
0028 
0029 ### Individual module setups ###
0030 
0031 process.MessageLogger = cms.Service("MessageLogger",
0032     cerr = cms.untracked.PSet(
0033         default = cms.untracked.PSet(
0034             limit = cms.untracked.int32(-1)
0035         ),
0036         noTimeStamps = cms.untracked.bool(True),
0037         threshold = cms.untracked.string('WARNING'),
0038         noLineBreaks = cms.untracked.bool(True)
0039     ),
0040     cout = cms.untracked.PSet(
0041         default = cms.untracked.PSet(
0042             limit = cms.untracked.int32(0)
0043         ),
0044         EcalDQM = cms.untracked.PSet(
0045             limit = cms.untracked.int32(-1)
0046         ),
0047         threshold = cms.untracked.string('INFO')
0048     ),
0049     categories = cms.untracked.vstring('EcalDQM'),
0050     destinations = cms.untracked.vstring('cerr',
0051         'cout')
0052 )
0053 
0054 process.maxEvents = cms.untracked.PSet(
0055     input = cms.untracked.int32(-1)
0056 )
0057 
0058 process.preScaler.prescaleFactor = 1
0059 
0060 if not options.inputFiles:
0061     process.source.streamLabel = cms.untracked.string("streamDQMGPUvsCPU")
0062 
0063 process.dqmEnv.subSystemFolder = 'Ecal'
0064 process.dqmSaver.tag = 'EcalGPU'
0065 process.dqmSaver.runNumber = options.runNumber
0066 process.dqmSaverPB.tag = 'EcalGPU'
0067 process.dqmSaverPB.runNumber = options.runNumber
0068 
0069 process.ecalGpuTask.params.runGpuTask = True
0070 process.ecalGpuTask.params.enableRecHit = False
0071 process.ecalMonitorTask.workers = ['GpuTask']
0072 process.ecalMonitorTask.workerParameters = cms.untracked.PSet(GpuTask = process.ecalGpuTask)
0073 process.ecalMonitorTask.verbosity = 0
0074 process.ecalMonitorTask.commonParameters.willConvertToEDM = False
0075 process.ecalMonitorTask.commonParameters.onlineMode = True
0076 
0077 # ecalMonitorTask always looks for EcalRawData collection when running, even when not in use
0078 # Default value is cms.untracked.InputTag("ecalDigis")
0079 # Tag is changed below to avoid multiple warnings per event
0080 process.ecalMonitorTask.collectionTags.EcalRawData = cms.untracked.InputTag("hltEcalDigisLegacy")
0081 
0082 # Streams used for online GPU validation
0083 process.ecalMonitorTask.collectionTags.EBCpuDigi = cms.untracked.InputTag("hltEcalDigisLegacy", "ebDigis")
0084 process.ecalMonitorTask.collectionTags.EECpuDigi = cms.untracked.InputTag("hltEcalDigisLegacy", "eeDigis")
0085 process.ecalMonitorTask.collectionTags.EBGpuDigi = cms.untracked.InputTag("hltEcalDigisFromGPU", "ebDigis")
0086 process.ecalMonitorTask.collectionTags.EEGpuDigi = cms.untracked.InputTag("hltEcalDigisFromGPU", "eeDigis")
0087 process.ecalMonitorTask.collectionTags.EBCpuUncalibRecHit = cms.untracked.InputTag("hltEcalUncalibRecHitLegacy", "EcalUncalibRecHitsEB")
0088 process.ecalMonitorTask.collectionTags.EECpuUncalibRecHit = cms.untracked.InputTag("hltEcalUncalibRecHitLegacy", "EcalUncalibRecHitsEE")
0089 process.ecalMonitorTask.collectionTags.EBGpuUncalibRecHit = cms.untracked.InputTag("hltEcalUncalibRecHitFromSoA", "EcalUncalibRecHitsEB")
0090 process.ecalMonitorTask.collectionTags.EEGpuUncalibRecHit = cms.untracked.InputTag("hltEcalUncalibRecHitFromSoA", "EcalUncalibRecHitsEE")
0091 
0092 ### Paths ###
0093 
0094 process.ecalMonitorPath = cms.Path(process.preScaler+process.ecalMonitorTask)
0095 process.dqmEndPath = cms.EndPath(process.dqmEnv)
0096 process.dqmOutputPath = cms.EndPath(process.dqmSaver + process.dqmSaverPB)
0097 
0098 ### Schedule ###
0099 
0100 process.schedule = cms.Schedule(process.ecalMonitorPath,process.dqmEndPath,process.dqmOutputPath)
0101 
0102 ### process customizations included here
0103 from DQM.Integration.config.online_customizations_cfi import *
0104 print("Final Source settings:", process.source)
0105 process = customise(process)