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 
0003 from Configuration.Eras.Era_Run3_cff import Run3
0004 process = cms.Process("DQM", Run3)
0005 process.options = cms.untracked.PSet(
0006   SkipEvent = cms.untracked.vstring('ProductNotFound') 
0007 )
0008 
0009 process.load("DQMServices.Core.DQM_cfg")
0010 
0011 #### leave the following few lines uncommented for online running
0012 process.load("DQM.Integration.config.inputsource_cfi")
0013 from DQM.Integration.config.inputsource_cfi import options
0014 process.load("DQM.Integration.config.environment_cfi")
0015 #process.DQMEventStreamHttpReader.SelectHLTOutput = cms.untracked.string('hltOutputHLTDQMResults')
0016 
0017 #### end first online running section
0018 
0019 ############ Test offline running
0020 
0021 
0022 # process.source = cms.Source("PoolSource",
0023 #                                 fileNames = cms.untracked.vstring('file:/data/ndpc0/b/slaunwhj/rawData/June/0091D91D-D19B-E011-BDCE-001D09F2512C.root')
0024 #                             )
0025 
0026 # process.maxEvents = cms.untracked.PSet(
0027 #         input = cms.untracked.int32(-1)
0028 #         )
0029 
0030 ##############################
0031 
0032 
0033 # old, not used
0034 #process.DQMEventStreamHttpReader.sourceURL = cms.string('http://srv-c2c07-13.cms:11100/urn:xdaq-application:lid=50')
0035 
0036 # old, not used
0037 
0038 process.dqmSaver.tag = "HLTRates"
0039 process.dqmSaver.runNumber = options.runNumber
0040 process.dqmSaverPB.tag = 'HLTRates'
0041 process.dqmSaverPB.runNumber = options.runNumber
0042 
0043 #process.load("Configuration.StandardSequences.GeometryPilot2_cff")
0044 #process.load("Configuration.StandardSequences.MagneticField_cff")
0045 #process.GlobalTrackingGeometryESProducer = cms.ESProducer( "GlobalTrackingGeometryESProducer" ) # for muon hlt dqm
0046 #SiStrip Local Reco
0047 #process.load("CalibTracker.SiStripCommon.TkDetMapESProducer_cfi")
0048 
0049 #---- for P5 (online) DB access
0050 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0051 
0052 #---- for offline DB access: change and possibly customise the GT
0053 #from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise
0054 #process.GlobalTag = gtCustomise(process.GlobalTag, "74X_dataRun2_Express_v3", "")
0055 
0056 
0057 
0058 ################################
0059 #
0060 # Need to do raw to digi
0061 # in order to use PS providers
0062 #
0063 # This is a hassle
0064 # but I will try it
0065 # following lines are only for
0066 # running the silly RawToDigi
0067 #
0068 ################################
0069 
0070 # JMS Aug 16 2011 
0071 # Remove these
0072 # We don't need to run raw to digi
0073 #
0074 
0075 #process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0076 #process.load('Configuration/StandardSequences/RawToDigi_Data_cff')
0077 
0078 #process.load("CalibTracker.SiStripCommon.TkDetMapESProducer_cfi")
0079 
0080 ####### JMS Aug 16 2011 you do need to prescale
0081 process.hltPreTrigResRateMon = cms.EDFilter ("HLTPrescaler",
0082                                              L1GtReadoutRecordTag = cms.InputTag("NONE"),
0083                                              offset = cms.uint32(0)
0084                                              )
0085 
0086 process.PrescaleService = cms.Service( "PrescaleService",
0087     lvl1DefaultLabel = cms.string( "PSTrigRates" ),
0088     lvl1Labels = cms.vstring( 'PS'),
0089     prescaleTable = cms.VPSet(
0090     cms.PSet(  pathName = cms.string( "rateMon" ),
0091         prescales = cms.vuint32(6)
0092       ),
0093      )
0094     )
0095 
0096 
0097 process.load("DQM.HLTEvF.TrigResRateMon_cfi")
0098 
0099 # run on 1 out of 8 SM, LSSize 23 -> 23/8 = 2.875
0100 # stream is prescaled by 10, to correct change LSSize 23 -> 23/10 = 2.3
0101 process.trRateMon.LuminositySegmentSize = 2.3
0102 
0103 
0104 # Add RawToDigi
0105 process.rateMon = cms.EndPath(process.hltPreTrigResRateMon *process.trRateMon)
0106 
0107 
0108 process.pp = cms.Path(process.dqmEnv+process.dqmSaver+process.dqmSaverPB)
0109 
0110 process.dqmEnv.subSystemFolder = 'HLT/TrigResults'
0111 #process.hltResults.plotAll = True
0112 
0113 
0114 ### process customizations included here
0115 from DQM.Integration.config.online_customizations_cfi import *
0116 process = customise(process)