CMS 3D CMS Logo

SiPixelPhase1TrackClusters_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
4 
5 SiPixelPhase1TrackClustersOnTrackCharge = DefaultHistoTrack.clone(
6  name = "charge",
7  title = "Corrected Cluster Charge (OnTrack)",
8  range_min = 0, range_max = 80e3, range_nbins = 100,
9  xlabel = "Charge (electrons)",
10 
11  specs = VPSet(
12  StandardSpecifications1D,
13  StandardSpecification2DProfile,
14 
15  #what is below is only for the timing client
16  Specification(OverlayCurvesForTiming).groupBy("PXBarrel/OnlineBlock")
17  .groupBy("PXBarrel", "EXTEND_Y")
18  .save(),
19  Specification(OverlayCurvesForTiming).groupBy("PXForward/OnlineBlock")
20  .groupBy("PXForward", "EXTEND_Y")
21  .save(),
22 
23  Specification(OverlayCurvesForTiming).groupBy("PXForward/PXDisk/OnlineBlock") # per-layer with history for online
24  .groupBy("PXForward/PXDisk", "EXTEND_Y")
25  .save(),
26  Specification(OverlayCurvesForTiming).groupBy("PXBarrel/PXLayer/OnlineBlock") # per-layer with history for online
27  .groupBy("PXBarrel/PXLayer", "EXTEND_Y")
28  .save()
29  )
30 )
31 
32 SiPixelPhase1TrackClustersOnTrackSize = DefaultHistoTrack.clone(
33  name = "size",
34  title = "Total Cluster Size (OnTrack)",
35  range_min = 0, range_max = 30, range_nbins = 30,
36  xlabel = "size[pixels]",
37 
38  specs = VPSet(
39  StandardSpecifications1D,
40  StandardSpecification2DProfile
41  )
42 )
43 
44 SiPixelPhase1TrackClustersOnTrackShape = DefaultHistoTrack.clone(
45  topFolderName = "PixelPhase1/ClusterShape",
46  name = "shapeFilter",
47  title = "Shape filter (OnTrack)",
48  range_min = 0, range_max = 2, range_nbins = 2,
49  xlabel = "shapeFilter",
50 
51  specs = VPSet(
52  Specification().groupBy("PXBarrel/PXLayer").saveAll(),
53  Specification().groupBy("PXForward/PXDisk").saveAll(),
54  StandardSpecification2DProfile,
55 
56  Specification().groupBy("PXBarrel/PXLayer/Lumisection")
57  .reduce("MEAN")
58  .groupBy("PXBarrel/PXLayer", "EXTEND_X")
59  .save(),
60 
61  Specification().groupBy("PXForward/PXDisk/Lumisection")
62  .reduce("MEAN")
63  .groupBy("PXForward/PXDisk", "EXTEND_X")
64  .save(),
65 
66  Specification(PerLayer1D).groupBy("PXBarrel/Shell/PXLayer").save(),
67  Specification(PerLayer1D).groupBy("PXForward/HalfCylinder/PXRing/PXDisk").save()
68 
69  )
70 )
71 
72 
73 SiPixelPhase1TrackClustersOnTrackNClusters = DefaultHistoTrack.clone(
74  name = "clusters_ontrack",
75  title = "Clusters_onTrack (valid hits)",
76  range_min = 0, range_max = 30, range_nbins = 30,
77  xlabel = "clusters",
78  dimensions = 0,
79 
80  specs = VPSet(
81  # Specification().groupBy("PXBarrel/PXLayer" + "/DetId/Event")
82  # .reduce("COUNT")
83  # .groupBy("PXBarrel/PXLayer")
84  # .saveAll(),
85  # Specification().groupBy("PXForward/PXDisk" + "/DetId/Event")
86  # .reduce("COUNT")
87  # .groupBy("PXForward/PXDisk")
88  # .saveAll(),
89  # #StandardSpecificationInclusive_Num,
90  StandardSpecificationTrend_Num,
91  StandardSpecification2DProfile_Num,
92 
93  Specification().groupBy("PXBarrel/PXLayer/Event") #this will produce inclusive counts per Layer/Disk
94  .reduce("COUNT")
95  .groupBy("PXBarrel/PXLayer")
96  .save(nbins=50, xmin=0, xmax=5000),
97 
98  Specification().groupBy("PXForward/PXDisk/Event")
99  .reduce("COUNT")
100  .groupBy("PXForward/PXDisk/")
101  .save(nbins=50, xmin=0, xmax=2000),
102 
103  Specification().groupBy("PXBarrel/Event")
104  .reduce("COUNT")
105  .groupBy("PXBarrel")
106  .save(nbins=100, xmin=0, xmax=5000),
107 
108  Specification().groupBy("PXForward/Event")
109  .reduce("COUNT")
110  .groupBy("PXForward")
111  .save(nbins=100, xmin=0, xmax=5000),
112 
113  Specification().groupBy("PXAll/Event")
114  .reduce("COUNT")
115  .groupBy("PXAll")
116  .save(nbins=100, xmin=0, xmax=5000),
117 
118  Specification().groupBy("BX")
119  .groupBy("", "EXTEND_X").save(),
120 
121  Specification().groupBy("PXBarrel/PXLayer/Event")
122  .reduce("COUNT")
123  .groupBy("PXBarrel/PXLayer/Lumisection")
124  .reduce("MEAN")
125  .groupBy("PXBarrel/PXLayer","EXTEND_X")
126  .save(),
127 
128  Specification().groupBy("PXForward/PXDisk/Event")
129  .reduce("COUNT")
130  .groupBy("PXForward/PXDisk/Lumisection")
131  .reduce("MEAN")
132  .groupBy("PXForward/PXDisk","EXTEND_X")
133  .save(),
134 
135  #below is for timing client
136  Specification(OverlayCurvesForTiming).groupBy("DetId/Event")
137  .reduce("COUNT")
138  .groupBy("PXForward/OnlineBlock")
139  .groupBy("PXForward", "EXTEND_Y")
140  .save(),
141 
142  Specification(OverlayCurvesForTiming).groupBy("DetId/Event")
143  .reduce("COUNT")
144  .groupBy("PXBarrel/OnlineBlock")
145  .groupBy("PXBarrel", "EXTEND_Y")
146  .save()
147 
148  )
149 )
150 
151 
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",
158  dimensions = 2,
159  specs = VPSet(
160  Specification().groupBy("PXBarrel/PXLayer").save(),
161  Specification().groupBy("").save(),
162  )
163 )
164 
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,
171  dimensions = 2,
172  specs = VPSet(
173  Specification().groupBy("PXForward/PXDisk").save(),
174  )
175 )
176 
177 SiPixelPhase1TrackClustersNTracks = DefaultHistoTrack.clone(
178  name = "ntracks",
179  title = "Number of Tracks",
180  xlabel = "All - Pixel - BPIX - FPIX",
181  range_min = 1, range_max = 5, range_nbins = 4,
182  dimensions = 1,
183  specs = VPSet(
184  Specification().groupBy("").save()
185  )
186 )
187 
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,
193  dimensions = 1,
194  specs = VPSet(
195  Specification().groupBy("").save()
196  )
197 )
198 
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,
206  dimensions = 2,
207  specs = VPSet(
208  Specification().groupBy("PXBarrel/PXLayer").save()
209  )
210 )
211 
212 SiPixelPhase1ClustersSizeVsEtaOnTrackInner = SiPixelPhase1ClustersSizeVsEtaOnTrackOuter.clone(
213  name = "sizeyvseta_on_track_inner",
214  title = "Cluster Size along Beamline vs. Track #eta (OnTrack) inner ladders",
215 )
216 
217 
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
225 )
226 
227 SiPixelPhase1TrackClustersOnTrackSizeYInner = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
228  name = "sizey_on_track_inner",
229  title = "Cluster Size along Beamline vs. prediction (OnTrack) inner ladders",
230 )
231 
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,
237  specs = VPSet(
238  Specification().groupBy("PXForward/PXDisk").save(),
239  )
240 )
241 
242 
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
248 
249 )
250 
251 SiPixelPhase1TrackClustersOnTrackSizeXInner = SiPixelPhase1TrackClustersOnTrackSizeXOuter.clone(
252  name = "sizex_on_track_inner",
253  title = "Cluster Size along radial vs. prediction (OnTrack) inner ladders",
254 )
255 
256 SiPixelPhase1TrackClustersOnTrackSizeXF = SiPixelPhase1TrackClustersOnTrackSizeYF.clone(
257  name = "sizex_on_track_forward",
258  title = "Cluster Size radial vs. prediction (OnTrack) forward",
259 )
260 
261 
262 
263 SiPixelPhase1TrackClustersOnTrackSizeXYOuter = SiPixelPhase1TrackClustersOnTrackSizeYOuter.clone(
264  name = "sizexy_on_track_outer",
265  title = "Cluster Size x vs y (OnTrack) outer ladders",
266  xlabel = "y size",
267  ylabel = "x size",
268  range_min = 0, range_max = 20, range_nbins = 20,
269  range_y_min = 0, range_y_max = 10, range_y_nbins = 10
270 )
271 
272 SiPixelPhase1TrackClustersOnTrackSizeXYInner = SiPixelPhase1TrackClustersOnTrackSizeXYOuter.clone(
273  name = "sizexy_on_track_inner",
274  title = "Cluster Size x vs y (OnTrack) inner ladders"
275 )
276 
277 SiPixelPhase1TrackClustersOnTrackSizeXYF = SiPixelPhase1TrackClustersOnTrackSizeYF.clone(
278  name = "sizexy_on_track_forward",
279  title = "Cluster Size x vs y (OnTrack) forward",
280  xlabel = "y size",
281  ylabel = "x size",
282  range_min = 0, range_max = 10, range_nbins = 10,
283  range_y_min = 0, range_y_max = 10, range_y_nbins = 10
284 
285 )
286 
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)",
292 
293  specs = VPSet(
294  Specification().groupBy("PXBarrel/PXLayer").save()
295  )
296 )
297 
298 SiPixelPhase1TrackClustersOnTrackChargeInner = SiPixelPhase1TrackClustersOnTrackChargeOuter.clone(
299  name = "chargeInner",
300  title = "Corrected Cluster Charge (OnTrack) inner ladders"
301 )
302 
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",
309  specs = VPSet(
310  Specification().groupBy("PXBarrel/PXLayer").save()
311  )
312 )
313 
314 SiPixelPhase1TrackClustersOnTrackShapeInner = SiPixelPhase1TrackClustersOnTrackShapeOuter.clone(
315  name = "shapeFilterInner",
316  title = "Shape filter (OnTrack) Inner Ladders",
317 )
318 
319 # copy this in the enum
320 SiPixelPhase1TrackClustersConf = cms.VPSet(
321  SiPixelPhase1TrackClustersOnTrackCharge,
322  SiPixelPhase1TrackClustersOnTrackSize,
323  SiPixelPhase1TrackClustersOnTrackShape,
324  SiPixelPhase1TrackClustersOnTrackNClusters,
325  SiPixelPhase1TrackClustersOnTrackPositionB,
326  SiPixelPhase1TrackClustersOnTrackPositionF,
327 
328  SiPixelPhase1TrackClustersNTracks,
329  SiPixelPhase1TrackClustersNTracksInVolume,
330 
331  SiPixelPhase1ClustersSizeVsEtaOnTrackOuter,
332  SiPixelPhase1ClustersSizeVsEtaOnTrackInner,
333  SiPixelPhase1TrackClustersOnTrackChargeOuter,
334  SiPixelPhase1TrackClustersOnTrackChargeInner,
335 
336  SiPixelPhase1TrackClustersOnTrackShapeOuter,
337  SiPixelPhase1TrackClustersOnTrackShapeInner,
338 
339  SiPixelPhase1TrackClustersOnTrackSizeXOuter,
340  SiPixelPhase1TrackClustersOnTrackSizeXInner,
341  SiPixelPhase1TrackClustersOnTrackSizeXF,
342  SiPixelPhase1TrackClustersOnTrackSizeYOuter,
343  SiPixelPhase1TrackClustersOnTrackSizeYInner,
344  SiPixelPhase1TrackClustersOnTrackSizeYF,
345 
346  SiPixelPhase1TrackClustersOnTrackSizeXYOuter,
347  SiPixelPhase1TrackClustersOnTrackSizeXYInner,
348  SiPixelPhase1TrackClustersOnTrackSizeXYF
349 )
350 
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
358 )
359 
360 SiPixelPhase1TrackClustersHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
361  histograms = SiPixelPhase1TrackClustersConf,
362  geometry = SiPixelPhase1Geometry
363 )
364 
365 
366 
367 
DQM Environment
save
Definition: cuy.py:1163