CMS 3D CMS Logo

OnDemandMonitoring_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQM.SiStripMonitorSummary.SiStripMonitorCommon_cfi import MonitorSiStrip_PSet
4 
5 OnDemandMonitoring = cms.EDAnalyzer("SiStripMonitorCondDataOnDemandExample",
6 
7  OutputMEsInRootFile = cms.bool(False),
8  OutputFileName = cms.string('SiStripMonitorCondDataOnDemandExample.root'),
9 
10  MonitorSiStrip_PSet = MonitorSiStrip_PSet,
11 
12  FillConditions_PSet = cms.PSet(
13  FolderName_For_QualityAndCabling_SummaryHistos= cms.string("SiStrip/Tracks"),
14  OutputSummaryAtLayerLevelAsImage = cms.bool(False),
15  OutputSummaryProfileAtLayerLevelAsImage = cms.bool(False),
16  OutputCumulativeSummaryAtLayerLevelAsImage = cms.bool(False),
17  Mod_On = cms.bool(False),
18  HistoMaps_On = cms.bool(False),
19  SummaryOnStringLevel_On = cms.bool(False),
20  SummaryOnLayerLevel_On = cms.bool(False),
21  GrandSummary_On = cms.bool(False),
22  StripQualityLabel = cms.string(''),
23 
24  ActiveDetIds_On = cms.bool(False),
25  TkMap_On = cms.bool(False),
26 
27  # exclude OR include a set of modules
28  restrictModules = cms.bool(False),
29  ModulesToBeIncluded_DetIdSelector = cms.vstring(
30 # "0x1e000000-0x16000000", #TIB
31 # "0x1e000000-0x18000000", #TID
32 # "0x1e006000-0x18002000", #TIDm
33 # "0x1e006000-0x18004000", #TIDp
34 # "0x1e000000-0x1a000000", #TOB
35 # "0x1e000000-0x1c000000", #TEC
36 # "0x1e0c0000-0x1c040000", #TECm
37 # "0x1e0c0000-0x1c080000" #TECp
38  ),
39  ModulesToBeExcluded_DetIdSelector = cms.vstring(
40 # "0x1e000000-0x16000000", #TIB
41 # "0x1e000000-0x18000000", #TID
42 # "0x1e006000-0x18002000", #TIDm
43 # "0x1e006000-0x18004000", #TIDp
44 # "0x1e000000-0x1a000000", #TOB
45 # "0x1e000000-0x1c000000", #TEC
46 # "0x1e0c0000-0x1c040000", #TECm
47 # "0x1e0c0000-0x1c080000" #TECp
48  ),
49 
50  ModulesToBeIncluded = cms.vuint32(), #e.g. {369120277, 369120278, 369120282}
51  ModulesToBeExcluded = cms.vuint32(),
52 
53  # exclude a subdetector
54  SubDetectorsToBeExcluded = cms.vstring('none'), #possibilities : "none" or
55  #combinations of {"TIB","TOB","TID","TEC" }
56  ModulesToBeFilled = cms.string('all')
57 
58  ),
59  # -----
60 
61  SiStripCablingDQM_PSet = cms.PSet(
62 
63  ActiveDetIds_On = cms.bool(True),
64 
65  TkMap_On = cms.bool(False),
66  TkMapName = cms.string('CablingTkMap.png'),
67  minValue = cms.double(0.),
68  maxValue = cms.double(6.),
69 
70  CondObj_fillId = cms.string('onlyProfile'),
71  CondObj_name = cms.string('fedcabling')
72  ),
73 
74  # -----
75  SiStripLowThresholdDQM_PSet = cms.PSet(
76 
77  ActiveDetIds_On = cms.bool(True),
78 
79  TkMap_On = cms.bool(False),
80  TkMapName = cms.string('LowThresholdTkMap.png'),
81  minValue = cms.double(0.),
82  maxValue = cms.double(10.),
83 
84  WhichThreshold= cms.string('Low'),
85 
86  CondObj_fillId = cms.string('onlyProfile'),
87  CondObj_name = cms.string('lowthreshold'),
88 
89  FillSummaryAtLayerLevel= cms.bool(True),
90  FillSummaryProfileAtLayerLevel=cms.bool(False),
91  FillCumulativeSummaryAtLayerLevel = cms.bool(False),
92 
93  Profile_description = cms.string('Profile_LowThresholdFromCondDB'),
94  Profile_xTitle = cms.string('Strip Number'),
95  Profile_yTitle = cms.string('Low Threshold from CondDB(ADC)'),
96 
97  SummaryOfProfile_description = cms.string('ProfileSummary_LowThresholdFromCondDB'),
98  SummaryOfProfile_xTitle = cms.string('Strip Number'),
99  SummaryOfProfile_yTitle = cms.string('Low Threshold from CondDB(ADC)'),
100  SummaryOfProfile_NchY = cms.int32(100),
101  SummaryOfProfile_LowY = cms.double(0),
102  SummaryOfProfile_HighY = cms.double(10),
103 
104 
105 
106  Summary_description = cms.string('Summary_LowThresholdFromCondDB'),
107  Summary_xTitle = cms.string('detId'),
108  Summary_yTitle = cms.string('Low Threshold from CondDB(ADC)'),
109  Summary_NchY = cms.int32(100),
110  Summary_LowY = cms.double(0),
111  Summary_HighY = cms.double(10)
112  ),
113 
114  # -----
115  SiStripHighThresholdDQM_PSet = cms.PSet(
116 
117  ActiveDetIds_On = cms.bool(True),
118 
119  TkMap_On = cms.bool(False),
120  TkMapName = cms.string('HighThresholdTkMap.png'),
121  minValue = cms.double(0.),
122  maxValue = cms.double(10.),
123 
124  WhichThreshold= cms.string('High'),
125 
126  CondObj_fillId = cms.string('onlyProfile'),
127  CondObj_name = cms.string('highthreshold'),
128 
129  FillSummaryAtLayerLevel= cms.bool(True),
130  FillSummaryProfileAtLayerLevel=cms.bool(False),
131  FillCumulativeSummaryAtLayerLevel = cms.bool(False),
132 
133  Profile_description = cms.string('Profile_HighThresholdFromCondDB'),
134  Profile_xTitle = cms.string('Strip Number'),
135  Profile_yTitle = cms.string('High Threshold from CondDB(ADC)'),
136 
137  SummaryOfProfile_description = cms.string('ProfileSummary_HighThresholdFromCondDB'),
138  SummaryOfProfile_xTitle = cms.string('Strip Number'),
139  SummaryOfProfile_yTitle = cms.string('High Threshold from CondDB(ADC)'),
140  SummaryOfProfile_NchY = cms.int32(100),
141  SummaryOfProfile_LowY = cms.double(0),
142  SummaryOfProfile_HighY = cms.double(10),
143 
144 
145  Summary_description = cms.string('Summary_HighThresholdFromCondDB'),
146  Summary_xTitle = cms.string('detId'),
147  Summary_yTitle = cms.string('High Threshold from CondDB(ADC)'),
148  Summary_NchY = cms.int32(100),
149  Summary_LowY = cms.double(0),
150  Summary_HighY = cms.double(10)
151  ),
152 
153  # -----
154  SiStripApvGainsDQM_PSet = cms.PSet(
155 
156  ActiveDetIds_On = cms.bool(True),
157 
158  TkMap_On = cms.bool(False),
159  TkMapName = cms.string('GainTkMap.svg'),
160  minValue = cms.double(0.),
161  maxValue = cms.double(1.5),
162 
163  CondObj_name = cms.string('apvgain'),
164  CondObj_fillId = cms.string('ProfileAndCumul'),
165 
166  FillSummaryAtLayerLevel = cms.bool(True),
167  FillSummaryProfileAtLayerLevel = cms.bool(False),
168 
169  Profile_description = cms.string('Profile_ApvGainFromCondDB'),
170  Profile_xTitle = cms.string('Apv Number'),
171  Profile_yTitle = cms.string('ApvGain from CondDB'),
172 
173  Cumul_description = cms.string('ApvGainFromCondDB'),
174  Cumul_xTitle = cms.string('ApvGain from CondDB'),
175  Cumul_yTitle = cms.string(' '),
176  Cumul_NchX = cms.int32(50),
177  Cumul_LowX = cms.double(0.5),
178  Cumul_HighX = cms.double(1.5),
179 
180  SummaryOfProfile_description = cms.string('ProfileSummary_ApvGainFromCondDB'),
181  SummaryOfProfile_xTitle = cms.string('Apv Number'),
182  SummaryOfProfile_yTitle = cms.string('ApvGain from CondDB'),
183  SummaryOfProfile_NchY = cms.int32(50),
184  SummaryOfProfile_LowY = cms.double(0.5),
185  SummaryOfProfile_HighY = cms.double(1.5),
186 
187  Summary_description = cms.string('Summary_ApvGainFromCondDB'),
188  Summary_xTitle = cms.string('detId'),
189  Summary_yTitle = cms.string('ApvGain from CondDB'),
190  Summary_NchY = cms.int32(50),
191  Summary_LowY = cms.double(0.5),
192  Summary_HighY = cms.double(1.5)
193 
194  ),
195 
196  # -----
197  SiStripQualityDQM_PSet = cms.PSet(
198 
199  ActiveDetIds_On = cms.bool(True),
200 
201  TkMap_On = cms.bool(False),
202  TkMapName = cms.string('QualityTkMap.svg'),
203  minValue = cms.double(0.),
204  maxValue = cms.double(100.),
205 
206  CondObj_name = cms.string('quality'),
207  CondObj_fillId = cms.string('onlyProfile'),
208 
209  FillSummaryAtLayerLevel = cms.bool(True),
210 
211  Profile_description = cms.string('Profile_QualityFlagFromCondDB'),
212  Profile_xTitle = cms.string('Strip Number'),
213  Profile_yTitle = cms.string('Quality Flag from CondDB'),
214 
215  Summary_description = cms.string('Summary_FractionOfBadStripsFromCondDB'),
216  Summary_xTitle = cms.string('detId'),
217  Summary_yTitle = cms.string('Fraction of bad strips from CondDB(%)'),
218  Summary_NchY = cms.int32(100),
219  Summary_LowY = cms.double(0.5),
220  Summary_HighY = cms.double(100.5),
221 
222  Summary_BadObjects_histo_xTitle =cms.string('Sub Det And Layer'),
223 
224  Summary_BadModules_histo_name =cms.string('Summary_BadModules_FromCondDB'),
225  Summary_BadModules_histo_yTitle =cms.string('Number of bad Modules from CondDB'),
226 
227  Summary_BadFibers_histo_name =cms.string('Summary_BadFibers_FromCondDB'),
228  Summary_BadFibers_histo_yTitle =cms.string('Number of bad Fibers from CondDB'),
229 
230  Summary_BadApvs_histo_name =cms.string('Summary_BadApvs_FromCondDB'),
231  Summary_BadApvs_histo_yTitle =cms.string('Number of bad Apvs from CondDB'),
232 
233  Summary_BadStrips_histo_name =cms.string('Summary_BadStrips_FromCondDB'),
234  Summary_BadStrips_histo_yTitle =cms.string('Number of bad Strips from CondDB'),
235 
236  SummaryOfCumul_description =cms.string('CumulativeSummary_SiStripQualityFromCondDB'),
237  SummaryOfCumul_xTitle =cms.string('SiStripQualityfrom CondDB'),
238  SummaryOfCumul_yTitle =cms.string(' '),
239 
240  SummaryOfCumul_NchX = cms.int32(100),
241  SummaryOfCumul_LowX = cms.double(0.0),
242  SummaryOfCumul_HighX = cms.double(100.0)
243 
244  ),
245 
246  # -----
247  SiStripLorentzAngleDQM_PSet = cms.PSet(
248 
249  ActiveDetIds_On = cms.bool(False),
250 
251  TkMap_On = cms.bool(False),
252  TkMapName = cms.string('LorentzAngleTkMap.png'),
253  minValue = cms.double(0.01),
254  maxValue = cms.double(0.03),
255 
256  CondObj_name = cms.string('lorentzangle'),
257  CondObj_fillId = cms.string('ProfileAndCumul'),
258 
259  FillSummaryProfileAtLayerLevel = cms.bool(True),
260  FillCumulativeSummaryAtLayerLevel = cms.bool(True),
261 
262  SummaryOfCumul_description = cms.string('ProfileSummary_LorentzAngleFromCondDB'),
263  SummaryOfCumul_xTitle = cms.string('LorentzAngle from CondDB'),
264  SummaryOfCumul_yTitle = cms.string(' '),
265  SummaryOfCumul_NchX = cms.int32(50),
266  SummaryOfCumul_LowX = cms.double(0.01),
267  SummaryOfCumul_HighX = cms.double(0.06),
268 
269  SummaryOfProfile_description = cms.string('Summary_LorentzAngleFromCondDB'),
270  SummaryOfProfile_xTitle = cms.string('detId'),
271  SummaryOfProfile_yTitle = cms.string('LorentzAngle from CondDB'),
272  SummaryOfProfile_NchY = cms.int32(50),
273  SummaryOfProfile_LowY = cms.double(0.01),
274  SummaryOfProfile_HighY = cms.double(0.06)
275 
276  ),
277 
278  # -----
279  SiStripBackPlaneCorrectionDQM_PSet = cms.PSet(
280 
281  ActiveDetIds_On = cms.bool(False),
282 
283  TkMap_On = cms.bool(False),
284  TkMapName = cms.string('BackPlaneCorrectionTkMap.png'),
285  minValue = cms.double(0.00),
286  maxValue = cms.double(0.10),
287 
288  CondObj_name = cms.string('bpcorrection'),
289  CondObj_fillId = cms.string('ProfileAndCumul'),
290 
291  FillSummaryProfileAtLayerLevel = cms.bool(True),
292  FillCumulativeSummaryAtLayerLevel = cms.bool(True),
293 
294  SummaryOfCumul_description = cms.string('ProfileSummary_BackPlaneCorrectionFromCondDB'),
295  SummaryOfCumul_xTitle = cms.string('BackPlaneCorrection from CondDB'),
296  SummaryOfCumul_yTitle = cms.string(' '),
297  SummaryOfCumul_NchX = cms.int32(50),
298  SummaryOfCumul_LowX = cms.double(0.00),
299  SummaryOfCumul_HighX = cms.double(0.10),
300 
301  SummaryOfProfile_description = cms.string('Summary_BackPlaneCorrectionFromCondDB'),
302  SummaryOfProfile_xTitle = cms.string('detId'),
303  SummaryOfProfile_yTitle = cms.string('BackPlaneCorrection from CondDB'),
304  SummaryOfProfile_NchY = cms.int32(50),
305  SummaryOfProfile_LowY = cms.double(0.00),
306  SummaryOfProfile_HighY = cms.double(0.10)
307 
308  ),
309 
310  # -----
311  SiStripNoisesDQM_PSet = cms.PSet(
312 
313  ActiveDetIds_On = cms.bool(True),
314 
315  TkMap_On = cms.bool(False),
316  TkMapName = cms.string('NoiseTkMap.png'),
317  minValue = cms.double(0.),
318  maxValue = cms.double(6.),
319 
320  CondObj_fillId = cms.string('onlyProfile'),
321  CondObj_name = cms.string('noise'),
322 
323  GainRenormalisation = cms.bool(False),
324  SimGainRenormalisation = cms.bool(False),
325 
326  FillSummaryAtLayerLevel = cms.bool(True),
327  FillSummaryProfileAtLayerLevel = cms.bool(True),
328  FillCumulativeSummaryAtLayerLevel = cms.bool(True),
329 
330  Profile_description = cms.string('Profile_NoiseFromCondDB'),
331  Profile_xTitle = cms.string('Strip Number'),
332  Profile_yTitle = cms.string('Noise from CondDB(ADC)'),
333 
334  Cumul_description = cms.string('NoiseFromCondDB'),
335  Cumul_xTitle = cms.string('Noise from CondDB(ADC)'),
336  Cumul_yTitle = cms.string(' '),
337  Cumul_NchX = cms.int32(50),
338  Cumul_LowX = cms.double(0.0),
339  Cumul_HighX = cms.double(6.0),
340 
341  SummaryOfProfile_description = cms.string('ProfileSummary_NoiseFromCondDB'),
342  SummaryOfProfile_xTitle = cms.string('Strip Number'),
343  SummaryOfProfile_yTitle = cms.string('Noise from CondDB(ADC)'),
344  SummaryOfProfile_NchY = cms.int32(50),
345  SummaryOfProfile_LowY = cms.double(0.0),
346  SummaryOfProfile_HighY = cms.double(6.0),
347 
348  Summary_description = cms.string('Summary_NoiseFromCondDB'),
349  Summary_xTitle = cms.string('detId'),
350  Summary_yTitle = cms.string('Noise from CondDB(ADC)'),
351  Summary_NchY = cms.int32(50),
352  Summary_LowY = cms.double(0.0),
353  Summary_HighY = cms.double(6.0),
354 
355  SummaryOfCumul_description = cms.string('CumulativeSummary_NoiseFromCondDB'),
356  SummaryOfCumul_xTitle = cms.string('Noise from CondDB'),
357  SummaryOfCumul_yTitle = cms.string(' '),
358  SummaryOfCumul_NchX = cms.int32(50),
359  SummaryOfCumul_LowX = cms.double(0.0),
360  SummaryOfCumul_HighX = cms.double(10.0)
361 
362  ),
363 
364  # -----
365  SiStripPedestalsDQM_PSet = cms.PSet(
366 
367  ActiveDetIds_On = cms.bool(True),
368 
369  TkMap_On = cms.bool(False),
370  TkMapName = cms.string('PedestalTkMap.png'),
371  minValue = cms.double(0.),
372  maxValue = cms.double(400.),
373 
374  CondObj_fillId = cms.string('onlyProfile'),
375  CondObj_name = cms.string('pedestal'),
376 
377  FillSummaryAtLayerLevel = cms.bool(True),
378  FillSummaryProfileAtLayerLevel = cms.bool(False),
379 
380  Profile_description = cms.string('Profile_PedestalFromCondDB'),
381  Profile_xTitle = cms.string('Strip Number'),
382  Profile_yTitle = cms.string('Pedestal from CondDB(ADC)'),
383 
384  SummaryOfProfile_description = cms.string('ProfileSummary_PedestalFromCondDB'),
385  SummaryOfProfile_xTitle = cms.string('Strip Number'),
386  SummaryOfProfile_yTitle = cms.string('Pedestal from CondDB(ADC)'),
387  SummaryOfProfile_NchY = cms.int32(100),
388  SummaryOfProfile_LowY = cms.double(0.0),
389  SummaryOfProfile_HighY = cms.double(1000.0),
390 
391  Summary_description = cms.string('Summary_PedestalFromCondDB'),
392  Summary_xTitle = cms.string('detId'),
393  Summary_yTitle = cms.string('Pedestal from CondDB(ADC)'),
394  Summary_NchY = cms.int32(100),
395  Summary_LowY = cms.double(0.0),
396  Summary_HighY = cms.double(1000.0)
397 
398  )
399 
400 )
401 
402