1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
5 SiPixelPhase1TrackClustersOnTrackCharge = DefaultHistoTrack.clone(
7 title =
"Corrected Cluster Charge (OnTrack)",
8 range_min = 0, range_max = 80e3, range_nbins = 100,
9 xlabel =
"Charge (electrons)",
12 StandardSpecifications1D,
13 StandardSpecification2DProfile,
16 Specification(OverlayCurvesForTiming).groupBy(
"PXBarrel/OnlineBlock")
17 .groupBy(
"PXBarrel",
"EXTEND_Y")
19 Specification(OverlayCurvesForTiming).groupBy(
"PXForward/OnlineBlock")
20 .groupBy(
"PXForward",
"EXTEND_Y")
23 Specification(OverlayCurvesForTiming).groupBy(
"PXForward/PXDisk/OnlineBlock")
24 .groupBy(
"PXForward/PXDisk",
"EXTEND_Y")
26 Specification(OverlayCurvesForTiming).groupBy(
"PXBarrel/PXLayer/OnlineBlock")
27 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_Y")
32 SiPixelPhase1TrackClustersOnTrackSize = DefaultHistoTrack.clone(
34 title =
"Total Cluster Size (OnTrack)",
35 range_min = 0, range_max = 30, range_nbins = 30,
36 xlabel =
"size[pixels]",
39 StandardSpecifications1D,
40 StandardSpecification2DProfile
44 SiPixelPhase1TrackClustersOnTrackShape = DefaultHistoTrack.clone(
45 topFolderName =
"PixelPhase1/ClusterShape",
47 title =
"Shape filter (OnTrack)",
48 range_min = 0, range_max = 2, range_nbins = 2,
49 xlabel =
"shapeFilter",
52 Specification().groupBy(
"PXBarrel/PXLayer").saveAll(),
53 Specification().groupBy(
"PXForward/PXDisk").saveAll(),
54 StandardSpecification2DProfile,
56 Specification().groupBy(
"PXBarrel/PXLayer/Lumisection")
58 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
61 Specification().groupBy(
"PXForward/PXDisk/Lumisection")
63 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
66 Specification(PerLayer1D).groupBy(
"PXBarrel/Shell/PXLayer").
save(),
67 Specification(PerLayer1D).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk").
save()
73 SiPixelPhase1TrackClustersOnTrackNClusters = DefaultHistoTrack.clone(
74 name =
"clusters_ontrack",
75 title =
"Clusters_onTrack (valid hits)",
76 range_min = 0, range_max = 30, range_nbins = 30,
90 StandardSpecificationTrend_Num,
91 StandardSpecification2DProfile_Num,
93 Specification().groupBy(
"PXBarrel/PXLayer/Event")
95 .groupBy(
"PXBarrel/PXLayer")
96 .
save(nbins=50, xmin=0, xmax=5000),
98 Specification().groupBy(
"PXForward/PXDisk/Event")
100 .groupBy(
"PXForward/PXDisk/")
101 .
save(nbins=50, xmin=0, xmax=2000),
103 Specification().groupBy(
"PXBarrel/Event")
106 .
save(nbins=100, xmin=0, xmax=5000),
108 Specification().groupBy(
"PXForward/Event")
110 .groupBy(
"PXForward")
111 .
save(nbins=100, xmin=0, xmax=5000),
113 Specification().groupBy(
"PXAll/Event")
116 .
save(nbins=100, xmin=0, xmax=5000),
118 Specification().groupBy(
"BX")
119 .groupBy(
"",
"EXTEND_X").
save(),
121 Specification().groupBy(
"PXBarrel/PXLayer/Event")
123 .groupBy(
"PXBarrel/PXLayer/Lumisection")
125 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
128 Specification().groupBy(
"PXForward/PXDisk/Event")
130 .groupBy(
"PXForward/PXDisk/Lumisection")
132 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
136 Specification(OverlayCurvesForTiming).groupBy(
"DetId/Event")
138 .groupBy(
"PXForward/OnlineBlock")
139 .groupBy(
"PXForward",
"EXTEND_Y")
142 Specification(OverlayCurvesForTiming).groupBy(
"DetId/Event")
144 .groupBy(
"PXBarrel/OnlineBlock")
145 .groupBy(
"PXBarrel",
"EXTEND_Y")
152 SiPixelPhase1TrackClustersOnTrackPositionB = DefaultHistoTrack.clone(
153 name =
"clusterposition_zphi_ontrack",
154 title =
"Cluster_onTrack Positions",
155 range_min = -60, range_max = 60, range_nbins = 300,
156 range_y_min = -3.2, range_y_max = 3.2, range_y_nbins = 200,
157 xlabel =
"Global Z", ylabel =
"Global \phi",
160 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
161 Specification().groupBy(
"").
save(),
165 SiPixelPhase1TrackClustersOnTrackPositionF = DefaultHistoTrack.clone(
166 name =
"clusterposition_xy_ontrack",
167 title =
"Cluster_onTrack Positions",
168 xlabel =
"Global X", ylabel =
"Global Y",
169 range_min = -20, range_max = 20, range_nbins = 200,
170 range_y_min = -20, range_y_max = 20, range_y_nbins = 200,
173 Specification().groupBy(
"PXForward/PXDisk").
save(),
177 SiPixelPhase1TrackClustersNTracks = DefaultHistoTrack.clone(
179 title =
"Number of Tracks",
180 xlabel =
"All - Pixel - BPIX - FPIX",
181 range_min = 1, range_max = 5, range_nbins = 4,
184 Specification().groupBy(
"").
save()
188 SiPixelPhase1TrackClustersNTracksInVolume = DefaultHistoTrack.clone(
189 name =
"ntracksinpixvolume",
190 title =
"Number of Tracks in Pixel fiducial Volume",
191 xlabel =
"without hits - with hits",
192 range_min = 0, range_max = 2, range_nbins = 2,
195 Specification().groupBy(
"").
save()
199 SiPixelPhase1ClustersSizeVsEtaOnTrackOuter = DefaultHistoTrack.clone(
200 name =
"sizeyvseta_on_track_outer",
201 title =
"Cluster Size along Beamline vs. Track #eta (OnTrack) outer ladders",
202 xlabel =
"Track #eta",
203 ylabel =
"length [pixels]",
204 range_min = -3.2, range_max = 3.2, range_nbins = 64,
205 range_y_min = 0, range_y_max = 30, range_y_nbins = 30,
208 Specification().groupBy(
"PXBarrel/PXLayer").
save()
212 SiPixelPhase1ClustersSizeVsEtaOnTrackInner = SiPixelPhase1ClustersSizeVsEtaOnTrackOuter.clone(
213 name =
"sizeyvseta_on_track_inner",
214 title =
"Cluster Size along Beamline vs. Track #eta (OnTrack) inner ladders",
218 SiPixelPhase1TrackClustersOnTrackSizeYOuter = SiPixelPhase1ClustersSizeVsEtaOnTrackOuter.clone(
219 topFolderName =
"PixelPhase1/ClusterShape",
220 name =
"sizey_on_track_outer",
221 title =
"Cluster Size along Beamline vs. prediction (OnTrack) outer ladders",
222 xlabel =
"prediction",
223 ylabel =
"length [pixels]",
224 range_min = 0, range_max = 30, range_nbins = 60
227 SiPixelPhase1TrackClustersOnTrackSizeYInner = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
228 name =
"sizey_on_track_inner",
229 title =
"Cluster Size along Beamline vs. prediction (OnTrack) inner ladders",
232 SiPixelPhase1TrackClustersOnTrackSizeYF = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
233 name =
"sizey_on_track_forward",
234 title =
"Cluster Size ortogonal to Beamline vs. prediction (OnTrack) forward",
235 range_y_min = 0, range_y_max = 10, range_y_nbins = 10,
236 range_min = 0, range_max = 10, range_nbins = 20,
238 Specification().groupBy(
"PXForward/PXDisk").
save(),
243 SiPixelPhase1TrackClustersOnTrackSizeXOuter = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
244 name =
"sizex_on_track_outer",
245 title =
"Cluster Size along radial vs. prediction (OnTrack) outer ladders",
246 range_min = 0, range_max = 8, range_nbins = 16,
247 range_y_min = 0, range_y_max = 8, range_y_nbins = 8
251 SiPixelPhase1TrackClustersOnTrackSizeXInner = SiPixelPhase1TrackClustersOnTrackSizeXOuter.clone(
252 name =
"sizex_on_track_inner",
253 title =
"Cluster Size along radial vs. prediction (OnTrack) inner ladders",
256 SiPixelPhase1TrackClustersOnTrackSizeXF = SiPixelPhase1TrackClustersOnTrackSizeYF.clone(
257 name =
"sizex_on_track_forward",
258 title =
"Cluster Size radial vs. prediction (OnTrack) forward",
263 SiPixelPhase1TrackClustersOnTrackSizeXYOuter = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
264 name =
"sizexy_on_track_outer",
265 title =
"Cluster Size x vs y (OnTrack) outer ladders",
268 range_min = 0, range_max = 20, range_nbins = 20,
269 range_y_min = 0, range_y_max = 10, range_y_nbins = 10
272 SiPixelPhase1TrackClustersOnTrackSizeXYInner = SiPixelPhase1TrackClustersOnTrackSizeXYOuter.clone(
273 name =
"sizexy_on_track_inner",
274 title =
"Cluster Size x vs y (OnTrack) inner ladders" 277 SiPixelPhase1TrackClustersOnTrackSizeXYF = SiPixelPhase1TrackClustersOnTrackSizeYF.clone(
278 name =
"sizexy_on_track_forward",
279 title =
"Cluster Size x vs y (OnTrack) forward",
282 range_min = 0, range_max = 10, range_nbins = 10,
283 range_y_min = 0, range_y_max = 10, range_y_nbins = 10
287 SiPixelPhase1TrackClustersOnTrackChargeOuter = DefaultHistoTrack.clone(
288 name =
"chargeOuter",
289 title =
"Corrected Cluster Charge (OnTrack) outer ladders",
290 range_min = 0, range_max = 150e3, range_nbins = 150,
291 xlabel =
"Charge (electrons)",
294 Specification().groupBy(
"PXBarrel/PXLayer").
save()
298 SiPixelPhase1TrackClustersOnTrackChargeInner = SiPixelPhase1TrackClustersOnTrackChargeOuter.clone(
299 name =
"chargeInner",
300 title =
"Corrected Cluster Charge (OnTrack) inner ladders" 303 SiPixelPhase1TrackClustersOnTrackShapeOuter = DefaultHistoTrack.clone(
304 topFolderName =
"PixelPhase1/ClusterShape",
305 name =
"shapeFilterOuter",
306 title =
"Shape filter (OnTrack) Outer Ladders",
307 range_min = 0, range_max = 2, range_nbins = 2,
308 xlabel =
"shapeFilter",
310 Specification().groupBy(
"PXBarrel/PXLayer").
save()
314 SiPixelPhase1TrackClustersOnTrackShapeInner = SiPixelPhase1TrackClustersOnTrackShapeOuter.clone(
315 name =
"shapeFilterInner",
316 title =
"Shape filter (OnTrack) Inner Ladders",
320 SiPixelPhase1TrackClustersConf = cms.VPSet(
321 SiPixelPhase1TrackClustersOnTrackCharge,
322 SiPixelPhase1TrackClustersOnTrackSize,
323 SiPixelPhase1TrackClustersOnTrackShape,
324 SiPixelPhase1TrackClustersOnTrackNClusters,
325 SiPixelPhase1TrackClustersOnTrackPositionB,
326 SiPixelPhase1TrackClustersOnTrackPositionF,
328 SiPixelPhase1TrackClustersNTracks,
329 SiPixelPhase1TrackClustersNTracksInVolume,
331 SiPixelPhase1ClustersSizeVsEtaOnTrackOuter,
332 SiPixelPhase1ClustersSizeVsEtaOnTrackInner,
333 SiPixelPhase1TrackClustersOnTrackChargeOuter,
334 SiPixelPhase1TrackClustersOnTrackChargeInner,
336 SiPixelPhase1TrackClustersOnTrackShapeOuter,
337 SiPixelPhase1TrackClustersOnTrackShapeInner,
339 SiPixelPhase1TrackClustersOnTrackSizeXOuter,
340 SiPixelPhase1TrackClustersOnTrackSizeXInner,
341 SiPixelPhase1TrackClustersOnTrackSizeXF,
342 SiPixelPhase1TrackClustersOnTrackSizeYOuter,
343 SiPixelPhase1TrackClustersOnTrackSizeYInner,
344 SiPixelPhase1TrackClustersOnTrackSizeYF,
346 SiPixelPhase1TrackClustersOnTrackSizeXYOuter,
347 SiPixelPhase1TrackClustersOnTrackSizeXYInner,
348 SiPixelPhase1TrackClustersOnTrackSizeXYF
351 SiPixelPhase1TrackClustersAnalyzer = cms.EDAnalyzer(
"SiPixelPhase1TrackClusters",
352 clusters = cms.InputTag(
"siPixelClusters"),
353 clusterShapeCache = cms.InputTag(
"siPixelClusterShapeCache"),
354 tracks = cms.InputTag(
"generalTracks"),
355 vertices = cms.InputTag(
"offlinePrimaryVertices"),
356 histograms = SiPixelPhase1TrackClustersConf,
357 geometry = SiPixelPhase1Geometry
360 SiPixelPhase1TrackClustersHarvester =
DQMEDHarvester(
"SiPixelPhase1Harvester",
361 histograms = SiPixelPhase1TrackClustersConf,
362 geometry = SiPixelPhase1Geometry