From 64e86240d98b727a4d34d7774a5af53ccafa4ab8 Mon Sep 17 00:00:00 2001 From: Marco Rovere Date: Tue, 3 Oct 2023 11:46:41 +0200 Subject: [PATCH] Add FastTimer and Throughput Services to HLT P2 timing menu. --- .../services/ThroughputService_cfi.py | 9 +++++++++ .../python/HLT_75e33_timing_cff.py | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 HLTrigger/Configuration/python/HLT_75e33/services/ThroughputService_cfi.py diff --git a/HLTrigger/Configuration/python/HLT_75e33/services/ThroughputService_cfi.py b/HLTrigger/Configuration/python/HLT_75e33/services/ThroughputService_cfi.py new file mode 100644 index 0000000000000..b3d3bc328d65e --- /dev/null +++ b/HLTrigger/Configuration/python/HLT_75e33/services/ThroughputService_cfi.py @@ -0,0 +1,9 @@ +import FWCore.ParameterSet.Config as cms + +ThroughputService = cms.Service('ThroughputService', + eventRange = cms.untracked.uint32(10000), + eventResolution = cms.untracked.uint32(1), + printEventSummary = cms.untracked.bool(False), + enableDQM = cms.untracked.bool(True), +) + diff --git a/HLTrigger/Configuration/python/HLT_75e33_timing_cff.py b/HLTrigger/Configuration/python/HLT_75e33_timing_cff.py index 7601d21de83fd..353bdd4d9075f 100644 --- a/HLTrigger/Configuration/python/HLT_75e33_timing_cff.py +++ b/HLTrigger/Configuration/python/HLT_75e33_timing_cff.py @@ -230,6 +230,24 @@ fragment.load("HLTrigger/Configuration/HLT_75e33/paths/HLTriggerFinalPath_cff") fragment.load("HLTrigger/Configuration/HLT_75e33/paths/HLTAnalyzerEndpath_cff") +# Load and configure the FastTimerService +fragment.load("HLTrigger/Configuration/HLT_75e33/services/FastTimerService_cfi") +fragment.FastTimerService.enableDQM = False +fragment.FastTimerService.enableDQMbyModule = False +fragment.FastTimerService.enableDQMbyPath = False +fragment.FastTimerService.jsonFileName = 'Phase2Timing_resources.json' + +# Load and configure the ThroughputService +fragment.load("HLTrigger/Configuration/HLT_75e33/services/ThroughputService_cfi") +fragment.ThroughputService.eventRange = 1000 +fragment.ThroughputService.eventResolution = 50 +fragment.ThroughputService.printEventSummary = True +fragment.ThroughputService.enableDQM = False + +# Cusotmize the output as well +if fragment.HLTriggerFinalPath.contains(fragment.hltTriggerSummaryAOD): + fragment.HLTriggerFinalPath.remove(fragment.hltTriggerSummaryAOD) + fragment.schedule = cms.Schedule(*[ fragment.L1T_SinglePFPuppiJet230off,