CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiPixelOfflineDQM_source_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Pixel RawDataError Monitoring
5 SiPixelRawDataErrorSource.saveFile = False
6 SiPixelRawDataErrorSource.isPIB = False
7 SiPixelRawDataErrorSource.slowDown = False
8 SiPixelRawDataErrorSource.reducedSet = False
9 
10 # Pixel Digi Monitoring
12 SiPixelDigiSource.saveFile = False
13 SiPixelDigiSource.isPIB = False
14 SiPixelDigiSource.slowDown = False
15 
16 # Pixel Cluster Monitoring
18 SiPixelClusterSource.saveFile = False
19 
20 # Pixel RecHit Monitoring
22 SiPixelRecHitSource.saveFile = False
23 
24 # Pixel Track Monitoring
27 SiPixelTrackResidualSource.saveFile = False
29 SiPixelTrackResidualSource_Cosmics.saveFile = False
31 SiPixelHitEfficiencySource.saveFile = False
33 
34 ##online/offline
35 #RawDataErrors
36 SiPixelRawDataErrorSource.modOn = False
37 SiPixelRawDataErrorSource.ladOn = True
38 SiPixelRawDataErrorSource.bladeOn = True
39 #Digi
40 SiPixelDigiSource.modOn = False
41 SiPixelDigiSource.twoDimOn = False
42 SiPixelDigiSource.reducedSet = True
43 SiPixelDigiSource.hiRes = False
44 SiPixelDigiSource.twoDimModOn = False
45 SiPixelDigiSource.twoDimOnlyLayDisk = False
46 SiPixelDigiSource.ladOn = True
47 SiPixelDigiSource.layOn = True
48 SiPixelDigiSource.phiOn = False
49 SiPixelDigiSource.bladeOn = True
50 SiPixelDigiSource.diskOn = True
51 SiPixelDigiSource.ringOn = False
52 SiPixelDigiSource.bigEventSize = 2600
53 #Cluster
54 SiPixelClusterSource.modOn = False
55 SiPixelClusterSource.twoDimOn = False
56 SiPixelClusterSource.reducedSet = True
57 SiPixelClusterSource.ladOn = True
58 SiPixelClusterSource.layOn = True
59 SiPixelClusterSource.phiOn = False
60 SiPixelClusterSource.bladeOn = True
61 SiPixelClusterSource.diskOn = True
62 SiPixelClusterSource.ringOn = False
63 SiPixelClusterSource.bigEventSize = 180
64 #RecHit
65 SiPixelRecHitSource.modOn = False
66 SiPixelRecHitSource.twoDimOn = False
67 SiPixelRecHitSource.reducedSet = True
68 SiPixelRecHitSource.ladOn = True
69 SiPixelRecHitSource.layOn = True
70 SiPixelRecHitSource.phiOn = False
71 SiPixelRecHitSource.bladeOn = True
72 SiPixelRecHitSource.diskOn = True
73 SiPixelRecHitSource.ringOn = False
74 
75 #Track
76 SiPixelTrackResidualSource.modOn = False
77 SiPixelTrackResidualSource.ladOn = True
78 SiPixelTrackResidualSource.layOn = True
79 SiPixelTrackResidualSource.phiOn = False
80 SiPixelTrackResidualSource.bladeOn = True
81 SiPixelTrackResidualSource.diskOn = True
82 SiPixelTrackResidualSource.ringOn = False
83 SiPixelTrackResidualSource_Cosmics.modOn = False
84 SiPixelTrackResidualSource_Cosmics.ladOn = True
85 SiPixelTrackResidualSource_Cosmics.layOn = True
86 SiPixelTrackResidualSource_Cosmics.phiOn = False
87 SiPixelTrackResidualSource_Cosmics.bladeOn = True
88 SiPixelTrackResidualSource_Cosmics.diskOn = True
89 SiPixelTrackResidualSource_Cosmics.ringOn = False
90 SiPixelHitEfficiencySource.modOn = False
91 SiPixelHitEfficiencySource.ladOn = True
92 SiPixelHitEfficiencySource.layOn = False
93 SiPixelHitEfficiencySource.phiOn = False
94 SiPixelHitEfficiencySource.bladeOn = True
95 SiPixelHitEfficiencySource.diskOn = False
96 SiPixelHitEfficiencySource.ringOn = False
97 
98 #HI track modules
99 hiTracks = "hiGeneralTracks"
100 hiRefittedForPixelDQM= refittedForPixelDQM.clone(
101  src = hiTracks
102 )
103 
104 SiPixelTrackResidualSource_HeavyIons = SiPixelTrackResidualSource.clone(
105  vtxsrc = 'hiSelectedVertex'
106 )
107 
108 SiPixelHitEfficiencySource_HeavyIons = SiPixelHitEfficiencySource.clone(
109  vtxsrc = 'hiSelectedVertex'
110 )
111 
112 
113 #DQM service
114 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
115 dqmInfo = DQMEDAnalyzer('DQMEventInfo',
116  subSystemFolder = cms.untracked.string('Pixel')
117 )
118 
119 #Check if perLSsaving is enabled to mask MEs vs LS
120 from Configuration.ProcessModifiers.dqmPerLSsaving_cff import dqmPerLSsaving
121 dqmPerLSsaving.toModify(SiPixelDigiSource, perLSsaving=True)
122 
123 #FED integrity
125 
126 siPixelOfflineDQM_source = cms.Sequence(SiPixelHLTSource + SiPixelRawDataErrorSource + SiPixelDigiSource + SiPixelRecHitSource + SiPixelClusterSource + refittedForPixelDQM + SiPixelTrackResidualSource + SiPixelHitEfficiencySource + SiPixelMonitorTrackResiduals + dqmInfo)
127 
128 siPixelOfflineDQM_cosmics_source = cms.Sequence(SiPixelHLTSource + SiPixelRawDataErrorSource + SiPixelDigiSource + SiPixelRecHitSource + SiPixelClusterSource + SiPixelTrackResidualSource_Cosmics + dqmInfo)
129 
130 siPixelOfflineDQM_heavyions_source = cms.Sequence(SiPixelHLTSource + SiPixelRawDataErrorSource + SiPixelDigiSource + SiPixelRecHitSource + SiPixelClusterSource + hiRefittedForPixelDQM + SiPixelTrackResidualSource_HeavyIons + SiPixelHitEfficiencySource_HeavyIons + dqmInfo)
131 
132 siPixelOfflineDQM_source_woTrack = cms.Sequence(SiPixelHLTSource + SiPixelRawDataErrorSource + SiPixelDigiSource + SiPixelRecHitSource + SiPixelClusterSource + dqmInfo)
133 
134 # Phase1 config
135 # _all_ of the stuff above becomes obsolete. We just hijack the names and
136 # replace them with the phase1 config of the new DQM.
138 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
139 phase1Pixel.toReplaceWith(siPixelOfflineDQM_source, siPixelPhase1OfflineDQM_source)
140 phase1Pixel.toReplaceWith(siPixelOfflineDQM_cosmics_source, siPixelPhase1OfflineDQM_source_cosmics)
141 phase1Pixel.toReplaceWith(siPixelOfflineDQM_heavyions_source, siPixelPhase1OfflineDQM_source_hi)
142 # don't forget the Harvesters, they are plugged in at PixelOfflineDQMClient
143 # TODO: the same game for the other three.