Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-08 02:27:16

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 import sys
0004 
0005 from Configuration.Eras.Era_Run3_cff import Run3
0006 process = cms.Process("ESDQM", Run3)
0007 
0008 unitTest = False
0009 if 'unitTest=True' in sys.argv:
0010     unitTest=True
0011 
0012 process.load('Configuration/StandardSequences/Services_cff')
0013 process.load('FWCore/MessageService/MessageLogger_cfi')
0014 process.load("FWCore.Modules.preScaler_cfi")
0015 
0016 if unitTest:
0017     process.load("DQM.Integration.config.unittestinputsource_cfi")
0018     from DQM.Integration.config.unittestinputsource_cfi import options
0019 else:
0020     # for live online DQM in P5
0021     process.load("DQM.Integration.config.inputsource_cfi")
0022     from DQM.Integration.config.inputsource_cfi import options
0023 
0024 # for testing in lxplus
0025 #process.load("DQM.Integration.config.fileinputsource_cfi")
0026 #from DQM.Integration.config.fileinputsource_cfi import options
0027 
0028 # Condition for P5 cluster
0029 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0030 # Condition for lxplus: change and possibly customise the GT
0031 #from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise
0032 #process.GlobalTag = gtCustomise(process.GlobalTag, 'auto:run2_data', '')
0033 
0034 process.load("EventFilter.ESRawToDigi.esRawToDigi_cfi")
0035 #process.ecalPreshowerDigis = EventFilter.ESRawToDigi.esRawToDigi_cfi.esRawToDigi.clone()
0036 process.esRawToDigi.sourceTag = 'source'
0037 process.esRawToDigi.debugMode = False
0038 
0039 process.load('RecoLocalCalo/EcalRecProducers/ecalPreshowerRecHit_cfi')
0040 process.ecalPreshowerRecHit.ESdigiCollection = "esRawToDigi"
0041 process.ecalPreshowerRecHit.ESRecoAlgo = 0
0042 
0043 process.preScaler.prescaleFactor = 1
0044 
0045 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0046 #process.dqmInfoES = DQMEDAnalyzer('DQMEventInfo',
0047 #                                   subSystemFolder = cms.untracked.string('EcalPreshower')
0048 #                                   )
0049 
0050 #process.load("DQMServices.Core.DQM_cfg")
0051 
0052 process.load("DQM.Integration.config.environment_cfi")
0053 process.dqmEnv.subSystemFolder = 'EcalPreshower'
0054 process.dqmSaver.tag = 'EcalPreshower'
0055 process.dqmSaver.runNumber = options.runNumber
0056 process.dqmSaverPB.tag = 'EcalPreshower'
0057 process.dqmSaverPB.runNumber = options.runNumber
0058 # for local test
0059 #process.dqmSaver.path = '.'
0060 #process.dqmSaverPB.path = './pb'
0061 
0062 process.load("DQM/EcalPreshowerMonitorModule/EcalPreshowerMonitorTasks_cfi")
0063 process.ecalPreshowerIntegrityTask.ESDCCCollections = "esRawToDigi"
0064 process.ecalPreshowerIntegrityTask.ESKChipCollections = "esRawToDigi"
0065 process.ecalPreshowerIntegrityTask.ESDCCCollections = "esRawToDigi"
0066 process.ecalPreshowerIntegrityTask.ESKChipCollections = "esRawToDigi"
0067 process.ecalPreshowerOccupancyTask.DigiLabel = "esRawToDigi"
0068 process.ecalPreshowerPedestalTask.DigiLabel = "esRawToDigi"
0069 process.ecalPreshowerRawDataTask.ESDCCCollections = "esRawToDigi"
0070 process.ecalPreshowerTimingTask.DigiLabel = "esRawToDigi"
0071 process.ecalPreshowerTrendTask.ESDCCCollections = "esRawToDigi"
0072 
0073 process.load("DQM/EcalPreshowerMonitorClient/EcalPreshowerMonitorClient_cfi")
0074 del process.dqmInfoES
0075 process.p = cms.Path(process.preScaler*
0076                process.esRawToDigi*
0077                process.ecalPreshowerRecHit*
0078                process.ecalPreshowerDefaultTasksSequence*
0079                process.dqmEnv*
0080                process.ecalPreshowerMonitorClient*
0081                process.dqmSaver*
0082                process.dqmSaverPB)
0083 
0084 
0085 process.esRawToDigi.sourceTag = "rawDataCollector"
0086 process.ecalPreshowerRawDataTask.FEDRawDataCollection = "rawDataCollector"
0087 #--------------------------------------------------
0088 # Heavy Ion Specific Fed Raw Data Collection Label
0089 #--------------------------------------------------
0090 
0091 print("Running with run type = ", process.runType.getRunType())
0092 
0093 if (process.runType.getRunType() == process.runType.hi_run):
0094     process.esRawToDigi.sourceTag = "rawDataRepacker"
0095     process.ecalPreshowerRawDataTask.FEDRawDataCollection = "rawDataRepacker"
0096 
0097 
0098 ### process customizations included here
0099 from DQM.Integration.config.online_customizations_cfi import *
0100 print("Final Source settings:", process.source)
0101 process = customise(process)