Back to home page

Project CMSSW displayed by LXR

 
 

    


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     # for live online DQM in P5
0020     process.load("DQM.Integration.config.inputsource_cfi")
0021     from DQM.Integration.config.inputsource_cfi import options
0022 
0023 # for testing in lxplus
0024 #process.load("DQM.Integration.config.fileinputsource_cfi")
0025 #from DQM.Integration.config.fileinputsource_cfi import options
0026 
0027 # Condition for P5 cluster
0028 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0029 # Condition for lxplus: change and possibly customise the GT
0030 #from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise
0031 #process.GlobalTag = gtCustomise(process.GlobalTag, 'auto:run3_data', '')
0032 
0033 process.load("EventFilter.ESRawToDigi.esRawToDigi_cfi")
0034 #process.ecalPreshowerDigis = EventFilter.ESRawToDigi.esRawToDigi_cfi.esRawToDigi.clone()
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 #process.dqmInfoES = DQMEDAnalyzer('DQMEventInfo',
0046 #                                   subSystemFolder = cms.untracked.string('EcalPreshower')
0047 #                                   )
0048 
0049 #process.load("DQMServices.Core.DQM_cfg")
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 # process.dqmSaverPB.tag = 'EcalPreshower'
0056 # process.dqmSaverPB.runNumber = options.runNumber
0057 # for local test
0058 #process.dqmSaver.path = '.'
0059 ## process.dqmSaverPB.path = './pb'
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                #process.dqmSaverPB)
0082 
0083 
0084 process.esRawToDigi.sourceTag = "rawDataCollector"
0085 process.ecalPreshowerRawDataTask.FEDRawDataCollection = "rawDataCollector"
0086 #--------------------------------------------------
0087 # Heavy Ion Specific Fed Raw Data Collection Label
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 ### process customizations included here
0098 from DQM.Integration.config.online_customizations_cfi import *
0099 print("Final Source settings:", process.source)
0100 process = customise(process)