CMS 3D CMS Logo

SiStripSourceConfigTier0_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # FED integrity Check
5 siStripFEDCheck.HistogramUpdateFrequency = 0
6 siStripFEDCheck.DoPayloadChecks = True
7 siStripFEDCheck.CheckChannelLengths = True
8 siStripFEDCheck.CheckChannelPacketCodes = True
9 siStripFEDCheck.CheckFELengths = True
10 siStripFEDCheck.CheckChannelStatus = True
11 
12 # FED Monitoring
14 
15 # SiStripMonitorDigi ####
17 SiStripMonitorDigi.Mod_On = False
18 SiStripMonitorDigi.TProfDigiApvCycle.subdetswitchon = True
19 
20 # APV shots monitoring
21 SiStripMonitorDigi.TkHistoMapNApvShots_On = True
22 SiStripMonitorDigi.TkHistoMapNStripApvShots_On= False
23 SiStripMonitorDigi.TkHistoMapMedianChargeApvShots_On= False
24 SiStripMonitorDigi.TH1NApvShots.subdetswitchon = True
25 SiStripMonitorDigi.TH1NApvShots.globalswitchon = True
26 SiStripMonitorDigi.TH1ChargeMedianApvShots.subdetswitchon = False
27 SiStripMonitorDigi.TH1ChargeMedianApvShots.globalswitchon = True
28 SiStripMonitorDigi.TH1NStripsApvShots.subdetswitchon = False
29 SiStripMonitorDigi.TH1NStripsApvShots.globalswitchon = False
30 SiStripMonitorDigi.TH1ApvNumApvShots.subdetswitchon = False
31 SiStripMonitorDigi.TH1ApvNumApvShots.globalswitchon = False
32 SiStripMonitorDigi.TProfNShotsVsTime.subdetswitchon = False
33 SiStripMonitorDigi.TProfNShotsVsTime.globalswitchon = False
34 SiStripMonitorDigi.TProfGlobalNShots.globalswitchon = True
35 
37 
38 # SiStripMonitorCluster ####
40 SiStripMonitorClusterBPTX = SiStripMonitorCluster.clone(
41  Mod_On = False,
42  TH1TotalNumberOfClusters = SiStripMonitorCluster.TH1TotalNumberOfClusters.clone(
43  subdetswitchon = True
44  ),
45  TProfClustersApvCycle = SiStripMonitorCluster.TProfClustersApvCycle.clone(
46  subdetswitchon = True
47  ),
48  TProfTotalNumberOfClusters = SiStripMonitorCluster.TProfTotalNumberOfClusters.clone(
49  subdetswitchon = True
50  ),
51  TrendVs10LS = False,
52  TH2CStripVsCpixel = SiStripMonitorCluster.TH2CStripVsCpixel.clone(
53  globalswitchon = True
54  ),
55  TH1MultiplicityRegions = SiStripMonitorCluster.TH1MultiplicityRegions.clone(
56  globalswitchon = True
57  ),
58  TH1MainDiagonalPosition = SiStripMonitorCluster.TH1MainDiagonalPosition.clone(
59  globalswitchon = True
60  ),
61  TH1StripNoise2ApvCycle = SiStripMonitorCluster.TH1StripNoise2ApvCycle.clone(
62  globalswitchon = True
63  ),
64  TH1StripNoise3ApvCycle = SiStripMonitorCluster.TH1StripNoise3ApvCycle.clone(
65  globalswitchon = True
66  ),
67  ClusterHisto = True,
68  BPTXfilter = genericTriggerEventFlag4L1bd
69 )
70 
71 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
72 stage2L1Trigger.toModify(SiStripMonitorClusterBPTX,
73  BPTXfilter = dict(
74  stage2 = cms.bool(True),
75  l1tAlgBlkInputTag = cms.InputTag("gtStage2Digis"),
76  l1tExtBlkInputTag = cms.InputTag("gtStage2Digis"),
77  ReadPrescalesFromFile = cms.bool(True)
78  ),
79  PixelDCSfilter = dict(
80  stage2 = cms.bool(True),
81  l1tAlgBlkInputTag = cms.InputTag("gtStage2Digis"),
82  l1tExtBlkInputTag = cms.InputTag("gtStage2Digis"),
83  ReadPrescalesFromFile = cms.bool(True)),
84  StripDCSfilter = dict(
85  stage2 = cms.bool(True),
86  l1tAlgBlkInputTag = cms.InputTag("gtStage2Digis"),
87  l1tExtBlkInputTag = cms.InputTag("gtStage2Digis"),
88  ReadPrescalesFromFile = cms.bool(True)
89  )
90  )
91 
92 # refitter ### (FIXME rename, move)
94 
95 # Clone for SiStripMonitorTrack for all PDs but Minimum Bias and Jet ####
97 SiStripMonitorTrackCommon = SiStripMonitorTrack.clone(
98  TrackProducer = 'generalTracks',
99  Mod_On = False,
100  TH1ClusterCharge = SiStripMonitorTrack.TH1ClusterCharge.clone(
101  ringView = True
102  ),
103  TH1ClusterStoNCorr = SiStripMonitorTrack.TH1ClusterStoNCorr.clone(
104  ringView = True
105  ),
106  TH1ClusterPos = SiStripMonitorTrack.TH1ClusterPos.clone(
107  layerView = False,
108  ringView = True
109  )
110 )
111 
112 # Clone for SiStripMonitorTrack for Minimum Bias ####
114 SiStripMonitorTrackMB = SiStripMonitorTrack.clone(
115  TrackProducer = 'generalTracks',
116  Mod_On = False,
117  genericTriggerEventPSet = genericTriggerEventFlag4HLTdb,
118  TH1ClusterCharge = SiStripMonitorTrack.TH1ClusterCharge.clone(
119  ringView = True
120  ),
121  TH1ClusterStoNCorr = SiStripMonitorTrack.TH1ClusterStoNCorr.clone(
122  ringView = True
123  )
124 )
125 
126 # Clone for SiStripMonitorTrack for Isolated Bunches ####
128 SiStripMonitorTrackIB = SiStripMonitorTrack.clone(
129  TrackProducer = 'generalTracks',
130  Mod_On = False,
131  genericTriggerEventPSet = genericTriggerEventFlag4HLTdbIB,
132  TH1ClusterCharge = SiStripMonitorTrack.TH1ClusterCharge.clone(
133  ringView = True
134  ),
135  TH1ClusterStoNCorr = SiStripMonitorTrack.TH1ClusterStoNCorr.clone(
136  ringView = True
137  ),
138  TkHistoMap_On = False,
139  TH1ClusterNoise = SiStripMonitorTrack.TH1ClusterNoise.clone(
140  layerView = False
141  ),
142  TH1ClusterWidth = SiStripMonitorTrack.TH1ClusterWidth.clone(
143  layerView = False
144  ),
145  TH1ClusterChargePerCM = SiStripMonitorTrack.TH1ClusterChargePerCM.clone(
146  ringView = False
147  ),
148  TopFolderName = "SiStrip/IsolatedBunches"
149 )
150 
151 
153 MonitorTrackResiduals.trajectoryInput = 'refittedForPixelDQM'
154 MonitorTrackResiduals.Tracks = 'refittedForPixelDQM'
155 MonitorTrackResiduals.Mod_On = False
156 MonitorTrackResiduals.genericTriggerEventPSet = genericTriggerEventFlag4HLTdb
157 
158 # DQM Services
159 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
160 dqmInfoSiStrip = DQMEDAnalyzer('DQMEventInfo',
161  subSystemFolder = cms.untracked.string('SiStrip')
162 )
163 
164 # Services needed for TkHistoMap
166 
167 # Event History Producer
169 
170 # APV Phase Producer
172 
173 # temporary patch in order to have BXlumi
175 
176 # Sequence
177 #removed modules using TkDetMap service
178 #SiStripDQMTier0 = cms.Sequence(
179 # APVPhases*consecutiveHEs*siStripFEDCheck
180 # *MonitorTrackResiduals
181 # *dqmInfoSiStrip)
182 
183 #SiStripDQMTier0Common = cms.Sequence(
184 # APVPhases*consecutiveHEs*siStripFEDCheck
185 # *dqmInfoSiStrip)
186 
187 #SiStripDQMTier0MinBias = cms.Sequence(
188 # APVPhases*consecutiveHEs*siStripFEDCheck
189 # *SiStripMonitorTrackMB*MonitorTrackResiduals
190 # *dqmInfoSiStrip)
191 
192 from Configuration.ProcessModifiers.approxSiStripClusters_cff import approxSiStripClusters
193 
194 SiStripDQMTier0 = cms.Sequence(
195  APVPhases*consecutiveHEs*siStripFEDCheck*siStripFEDMonitor*SiStripMonitorDigi*SiStripMonitorClusterBPTX
196  *SiStripMonitorTrackCommon*SiStripMonitorTrackIB*refittedForPixelDQM*MonitorTrackResiduals
197  *dqmInfoSiStrip)
198 
199 from DQM.SiStripMonitorApproximateCluster.SiStripMonitorApproximateCluster_cfi import SiStripMonitorApproximateCluster
200 SiStripDQMTier0_approx = SiStripDQMTier0.copy()
201 SiStripDQMTier0_approx += cms.Sequence(SiStripMonitorApproximateCluster)
202 approxSiStripClusters.toReplaceWith(SiStripDQMTier0, SiStripDQMTier0_approx)
203 
204 SiStripDQMTier0Common = cms.Sequence(
205  APVPhases*consecutiveHEs*siStripFEDCheck*siStripFEDMonitor*SiStripMonitorDigi*SiStripMonitorClusterBPTX
206  *SiStripMonitorTrackCommon*SiStripMonitorTrackIB
207  *dqmInfoSiStrip)
208 
209 SiStripDQMTier0Common_approx = SiStripDQMTier0Common.copy()
210 SiStripDQMTier0Common_approx += cms.Sequence(SiStripMonitorApproximateCluster)
211 approxSiStripClusters.toReplaceWith(SiStripDQMTier0Common, SiStripDQMTier0Common_approx)
212 
213 SiStripDQMTier0MinBias = cms.Sequence(
214  APVPhases*consecutiveHEs*siStripFEDCheck*siStripFEDMonitor*SiStripMonitorDigi*SiStripMonitorClusterBPTX
215  *SiStripMonitorTrackMB*SiStripMonitorTrackIB*refittedForPixelDQM*MonitorTrackResiduals
216  *dqmInfoSiStrip)
217 
218 SiStripDQMTier0MinBias_approx = SiStripDQMTier0MinBias.copy()
219 SiStripDQMTier0MinBias_approx += cms.Sequence(SiStripMonitorApproximateCluster)
220 approxSiStripClusters.toReplaceWith(SiStripDQMTier0MinBias, SiStripDQMTier0MinBias_approx)