test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelOfflineDQM_client_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # This object is used to make changes for different running scenarios
5 #
6 from Configuration.StandardSequences.Eras import eras
7 
8 #Client:
9 sipixelEDAClient = cms.EDAnalyzer("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 # Modify for running with the Phase 1 pixel detector.
22 # Note that with this change the sipixelPhase1Client block below is not
23 # necessary, but I'll leave it for pixel upgrade experts to decide whether
24 # to take it out or not.
25 eras.phase1Pixel.toModify( sipixelEDAClient, isUpgrade=True )
26 
27 sipixelPhase1Client = cms.EDAnalyzer("SiPixelEDAClient",
28  EventOffsetForInit = cms.untracked.int32(10),
29  ActionOnLumiSection = cms.untracked.bool(False),
30  ActionOnRunEnd = cms.untracked.bool(True),
31  HighResolutionOccupancy = cms.untracked.bool(False),
32  NoiseRateCutValue = cms.untracked.double(-1.),
33  NEventsForNoiseCalculation = cms.untracked.int32(100000),
34  UseOfflineXMLFile = cms.untracked.bool(True),
35  Tier0Flag = cms.untracked.bool(True),
36  DoHitEfficiency = cms.untracked.bool(True),
37  isUpgrade = cms.untracked.bool(True)
38 )
39 
40 #QualityTester
41 sipixelQTester = cms.EDAnalyzer("QualityTester",
42  qtList = cms.untracked.FileInPath('DQM/SiPixelMonitorClient/test/sipixel_tier0_qualitytest.xml'),
43  prescaleFactor = cms.untracked.int32(1),
44  getQualityTestsFromFile = cms.untracked.bool(True),
45  label = cms.untracked.string("SiPixelDQMQTests"),
46  verboseQT = cms.untracked.bool(False)
47 )
48 
49 #Heavy Ion QualityTester
50 sipixelQTesterHI = sipixelQTester.clone(
51  qtList = cms.untracked.FileInPath('DQM/SiPixelMonitorClient/test/sipixel_tier0_qualitytest_heavyions.xml')
52 )
53 
54 #DataCertification:
55 sipixelDaqInfo = cms.EDAnalyzer("SiPixelDaqInfo")
56 sipixelDcsInfo = cms.EDAnalyzer("SiPixelDcsInfo")
57 sipixelCertification = cms.EDAnalyzer("SiPixelCertification")
58 
59 #Predefined Sequences:
60 PixelOfflineDQMClient = cms.Sequence(sipixelEDAClient)
61 PixelOfflineDQMClientWithDataCertification = cms.Sequence(sipixelQTester+
62  sipixelEDAClient+
63  sipixelDaqInfo+
64  sipixelDcsInfo+
65  sipixelCertification)
66 PixelOfflineDQMClientNoDataCertification = cms.Sequence(sipixelQTester+
67  sipixelEDAClient)
68 
69 PixelOfflineDQMClientWithDataCertificationHI = cms.Sequence(PixelOfflineDQMClientNoDataCertification)
70 PixelOfflineDQMClientWithDataCertificationHI.replace(sipixelQTester,sipixelQTesterHI)
71 PixelOfflinePhase1DQMClient = cms.Sequence(sipixelPhase1Client)