Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-28 01:34:08

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import sys
0004 from Configuration.Eras.Era_Run3_cff import Run3
0005 process = cms.Process('CTPPSDQM', Run3)
0006 
0007 test = False
0008 unitTest = False
0009 
0010 if 'unitTest=True' in sys.argv:
0011   unitTest=True
0012 
0013 # event source
0014 if unitTest:
0015   process.load("DQM.Integration.config.unittestinputsource_cfi")
0016   from DQM.Integration.config.unittestinputsource_cfi import options
0017 elif not test:
0018   # for live online DQM in P5
0019   process.load("DQM.Integration.config.inputsource_cfi")
0020   from DQM.Integration.config.inputsource_cfi import options
0021 else:
0022   # for testing in lxplus
0023   process.load("DQM.Integration.config.fileinputsource_cfi")
0024   from DQM.Integration.config.fileinputsource_cfi import options
0025   process.source.fileNames = cms.untracked.vstring(
0026     "/store/group/dpg_ctpps/comm_ctpps/PixelRandomTrigger2023/outputExpressPPSRandom.root"
0027   )
0028   process.source.inputCommands = cms.untracked.vstring(
0029     'drop *',
0030     'keep FEDRawDataCollection_*_*_*'
0031   )
0032   
0033 process.source.streamLabel = "streamDQMPPSRandom"
0034 
0035 # DQM environment
0036 process.load("DQM.Integration.config.environment_cfi")
0037 process.dqmEnv.subSystemFolder = 'PPSRANDOM'
0038 process.dqmSaver.tag = 'PPSRANDOM'
0039 process.dqmSaver.runNumber = options.runNumber
0040 process.dqmSaverPB.tag = 'PPSRANDOM'
0041 process.dqmSaverPB.runNumber = options.runNumber
0042 
0043 if test:
0044   process.dqmSaver.path = "."
0045   process.dqmSaverPB.path = "./pb"
0046 
0047 process.load("DQMServices.Components.DQMProvInfo_cfi")
0048 
0049 # message logger
0050 process.MessageLogger = cms.Service("MessageLogger",
0051   destinations = cms.untracked.vstring('cout'),
0052   cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'))
0053 )
0054 
0055 # global tag - conditions for P5 cluster
0056 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0057 
0058 # raw-to-digi conversion
0059 from EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff import ctppsPixelDigis as _ctppsPixelDigis
0060 process.ctppsPixelDigisAlCaRecoProducer = _ctppsPixelDigis.clone(inputLabel = 'hltPPSCalibrationRaw')
0061 
0062 # loading Meta tags used by commonDQM
0063 process.load('EventFilter.OnlineMetaDataRawToDigi.onlineMetaDataRawToDigi_cfi')
0064 process.onlineMetaDataDigis = cms.EDProducer('OnlineMetaDataRawToDigi')
0065 
0066 
0067 # DQM Modules
0068 process.load("DQM.CTPPS.ctppsDQM_cff")
0069 
0070 # processing path
0071 process.recoStep = cms.Sequence(
0072   process.ctppsPixelDigisAlCaRecoProducer *
0073   process.onlineMetaDataDigis
0074 )
0075 
0076 process.dqmModules = cms.Sequence(
0077   process.ctppsDQMRandomSource *
0078   process.ctppsDQMRandomHarvest
0079 )
0080 
0081 process.path = cms.Path(
0082   process.recoStep *
0083   process.dqmModules *
0084 
0085   process.dqmEnv *
0086   process.dqmSaver *
0087   process.dqmSaverPB
0088 )
0089 
0090 process.schedule = cms.Schedule(process.path)
0091 
0092 process.dqmProvInfo.runType = process.runType.getRunTypeName()
0093 
0094 # Process customizations included here
0095 from DQM.Integration.config.online_customizations_cfi import *
0096 print("Final Source settings:", process.source)
0097 process = customise(process)