File indexing completed on 2024-04-06 12:07:42
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 = 'unitTest=True' in sys.argv
0009
0010
0011 if unitTest:
0012 process.load("DQM.Integration.config.unittestinputsource_cfi")
0013 from DQM.Integration.config.unittestinputsource_cfi import options
0014 elif not test:
0015
0016 process.load("DQM.Integration.config.inputsource_cfi")
0017 from DQM.Integration.config.inputsource_cfi import options
0018 else:
0019
0020 process.load("DQM.Integration.config.fileinputsource_cfi")
0021 from DQM.Integration.config.fileinputsource_cfi import options
0022 process.source.fileNames = cms.untracked.vstring(
0023 "/store/group/dpg_ctpps/comm_ctpps/PixelRandomTrigger2023/outputExpressPPSRandom.root"
0024 )
0025 process.source.inputCommands = cms.untracked.vstring(
0026 'drop *',
0027 'keep FEDRawDataCollection_*_*_*'
0028 )
0029
0030 process.source.streamLabel = "streamDQMPPSRandom"
0031
0032
0033 process.load("DQM.Integration.config.environment_cfi")
0034 process.dqmEnv.subSystemFolder = 'PPSRANDOM'
0035 process.dqmSaver.tag = 'PPSRANDOM'
0036 process.dqmSaver.runNumber = options.runNumber
0037 process.dqmSaverPB.tag = 'PPSRANDOM'
0038 process.dqmSaverPB.runNumber = options.runNumber
0039
0040 if test:
0041 process.dqmSaver.path = "."
0042 process.dqmSaverPB.path = "./pb"
0043
0044 process.load("DQMServices.Components.DQMProvInfo_cfi")
0045
0046
0047 process.MessageLogger = cms.Service("MessageLogger",
0048 destinations = cms.untracked.vstring('cout'),
0049 cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'))
0050 )
0051
0052
0053 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0054
0055
0056 from EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff import ctppsPixelDigis as _ctppsPixelDigis
0057 process.ctppsPixelDigisAlCaRecoProducer = _ctppsPixelDigis.clone(inputLabel = 'hltPPSCalibrationRaw')
0058
0059
0060 process.load('EventFilter.OnlineMetaDataRawToDigi.onlineMetaDataRawToDigi_cfi')
0061 process.onlineMetaDataDigis = cms.EDProducer('OnlineMetaDataRawToDigi')
0062
0063
0064
0065 process.load("DQM.CTPPS.ctppsDQM_cff")
0066
0067
0068 process.recoStep = cms.Sequence(
0069 process.ctppsPixelDigisAlCaRecoProducer *
0070 process.onlineMetaDataDigis
0071 )
0072
0073 process.dqmModules = cms.Sequence(
0074 process.ctppsDQMRandomSource *
0075 process.ctppsDQMRandomHarvest
0076 )
0077
0078 process.path = cms.Path(
0079 process.recoStep *
0080 process.dqmModules *
0081
0082 process.dqmEnv *
0083 process.dqmSaver *
0084 process.dqmSaverPB
0085 )
0086
0087 process.schedule = cms.Schedule(process.path)
0088
0089 process.dqmProvInfo.runType = process.runType.getRunTypeName()
0090
0091
0092 from DQM.Integration.config.online_customizations_cfi import *
0093 print("Final Source settings:", process.source)
0094 process = customise(process)