CMS 3D CMS Logo

SiPixelPhase1Summary_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
3 
4 #
5 # This object is used to make changes for different running scenarios
6 #
7 
8 SiPixelPhase1SummaryOnline = DQMEDHarvester("SiPixelPhase1Summary",
9  TopFolderName = cms.string('PixelPhase1/Phase1_MechanicalView/'),
10  RunOnEndLumi = cms.bool(True),
11  RunOnEndJob = cms.bool(True),
12  SummaryMaps = cms.VPSet(
13  cms.PSet(
14  MapName = cms.string("Digi"),
15  MapHist = cms.string("mean_num_digis")
16  ),
17  cms.PSet(
18  MapName = cms.string("ADC"),
19  MapHist = cms.string("mean_adc")
20  ),
21  cms.PSet(
22  MapName = cms.string("NClustsTotal"),
23  MapHist = cms.string("mean_num_clusters")
24  ),
25  cms.PSet(
26  MapName = cms.string("ClustWidthOnTrk"),
27  MapHist = cms.string("mean_size")
28  ),
29  cms.PSet(
30  MapName = cms.string("Charge"),
31  MapHist = cms.string("mean_charge")
32  )
33  ),
34  # Number of dead ROCs required to generate an error. Order must be layers 1-4, ring1, ring2.
35  DeadROCErrorThreshold = cms.vdouble(0.2,0.2,0.2,0.2,0.2,0.2)
36 )
37 
38 SiPixelPhase1SummaryOffline = DQMEDHarvester("SiPixelPhase1Summary",
39  TopFolderName = cms.string('PixelPhase1/Phase1_MechanicalView/'),
40  RunOnEndLumi = cms.bool(False),
41  RunOnEndJob = cms.bool(True),
42  SummaryMaps = cms.VPSet(
43  cms.PSet(
44  MapName = cms.string("Digi"),
45  MapHist = cms.string("mean_num_digis")
46  ),
47  cms.PSet(
48  MapName = cms.string("ADC"),
49  MapHist = cms.string("mean_adc")
50  ),
51  cms.PSet(
52  MapName = cms.string("NClustsTotal"),
53  MapHist = cms.string("mean_num_clusters")
54  ),
55  cms.PSet(
56  MapName = cms.string("ClustWidthOnTrk"),
57  MapHist = cms.string("mean_size")
58  ),
59  cms.PSet(
60  MapName = cms.string("Charge"),
61  MapHist = cms.string("mean_charge")
62  )
63  ),
64  DeadROCErrorThreshold = cms.vdouble(0.2,0.2,0.2,0.2,0.2,0.2)
65 
66 )
67 
68 SiPixelPhase1SummaryCosmics = DQMEDHarvester("SiPixelPhase1Summary",
69  TopFolderName = cms.string('PixelPhase1/Phase1_MechanicalView/'),
70  RunOnEndLumi = cms.bool(False),
71  RunOnEndJob = cms.bool(True),
72  SummaryMaps = cms.VPSet(
73  cms.PSet(
74  MapName = cms.string("Digi"),
75  MapHist = cms.string("mean_num_digis")
76  ),
77  cms.PSet(
78  MapName = cms.string("ClustWidthOnTrk"),
79  MapHist = cms.string("mean_size")
80  ),
81  cms.PSet(
82  MapName = cms.string("Charge"),
83  MapHist = cms.string("mean_charge")
84  )
85  ),
86  DeadROCErrorThreshold = cms.vdouble(0.2,0.2,0.2,0.2,0.2,0.2)
87 )
88 
89 from DQMServices.Core.DQMQualityTester import DQMQualityTester
90 ADCQTester = DQMQualityTester(
91  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_adc_qualitytest_config.xml'),
92  QualityTestPrescaler = cms.untracked.int32(1),
93  getQualityTestsFromFile = cms.untracked.bool(True),
94  qtestOnEndLumi = cms.untracked.bool(True),
95  qtestOnEndJob = cms.untracked.bool(True),
96  reportThreshold = cms.untracked.string("more")
97 )
98 
99 ADCQTester_offline = DQMQualityTester(
100  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_adc_qualitytest_config.xml'),
101  QualityTestPrescaler = cms.untracked.int32(1),
102  getQualityTestsFromFile = cms.untracked.bool(True),
103  qtestOnEndLumi = cms.untracked.bool(False),
104  qtestOnEndJob = cms.untracked.bool(True),
105  reportThreshold = cms.untracked.string("more")
106 )
107 
108 NumClustersQTester = DQMQualityTester(
109  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_num_clusters_qualitytest_config.xml'),
110  QualityTestPrescaler = cms.untracked.int32(1),
111  getQualityTestsFromFile = cms.untracked.bool(True),
112  qtestOnEndLumi = cms.untracked.bool(True),
113  qtestOnEndJob = cms.untracked.bool(True),
114  reportThreshold = cms.untracked.string("more")
115 )
116 
117 NumClustersQTester_offline = DQMQualityTester(
118  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_num_clusters_qualitytest_config.xml'),
119  QualityTestPrescaler = cms.untracked.int32(1),
120  getQualityTestsFromFile = cms.untracked.bool(True),
121  qtestOnEndLumi = cms.untracked.bool(False),
122  qtestOnEndJob = cms.untracked.bool(True),
123  reportThreshold = cms.untracked.string("more")
124 )
125 
126 NumDigisQTester = DQMQualityTester(
127  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_num_digis_qualitytest_config.xml'),
128  QualityTestPrescaler = cms.untracked.int32(1),
129  getQualityTestsFromFile = cms.untracked.bool(True),
130  qtestOnEndLumi = cms.untracked.bool(True),
131  qtestOnEndJob = cms.untracked.bool(True),
132  reportThreshold = cms.untracked.string("more")
133 )
134 
135 NumDigisQTester_offline = DQMQualityTester(
136  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_num_digis_qualitytest_config.xml'),
137  QualityTestPrescaler = cms.untracked.int32(1),
138  getQualityTestsFromFile = cms.untracked.bool(True),
139  qtestOnEndLumi = cms.untracked.bool(False),
140  qtestOnEndJob = cms.untracked.bool(True),
141  reportThreshold = cms.untracked.string("more")
142 )
143 
144 NumDigisQTester_cosmics = DQMQualityTester(
145  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_num_digis_qualitytest_config_cosmics.xml'),
146  QualityTestPrescaler = cms.untracked.int32(1),
147  getQualityTestsFromFile = cms.untracked.bool(True),
148  qtestOnEndLumi = cms.untracked.bool(False),
149  qtestOnEndJob = cms.untracked.bool(True),
150  reportThreshold = cms.untracked.string("more")
151 )
152 
153 SizeQTester = DQMQualityTester(
154  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_size_qualitytest_config.xml'),
155  QualityTestPrescaler = cms.untracked.int32(1),
156  getQualityTestsFromFile = cms.untracked.bool(True),
157  qtestOnEndLumi = cms.untracked.bool(True),
158  qtestOnEndJob = cms.untracked.bool(True),
159  reportThreshold = cms.untracked.string("more")
160 )
161 
162 SizeQTester_offline = DQMQualityTester(
163  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_size_qualitytest_config.xml'),
164  QualityTestPrescaler = cms.untracked.int32(1),
165  getQualityTestsFromFile = cms.untracked.bool(True),
166  qtestOnEndLumi = cms.untracked.bool(False),
167  qtestOnEndJob = cms.untracked.bool(True),
168  reportThreshold = cms.untracked.string("more")
169 )
170 
171 SizeQTester_cosmics = DQMQualityTester(
172  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_size_qualitytest_config_cosmics.xml'),
173  QualityTestPrescaler = cms.untracked.int32(1),
174  getQualityTestsFromFile = cms.untracked.bool(True),
175  qtestOnEndLumi = cms.untracked.bool(False),
176  qtestOnEndJob = cms.untracked.bool(True),
177  reportThreshold = cms.untracked.string("more")
178 )
179 
180 ChargeQTester = DQMQualityTester(
181  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_charge_qualitytest_config.xml'),
182  QualityTestPrescaler = cms.untracked.int32(1),
183  getQualityTestsFromFile = cms.untracked.bool(True),
184  qtestOnEndLumi = cms.untracked.bool(True),
185  qtestOnEndJob = cms.untracked.bool(True),
186  reportThreshold = cms.untracked.string("more")
187 )
188 
189 ChargeQTester_offline = DQMQualityTester(
190  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_charge_qualitytest_config.xml'),
191  QualityTestPrescaler = cms.untracked.int32(1),
192  getQualityTestsFromFile = cms.untracked.bool(True),
193  qtestOnEndLumi = cms.untracked.bool(False),
194  qtestOnEndJob = cms.untracked.bool(True),
195  reportThreshold = cms.untracked.string("more")
196 )
197 
198 ChargeQTester_cosmics = DQMQualityTester(
199  qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_charge_qualitytest_config_cosmics.xml'),
200  QualityTestPrescaler = cms.untracked.int32(1),
201  getQualityTestsFromFile = cms.untracked.bool(True),
202  qtestOnEndLumi = cms.untracked.bool(False),
203  qtestOnEndJob = cms.untracked.bool(True),
204  reportThreshold = cms.untracked.string("more")
205 )
206 
207 RunQTests_online = cms.Sequence(ADCQTester * NumClustersQTester * NumDigisQTester * SizeQTester * ChargeQTester)
208 RunQTests_offline = cms.Sequence(ADCQTester_offline * NumClustersQTester_offline * NumDigisQTester_offline * SizeQTester_offline * ChargeQTester_offline)
209 RunQTests_cosmics = cms.Sequence(NumDigisQTester_cosmics * SizeQTester_cosmics * ChargeQTester_cosmics)