Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-05 00:07:46

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 
0004 #
0005 # This object is used to make changes for different running scenarios
0006 #
0007 
0008 SiPixelPhase1SummaryOnline = DQMEDHarvester("SiPixelPhase1Summary",
0009     TopFolderName = cms.string('PixelPhase1/Phase1_MechanicalView/'),
0010     RunOnEndLumi = cms.bool(True),
0011     RunOnEndJob = cms.bool(True),
0012     # schedule this module to run *after* the QTests.
0013     inputGeneration = cms.untracked.string('DQMGenerationQTest'),
0014     outputGeneration = cms.untracked.string('DQMGenerationSummary'),
0015     SummaryMaps = cms.VPSet(
0016         cms.PSet(
0017             MapName = cms.string("Digi"),
0018             MapHist = cms.string("mean_num_digis")
0019             ),
0020         cms.PSet(
0021             MapName = cms.string("ADC"),
0022             MapHist = cms.string("mean_adc")
0023             ),
0024         cms.PSet(
0025             MapName = cms.string("NClustsTotal"),
0026             MapHist = cms.string("mean_num_clusters")
0027             ),
0028         cms.PSet(
0029             MapName = cms.string("ClustWidthOnTrk"),
0030             MapHist = cms.string("mean_size")
0031             ),
0032         cms.PSet(
0033             MapName = cms.string("Charge"),
0034             MapHist = cms.string("mean_charge")
0035             )
0036         ),
0037     # Number of dead ROCs required to generate an error. Order must be layers 1-4, ring1, ring2.
0038     DeadROCErrorThreshold = cms.vdouble(0.2,0.2,0.2,0.2,0.2,0.2),
0039     DeadROCWarningThreshold = cms.vdouble(0.1,0.1,0.1,0.1,0.1,0.1)
0040 )
0041 
0042 SiPixelPhase1SummaryOffline = DQMEDHarvester("SiPixelPhase1Summary",
0043     TopFolderName = cms.string('PixelPhase1/Phase1_MechanicalView/'),
0044     RunOnEndLumi = cms.bool(False),
0045     RunOnEndJob = cms.bool(True),
0046     # schedule this module to run *after* the QTests.
0047     inputGeneration = cms.untracked.string('DQMGenerationQTest'),
0048     outputGeneration = cms.untracked.string('DQMGenerationSummary'),
0049     SummaryMaps = cms.VPSet(
0050         cms.PSet(
0051             MapName = cms.string("Digi"),
0052             MapHist = cms.string("mean_num_digis")
0053             ),
0054         cms.PSet(
0055             MapName = cms.string("ADC"),
0056             MapHist = cms.string("mean_adc")
0057             ),
0058         cms.PSet(
0059             MapName = cms.string("NClustsTotal"),
0060             MapHist = cms.string("mean_num_clusters")
0061             ),
0062         cms.PSet(
0063             MapName = cms.string("ClustWidthOnTrk"),
0064             MapHist = cms.string("mean_size")
0065             ),
0066         cms.PSet(
0067             MapName = cms.string("Charge"),
0068             MapHist = cms.string("mean_charge")
0069             )
0070         ),
0071         DeadROCErrorThreshold = cms.vdouble(0.2,0.2,0.2,0.2,0.2,0.2),
0072         DeadROCWarningThreshold = cms.vdouble(0.1,0.1,0.1,0.1,0.1,0.1)
0073 )
0074 
0075 SiPixelPhase1SummaryCosmics = DQMEDHarvester("SiPixelPhase1Summary",
0076     TopFolderName = cms.string('PixelPhase1/Phase1_MechanicalView/'),
0077     RunOnEndLumi = cms.bool(False),
0078     RunOnEndJob = cms.bool(True),
0079     # schedule this module to run *after* the QTests.
0080     inputGeneration = cms.untracked.string('DQMGenerationQTest'),
0081     outputGeneration = cms.untracked.string('DQMGenerationSummary'),
0082     SummaryMaps = cms.VPSet(
0083         cms.PSet(
0084             MapName = cms.string("Digi"),
0085             MapHist = cms.string("mean_num_digis")
0086             ),
0087         cms.PSet(
0088             MapName = cms.string("ClustWidthOnTrk"),
0089             MapHist = cms.string("mean_size")
0090             ),
0091         cms.PSet(
0092             MapName = cms.string("Charge"),
0093             MapHist = cms.string("mean_charge")
0094             )
0095         ),
0096         DeadROCErrorThreshold = cms.vdouble(0.2,0.2,0.2,0.2,0.2,0.2),
0097         DeadROCWarningThreshold = cms.vdouble(0.1,0.1,0.1,0.1,0.1,0.1)
0098 )
0099 
0100 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0101 ADCQTester = DQMQualityTester(
0102     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_adc_qualitytest_config.xml'),
0103     QualityTestPrescaler = cms.untracked.int32(1),
0104     getQualityTestsFromFile = cms.untracked.bool(True),
0105     qtestOnEndLumi = cms.untracked.bool(True),
0106     qtestOnEndJob = cms.untracked.bool(True),
0107     reportThreshold = cms.untracked.string("more")
0108 )
0109 
0110 ADCQTester_offline = DQMQualityTester(
0111     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_adc_qualitytest_config.xml'),
0112     QualityTestPrescaler = cms.untracked.int32(1),
0113     getQualityTestsFromFile = cms.untracked.bool(True),
0114     qtestOnEndLumi = cms.untracked.bool(False),
0115     qtestOnEndJob = cms.untracked.bool(True),
0116     reportThreshold = cms.untracked.string("more")
0117 )
0118 
0119 NumClustersQTester = DQMQualityTester(
0120     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_num_clusters_qualitytest_config.xml'),
0121     QualityTestPrescaler = cms.untracked.int32(1),
0122     getQualityTestsFromFile = cms.untracked.bool(True),
0123     qtestOnEndLumi = cms.untracked.bool(True),
0124     qtestOnEndJob = cms.untracked.bool(True),
0125     reportThreshold = cms.untracked.string("more")
0126 )
0127 
0128 NumClustersQTester_offline = DQMQualityTester(
0129     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_num_clusters_qualitytest_config.xml'),
0130     QualityTestPrescaler = cms.untracked.int32(1),
0131     getQualityTestsFromFile = cms.untracked.bool(True),
0132     qtestOnEndLumi = cms.untracked.bool(False),
0133     qtestOnEndJob = cms.untracked.bool(True),
0134     reportThreshold = cms.untracked.string("more")
0135 )
0136 
0137 NumDigisQTester = DQMQualityTester(
0138     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_num_digis_qualitytest_config.xml'),
0139     QualityTestPrescaler = cms.untracked.int32(1),
0140     getQualityTestsFromFile = cms.untracked.bool(True),
0141     qtestOnEndLumi = cms.untracked.bool(True),
0142     qtestOnEndJob = cms.untracked.bool(True),
0143     reportThreshold = cms.untracked.string("more")
0144 )
0145 
0146 NumDigisQTester_offline = DQMQualityTester(
0147     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_num_digis_qualitytest_config.xml'),
0148     QualityTestPrescaler = cms.untracked.int32(1),
0149     getQualityTestsFromFile = cms.untracked.bool(True),
0150     qtestOnEndLumi = cms.untracked.bool(False),
0151     qtestOnEndJob = cms.untracked.bool(True),
0152     reportThreshold = cms.untracked.string("more")
0153 )
0154 
0155 NumDigisQTester_cosmics = DQMQualityTester(
0156     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_num_digis_qualitytest_config_cosmics.xml'),
0157     QualityTestPrescaler = cms.untracked.int32(1),
0158     getQualityTestsFromFile = cms.untracked.bool(True),
0159     qtestOnEndLumi = cms.untracked.bool(False),
0160     qtestOnEndJob = cms.untracked.bool(True),
0161     reportThreshold = cms.untracked.string("more")
0162 )
0163 
0164 SizeQTester = DQMQualityTester(
0165     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_size_qualitytest_config.xml'),
0166     QualityTestPrescaler = cms.untracked.int32(1),
0167     getQualityTestsFromFile = cms.untracked.bool(True),
0168     qtestOnEndLumi = cms.untracked.bool(True),
0169     qtestOnEndJob = cms.untracked.bool(True),
0170     reportThreshold = cms.untracked.string("more")
0171 )
0172 
0173 SizeQTester_offline = DQMQualityTester(
0174     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_size_qualitytest_config.xml'),
0175     QualityTestPrescaler = cms.untracked.int32(1),
0176     getQualityTestsFromFile = cms.untracked.bool(True),
0177     qtestOnEndLumi = cms.untracked.bool(False),
0178     qtestOnEndJob = cms.untracked.bool(True),
0179     reportThreshold = cms.untracked.string("more")
0180 )
0181 
0182 SizeQTester_cosmics = DQMQualityTester(
0183     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_size_qualitytest_config_cosmics.xml'),
0184     QualityTestPrescaler = cms.untracked.int32(1),
0185     getQualityTestsFromFile = cms.untracked.bool(True),
0186     qtestOnEndLumi = cms.untracked.bool(False),
0187     qtestOnEndJob = cms.untracked.bool(True),
0188     reportThreshold = cms.untracked.string("more")
0189 )
0190 
0191 ChargeQTester = DQMQualityTester(
0192     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_charge_qualitytest_config.xml'),
0193     QualityTestPrescaler = cms.untracked.int32(1),
0194     getQualityTestsFromFile = cms.untracked.bool(True),
0195     qtestOnEndLumi = cms.untracked.bool(True),
0196     qtestOnEndJob = cms.untracked.bool(True),
0197     reportThreshold = cms.untracked.string("more")
0198 )
0199 
0200 ChargeQTester_offline = DQMQualityTester(
0201     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_charge_qualitytest_config.xml'),
0202     QualityTestPrescaler = cms.untracked.int32(1),
0203     getQualityTestsFromFile = cms.untracked.bool(True),
0204     qtestOnEndLumi = cms.untracked.bool(False),
0205     qtestOnEndJob = cms.untracked.bool(True),
0206     reportThreshold = cms.untracked.string("more")
0207 )
0208 
0209 ChargeQTester_cosmics = DQMQualityTester(
0210     qtList = cms.untracked.FileInPath('DQM/SiPixelPhase1Config/test/qTests/mean_charge_qualitytest_config_cosmics.xml'),
0211     QualityTestPrescaler = cms.untracked.int32(1),
0212     getQualityTestsFromFile = cms.untracked.bool(True),
0213     qtestOnEndLumi = cms.untracked.bool(False),
0214     qtestOnEndJob = cms.untracked.bool(True),
0215     reportThreshold = cms.untracked.string("more")
0216 )
0217 
0218 RunQTests_online = cms.Sequence(ADCQTester * NumClustersQTester * NumDigisQTester * SizeQTester * ChargeQTester)
0219 RunQTests_offline = cms.Sequence(ADCQTester_offline * NumClustersQTester_offline * NumDigisQTester_offline * SizeQTester_offline * ChargeQTester_offline)
0220 RunQTests_cosmics = cms.Sequence(NumDigisQTester_cosmics * SizeQTester_cosmics * ChargeQTester_cosmics)