Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-30 23:16:57

0001 ### AUTO-GENERATED CMSRUN CONFIGURATION FOR ECAL DQM ###
0002 import FWCore.ParameterSet.Config as cms
0003 from EventFilter.OnlineMetaDataRawToDigi.tcdsRawToDigi_cfi import * # To monitor LHC status, e.g. to mask trigger primitives quality alarm during Cosmics
0004 import sys
0005 
0006 from Configuration.Eras.Era_Run3_cff import Run3
0007 process = cms.Process("process", Run3)
0008 
0009 unitTest = False
0010 if 'unitTest=True' in sys.argv:
0011     unitTest=True
0012 
0013 ### Load cfis ###
0014 
0015 if unitTest:
0016     process.load("DQM.Integration.config.unittestinputsource_cfi")
0017     from DQM.Integration.config.unittestinputsource_cfi import options
0018 else:
0019     process.load("DQM.Integration.config.inputsource_cfi")
0020     from DQM.Integration.config.inputsource_cfi import options, set_BeamSplashRun_settings
0021 
0022 process.load("DQM.Integration.config.environment_cfi")
0023 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0024 #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0025 #process.load("CalibCalorimetry.EcalLaserCorrection.ecalLaserCorrectionService_cfi")
0026 
0027 process.load("FWCore.Modules.preScaler_cfi")
0028 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0029 #process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
0030 #process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
0031 #process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
0032 #process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0033 #process.load("Geometry.EcalMapping.EcalMapping_cfi")
0034 #process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
0035 
0036 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0037 #process.load("L1Trigger.Configuration.L1RawToDigi_cff")
0038 #process.load("SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_cfi")
0039 
0040 process.load("Configuration.StandardSequences.Reconstruction_cff")
0041 #process.load("RecoLuminosity.LumiProducer.bunchSpacingProducer_cfi")
0042 #process.load("RecoLocalCalo.EcalRecProducers.ecalMultiFitUncalibRecHit_cfi")
0043 #process.load("RecoLocalCalo.EcalRecProducers.ecalDetIdToBeRecovered_cfi")
0044 #process.load("RecoLocalCalo.EcalRecProducers.ecalRecHit_cfi")
0045 #process.load("RecoLocalCalo.EcalRecAlgos.EcalSeverityLevelESProducer_cfi")
0046 #process.load("RecoEcal.EgammaClusterProducers.ecalClusteringSequence_cff")
0047 #process.load("RecoEcal.EgammaCoreTools.EcalNextToDeadChannelESProducer_cff")
0048 #process.load("RecoEcal.EgammaClusterProducers.reducedRecHitsSequence_cff")
0049 
0050 process.load("DQM.EcalMonitorTasks.EcalMonitorTask_cfi")
0051 process.load("DQM.EcalMonitorClient.EcalMonitorClient_cfi")
0052 
0053 ### Individual module setups ###
0054 
0055 process.ecalPhysicsFilter = cms.EDFilter("EcalMonitorPrescaler",
0056     cosmics = cms.untracked.uint32(1),
0057     physics = cms.untracked.uint32(1),
0058     EcalRawDataCollection = cms.InputTag("ecalDigis")
0059 )
0060 
0061 process.MessageLogger = cms.Service("MessageLogger",
0062     cerr = cms.untracked.PSet(
0063         default = cms.untracked.PSet(
0064             limit = cms.untracked.int32(-1)
0065         ),
0066         EcalLaserDbService = cms.untracked.PSet(
0067             limit = cms.untracked.int32(10)
0068         ),
0069         noTimeStamps = cms.untracked.bool(True),
0070         threshold = cms.untracked.string('WARNING'),
0071         noLineBreaks = cms.untracked.bool(True)
0072     ),
0073     cout = cms.untracked.PSet(
0074         default = cms.untracked.PSet(
0075             limit = cms.untracked.int32(0)
0076         ),
0077         EcalDQM = cms.untracked.PSet(
0078             limit = cms.untracked.int32(-1)
0079         ),
0080         threshold = cms.untracked.string('INFO')
0081     ),
0082     categories = cms.untracked.vstring('EcalDQM', 
0083         'EcalLaserDbService'),
0084     destinations = cms.untracked.vstring('cerr', 
0085         'cout')
0086 )
0087 
0088 process.maxEvents = cms.untracked.PSet(
0089     input = cms.untracked.int32(-1)
0090 )
0091 if not unitTest:
0092   if options.BeamSplashRun:
0093       set_BeamSplashRun_settings( process.source )
0094       process.ecalMonitorTask.workerParameters.TimingTask.params.splashSwitch = True
0095       process.ecalMonitorTask.workerParameters.TimingTask.MEs.TimeMap.zaxis.high = cms.untracked.double(30.)
0096       process.ecalMonitorTask.workerParameters.TimingTask.MEs.TimeMap.zaxis.low = cms.untracked.double(-30.)
0097       process.ecalMonitorTask.workerParameters.TimingTask.MEs.TimeMapByLS.zaxis.high = cms.untracked.double(30.)
0098       process.ecalMonitorTask.workerParameters.TimingTask.MEs.TimeMapByLS.zaxis.low = cms.untracked.double(-30.)
0099       process.ecalMonitorTask.workerParameters.TimingTask.MEs.TimeAll.xaxis.high = cms.untracked.double(30.)
0100       process.ecalMonitorTask.workerParameters.TimingTask.MEs.TimeAll.xaxis.low = cms.untracked.double(-30.)
0101       process.ecalMonitorTask.workerParameters.TimingTask.MEs.Time1D.xaxis.high = cms.untracked.double(30.)
0102       process.ecalMonitorTask.workerParameters.TimingTask.MEs.Time1D.xaxis.low = cms.untracked.double(-30.)
0103       process.ecalMonitorTask.workerParameters.TimingTask.MEs.TimeAllMap.zaxis.high = cms.untracked.double(25.)
0104       process.ecalMonitorTask.workerParameters.TimingTask.MEs.TimeAllMap.zaxis.low = cms.untracked.double(-25.)
0105       process.ecalMonitorTask.workerParameters.TimingTask.params.chi2ThresholdEE = cms.untracked.double(1000.)
0106       process.ecalMonitorTask.workerParameters.TimingTask.params.chi2ThresholdEB = cms.untracked.double(1000.)
0107 
0108       process.ecalMonitorClient.workerParameters.TimingClient.MEs.FwdvBkwd.yaxis.high = cms.untracked.double(30.)
0109       process.ecalMonitorClient.workerParameters.TimingClient.MEs.FwdvBkwd.yaxis.low = cms.untracked.double(-30.)
0110       process.ecalMonitorClient.workerParameters.TimingClient.MEs.FwdvBkwd.xaxis.high = cms.untracked.double(30.)
0111       process.ecalMonitorClient.workerParameters.TimingClient.MEs.FwdvBkwd.xaxis.low = cms.untracked.double(-30.)
0112       process.ecalMonitorClient.workerParameters.TimingClient.MEs.FwdBkwdDiff.xaxis.high = cms.untracked.double(25.)
0113       process.ecalMonitorClient.workerParameters.TimingClient.MEs.FwdBkwdDiff.xaxis.low = cms.untracked.double(-25.)
0114       process.ecalMonitorClient.workerParameters.TimingClient.MEs.MeanSM.xaxis.high = cms.untracked.double(30.)
0115       process.ecalMonitorClient.workerParameters.TimingClient.MEs.MeanSM.xaxis.low = cms.untracked.double(-30.)
0116       process.ecalMonitorClient.workerParameters.TimingClient.MEs.MeanAll.xaxis.high = cms.untracked.double(30.)
0117       process.ecalMonitorClient.workerParameters.TimingClient.MEs.MeanAll.xaxis.low = cms.untracked.double(-30.)
0118       process.ecalMonitorClient.workerParameters.TimingClient.params.minChannelEntries = cms.untracked.int32(0)
0119 
0120 process.ecalMonitorClient.verbosity = 0
0121 process.ecalMonitorClient.workers = ['IntegrityClient', 'OccupancyClient', 'PresampleClient', 'RawDataClient', 'TimingClient', 'SelectiveReadoutClient', 'TrigPrimClient', 'MLClient', 'SummaryClient']
0122 process.ecalMonitorClient.workerParameters.SummaryClient.params.activeSources = ['Integrity', 'RawData', 'Presample', 'TriggerPrimitives', 'Timing', 'HotCell']
0123 process.ecalMonitorClient.commonParameters.onlineMode = True
0124 
0125 process.preScaler.prescaleFactor = 1
0126 
0127 process.tcdsDigis = tcdsRawToDigi.clone(
0128   InputLabel = "rawDataCollector"
0129 )
0130 
0131 ###### For OnlineLuminosityRecord to get the PU/luminosity info ######
0132 process.load('EventFilter.OnlineMetaDataRawToDigi.onlineMetaDataRawToDigi_cfi')
0133 process.onlineMetaDataDigis = cms.EDProducer('OnlineMetaDataRawToDigi')
0134 
0135 process.dqmEnv.subSystemFolder = 'Ecal'
0136 process.dqmSaver.tag = 'Ecal'
0137 process.dqmSaver.runNumber = options.runNumber
0138 process.dqmSaverPB.tag = 'Ecal'
0139 process.dqmSaverPB.runNumber = options.runNumber
0140 
0141 process.simEcalTriggerPrimitiveDigis.InstanceEB = "ebDigis"
0142 process.simEcalTriggerPrimitiveDigis.InstanceEE = "eeDigis"
0143 process.simEcalTriggerPrimitiveDigis.Label = "ecalDigis"
0144 
0145 process.ecalMonitorTask.workers = ['ClusterTask', 'EnergyTask', 'IntegrityTask', 'OccupancyTask', 'RawDataTask', 'TimingTask', 'TrigPrimTask', 'PresampleTask', 'SelectiveReadoutTask', 'PiZeroTask']
0146 process.ecalMonitorTask.verbosity = 0
0147 process.ecalMonitorTask.collectionTags.EESuperCluster = "multi5x5SuperClusters:multi5x5EndcapSuperClusters"
0148 process.ecalMonitorTask.collectionTags.EBBasicCluster = "hybridSuperClusters:hybridBarrelBasicClusters"
0149 process.ecalMonitorTask.collectionTags.EEBasicCluster = "multi5x5SuperClusters:multi5x5EndcapBasicClusters"
0150 process.ecalMonitorTask.collectionTags.Source = "rawDataCollector"
0151 process.ecalMonitorTask.collectionTags.EBSuperCluster = "correctedHybridSuperClusters"
0152 process.ecalMonitorTask.collectionTags.TrigPrimEmulDigi = "simEcalTriggerPrimitiveDigis"
0153 process.ecalMonitorTask.workerParameters.TrigPrimTask.params.runOnEmul = True
0154 process.ecalMonitorTask.commonParameters.willConvertToEDM = False
0155 process.ecalMonitorTask.commonParameters.onlineMode = True
0156 process.ecalMonitorTask.workerParameters.OccupancyTask.params.lumiCheck = True
0157 
0158 ### Sequences ###
0159 
0160 process.ecalPreRecoSequence = cms.Sequence(process.bunchSpacingProducer + process.ecalDigis)
0161 process.ecalRecoSequence = cms.Sequence((process.ecalMultiFitUncalibRecHit+process.ecalDetIdToBeRecovered+process.ecalRecHit)+(process.simEcalTriggerPrimitiveDigis+process.gtDigis)+(process.hybridClusteringSequence+process.multi5x5ClusteringSequence))
0162 process.multi5x5ClusteringSequence = cms.Sequence(process.multi5x5BasicClustersCleaned+process.multi5x5SuperClustersCleaned+process.multi5x5BasicClustersUncleaned+process.multi5x5SuperClustersUncleaned+process.multi5x5SuperClusters)
0163 process.hybridClusteringSequence = cms.Sequence(process.cleanedHybridSuperClusters+process.uncleanedHybridSuperClusters+process.hybridSuperClusters+process.correctedHybridSuperClusters+process.uncleanedOnlyCorrectedHybridSuperClusters)
0164 
0165 ### Paths ###
0166 
0167 process.ecalMonitorPath = cms.Path(process.onlineMetaDataDigis+process.preScaler+process.ecalPreRecoSequence+process.ecalPhysicsFilter+process.ecalRecoSequence+process.tcdsDigis+process.ecalMonitorTask)
0168 process.ecalClientPath = cms.Path(process.preScaler+process.ecalPreRecoSequence+process.ecalPhysicsFilter+process.ecalMonitorClient)
0169 
0170 process.dqmEndPath = cms.EndPath(process.dqmEnv)
0171 process.dqmOutputPath = cms.EndPath(process.dqmSaver + process.dqmSaverPB)
0172 
0173 ### Schedule ###
0174 
0175 process.schedule = cms.Schedule(process.ecalMonitorPath,process.ecalClientPath,process.dqmEndPath,process.dqmOutputPath)
0176 
0177 ### Run type specific ###
0178 
0179 runTypeName = process.runType.getRunTypeName()
0180 if (runTypeName == 'pp_run' or runTypeName == 'pp_run_stage1'):
0181     pass
0182 elif (runTypeName == 'cosmic_run' or runTypeName == 'cosmic_run_stage1'):
0183 #    process.dqmEndPath.remove(process.dqmQTest)
0184     process.ecalMonitorTask.workers = ['EnergyTask', 'IntegrityTask', 'OccupancyTask', 'RawDataTask', 'TimingTask', 'TrigPrimTask', 'PresampleTask', 'SelectiveReadoutTask', 'PiZeroTask']
0185     process.ecalMonitorClient.workers = ['IntegrityClient', 'OccupancyClient', 'PresampleClient', 'RawDataClient', 'TimingClient', 'SelectiveReadoutClient', 'TrigPrimClient', 'MLClient', 'SummaryClient']
0186     process.ecalMonitorClient.workerParameters.SummaryClient.params.activeSources = ['Integrity', 'RawData', 'Presample', 'TriggerPrimitives', 'Timing', 'HotCell']
0187     process.ecalMonitorTask.workerParameters.PresampleTask.params.doPulseMaxCheck = False 
0188 elif runTypeName == 'hi_run':
0189     process.ecalMonitorTask.collectionTags.Source = "rawDataRepacker"
0190     process.ecalDigis.cpu.InputLabel = 'rawDataRepacker'
0191 elif runTypeName == 'hpu_run':
0192     if not unitTest:
0193         process.source.SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('*'))
0194 
0195 
0196 ### process customizations included here
0197 from DQM.Integration.config.online_customizations_cfi import *
0198 print("Final Source settings:", process.source)
0199 process = customise(process)