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 = cms.untracked.FileInPath('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  sipixelCertification)
49 PixelOfflineDQMClientNoDataCertification = cms.Sequence(sipixelQTester+
50  sipixelEDAClient)
51 PixelOfflineDQMClientNoDataCertification_cosmics = cms.Sequence(sipixelQTester+
52  sipixelEDAClient)
53 
54 PixelOfflineDQMClientWithDataCertificationHI = cms.Sequence(PixelOfflineDQMClientNoDataCertification)
55 PixelOfflineDQMClientWithDataCertificationHI.replace(sipixelQTester,sipixelQTesterHI)
56 
57 # Modify for running with the Phase 1 pixel detector.
59 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
60 phase1Pixel.toReplaceWith(PixelOfflineDQMClient, siPixelPhase1OfflineDQM_harvesting)
61 #TODO: properly upgrade these and the others
62 phase1Pixel.toReplaceWith(PixelOfflineDQMClientNoDataCertification, siPixelPhase1OfflineDQM_harvesting)
63 phase1Pixel.toReplaceWith(PixelOfflineDQMClientNoDataCertification_cosmics, siPixelPhase1OfflineDQM_harvesting_cosmics)
64 phase1Pixel.toReplaceWith(PixelOfflineDQMClientWithDataCertification, siPixelPhase1OfflineDQM_harvesting)
65 phase1Pixel.toReplaceWith(PixelOfflineDQMClientWithDataCertificationHI, siPixelPhase1OfflineDQM_harvesting_hi)
DQMQualityTester
Definition: DQMQualityTester.py:1
SiPixelPhase1OfflineDQM_harvesting_cff
DQMEDHarvester
Definition: DQMEDHarvester.py:1