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 sipixelQTester = cms.EDAnalyzer("QualityTester",
24  qtList = cms.untracked.FileInPath('DQM/SiPixelMonitorClient/test/sipixel_tier0_qualitytest.xml'),
25  prescaleFactor = cms.untracked.int32(1),
26  getQualityTestsFromFile = cms.untracked.bool(True),
27  label = cms.untracked.string("SiPixelDQMQTests"),
28  verboseQT = cms.untracked.bool(False)
29 )
30 
31 #Heavy Ion QualityTester
32 sipixelQTesterHI = sipixelQTester.clone(
33  qtList = cms.untracked.FileInPath('DQM/SiPixelMonitorClient/test/sipixel_tier0_qualitytest_heavyions.xml')
34 )
35 
36 #DataCertification:
37 sipixelDaqInfo = DQMEDHarvester("SiPixelDaqInfo")
38 sipixelDcsInfo = DQMEDHarvester("SiPixelDcsInfo")
39 sipixelCertification = DQMEDHarvester("SiPixelCertification")
40 
41 #Predefined Sequences:
42 PixelOfflineDQMClient = cms.Sequence(sipixelEDAClient)
43 PixelOfflineDQMClientWithDataCertification = cms.Sequence(sipixelQTester+
44  sipixelEDAClient+
45  sipixelDaqInfo+
46  sipixelDcsInfo+
47  sipixelCertification)
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)