File indexing completed on 2024-11-26 02:34:08
0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003
0004 from Configuration.Eras.Era_Run3_cff import Run3
0005 process = cms.Process("ESDQM", Run3)
0006
0007 unitTest = False
0008 if 'unitTest=True' in sys.argv:
0009 unitTest=True
0010
0011 process.load('Configuration/StandardSequences/Services_cff')
0012 process.load('FWCore/MessageService/MessageLogger_cfi')
0013 process.load("FWCore.Modules.preScaler_cfi")
0014
0015 if unitTest:
0016 process.load("DQM.Integration.config.unittestinputsource_cfi")
0017 from DQM.Integration.config.unittestinputsource_cfi import options
0018 else:
0019
0020 process.load("DQM.Integration.config.inputsource_cfi")
0021 from DQM.Integration.config.inputsource_cfi import options
0022
0023
0024
0025
0026
0027
0028 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0029
0030
0031
0032
0033 process.load("EventFilter.ESRawToDigi.esRawToDigi_cfi")
0034
0035 process.esRawToDigi.sourceTag = 'source'
0036 process.esRawToDigi.debugMode = False
0037
0038 process.load('RecoLocalCalo/EcalRecProducers/ecalPreshowerRecHit_cfi')
0039 process.ecalPreshowerRecHit.ESdigiCollection = "esRawToDigi"
0040 process.ecalPreshowerRecHit.ESRecoAlgo = 0
0041
0042 process.preScaler.prescaleFactor = 1
0043
0044 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0045
0046
0047
0048
0049
0050
0051 process.load("DQM.Integration.config.environment_cfi")
0052 process.dqmEnv.subSystemFolder = 'EcalPreshower'
0053 process.dqmSaver.tag = 'EcalPreshower'
0054 process.dqmSaver.runNumber = options.runNumber
0055
0056
0057
0058
0059
0060
0061 process.load("DQM/EcalPreshowerMonitorModule/EcalPreshowerMonitorTasks_cfi")
0062 process.ecalPreshowerIntegrityTask.ESDCCCollections = "esRawToDigi"
0063 process.ecalPreshowerIntegrityTask.ESKChipCollections = "esRawToDigi"
0064 process.ecalPreshowerIntegrityTask.ESDCCCollections = "esRawToDigi"
0065 process.ecalPreshowerIntegrityTask.ESKChipCollections = "esRawToDigi"
0066 process.ecalPreshowerOccupancyTask.DigiLabel = "esRawToDigi"
0067 process.ecalPreshowerPedestalTask.DigiLabel = "esRawToDigi"
0068 process.ecalPreshowerRawDataTask.ESDCCCollections = "esRawToDigi"
0069 process.ecalPreshowerTimingTask.DigiLabel = "esRawToDigi"
0070 process.ecalPreshowerTrendTask.ESDCCCollections = "esRawToDigi"
0071
0072 process.load("DQM/EcalPreshowerMonitorClient/EcalPreshowerMonitorClient_cfi")
0073 del process.dqmInfoES
0074 process.p = cms.Path(process.preScaler*
0075 process.esRawToDigi*
0076 process.ecalPreshowerRecHit*
0077 process.ecalPreshowerDefaultTasksSequence*
0078 process.dqmEnv*
0079 process.ecalPreshowerMonitorClient*
0080 process.dqmSaver)
0081
0082
0083
0084 process.esRawToDigi.sourceTag = "rawDataCollector"
0085 process.ecalPreshowerRawDataTask.FEDRawDataCollection = "rawDataCollector"
0086
0087
0088
0089
0090 print("Running with run type = ", process.runType.getRunType())
0091
0092 if (process.runType.getRunType() == process.runType.hi_run):
0093 process.esRawToDigi.sourceTag = "rawDataRepacker"
0094 process.ecalPreshowerRawDataTask.FEDRawDataCollection = "rawDataRepacker"
0095
0096
0097
0098 from DQM.Integration.config.online_customizations_cfi import *
0099 print("Final Source settings:", process.source)
0100 process = customise(process)