CMS 3D CMS Logo

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