Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003 
0004 from Configuration.Eras.Era_Run3_cff import Run3
0005 process = cms.Process("DQM", Run3)
0006 
0007 unitTest = False
0008 if 'unitTest=True' in sys.argv:
0009     unitTest=True
0010 
0011 # message logger
0012 process.MessageLogger = cms.Service("MessageLogger",
0013                                     destinations = cms.untracked.vstring('cout'),
0014                                     cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'))
0015                                     )
0016 
0017 #----------------------------
0018 #### Event Source
0019 #----------------------------
0020 if unitTest:
0021     process.load("DQM.Integration.config.unittestinputsource_cfi")
0022     from DQM.Integration.config.unittestinputsource_cfi import options
0023 else:
0024     # for live online DQM in P5
0025     process.load("DQM.Integration.config.inputsource_cfi")
0026     from DQM.Integration.config.inputsource_cfi import options
0027 
0028 # for testing in lxplus
0029 #process.load("DQM.Integration.config.fileinputsource_cfi")
0030 #from DQM.Integration.config.fileinputsource_cfi import options
0031 
0032 # Global tag - Condition for P5 cluster
0033 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0034 
0035 #----------------------------
0036 #### DQM Environment
0037 #----------------------------
0038 process.load("DQM.Integration.config.environment_cfi")
0039 process.dqmEnv.subSystemFolder = 'Info'
0040 process.dqmSaver.tag = 'Info'
0041 process.dqmSaver.runNumber = options.runNumber
0042 process.dqmSaverPB.tag = 'Info'
0043 process.dqmSaverPB.runNumber = options.runNumber
0044 #-----------------------------
0045 
0046 # Digitisation: produce the Scalers digis containing DCS bits
0047 process.load("EventFilter.ScalersRawToDigi.ScalersRawToDigi_cfi")
0048 # Digitisation: produce the TCDS digis containing BST record
0049 from EventFilter.OnlineMetaDataRawToDigi.tcdsRawToDigi_cfi import *
0050 process.tcdsDigis = tcdsRawToDigi.clone()
0051 
0052 # OnlineMetaDataRawToDigi will put DCSRecord to an event
0053 process.load('EventFilter.OnlineMetaDataRawToDigi.onlineMetaDataRawToDigi_cfi')
0054 process.onlineMetaDataDigis = cms.EDProducer('OnlineMetaDataRawToDigi')
0055 
0056 # DQMProvInfo is the DQM module to be run
0057 process.load("DQMServices.Components.DQMProvInfo_cfi")
0058 
0059 # DQM Modules
0060 process.dqmmodules = cms.Sequence(process.dqmEnv + process.dqmSaver + process.dqmSaverPB)
0061 process.evfDQMmodulesPath = cms.Path(
0062                                      process.scalersRawToDigi*
0063                                      process.tcdsDigis*
0064                                      process.onlineMetaDataRawToDigi*
0065                                      process.dqmProvInfo*
0066                                      process.dqmmodules
0067                                      )
0068 process.schedule = cms.Schedule(process.evfDQMmodulesPath)
0069 
0070 process.dqmProvInfo.runType = process.runType.getRunTypeName()
0071 
0072 # Heavy Ion Specific Fed Raw Data Collection Label
0073 if (process.runType.getRunType() == process.runType.hi_run):
0074     process.scalersRawToDigi.scalersInputTag = "rawDataRepacker"
0075     process.tcdsDigis.InputLabel = "rawDataRepacker"
0076 else:
0077     process.scalersRawToDigi.scalersInputTag = "rawDataCollector"
0078     process.tcdsDigis.InputLabel = "rawDataCollector"
0079 
0080 # Process customizations included here
0081 from DQM.Integration.config.online_customizations_cfi import *
0082 process = customise(process)
0083 print("Final Source settings:", process.source)