CMS 3D CMS Logo

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