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