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
10 
11 # Run-3 sequence
12 monitorpixelSoASource = cms.Sequence(siPixelPhase1MonitorRecHitsSoA * siPixelPhase1MonitorTrackSoA * siPixelMonitorVertexSoA)
13 
14 # Phase-2 sequence
15 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
16 _monitorpixelSoARecHitsSource = cms.Sequence(siPixelPhase2MonitorRecHitsSoA * siPixelPhase2MonitorTrackSoA * siPixelMonitorVertexSoA)
17 phase2_tracker.toReplaceWith(monitorpixelSoASource, _monitorpixelSoARecHitsSource)
18 
19 # HIon Phase 1 sequence
20 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
21 
22 _monitorpixelSoARecHitsSourceHIon = cms.Sequence(siPixelHIonPhase1MonitorRecHitsSoA * siPixelHIonPhase1MonitorTrackSoA * siPixelMonitorVertexSoA)
23 (pp_on_AA & ~phase2_tracker).toReplaceWith(monitorpixelSoASource, _monitorpixelSoARecHitsSourceHIon)
24 
25 #Define the sequence for GPU vs CPU validation
26 #This should run:- individual monitor for the 2 collections + comparison module
36 
37 # digi errors
38 SiPixelPhase1RawDataConfForCPU = copy.deepcopy(SiPixelPhase1RawDataConf)
39 for pset in SiPixelPhase1RawDataConfForCPU:
40  pset.topFolderName = "SiPixelHeterogeneous/PixelErrorsCPU"
41 
42 siPixelPhase1MonitorRawDataACPU = SiPixelPhase1RawDataAnalyzer.clone(
43  src = "siPixelDigis@cpu",
44  histograms = SiPixelPhase1RawDataConfForCPU
45 )
46 
47 SiPixelPhase1RawDataConfForGPU = copy.deepcopy(SiPixelPhase1RawDataConf)
48 for pset in SiPixelPhase1RawDataConfForGPU:
49  pset.topFolderName = "SiPixelHeterogeneous/PixelErrorsGPU"
50 
51 siPixelPhase1MonitorRawDataAGPU = SiPixelPhase1RawDataAnalyzer.clone(
52  src = "siPixelDigis@cuda",
53  histograms =SiPixelPhase1RawDataConfForGPU
54 )
55 
56 
57 siPixelPhase1MonitorRecHitsSoACPU = siPixelPhase1MonitorRecHitsSoA.clone(
58  pixelHitsSrc = "siPixelRecHitsPreSplittingSoA@cpu",
59  TopFolderName = "SiPixelHeterogeneous/PixelRecHitsSoACPU"
60 )
61 
62 siPixelPhase1MonitorRecHitsSoAGPU = siPixelPhase1MonitorRecHitsSoA.clone(
63  pixelHitsSrc = "siPixelRecHitsPreSplittingSoA@cuda",
64  TopFolderName = "SiPixelHeterogeneous/PixelRecHitsSoAGPU"
65 )
66 
67 siPixelPhase2MonitorRecHitsSoACPU = siPixelPhase2MonitorRecHitsSoA.clone(
68  pixelHitsSrc = "siPixelRecHitsPreSplittingSoA@cpu",
69  TopFolderName = "SiPixelHeterogeneous/PixelRecHitsSoACPU"
70 )
71 
72 siPixelPhase2MonitorRecHitsSoAGPU = siPixelPhase2MonitorRecHitsSoA.clone(
73  pixelHitsSrc = "siPixelRecHitsPreSplittingSoA@cuda",
74  TopFolderName = "SiPixelHeterogeneous/PixelRecHitsSoAGPU"
75 )
76 
77 siPixelHIonPhase1MonitorRecHitsSoACPU = siPixelHIonPhase1MonitorRecHitsSoA.clone(
78  pixelHitsSrc = "siPixelRecHitsPreSplittingSoA@cpu",
79  TopFolderName = "SiPixelHeterogeneous/PixelRecHitsSoACPU"
80 )
81 
82 siPixelHIonPhase1MonitorRecHitsSoAGPU = siPixelHIonPhase1MonitorRecHitsSoA.clone(
83  pixelHitsSrc = "siPixelRecHitsPreSplittingSoA@cuda",
84  TopFolderName = "SiPixelHeterogeneous/PixelRecHitsSoAGPU"
85 )
86 
87 
88 siPixelPhase1MonitorTrackSoACPU = siPixelPhase1MonitorTrackSoA.clone(
89  pixelTrackSrc = 'pixelTracksSoA@cpu',
90  topFolderName = 'SiPixelHeterogeneous/PixelTrackSoACPU',
91 )
92 
93 siPixelPhase1MonitorTrackSoAGPU = siPixelPhase1MonitorTrackSoA.clone(
94  pixelTrackSrc = 'pixelTracksSoA@cuda',
95  topFolderName = 'SiPixelHeterogeneous/PixelTrackSoAGPU',
96 )
97 
98 siPixelPhase2MonitorTrackSoACPU = siPixelPhase2MonitorTrackSoA.clone(
99  pixelTrackSrc = 'pixelTracksSoA@cpu',
100  topFolderName = 'SiPixelHeterogeneous/PixelTrackSoACPU',
101 )
102 
103 siPixelPhase2MonitorTrackSoAGPU = siPixelPhase2MonitorTrackSoA.clone(
104  pixelTrackSrc = 'pixelTracksSoA@cuda',
105  topFolderName = 'SiPixelHeterogeneous/PixelTrackSoAGPU',
106 )
107 
108 siPixelHIonPhase1MonitorTrackSoACPU = siPixelHIonPhase1MonitorTrackSoA.clone(
109  pixelTrackSrc = 'pixelTracksSoA@cpu',
110  topFolderName = 'SiPixelHeterogeneous/PixelTrackSoACPU',
111 )
112 
113 siPixelHIonPhase1MonitorTrackSoAGPU = siPixelHIonPhase1MonitorTrackSoA.clone(
114  pixelTrackSrc = 'pixelTracksSoA@cuda',
115  topFolderName = 'SiPixelHeterogeneous/PixelTrackSoAGPU',
116 )
117 
118 
119 siPixelMonitorVertexSoACPU = siPixelMonitorVertexSoA.clone(
120  pixelVertexSrc = 'pixelVerticesSoA@cpu',
121  topFolderName = 'SiPixelHeterogeneous/PixelVertexSoACPU',
122 )
123 
124 siPixelMonitorVertexSoAGPU = siPixelMonitorVertexSoA.clone(
125  pixelVertexSrc = 'pixelVerticesSoA@cuda',
126  topFolderName = 'SiPixelHeterogeneous/PixelVertexSoAGPU',
127 )
128 
129 # Run-3 sequence
130 monitorpixelSoACompareSource = cms.Sequence(siPixelPhase1MonitorRawDataACPU *
131  siPixelPhase1MonitorRawDataAGPU *
132  siPixelPhase1MonitorRecHitsSoACPU *
133  siPixelPhase1MonitorRecHitsSoAGPU *
134  siPixelPhase1CompareRecHitsSoA *
135  siPixelPhase1MonitorTrackSoAGPU *
136  siPixelPhase1MonitorTrackSoACPU *
137  siPixelPhase1CompareTrackSoA *
138  siPixelMonitorVertexSoACPU *
139  siPixelMonitorVertexSoAGPU *
140  siPixelCompareVertexSoA *
141  siPixelPhase1RawDataErrorComparator)
142 
143 # Phase-2 sequence
144 _monitorpixelSoACompareSource = cms.Sequence(siPixelPhase2MonitorRecHitsSoACPU *
145  siPixelPhase2MonitorRecHitsSoAGPU *
146  siPixelPhase2CompareRecHitsSoA *
147  siPixelPhase2MonitorTrackSoAGPU *
148  siPixelPhase2MonitorTrackSoACPU *
149  siPixelPhase2CompareTrackSoA *
150  siPixelMonitorVertexSoACPU *
151  siPixelMonitorVertexSoAGPU *
152  siPixelCompareVertexSoA)
153 
154 # HIon sequence
155 _monitorpixelSoACompareSourceHIonPhase1 = cms.Sequence(siPixelHIonPhase1MonitorRecHitsSoACPU *
156  siPixelHIonPhase1MonitorRecHitsSoAGPU *
157  siPixelHIonPhase1CompareRecHitsSoA *
158  siPixelHIonPhase1MonitorTrackSoAGPU *
159  siPixelHIonPhase1MonitorTrackSoACPU *
160  siPixelHIonPhase1CompareTrackSoA *
161  siPixelMonitorVertexSoACPU *
162  siPixelMonitorVertexSoAGPU *
163  siPixelCompareVertexSoA)
164 
165 phase2_tracker.toReplaceWith(monitorpixelSoACompareSource,_monitorpixelSoACompareSource)
166 
167 from Configuration.ProcessModifiers.gpuValidationPixel_cff import gpuValidationPixel
168 gpuValidationPixel.toReplaceWith(monitorpixelSoASource, monitorpixelSoACompareSource)