Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-23 23:24:12

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 #Client:
0009 sipixelEDAClient = DQMEDHarvester("SiPixelEDAClient",
0010     EventOffsetForInit = cms.untracked.int32(10),
0011     ActionOnLumiSection = cms.untracked.bool(False),
0012     ActionOnRunEnd = cms.untracked.bool(True),
0013     HighResolutionOccupancy = cms.untracked.bool(False),
0014     NoiseRateCutValue = cms.untracked.double(-1.),
0015     NEventsForNoiseCalculation = cms.untracked.int32(100000),
0016     UseOfflineXMLFile = cms.untracked.bool(True),
0017     Tier0Flag = cms.untracked.bool(True),
0018     DoHitEfficiency = cms.untracked.bool(True),
0019     isUpgrade = cms.untracked.bool(False)
0020 )
0021 
0022 #QualityTester
0023 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0024 sipixelQTester = DQMQualityTester(
0025     qtList = cms.untracked.FileInPath('DQM/SiPixelMonitorClient/test/sipixel_tier0_qualitytest.xml'),
0026     prescaleFactor = cms.untracked.int32(1),
0027     getQualityTestsFromFile = cms.untracked.bool(True),
0028     label = cms.untracked.string("SiPixelDQMQTests"),
0029     verboseQT = cms.untracked.bool(False)
0030 )
0031 
0032 #Heavy Ion QualityTester
0033 sipixelQTesterHI = sipixelQTester.clone(
0034     qtList = 'DQM/SiPixelMonitorClient/test/sipixel_tier0_qualitytest_heavyions.xml'
0035 )
0036 
0037 #DataCertification:
0038 sipixelDaqInfo = DQMEDHarvester("SiPixelDaqInfo")
0039 sipixelDcsInfo = DQMEDHarvester("SiPixelDcsInfo")
0040 sipixelCertification = DQMEDHarvester("SiPixelCertification")
0041 
0042 #Predefined Sequences:
0043 PixelOfflineDQMClient = cms.Sequence(sipixelEDAClient)
0044 PixelOfflineDQMClientWithDataCertification = cms.Sequence(sipixelQTester+
0045                                                           sipixelEDAClient+
0046                                                           sipixelDaqInfo+
0047                                                           sipixelDcsInfo)
0048 PixelOfflineDQMClientNoDataCertification = cms.Sequence(sipixelQTester+
0049                                                           sipixelEDAClient)
0050 PixelOfflineDQMClientNoDataCertification_cosmics = cms.Sequence(sipixelQTester+
0051                                                           sipixelEDAClient)
0052 
0053 PixelOfflineDQMClientWithDataCertificationHI = cms.Sequence(PixelOfflineDQMClientNoDataCertification)
0054 PixelOfflineDQMClientWithDataCertificationHI.replace(sipixelQTester,sipixelQTesterHI)
0055 
0056 # Modify for running with the Phase 1 pixel detector.
0057 from DQM.SiPixelPhase1Config.SiPixelPhase1OfflineDQM_harvesting_cff import *
0058 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
0059 phase1Pixel.toReplaceWith(PixelOfflineDQMClient, siPixelPhase1OfflineDQM_harvesting)
0060 #TODO: properly upgrade these and the others
0061 phase1Pixel.toReplaceWith(PixelOfflineDQMClientNoDataCertification, siPixelPhase1OfflineDQM_harvesting)
0062 phase1Pixel.toReplaceWith(PixelOfflineDQMClientNoDataCertification_cosmics, siPixelPhase1OfflineDQM_harvesting_cosmics)
0063 phase1Pixel.toReplaceWith(PixelOfflineDQMClientWithDataCertification, siPixelPhase1OfflineDQM_harvesting)
0064 phase1Pixel.toReplaceWith(PixelOfflineDQMClientWithDataCertificationHI, siPixelPhase1OfflineDQM_harvesting_hi)