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("HARVESTING", Run3)
0006 
0007 unitTest = False
0008 if 'unitTest=True' in sys.argv:
0009     unitTest=True
0010 
0011 #----------------------------
0012 #### Histograms Source
0013 #----------------------------
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.pbsource_cfi")
0021    from DQM.Integration.config.pbsource_cfi import options
0022 
0023 #----------------------------
0024 #### DQM Environment
0025 #----------------------------
0026 process.load("DQM.Integration.config.environment_cfi")
0027 process.dqmEnv.subSystemFolder = 'HLTpb'
0028 process.dqmEnv.eventInfoFolder = 'EventInfo'
0029 process.dqmSaver.tag = 'HLTpb'
0030 #process.dqmSaver.path = './HLT'
0031 process.dqmSaver.runNumber = options.runNumber
0032 process.dqmSaverPB.tag = 'HLTpb'
0033 process.dqmSaverPB.runNumber = options.runNumber
0034 #-----------------------------
0035 
0036 # customise for playback
0037 if process.dqmRunConfig.type.value() == "playback":
0038     process.dqmEnv.eventInfoFolder = 'EventInfo/Random'
0039 
0040 # DQM Modules
0041 # FastTimerService client
0042 process.load('HLTrigger.Timer.fastTimerServiceClient_cfi')
0043 process.fastTimerServiceClient.dqmPath = "HLT/TimerService"
0044 # timing VS lumi
0045 process.fastTimerServiceClient.doPlotsVsScalLumi  = True
0046 process.fastTimerServiceClient.doPlotsVsPixelLumi = False
0047 process.fastTimerServiceClient.scalLumiME = cms.PSet(
0048     folder = cms.string('HLT/LumiMonitoring'),
0049     name   = cms.string('lumiVsLS'),
0050     nbins  = cms.int32(5000),
0051     xmin   = cms.double(0),
0052     xmax   = cms.double(20000)
0053 )
0054 
0055 # ThroughputService client
0056 process.load("HLTrigger.Timer.throughputServiceClient_cfi")
0057 process.throughputServiceClient.dqmPath = "HLT/Throughput"
0058 
0059 # PS column VS lumi
0060 process.load('DQM.HLTEvF.dqmCorrelationClient_cfi')
0061 process.psColumnVsLumi = process.dqmCorrelationClient.clone(
0062    me = cms.PSet(
0063       folder = cms.string("HLT/PSMonitoring"),
0064       name   = cms.string("psColumnVSlumi"),
0065       doXaxis = cms.bool( True ),
0066       nbinsX = cms.int32( 5000),
0067       xminX  = cms.double(    0.),
0068       xmaxX  = cms.double(20000.),
0069       doYaxis = cms.bool( False ),
0070       nbinsY = cms.int32 (   8),
0071       xminY  = cms.double(   0.),
0072       xmaxY  = cms.double(   8.),
0073    ),
0074    me1 = cms.PSet(
0075       folder   = cms.string("HLT/LumiMonitoring"),
0076       name     = cms.string("lumiVsLS"),
0077       profileX = cms.bool(True)
0078    ),
0079    me2 = cms.PSet(
0080       folder   = cms.string("HLT/PSMonitoring"),
0081       name     = cms.string("psColumnIndexVsLS"),
0082       profileX = cms.bool(True)
0083    ),
0084 )
0085 
0086 process.load('DQM.HLTEvF.psMonitorClient_cfi')
0087 process.psChecker = process.psMonitorClient.clone()
0088 
0089 print("Final Source settings:", process.source)
0090 process.p = cms.EndPath( process.fastTimerServiceClient + process.throughputServiceClient + process.psColumnVsLumi + process.psChecker + process.dqmEnv + process.dqmSaver + process.dqmSaverPB )