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