CMS 3D CMS Logo

EcalMonitorTask_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 # Customization to run the CPU vs GPU comparison task if the job runs on a GPU enabled machine
7 from DQM.EcalMonitorTasks.ecalGpuTask_cfi import ecalGpuTask
8 
9 gpuValidationEcal.toModify(ecalGpuTask.params, runGpuTask = True)
10 gpuValidationEcal.toModify(ecalMonitorTask.workers, func = lambda workers: workers.append("GpuTask"))
11 gpuValidationEcal.toModify(ecalMonitorTask, workerParameters = dict(GpuTask = ecalGpuTask))
12 
13 # Skip consuming and running over the EcalRawData collection for all GPU WFs
14 # This is to be used as long as the GPU unpacker unpacks a dummy EcalRawData collection
16 gpu.toModify(ecalMonitorTask.skipCollections, func = lambda skipCollections: skipCollections.append("EcalRawData"))