CMS 3D CMS Logo

SiPixelOfflineDQM_client_cff.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 #Client:
9 sipixelEDAClient = DQMEDHarvester("SiPixelEDAClient",
10  EventOffsetForInit = cms.untracked.int32(10),
11  ActionOnLumiSection = cms.untracked.bool(False),
12  ActionOnRunEnd = cms.untracked.bool(True),
13  HighResolutionOccupancy = cms.untracked.bool(False),
14  NoiseRateCutValue = cms.untracked.double(-1.),
15  NEventsForNoiseCalculation = cms.untracked.int32(100000),
16  UseOfflineXMLFile = cms.untracked.bool(True),
17  Tier0Flag = cms.untracked.bool(True),
18  DoHitEfficiency = cms.untracked.bool(True),
19  isUpgrade = cms.untracked.bool(False)
20 )
21 
22 #QualityTester
23 from DQMServices.Core.DQMQualityTester import DQMQualityTester
24 sipixelQTester = DQMQualityTester(
25  qtList = cms.untracked.FileInPath('DQM/SiPixelMonitorClient/test/sipixel_tier0_qualitytest.xml'),
26  prescaleFactor = cms.untracked.int32(1),
27  getQualityTestsFromFile = cms.untracked.bool(True),
28  label = cms.untracked.string("SiPixelDQMQTests"),
29  verboseQT = cms.untracked.bool(False)
30 )
31 
32 #Heavy Ion QualityTester
33 sipixelQTesterHI = sipixelQTester.clone(
34  qtList = 'DQM/SiPixelMonitorClient/test/sipixel_tier0_qualitytest_heavyions.xml'
35 )
36 
37 #DataCertification:
38 sipixelDaqInfo = DQMEDHarvester("SiPixelDaqInfo")
39 sipixelDcsInfo = DQMEDHarvester("SiPixelDcsInfo")
40 sipixelCertification = DQMEDHarvester("SiPixelCertification")
41 
42 #Predefined Sequences:
43 PixelOfflineDQMClient = cms.Sequence(sipixelEDAClient)
44 PixelOfflineDQMClientWithDataCertification = cms.Sequence(sipixelQTester+
45  sipixelEDAClient+
46  sipixelDaqInfo+
47  sipixelDcsInfo)
48 PixelOfflineDQMClientNoDataCertification = cms.Sequence(sipixelQTester+
49  sipixelEDAClient)
50 PixelOfflineDQMClientNoDataCertification_cosmics = cms.Sequence(sipixelQTester+
51  sipixelEDAClient)
52 
53 PixelOfflineDQMClientWithDataCertificationHI = cms.Sequence(PixelOfflineDQMClientNoDataCertification)
54 PixelOfflineDQMClientWithDataCertificationHI.replace(sipixelQTester,sipixelQTesterHI)
55 
56 # Modify for running with the Phase 1 pixel detector.
58 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
59 phase1Pixel.toReplaceWith(PixelOfflineDQMClient, siPixelPhase1OfflineDQM_harvesting)
60 #TODO: properly upgrade these and the others
61 phase1Pixel.toReplaceWith(PixelOfflineDQMClientNoDataCertification, siPixelPhase1OfflineDQM_harvesting)
62 phase1Pixel.toReplaceWith(PixelOfflineDQMClientNoDataCertification_cosmics, siPixelPhase1OfflineDQM_harvesting_cosmics)
63 phase1Pixel.toReplaceWith(PixelOfflineDQMClientWithDataCertification, siPixelPhase1OfflineDQM_harvesting)
64 phase1Pixel.toReplaceWith(PixelOfflineDQMClientWithDataCertificationHI, siPixelPhase1OfflineDQM_harvesting_hi)