CMS 3D CMS Logo

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 SiPixelPhase1ClustersSize = DefaultHistoDigiCluster.clone(
22  name = "size",
23  title = "Total Cluster Size",
24  range_min = 0, range_max = 30, range_nbins = 30,
25  xlabel = "size[pixels]",
26  specs = VPSet(
27  StandardSpecification2DProfile,
28  StandardSpecificationPixelmapProfile,
29  StandardSpecificationTrend,
30  StandardSpecifications1D,
31  StandardSpecificationTrend2D
32  )
33 )
34 
35 SiPixelPhase1ClustersSizeX = DefaultHistoDigiCluster.clone(
36  name = "sizeX",
37  title = "Cluster Size in X",
38  range_min = 0, range_max = 30, range_nbins = 30,
39  xlabel = "size[pixels]",
40  specs = VPSet(
41  #StandardSpecification2DProfile,
42  #StandardSpecificationPixelmapProfile,
43  #StandardSpecificationTrend,
44  StandardSpecifications1D,
45  #StandardSpecificationTrend2D
46  )
47 )
48 
49 SiPixelPhase1ClustersSizeY = DefaultHistoDigiCluster.clone(
50  name = "sizeY",
51  title = "Cluster Size in Y",
52  range_min = 0, range_max = 30, range_nbins = 30,
53  xlabel = "size[pixels]",
54  specs = VPSet(
55  #StandardSpecification2DProfile,
56  #StandardSpecificationPixelmapProfile,
57  #StandardSpecificationTrend,
58  StandardSpecifications1D,
59  #StandardSpecificationTrend2D
60  )
61 )
62 
63 SiPixelPhase1ClustersNClusters = DefaultHistoDigiCluster.clone(
64  name = "clusters",
65  title = "Clusters",
66  range_min = 0, range_max = 30, range_nbins = 60,
67  xlabel = "clusters",
68  dimensions = 0,
69 
70  specs = VPSet(
71  StandardSpecificationOccupancy,
72  StandardSpecification2DProfile_Num,
73  StandardSpecificationTrend_Num,
74  StandardSpecifications1D_Num,
75 
76  Specification().groupBy("PXBarrel/PXLayer/Event") #this will produce inclusive counts per Layer/Disk
77  .reduce("COUNT")
78  .groupBy("PXBarrel/PXLayer")
79  .save(nbins=50, xmin=0, xmax=10000),
80  Specification().groupBy("PXForward/PXDisk/Event")
81  .reduce("COUNT")
82  .groupBy("PXForward/PXDisk/")
83  .save(nbins=50, xmin=0, xmax=5000),
84  )
85 )
86 
87 
88 SiPixelPhase1ClustersNClustersInclusive = DefaultHistoDigiCluster.clone(
89  name = "clusters",
90  title = "Clusters",
91  range_min = 0, range_max = 20000, range_nbins = 100,
92  xlabel = "clusters",
93  dimensions = 0,
94  specs = VPSet(
95  StandardSpecificationInclusive_Num
96  )
97 )
98 
99 
100 SiPixelPhase1ClustersEventrate = DefaultHistoDigiCluster.clone(
101  name = "clustereventrate",
102  title = "Number of Events with clusters",
103  ylabel = "#Events",
104  dimensions = 0,
105  enabled=False,
106  specs = VPSet(
107  Specification().groupBy("Lumisection")
108  .groupBy("", "EXTEND_X").save(),
109  Specification().groupBy("BX")
110  .groupBy("", "EXTEND_X").save()
111  )
112 
113 )
114 
115 
116 SiPixelPhase1ClustersPositionB = DefaultHistoDigiCluster.clone(
117  name = "clusterposition_zphi",
118  title = "Cluster Positions",
119  range_min = -60, range_max = 60, range_nbins = 300,
120  range_y_min = -3.2, range_y_max = 3.2, range_y_nbins = 200,
121  xlabel = "Global Z", ylabel = "Global \phi",
122  dimensions = 2,
123  specs = VPSet(
124  Specification().groupBy("PXBarrel/PXLayer").save(),
125  Specification().groupBy("").save(),
126  )
127 )
128 
129 SiPixelPhase1ClustersPositionF = DefaultHistoDigiCluster.clone(
130  name = "clusterposition_xy",
131  title = "Cluster Positions",
132  xlabel = "Global X", ylabel = "Global Y",
133  range_min = -20, range_max = 20, range_nbins = 200,
134  range_y_min = -20, range_y_max = 20, range_y_nbins = 200,
135  dimensions = 2,
136  specs = VPSet(
137  Specification().groupBy("PXForward/PXDisk").save(),
138  Specification().groupBy("PXForward").save(),
139  #Specification().groupBy("PXBarrel").save(),
140  )
141 )
142 
143 SiPixelPhase1ClustersPositionXZ = DefaultHistoDigiCluster.clone(
144  enabled = False, # only for debugging geometry
145  name = "clusterposition_xz",
146  title = "Cluster Positions",
147  xlabel = "Global X", ylabel = "Global Z",
148  range_min = -20, range_max = 20, range_nbins = 200,
149  range_y_min = -60, range_y_max = 60, range_y_nbins = 1200,
150  dimensions = 2,
151  specs = VPSet(
152  )
153 )
154 
155 SiPixelPhase1ClustersPositionYZ = DefaultHistoDigiCluster.clone(
156  enabled = False, # only for debugging geometry
157  name = "clusterposition_yz",
158  title = "Cluster Positions",
159  xlabel = "Global Y", ylabel = "Global Z",
160  range_min = -20, range_max = 20, range_nbins = 200,
161  range_y_min = -60, range_y_max = 60, range_y_nbins = 1200,
162  dimensions = 2,
163  specs = VPSet(
164  )
165 )
166 
167 SiPixelPhase1ClustersSizeVsEta = DefaultHistoDigiCluster.clone(
168  name = "sizeyvseta",
169  title = "Cluster Size along Beamline vs. Cluster position #eta",
170  xlabel = "Cluster #eta",
171  ylabel = "length [pixels]",
172  range_min = -3.2, range_max = 3.2, range_nbins = 40,
173  range_y_min = 0, range_y_max = 40, range_y_nbins = 40,
174  dimensions = 2,
175  specs = VPSet(
176  Specification().groupBy("PXBarrel/PXLayer").save(),
177  Specification().groupBy("PXBarrel").save()
178  )
179 )
180 
181 SiPixelPhase1ClustersReadoutCharge = DefaultHistoReadout.clone(
182  name = "charge",
183  title = "Cluster Charge",
184  range_min = 0, range_max = 200e3, range_nbins = 200,
185  xlabel = "Charge (electrons)",
186  specs = VPSet(
187  Specification(PerReadout).groupBy("PXBarrel/Shell/Sector").save(),
188  Specification(PerReadout).groupBy("PXForward/HalfCylinder").save()
189 
190  #Specification(PerReadout).groupBy("PXBarrel/Shell/Sector/OnlineBlock")
191  # .groupBy("PXBarrel/Shell/Sector", "EXTEND_Y").save(),
192  #Specification(PerReadout).groupBy("PXForward/HalfCylinder/OnlineBlock")
193  # .groupBy("PXForward/HalfCylinder", "EXTEND_Y").save(),
194  )
195 )
196 
197 SiPixelPhase1ClustersReadoutNClusters = DefaultHistoReadout.clone(
198  name = "clusters",
199  title = "Clusters",
200  range_min = 0, range_max = 30, range_nbins = 30,
201  xlabel = "clusters",
202  dimensions = 0,
203  specs = VPSet(
204  Specification(PerReadout).groupBy("PXBarrel/Shell/Sector/DetId/Event").reduce("COUNT")
205  .groupBy("PXBarrel/Shell/Sector").save(),
206  Specification(PerReadout).groupBy("PXForward/HalfCylinder/DetId/Event").reduce("COUNT")
207  .groupBy("PXForward/HalfCylinder").save(),
208 
209  Specification(PerReadout).groupBy("PXBarrel/Shell/Sector/DetId/Event").reduce("COUNT")
210  .groupBy("PXBarrel/Shell/Sector/LumiBlock").reduce("MEAN")
211  .groupBy("PXBarrel/Shell/Sector", "EXTEND_X").save(),
212  Specification(PerReadout).groupBy("PXForward/HalfCylinder/DetId/Event").reduce("COUNT")
213  .groupBy("PXForward/HalfCylinder/LumiBlock").reduce("MEAN")
214  .groupBy("PXForward/HalfCylinder", "EXTEND_X").save(),
215  )
216 )
217 
218 SiPixelPhase1ClustersPixelToStripRatio = DefaultHistoDigiCluster.clone(
219  enabled = False,
220  name = "cluster_ratio",
221  title = "Pixel to Strip clusters ratio",
222 
223  xlabel = "ratio",
224  dimensions = 1,
225 
226  specs = VPSet(
227  Specification().groupBy("PXAll").save(100, 0, 1),
228  Specification().groupBy("PXAll/LumiBlock")
229  .reduce("MEAN")
230  .groupBy("PXAll", "EXTEND_X")
231  .save(),
232  Specification().groupBy("PXAll/BX")
233  .reduce("MEAN")
234  .groupBy("PXAll", "EXTEND_X")
235  .save(),
236  )
237 )
238 
239 SiPixelPhase1ClustersConf = cms.VPSet(
240  SiPixelPhase1ClustersCharge,
241  SiPixelPhase1ClustersSize,
242  SiPixelPhase1ClustersSizeX,
243  SiPixelPhase1ClustersSizeY,
244  SiPixelPhase1ClustersNClusters,
245  SiPixelPhase1ClustersNClustersInclusive,
246  SiPixelPhase1ClustersEventrate,
247  SiPixelPhase1ClustersPositionB,
248  SiPixelPhase1ClustersPositionF,
249  SiPixelPhase1ClustersPositionXZ,
250  SiPixelPhase1ClustersPositionYZ,
251  SiPixelPhase1ClustersSizeVsEta,
252  SiPixelPhase1ClustersReadoutCharge,
253  SiPixelPhase1ClustersReadoutNClusters,
254  SiPixelPhase1ClustersPixelToStripRatio
255 )
256 
257 SiPixelPhase1ClustersAnalyzer = cms.EDAnalyzer("SiPixelPhase1Clusters",
258  pixelSrc = cms.InputTag("siPixelClusters"),
259  stripSrc = cms.InputTag("siStripClusters"),
260  histograms = SiPixelPhase1ClustersConf,
261  geometry = SiPixelPhase1Geometry,
262  triggerflags = trigger.SiPixelPhase1Triggers
263 )
264 
265 SiPixelPhase1ClustersHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
266  histograms = SiPixelPhase1ClustersConf,
267  geometry = SiPixelPhase1Geometry
268 )
DQM Environment
save
Definition: cuy.py:1163