CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiPixelPhase1Clusters_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
4 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi as trigger
5 
6 SiPixelPhase1ClustersCharge = DefaultHistoDigiCluster.clone(
7  name = "charge",
8  title = "Cluster Charge",
9  range_min = 0, range_max = 300e3, range_nbins = 150,
10  xlabel = "Charge (electrons)",
11 
12  specs = VPSet(
13  StandardSpecification2DProfile,
14  StandardSpecificationPixelmapProfile,
15  StandardSpecificationTrend,
16  StandardSpecifications1D,
17  StandardSpecificationTrend2D
18  )
19 )
20 
21 SiPixelPhase1ClustersBigPixelCharge = DefaultHistoDigiCluster.clone(
22  name = "bigpixelcharge",
23  title = "Big Pixel Charge",
24  range_min = 0, range_max = 80e3, range_nbins = 100,
25  xlabel = "Charge (electrons)",
26 
27  specs = VPSet(
28  Specification().groupBy("PXBarrel").save(),
29  Specification().groupBy("PXForward").save(),
30  Specification().groupBy("PXBarrel/PXLayer").save(),
31  Specification().groupBy("PXForward/PXDisk").save()
32  )
33 )
34 
35 SiPixelPhase1ClustersNotBigPixelCharge = DefaultHistoDigiCluster.clone(
36  name = "notbigpixelcharge",
37  title = "Not Big Pixel Charge",
38  range_min = 0, range_max = 80e3, range_nbins = 100,
39  xlabel = "Charge (electrons)",
40  enabled=False,
41 
42  specs = VPSet(
43  Specification().groupBy("PXBarrel").save(),
44  Specification().groupBy("PXForward").save(),
45  Specification().groupBy("PXBarrel/PXLayer").save(),
46  Specification().groupBy("PXForward/PXDisk").save()
47  )
48 )
49 
50 SiPixelPhase1ClustersSize = DefaultHistoDigiCluster.clone(
51  name = "size",
52  title = "Total Cluster Size",
53  range_min = 0, range_max = 30, range_nbins = 30,
54  xlabel = "size[pixels]",
55  specs = VPSet(
56  StandardSpecification2DProfile,
57  StandardSpecificationPixelmapProfile,
58  StandardSpecificationTrend,
59  StandardSpecifications1D,
60  StandardSpecificationTrend2D
61  )
62 )
63 
64 SiPixelPhase1ClustersSizeX = DefaultHistoDigiCluster.clone(
65  name = "sizeX",
66  title = "Cluster Size in X",
67  range_min = 0, range_max = 30, range_nbins = 30,
68  xlabel = "size[pixels]",
69  specs = VPSet(
70  #StandardSpecification2DProfile,
71  #StandardSpecificationPixelmapProfile,
72  #StandardSpecificationTrend,
73  StandardSpecifications1D,
74  #StandardSpecificationTrend2D
75  )
76 )
77 
78 SiPixelPhase1ClustersSizeY = DefaultHistoDigiCluster.clone(
79  name = "sizeY",
80  title = "Cluster Size in Y",
81  range_min = 0, range_max = 30, range_nbins = 30,
82  xlabel = "size[pixels]",
83  specs = VPSet(
84  #StandardSpecification2DProfile,
85  #StandardSpecificationPixelmapProfile,
86  #StandardSpecificationTrend,
87  StandardSpecifications1D,
88  #StandardSpecificationTrend2D
89  )
90 )
91 
92 SiPixelPhase1ClustersNClusters = DefaultHistoDigiCluster.clone(
93  name = "clusters",
94  title = "Clusters",
95  range_min = 0, range_max = 100, range_nbins = 25,
96  xlabel = "clusters",
97  dimensions = 0,
98 
99  specs = VPSet(
100  StandardSpecificationOccupancy,
101  StandardSpecification2DProfile_Num,
102  StandardSpecificationTrend_Num,
103  StandardSpecifications1D_Num,
104 
105  Specification().groupBy("PXBarrel/PXLayer/Event") #this will produce inclusive counts per Layer/Disk
106  .reduce("COUNT")
107  .groupBy("PXBarrel/PXLayer")
108  .save(nbins=50, xmin=0, xmax=10000),
109  Specification().groupBy("PXForward/PXDisk/Event")
110  .reduce("COUNT")
111  .groupBy("PXForward/PXDisk/")
112  .save(nbins=50, xmin=0, xmax=5000),
113  )
114 )
115 
116 
117 SiPixelPhase1ClustersNClustersInclusive = DefaultHistoDigiCluster.clone(
118  name = "clusters",
119  title = "Clusters",
120  range_min = 0, range_max = 20000, range_nbins = 100,
121  xlabel = "clusters",
122  dimensions = 0,
123  specs = VPSet(
124  StandardSpecificationInclusive_Num
125  )
126 )
127 
128 
129 SiPixelPhase1ClustersEventrate = DefaultHistoDigiCluster.clone(
130  name = "clustereventrate",
131  title = "Number of Events with clusters",
132  ylabel = "#Events",
133  dimensions = 0,
134  enabled=False,
135  specs = VPSet(
136  Specification().groupBy("Lumisection")
137  .groupBy("", "EXTEND_X").save(),
138  Specification().groupBy("BX")
139  .groupBy("", "EXTEND_X").save()
140  )
141 
142 )
143 
144 
145 SiPixelPhase1ClustersPositionB = DefaultHistoDigiCluster.clone(
146  name = "clusterposition_zphi",
147  title = "Cluster Positions",
148  range_min = -60, range_max = 60, range_nbins = 300,
149  range_y_min = -3.2, range_y_max = 3.2, range_y_nbins = 200,
150  xlabel = "Global Z", ylabel = "Global \phi",
151  dimensions = 2,
152  specs = VPSet(
153  Specification().groupBy("PXBarrel/PXLayer").save(),
154  Specification().groupBy("").save(),
155  )
156 )
157 
158 SiPixelPhase1ClustersPositionF = DefaultHistoDigiCluster.clone(
159  name = "clusterposition_xy",
160  title = "Cluster Positions",
161  xlabel = "Global X", ylabel = "Global Y",
162  range_min = -20, range_max = 20, range_nbins = 200,
163  range_y_min = -20, range_y_max = 20, range_y_nbins = 200,
164  dimensions = 2,
165  specs = VPSet(
166  Specification().groupBy("PXForward/PXDisk").save(),
167  Specification().groupBy("PXForward").save(),
168  #Specification().groupBy("PXBarrel").save(),
169  )
170 )
171 
172 SiPixelPhase1ClustersPositionXZ = DefaultHistoDigiCluster.clone(
173  enabled = False, # only for debugging geometry
174  name = "clusterposition_xz",
175  title = "Cluster Positions",
176  xlabel = "Global X", ylabel = "Global Z",
177  range_min = -20, range_max = 20, range_nbins = 200,
178  range_y_min = -60, range_y_max = 60, range_y_nbins = 1200,
179  dimensions = 2,
180  specs = VPSet(
181  )
182 )
183 
184 SiPixelPhase1ClustersPositionYZ = DefaultHistoDigiCluster.clone(
185  enabled = False, # only for debugging geometry
186  name = "clusterposition_yz",
187  title = "Cluster Positions",
188  xlabel = "Global Y", ylabel = "Global Z",
189  range_min = -20, range_max = 20, range_nbins = 200,
190  range_y_min = -60, range_y_max = 60, range_y_nbins = 1200,
191  dimensions = 2,
192  specs = VPSet(
193  )
194 )
195 
196 SiPixelPhase1ClustersSizeVsEta = DefaultHistoDigiCluster.clone(
197  name = "sizeyvseta",
198  title = "Cluster Size along Beamline vs. Cluster position #eta",
199  xlabel = "Cluster #eta",
200  ylabel = "length [pixels]",
201  range_min = -3.2, range_max = 3.2, range_nbins = 40,
202  range_y_min = 0, range_y_max = 40, range_y_nbins = 40,
203  dimensions = 2,
204  specs = VPSet(
205  Specification().groupBy("PXBarrel/PXLayer").save(),
206  Specification().groupBy("PXBarrel").save()
207  )
208 )
209 
210 SiPixelPhase1ClustersReadoutCharge = DefaultHistoReadout.clone(
211  name = "charge",
212  title = "Cluster Charge",
213  range_min = 0, range_max = 200e3, range_nbins = 200,
214  xlabel = "Charge (electrons)",
215  specs = VPSet(
216  Specification(PerReadout).groupBy("PXBarrel/Shell/Sector").save(),
217  Specification(PerReadout).groupBy("PXForward/HalfCylinder").save()
218 
219  #Specification(PerReadout).groupBy("PXBarrel/Shell/Sector/OnlineBlock")
220  # .groupBy("PXBarrel/Shell/Sector", "EXTEND_Y").save(),
221  #Specification(PerReadout).groupBy("PXForward/HalfCylinder/OnlineBlock")
222  # .groupBy("PXForward/HalfCylinder", "EXTEND_Y").save(),
223  )
224 )
225 
226 SiPixelPhase1ClustersReadoutNClusters = DefaultHistoReadout.clone(
227  name = "clusters",
228  title = "Clusters",
229  range_min = 0, range_max = 100, range_nbins = 25,
230  xlabel = "clusters",
231  dimensions = 0,
232  specs = VPSet(
233  Specification(PerReadout).groupBy("PXBarrel/Shell/Sector/DetId/Event").reduce("COUNT")
234  .groupBy("PXBarrel/Shell/Sector").save(),
235  Specification(PerReadout).groupBy("PXForward/HalfCylinder/DetId/Event").reduce("COUNT")
236  .groupBy("PXForward/HalfCylinder").save(),
237 
238  Specification(PerReadout).groupBy("PXBarrel/Shell/Sector/DetId/Event").reduce("COUNT")
239  .groupBy("PXBarrel/Shell/Sector/LumiBlock").reduce("MEAN")
240  .groupBy("PXBarrel/Shell/Sector", "EXTEND_X").save(),
241  Specification(PerReadout).groupBy("PXForward/HalfCylinder/DetId/Event").reduce("COUNT")
242  .groupBy("PXForward/HalfCylinder/LumiBlock").reduce("MEAN")
243  .groupBy("PXForward/HalfCylinder", "EXTEND_X").save(),
244  )
245 )
246 
247 SiPixelPhase1ClustersPixelToStripRatio = DefaultHistoDigiCluster.clone(
248  enabled = False,
249  name = "cluster_ratio",
250  title = "Pixel to Strip clusters ratio",
251 
252  xlabel = "ratio",
253  dimensions = 1,
254 
255  specs = VPSet(
256  Specification().groupBy("PXAll").save(100, 0, 1),
257  Specification().groupBy("PXAll/LumiBlock")
258  .reduce("MEAN")
259  .groupBy("PXAll", "EXTEND_X")
260  .save(),
261  Specification().groupBy("PXAll/BX")
262  .reduce("MEAN")
263  .groupBy("PXAll", "EXTEND_X")
264  .save(),
265  )
266 )
267 
268 
269 from Configuration.Eras.Modifier_run3_common_cff import run3_common
270 run3_common.toModify(SiPixelPhase1ClustersNClustersInclusive, range_max = 40000, range_nbins=200)
271 
272 SiPixelPhase1ClustersConf = cms.VPSet(
273  SiPixelPhase1ClustersCharge,
274  SiPixelPhase1ClustersBigPixelCharge,
275  SiPixelPhase1ClustersNotBigPixelCharge,
276  SiPixelPhase1ClustersSize,
277  SiPixelPhase1ClustersSizeX,
278  SiPixelPhase1ClustersSizeY,
279  SiPixelPhase1ClustersNClusters,
280  SiPixelPhase1ClustersNClustersInclusive,
281  SiPixelPhase1ClustersEventrate,
282  SiPixelPhase1ClustersPositionB,
283  SiPixelPhase1ClustersPositionF,
284  SiPixelPhase1ClustersPositionXZ,
285  SiPixelPhase1ClustersPositionYZ,
286  SiPixelPhase1ClustersSizeVsEta,
287  SiPixelPhase1ClustersReadoutCharge,
288  SiPixelPhase1ClustersReadoutNClusters,
289  SiPixelPhase1ClustersPixelToStripRatio
290 )
291 
292 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
293 SiPixelPhase1ClustersAnalyzer = DQMEDAnalyzer('SiPixelPhase1Clusters',
294  pixelSrc = cms.InputTag("siPixelClusters"),
295  stripSrc = cms.InputTag("siStripClusters"),
296  histograms = SiPixelPhase1ClustersConf,
297  geometry = SiPixelPhase1Geometry,
298  triggerflags = trigger.SiPixelPhase1Triggers
299 )
300 
301 SiPixelPhase1ClustersHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
302  histograms = SiPixelPhase1ClustersConf,
303  geometry = SiPixelPhase1Geometry
304 )
305 
306 
307 
list save
Definition: cuy.py:1164