CMS 3D CMS Logo

SiPixelPhase1HeterogenousDQM_FirstStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
5 
6 monitorpixelSoASource = cms.Sequence(siPixelPhase1MonitorRecHitsSoA * siPixelPhase1MonitorTrackSoA * siPixelPhase1MonitorVertexSoA)
7 
8 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
9 _monitorpixelSoARecHitsSource = cms.Sequence(siPixelPhase1MonitorRecHitsSoA)
10 phase2_tracker.toReplaceWith(monitorpixelSoASource, _monitorpixelSoARecHitsSource)
11 
12 #Define the sequence for GPU vs CPU validation
13 #This should run:- individual monitor for the 2 collections + comparison module
17 
18 siPixelPhase1MonitorTrackSoACPU = siPixelPhase1MonitorTrackSoA.clone(
19  pixelTrackSrc = 'pixelTracksSoA@cpu',
20  topFolderName = 'SiPixelHeterogeneous/PixelTrackSoACPU',
21 )
22 
23 siPixelPhase1MonitorTrackSoAGPU = siPixelPhase1MonitorTrackSoA.clone(
24  pixelTrackSrc = 'pixelTracksSoA@cuda',
25  topFolderName = 'SiPixelHeterogeneous/PixelTrackSoAGPU',
26 )
27 
28 siPixelPhase1MonitorVertexSoACPU = siPixelPhase1MonitorVertexSoA.clone(
29  pixelVertexSrc = 'pixelVerticesSoA@cpu',
30  topFolderName = 'SiPixelHeterogeneous/PixelVertexSoACPU',
31 )
32 
33 siPixelPhase1MonitorVertexSoAGPU = siPixelPhase1MonitorVertexSoA.clone(
34  pixelVertexSrc = 'pixelVerticesSoA@cuda',
35  topFolderName = 'SiPixelHeterogeneous/PixelVertexSoAGPU',
36 )
37 
38 siPixelPhase1MonitorRecHitsSoACPU = siPixelPhase1MonitorRecHitsSoA.clone(
39  pixelHitsSrc = "siPixelRecHitsPreSplittingSoA@cpu",
40  TopFolderName = "SiPixelHeterogeneous/PixelRecHitsSoACPU"
41 )
42 
43 siPixelPhase1MonitorRecHitsSoAGPU = siPixelPhase1MonitorRecHitsSoA.clone(
44  pixelHitsSrc = "siPixelRecHitsPreSplittingSoA@cuda",
45  TopFolderName = "SiPixelHeterogeneous/PixelRecHitsSoAGPU"
46 )
47 
48 monitorpixelSoACompareSource = cms.Sequence(siPixelPhase1MonitorRecHitsSoACPU *
49  siPixelPhase1MonitorRecHitsSoAGPU *
50  siPixelPhase1CompareRecHitsSoA *
51  siPixelPhase1MonitorTrackSoAGPU *
52  siPixelPhase1MonitorTrackSoACPU *
53  siPixelPhase1CompareTrackSoA *
54  siPixelPhase1MonitorVertexSoACPU *
55  siPixelPhase1MonitorVertexSoAGPU *
56  siPixelPhase1CompareVertexSoA)
57 
58 monitorpixelSoACompareSourceNoTracking = cms.Sequence(siPixelPhase1MonitorRecHitsSoACPU *
59  siPixelPhase1MonitorRecHitsSoAGPU *
60  siPixelPhase1CompareRecHitsSoA)
61 
62 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
63 phase2_tracker.toReplaceWith(monitorpixelSoACompareSource,monitorpixelSoACompareSourceNoTracking)
64 
65 from Configuration.ProcessModifiers.gpuValidationPixel_cff import gpuValidationPixel
66 gpuValidationPixel.toReplaceWith(monitorpixelSoASource, monitorpixelSoACompareSource)