Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-12 04:16:24

0001 import FWCore.ParameterSet.Config as cms
0002 siPixelHeterogeneousDQMHarvesting = cms.Sequence() # empty sequence if not both CPU and GPU recos are run
0003 
0004 from DQM.SiPixelPhase1Common.SiPixelPhase1RawData_cfi import *
0005 from DQM.SiPixelHeterogeneous.SiPixelHeterogenousDQM_FirstStep_cff import SiPixelPhase1RawDataConfForCPU,SiPixelPhase1RawDataConfForGPU,SiPixelPhase1RawDataConfForSerial,SiPixelPhase1RawDataConfForDevice
0006 
0007 # CUDA code
0008 siPixelPhase1RawDataHarvesterCPU = SiPixelPhase1RawDataHarvester.clone(histograms = SiPixelPhase1RawDataConfForCPU)
0009 siPixelPhase1RawDataHarvesterGPU = SiPixelPhase1RawDataHarvester.clone(histograms = SiPixelPhase1RawDataConfForGPU)
0010 
0011 # alpaka code
0012 siPixelPhase1RawDataHarvesterSerial = SiPixelPhase1RawDataHarvester.clone(histograms = SiPixelPhase1RawDataConfForSerial)
0013 siPixelPhase1RawDataHarvesterDevice = SiPixelPhase1RawDataHarvester.clone(histograms = SiPixelPhase1RawDataConfForDevice)
0014 
0015 from DQM.SiPixelHeterogeneous.siPixelTrackComparisonHarvester_cfi import *
0016 siPixelTrackComparisonHarvesterAlpaka = siPixelTrackComparisonHarvester.clone(topFolderName = cms.string('SiPixelHeterogeneous/PixelTrackCompareDeviceVSHost'))
0017 
0018 siPixelHeterogeneousDQMComparisonHarvesting = cms.Sequence(siPixelPhase1RawDataHarvesterCPU *
0019                                                            siPixelPhase1RawDataHarvesterGPU *
0020                                                            siPixelTrackComparisonHarvester )
0021 
0022 siPixelHeterogeneousDQMComparisonHarvestingAlpaka = cms.Sequence(siPixelPhase1RawDataHarvesterSerial *
0023                                                                  siPixelPhase1RawDataHarvesterDevice *
0024                                                                  siPixelTrackComparisonHarvesterAlpaka )
0025 
0026 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0027 _siPixelHeterogeneousDQMComparisonHarvestingAlpakaPhase2 = cms.Sequence(siPixelTrackComparisonHarvesterAlpaka )
0028 
0029 phase2_tracker.toReplaceWith(siPixelHeterogeneousDQMComparisonHarvestingAlpaka,_siPixelHeterogeneousDQMComparisonHarvestingAlpakaPhase2)
0030 
0031 
0032 # add the harvester in case of the validation modifier is active
0033 from Configuration.ProcessModifiers.gpuValidationPixel_cff import gpuValidationPixel
0034 gpuValidationPixel.toReplaceWith(siPixelHeterogeneousDQMHarvesting,siPixelHeterogeneousDQMComparisonHarvesting)
0035 
0036 from Configuration.ProcessModifiers.alpakaValidationPixel_cff import alpakaValidationPixel
0037 (alpakaValidationPixel & ~gpuValidationPixel).toReplaceWith(siPixelHeterogeneousDQMHarvesting,siPixelHeterogeneousDQMComparisonHarvestingAlpaka)