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 = 300e3, range_nbins = 150,
9  xlabel = "Charge (electrons)",
10 
11  specs = VPSet(
12  Specification().groupBy("PXBarrel/PXLayer").saveAll(),
13  Specification().groupBy("PXForward/PXDisk").saveAll(),
14  StandardSpecification2DProfile,#what is below is only for the timing client
15 
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().groupBy("PXBarrel/PXLayer/Lumisection")
24  .reduce("MEAN")
25  .groupBy("PXBarrel/PXLayer", "EXTEND_X")
26  .save(),
27 
28  Specification().groupBy("PXForward/PXDisk/Lumisection")
29  .reduce("MEAN")
30  .groupBy("PXForward/PXDisk", "EXTEND_X")
31  .save(),
32 
33  Specification(PerLayer1D).groupBy("PXBarrel/Shell/PXLayer").save(),
34  Specification(PerLayer1D).groupBy("PXForward/HalfCylinder/PXRing/PXDisk").save(),
35 
36 
37  Specification(OverlayCurvesForTiming).groupBy("PXForward/PXDisk/OnlineBlock") # per-layer with history for online
38  .groupBy("PXForward/PXDisk", "EXTEND_Y")
39  .save(),
40  Specification(OverlayCurvesForTiming).groupBy("PXBarrel/PXLayer/OnlineBlock") # per-layer with history for online
41  .groupBy("PXBarrel/PXLayer", "EXTEND_Y")
42  .save()
43  )
44 )
45 
46 SiPixelPhase1TrackClustersOnTrackSize = DefaultHistoTrack.clone(
47  name = "size",
48  title = "Total Cluster Size (OnTrack)",
49  range_min = 0, range_max = 30, range_nbins = 30,
50  xlabel = "size[pixels]",
51 
52  specs = VPSet(
53  Specification().groupBy("PXBarrel/PXLayer").saveAll(),
54  Specification().groupBy("PXForward/PXDisk").saveAll(),
55  StandardSpecification2DProfile,
56 
57  Specification().groupBy("PXBarrel/PXLayer/Lumisection")
58  .reduce("MEAN")
59  .groupBy("PXBarrel/PXLayer", "EXTEND_X")
60  .save(),
61 
62  Specification().groupBy("PXForward/PXDisk/Lumisection")
63  .reduce("MEAN")
64  .groupBy("PXForward/PXDisk", "EXTEND_X")
65  .save(),
66 
67  Specification(PerLayer1D).groupBy("PXBarrel/Shell/PXLayer").save(),
68  Specification(PerLayer1D).groupBy("PXForward/HalfCylinder/PXRing/PXDisk").save()
69 
70  )
71 )
72 
73 SiPixelPhase1TrackClustersOnTrackNClusters = DefaultHistoTrack.clone(
74  name = "clusters_ontrack",
75  title = "Clusters_onTrack",
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=100, xmin=0, xmax=20000),
97 
98  Specification().groupBy("PXForward/PXDisk/Event")
99  .reduce("COUNT")
100  .groupBy("PXForward/PXDisk/")
101  .save(nbins=100, xmin=0, xmax=10000),
102 
103  Specification().groupBy("PXBarrel/Event")
104  .reduce("COUNT")
105  .groupBy("PXBarrel")
106  .save(nbins=150, xmin=0, xmax=30000),
107 
108  Specification().groupBy("PXForward/Event")
109  .reduce("COUNT")
110  .groupBy("PXForward")
111  .save(nbins=150, xmin=0, xmax=30000),
112 
113  Specification().groupBy("PXAll/Event")
114  .reduce("COUNT")
115  .groupBy("PXAll")
116  .save(nbins=150, xmin=0, xmax=30000),
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 SiPixelPhase1TrackClustersOnTrackPositionB = DefaultHistoTrack.clone(
152  name = "clusterposition_zphi_ontrack",
153  title = "Cluster_onTrack Positions",
154  range_min = -60, range_max = 60, range_nbins = 300,
155  range_y_min = -3.2, range_y_max = 3.2, range_y_nbins = 200,
156  xlabel = "Global Z", ylabel = "Global \phi",
157  dimensions = 2,
158  specs = VPSet(
159  Specification().groupBy("PXBarrel/PXLayer").save(),
160  Specification().groupBy("").save(),
161  )
162 )
163 
164 SiPixelPhase1TrackClustersOnTrackPositionF = DefaultHistoTrack.clone(
165  name = "clusterposition_xy_ontrack",
166  title = "Cluster_onTrack Positions",
167  xlabel = "Global X", ylabel = "Global Y",
168  range_min = -20, range_max = 20, range_nbins = 200,
169  range_y_min = -20, range_y_max = 20, range_y_nbins = 200,
170  dimensions = 2,
171  specs = VPSet(
172  Specification().groupBy("PXForward/PXDisk").save(),
173  )
174 )
175 
176 SiPixelPhase1TrackClustersOffTrackCharge = \
177  SiPixelPhase1TrackClustersOnTrackCharge.clone(topFolderName = "PixelPhase1/OffTrack",
178  enabled = False,
179  title = "Cluster Charge")
180 SiPixelPhase1TrackClustersOffTrackSize = \
181  SiPixelPhase1TrackClustersOnTrackSize.clone(topFolderName = "PixelPhase1/OffTrack",
182  enabled = False)
183 
184 SiPixelPhase1TrackClustersOffTrackNClusters = \
185  SiPixelPhase1TrackClustersOnTrackNClusters.clone(topFolderName = "PixelPhase1/OffTrack",
186  enabled = False)
187 
188 SiPixelPhase1TrackClustersOffTrackPositionB = \
189  SiPixelPhase1TrackClustersOnTrackPositionB.clone(topFolderName = "PixelPhase1/OffTrack",
190  enabled = False)
191 
192 SiPixelPhase1TrackClustersOffTrackPositionF = \
193  SiPixelPhase1TrackClustersOnTrackPositionF.clone(topFolderName = "PixelPhase1/OffTrack",
194  enabled = False)
195 
196 SiPixelPhase1TrackClustersNTracks = DefaultHistoTrack.clone(
197  name = "ntracks",
198  title = "Number of Tracks",
199  xlabel = "All - Pixel - BPIX - FPIX",
200  range_min = 1, range_max = 5, range_nbins = 4,
201  dimensions = 1,
202  specs = VPSet(
203  Specification().groupBy("").save()
204  )
205 )
206 
207 SiPixelPhase1TrackClustersNTracksInVolume = DefaultHistoTrack.clone(
208  name = "ntracksinpixvolume",
209  title = "Number of Tracks in Pixel fiducial Volume",
210  xlabel = "without hits - with hits",
211  range_min = 0, range_max = 2, range_nbins = 2,
212  dimensions = 1,
213  specs = VPSet(
214  Specification().groupBy("").save()
215  )
216 
217 )
218 
219 SiPixelPhase1TrackClustersConf = cms.VPSet(
220  SiPixelPhase1TrackClustersOnTrackCharge,
221  SiPixelPhase1TrackClustersOnTrackSize,
222  SiPixelPhase1TrackClustersOnTrackNClusters,
223  SiPixelPhase1TrackClustersOnTrackPositionB,
224  SiPixelPhase1TrackClustersOnTrackPositionF,
225 
226  SiPixelPhase1TrackClustersOffTrackCharge,
227  SiPixelPhase1TrackClustersOffTrackSize,
228  SiPixelPhase1TrackClustersOffTrackNClusters,
229  SiPixelPhase1TrackClustersOffTrackPositionB,
230  SiPixelPhase1TrackClustersOffTrackPositionF,
231 
232  SiPixelPhase1TrackClustersNTracks,
233  SiPixelPhase1TrackClustersNTracksInVolume,
234 )
235 
236 
237 SiPixelPhase1TrackClustersAnalyzer = cms.EDAnalyzer("SiPixelPhase1TrackClusters",
238  clusters = cms.InputTag("siPixelClusters"),
239  tracks = cms.InputTag("generalTracks"),
240  histograms = SiPixelPhase1TrackClustersConf,
241  geometry = SiPixelPhase1Geometry
242 )
243 
244 SiPixelPhase1TrackClustersHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
245  histograms = SiPixelPhase1TrackClustersConf,
246  geometry = SiPixelPhase1Geometry
247 )
DQM Environment
save
Definition: cuy.py:1163