Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-19 23:19:58

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.doPlotsVsOnlineLumi = True
0046 process.fastTimerServiceClient.doPlotsVsPixelLumi = False
0047 process.fastTimerServiceClient.onlineLumiME = dict(
0048     folder = 'HLT/LumiMonitoring',
0049     name   = 'lumiVsLS',
0050     nbins  = 6000,
0051     xmin   = 0,
0052     xmax   = 30000,
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( 6000 ),
0067       xminX  = cms.double( 0. ),
0068       xmaxX  = cms.double( 30000. ),
0069       doYaxis = cms.bool( False ),
0070    ),
0071    me1 = cms.PSet(
0072       folder   = cms.string("HLT/LumiMonitoring"),
0073       name     = cms.string("lumiVsLS"),
0074       profileX = cms.bool(True)
0075    ),
0076    me2 = cms.PSet(
0077       folder   = cms.string("HLT/PSMonitoring"),
0078       name     = cms.string("psColumnIndexVsLS"),
0079       profileX = cms.bool(True)
0080    ),
0081 )
0082 
0083 print("Final Source settings:", process.source)
0084 process.p = cms.EndPath( process.fastTimerServiceClient + process.throughputServiceClient + process.psColumnVsLumi + process.dqmEnv + process.dqmSaver )#+ process.dqmSaverPB )