Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-25 02:40:40

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # FED integrity Check
0004 from DQM.SiStripMonitorHardware.siStripFEDCheck_cfi import *
0005 siStripFEDCheck.HistogramUpdateFrequency = 0
0006 siStripFEDCheck.DoPayloadChecks          = True
0007 siStripFEDCheck.CheckChannelLengths      = True
0008 siStripFEDCheck.CheckChannelPacketCodes  = True
0009 siStripFEDCheck.CheckFELengths           = True
0010 siStripFEDCheck.CheckChannelStatus       = True
0011 
0012 # FED Monitoring
0013 from DQM.SiStripMonitorHardware.siStripFEDMonitor_Tier0_cff import *
0014 
0015 # SiStripMonitorDigi ####
0016 from DQM.SiStripMonitorDigi.SiStripMonitorDigi_cfi import *
0017 SiStripMonitorDigi.Mod_On = False
0018 SiStripMonitorDigi.TProfDigiApvCycle.subdetswitchon = True
0019 
0020 # APV shots monitoring
0021 SiStripMonitorDigi.TkHistoMapNApvShots_On = True 
0022 SiStripMonitorDigi.TkHistoMapNStripApvShots_On= False
0023 SiStripMonitorDigi.TkHistoMapMedianChargeApvShots_On= False
0024 SiStripMonitorDigi.TH1NApvShots.subdetswitchon = True
0025 SiStripMonitorDigi.TH1NApvShots.globalswitchon = True
0026 SiStripMonitorDigi.TH1ChargeMedianApvShots.subdetswitchon = False
0027 SiStripMonitorDigi.TH1ChargeMedianApvShots.globalswitchon = True
0028 SiStripMonitorDigi.TH1NStripsApvShots.subdetswitchon = False
0029 SiStripMonitorDigi.TH1NStripsApvShots.globalswitchon = False
0030 SiStripMonitorDigi.TH1ApvNumApvShots.subdetswitchon = False
0031 SiStripMonitorDigi.TH1ApvNumApvShots.globalswitchon = False
0032 SiStripMonitorDigi.TProfNShotsVsTime.subdetswitchon = False
0033 SiStripMonitorDigi.TProfNShotsVsTime.globalswitchon = False
0034 SiStripMonitorDigi.TProfGlobalNShots.globalswitchon = True
0035 
0036 from DQM.SiStripMonitorClient.pset4GenericTriggerEventFlag_cfi import *
0037 
0038 # SiStripMonitorCluster ####
0039 from DQM.SiStripMonitorCluster.SiStripMonitorCluster_cfi import *
0040 SiStripMonitorClusterBPTX = SiStripMonitorCluster.clone(
0041     Mod_On = False,
0042     TH1TotalNumberOfClusters = SiStripMonitorCluster.TH1TotalNumberOfClusters.clone(
0043         subdetswitchon = True
0044     ),
0045     TProfClustersApvCycle = SiStripMonitorCluster.TProfClustersApvCycle.clone(
0046         subdetswitchon = True
0047     ),
0048     TProfTotalNumberOfClusters = SiStripMonitorCluster.TProfTotalNumberOfClusters.clone(
0049         subdetswitchon = True
0050     ),
0051     TrendVs10LS = False,
0052     TH2CStripVsCpixel = SiStripMonitorCluster.TH2CStripVsCpixel.clone(
0053         globalswitchon = True
0054     ),
0055     TH1MultiplicityRegions = SiStripMonitorCluster.TH1MultiplicityRegions.clone(
0056         globalswitchon = True
0057     ),
0058     TH1MainDiagonalPosition = SiStripMonitorCluster.TH1MainDiagonalPosition.clone(
0059         globalswitchon = True
0060     ),
0061     TH1StripNoise2ApvCycle = SiStripMonitorCluster.TH1StripNoise2ApvCycle.clone(
0062         globalswitchon = True
0063     ),
0064     TH1StripNoise3ApvCycle = SiStripMonitorCluster.TH1StripNoise3ApvCycle.clone(
0065         globalswitchon = True
0066     ),
0067     ClusterHisto = True,
0068     BPTXfilter = genericTriggerEventFlag4L1bd
0069 )
0070 
0071 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
0072 stage2L1Trigger.toModify(SiStripMonitorClusterBPTX, 
0073                          BPTXfilter = dict(
0074                              stage2 = cms.bool(True),
0075                              l1tAlgBlkInputTag = cms.InputTag("gtStage2Digis"),
0076                              l1tExtBlkInputTag = cms.InputTag("gtStage2Digis"),
0077                              ReadPrescalesFromFile = cms.bool(True)
0078                          ),
0079                          PixelDCSfilter = dict(
0080                              stage2 = cms.bool(True),
0081                              l1tAlgBlkInputTag = cms.InputTag("gtStage2Digis"),
0082                              l1tExtBlkInputTag = cms.InputTag("gtStage2Digis"),
0083                              ReadPrescalesFromFile = cms.bool(True)),
0084                          StripDCSfilter = dict(
0085                              stage2 = cms.bool(True),
0086                              l1tAlgBlkInputTag = cms.InputTag("gtStage2Digis"),
0087                              l1tExtBlkInputTag = cms.InputTag("gtStage2Digis"),
0088                              ReadPrescalesFromFile = cms.bool(True)
0089                          )
0090                         )
0091 
0092 # refitter ### (FIXME rename, move)
0093 from DQM.SiPixelMonitorTrack.RefitterForPixelDQM import *
0094 
0095 # Clone for SiStripMonitorTrack for all PDs but Minimum Bias and Jet ####
0096 from DQM.SiStripMonitorTrack.SiStripMonitorTrack_cfi import *
0097 SiStripMonitorTrackCommon = SiStripMonitorTrack.clone(
0098     TrackProducer = 'generalTracks',
0099     Mod_On = False,
0100     TH1ClusterCharge = SiStripMonitorTrack.TH1ClusterCharge.clone(
0101         ringView = True
0102     ),
0103     TH1ClusterStoNCorr = SiStripMonitorTrack.TH1ClusterStoNCorr.clone(
0104         ringView = True
0105     ),
0106     TH1ClusterPos = SiStripMonitorTrack.TH1ClusterPos.clone(
0107         layerView = False,
0108         ringView = True
0109     )
0110 )
0111 
0112 # Clone for SiStripMonitorTrack for Minimum Bias ####
0113 from DQM.SiStripMonitorTrack.SiStripMonitorTrack_cfi import *
0114 SiStripMonitorTrackMB = SiStripMonitorTrack.clone(
0115     TrackProducer = 'generalTracks',
0116     Mod_On = False,
0117     genericTriggerEventPSet = genericTriggerEventFlag4HLTdb,
0118     TH1ClusterCharge = SiStripMonitorTrack.TH1ClusterCharge.clone(
0119         ringView = True
0120     ),
0121     TH1ClusterStoNCorr = SiStripMonitorTrack.TH1ClusterStoNCorr.clone(
0122         ringView = True
0123     )
0124 )
0125 
0126 # Clone for SiStripMonitorTrack for Isolated Bunches ####
0127 from DQM.SiStripMonitorTrack.SiStripMonitorTrack_cfi import *
0128 SiStripMonitorTrackIB = SiStripMonitorTrack.clone(
0129     TrackProducer = 'generalTracks',
0130     Mod_On = False,
0131     genericTriggerEventPSet = genericTriggerEventFlag4HLTdbIB,
0132     TH1ClusterCharge = SiStripMonitorTrack.TH1ClusterCharge.clone(
0133         ringView = True
0134     ),
0135     TH1ClusterStoNCorr = SiStripMonitorTrack.TH1ClusterStoNCorr.clone(
0136         ringView = True
0137     ),
0138     TkHistoMap_On = False,
0139     TH1ClusterNoise = SiStripMonitorTrack.TH1ClusterNoise.clone(
0140         layerView = False
0141     ),
0142     TH1ClusterWidth = SiStripMonitorTrack.TH1ClusterWidth.clone(
0143         layerView = False
0144     ),
0145     TH1ClusterChargePerCM = SiStripMonitorTrack.TH1ClusterChargePerCM.clone(
0146         ringView = False
0147     ),
0148     TopFolderName = "SiStrip/IsolatedBunches"
0149 )
0150 
0151 ### TrackerMonitorTrack defined and used only for MinimumBias ####
0152 from DQM.TrackerMonitorTrack.MonitorTrackResiduals_cfi import *
0153 MonitorTrackResiduals.trajectoryInput = 'refittedForPixelDQM'
0154 MonitorTrackResiduals.Tracks          = 'refittedForPixelDQM'
0155 MonitorTrackResiduals.Mod_On        = False
0156 MonitorTrackResiduals.genericTriggerEventPSet = genericTriggerEventFlag4HLTdb
0157 
0158 # DQM Services
0159 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0160 dqmInfoSiStrip = DQMEDAnalyzer('DQMEventInfo',
0161     subSystemFolder = cms.untracked.string('SiStrip')
0162 )
0163 
0164 # Services needed for TkHistoMap
0165 from CalibTracker.SiStripCommon.TkDetMapESProducer_cfi import *
0166 
0167 # Event History Producer
0168 from  DPGAnalysis.SiStripTools.eventwithhistoryproducerfroml1abc_cfi import *
0169 
0170 # APV Phase Producer
0171 from DPGAnalysis.SiStripTools.apvcyclephaseproducerfroml1tsDB_cfi import *
0172 
0173 # temporary patch in order to have BXlumi 
0174 from RecoLuminosity.LumiProducer.lumiProducer_cff import *
0175 
0176 # Sequence
0177 #removed modules using TkDetMap service
0178 #SiStripDQMTier0 = cms.Sequence(
0179 #    APVPhases*consecutiveHEs*siStripFEDCheck
0180 #    *MonitorTrackResiduals
0181 #    *dqmInfoSiStrip)
0182 
0183 #SiStripDQMTier0Common = cms.Sequence(
0184 #    APVPhases*consecutiveHEs*siStripFEDCheck
0185 #    *dqmInfoSiStrip)
0186 
0187 #SiStripDQMTier0MinBias = cms.Sequence(
0188 #    APVPhases*consecutiveHEs*siStripFEDCheck
0189 #    *SiStripMonitorTrackMB*MonitorTrackResiduals
0190 #    *dqmInfoSiStrip)
0191 
0192 SiStripDQMTier0 = cms.Sequence(
0193     APVPhases*consecutiveHEs*siStripFEDCheck*siStripFEDMonitor*SiStripMonitorDigi*SiStripMonitorClusterBPTX
0194     *SiStripMonitorTrackCommon*SiStripMonitorTrackIB*refittedForPixelDQM*MonitorTrackResiduals
0195     *dqmInfoSiStrip)
0196 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
0197 
0198 SiStripDQMTier0Common = cms.Sequence(
0199     APVPhases*consecutiveHEs*siStripFEDCheck*siStripFEDMonitor*SiStripMonitorDigi*SiStripMonitorClusterBPTX        
0200     *SiStripMonitorTrackCommon*SiStripMonitorTrackIB
0201     *dqmInfoSiStrip)
0202 
0203 SiStripDQMTier0MinBias = cms.Sequence(
0204     APVPhases*consecutiveHEs*siStripFEDCheck*siStripFEDMonitor*SiStripMonitorDigi*SiStripMonitorClusterBPTX
0205     *SiStripMonitorTrackMB*SiStripMonitorTrackIB*refittedForPixelDQM*MonitorTrackResiduals
0206     *dqmInfoSiStrip)