CMS 3D CMS Logo

SiPixelHeterogenousDQM_FirstStep_cff.py
Go to the documentation of this file.
1 import copy
2 import FWCore.ParameterSet.Config as cms
8 
9 # Run-3 sequence
10 monitorpixelSoASource = cms.Sequence(siPixelPhase1MonitorRecHitsSoA * siPixelPhase1MonitorTrackSoA * siPixelMonitorVertexSoA)
11 
12 # Phase-2 sequence
13 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
14 _monitorpixelSoARecHitsSource = cms.Sequence(siPixelPhase2MonitorRecHitsSoA * siPixelPhase2MonitorTrackSoA * siPixelMonitorVertexSoA)
15 phase2_tracker.toReplaceWith(monitorpixelSoASource, _monitorpixelSoARecHitsSource)
16 
17 #Define the sequence for GPU vs CPU validation
18 #This should run:- individual monitor for the 2 collections + comparison module
26 
27 # digi errors
28 SiPixelPhase1RawDataConfForCPU = copy.deepcopy(SiPixelPhase1RawDataConf)
29 for pset in SiPixelPhase1RawDataConfForCPU:
30  pset.topFolderName = "SiPixelHeterogeneous/PixelErrorsCPU"
31 
32 siPixelPhase1MonitorRawDataACPU = SiPixelPhase1RawDataAnalyzer.clone(
33  src = "siPixelDigis@cpu",
34  histograms = SiPixelPhase1RawDataConfForCPU
35 )
36 
37 SiPixelPhase1RawDataConfForGPU = copy.deepcopy(SiPixelPhase1RawDataConf)
38 for pset in SiPixelPhase1RawDataConfForGPU:
39  pset.topFolderName = "SiPixelHeterogeneous/PixelErrorsGPU"
40 
41 siPixelPhase1MonitorRawDataAGPU = SiPixelPhase1RawDataAnalyzer.clone(
42  src = "siPixelDigis@cuda",
43  histograms =SiPixelPhase1RawDataConfForGPU
44 )
45 
46 
47 siPixelPhase1MonitorRecHitsSoACPU = siPixelPhase1MonitorRecHitsSoA.clone(
48  pixelHitsSrc = "siPixelRecHitsPreSplittingSoA@cpu",
49  TopFolderName = "SiPixelHeterogeneous/PixelRecHitsSoACPU"
50 )
51 
52 siPixelPhase1MonitorRecHitsSoAGPU = siPixelPhase1MonitorRecHitsSoA.clone(
53  pixelHitsSrc = "siPixelRecHitsPreSplittingSoA@cuda",
54  TopFolderName = "SiPixelHeterogeneous/PixelRecHitsSoAGPU"
55 )
56 
57 siPixelPhase2MonitorRecHitsSoACPU = siPixelPhase2MonitorRecHitsSoA.clone(
58  pixelHitsSrc = "siPixelRecHitsPreSplittingSoA@cpu",
59  TopFolderName = "SiPixelHeterogeneous/PixelRecHitsSoACPU"
60 )
61 
62 siPixelPhase2MonitorRecHitsSoAGPU = siPixelPhase2MonitorRecHitsSoA.clone(
63  pixelHitsSrc = "siPixelRecHitsPreSplittingSoA@cuda",
64  TopFolderName = "SiPixelHeterogeneous/PixelRecHitsSoAGPU"
65 )
66 
67 
68 siPixelPhase1MonitorTrackSoACPU = siPixelPhase1MonitorTrackSoA.clone(
69  pixelTrackSrc = 'pixelTracksSoA@cpu',
70  topFolderName = 'SiPixelHeterogeneous/PixelTrackSoACPU',
71 )
72 
73 siPixelPhase1MonitorTrackSoAGPU = siPixelPhase1MonitorTrackSoA.clone(
74  pixelTrackSrc = 'pixelTracksSoA@cuda',
75  topFolderName = 'SiPixelHeterogeneous/PixelTrackSoAGPU',
76 )
77 
78 siPixelPhase2MonitorTrackSoACPU = siPixelPhase2MonitorTrackSoA.clone(
79  pixelTrackSrc = 'pixelTracksSoA@cpu',
80  topFolderName = 'SiPixelHeterogeneous/PixelTrackSoACPU',
81 )
82 
83 siPixelPhase2MonitorTrackSoAGPU = siPixelPhase2MonitorTrackSoA.clone(
84  pixelTrackSrc = 'pixelTracksSoA@cuda',
85  topFolderName = 'SiPixelHeterogeneous/PixelTrackSoAGPU',
86 )
87 
88 
89 siPixelMonitorVertexSoACPU = siPixelMonitorVertexSoA.clone(
90  pixelVertexSrc = 'pixelVerticesSoA@cpu',
91  topFolderName = 'SiPixelHeterogeneous/PixelVertexSoACPU',
92 )
93 
94 siPixelMonitorVertexSoAGPU = siPixelMonitorVertexSoA.clone(
95  pixelVertexSrc = 'pixelVerticesSoA@cuda',
96  topFolderName = 'SiPixelHeterogeneous/PixelVertexSoAGPU',
97 )
98 
99 # Run-3 sequence
100 monitorpixelSoACompareSource = cms.Sequence(siPixelPhase1MonitorRawDataACPU *
101  siPixelPhase1MonitorRawDataAGPU *
102  siPixelPhase1MonitorRecHitsSoACPU *
103  siPixelPhase1MonitorRecHitsSoAGPU *
104  siPixelPhase1CompareRecHitsSoA *
105  siPixelPhase1MonitorTrackSoAGPU *
106  siPixelPhase1MonitorTrackSoACPU *
107  siPixelPhase1CompareTrackSoA *
108  siPixelMonitorVertexSoACPU *
109  siPixelMonitorVertexSoAGPU *
110  siPixelCompareVertexSoA *
111  siPixelPhase1RawDataErrorComparator)
112 
113 # Phase-2 sequence
114 _monitorpixelSoACompareSource = cms.Sequence(siPixelPhase2MonitorRecHitsSoACPU *
115  siPixelPhase2MonitorRecHitsSoAGPU *
116  siPixelPhase2CompareRecHitsSoA *
117  siPixelPhase2MonitorTrackSoAGPU *
118  siPixelPhase2MonitorTrackSoACPU *
119  siPixelPhase2CompareTrackSoA *
120  siPixelMonitorVertexSoACPU *
121  siPixelMonitorVertexSoAGPU *
122  siPixelCompareVertexSoA)
123 
124 phase2_tracker.toReplaceWith(monitorpixelSoACompareSource,_monitorpixelSoACompareSource)
125 
126 from Configuration.ProcessModifiers.gpuValidationPixel_cff import gpuValidationPixel
127 gpuValidationPixel.toReplaceWith(monitorpixelSoASource, monitorpixelSoACompareSource)