From a91054807d1f07ac5bec48da954dfd6b08f51ac1 Mon Sep 17 00:00:00 2001 From: mmusich Date: Sat, 7 Oct 2023 11:19:38 +0200 Subject: [PATCH 1/2] add leftover parameter in TriggerResultsFilterFromDB::fillDescriptions --- HLTrigger/HLTfilters/plugins/TriggerResultsFilterFromDB.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HLTrigger/HLTfilters/plugins/TriggerResultsFilterFromDB.cc b/HLTrigger/HLTfilters/plugins/TriggerResultsFilterFromDB.cc index fd6471a614f12..0b79f8f269c78 100644 --- a/HLTrigger/HLTfilters/plugins/TriggerResultsFilterFromDB.cc +++ b/HLTrigger/HLTfilters/plugins/TriggerResultsFilterFromDB.cc @@ -40,6 +40,9 @@ TriggerResultsFilterFromDB::~TriggerResultsFilterFromDB() { delete m_expression; void TriggerResultsFilterFromDB::fillDescriptions(edm::ConfigurationDescriptions& descriptions) { edm::ParameterSetDescription desc; + // # use HLTPathStatus results + desc.add("usePathStatus", false) + ->setComment("Read the HLT results from the TriggerResults (false) or from the current job's PathStatus (true)."); // # HLT results - set to empty to ignore HLT desc.add("hltResults", edm::InputTag("TriggerResults")); // # L1 uGT results - set to empty to ignore L1T From c9335a4a1c6ce057f5cbe4a37518c51e3df7d16e Mon Sep 17 00:00:00 2001 From: mmusich Date: Sat, 7 Oct 2023 11:20:24 +0200 Subject: [PATCH 2/2] in pp_on_AA eras use triggerResultsFilterFromDB instead of HLTHighLevel, in order to allow prescales --- .../python/ALCARECOTkAlMinBias_cff.py | 19 +++++++++++++++---- .../python/ALCARECOSiStripCalMinBias_cff.py | 15 +++++++++++++-- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/Alignment/CommonAlignmentProducer/python/ALCARECOTkAlMinBias_cff.py b/Alignment/CommonAlignmentProducer/python/ALCARECOTkAlMinBias_cff.py index 8155e65990b38..da1f276c1e41a 100644 --- a/Alignment/CommonAlignmentProducer/python/ALCARECOTkAlMinBias_cff.py +++ b/Alignment/CommonAlignmentProducer/python/ALCARECOTkAlMinBias_cff.py @@ -49,13 +49,24 @@ ## customizations for the pp_on_AA eras from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA -(pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOTkAlMinBiasHLT, - eventSetupPathsKey='TkAlMinBiasHI' -) - (pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOTkAlMinBias, trackQualities = cms.vstring("highPurity") ) +pp_on_XeXe_2017.toModify(ALCARECOTkAlMinBiasHLT, + eventSetupPathsKey='TkAlMinBiasHI') + +import HLTrigger.HLTfilters.triggerResultsFilterFromDB_cfi +ALCARECOTkAlMinBiasTriggerResultsHI = HLTrigger.HLTfilters.triggerResultsFilterFromDB_cfi.triggerResultsFilterFromDB.clone( + eventSetupPathsKey = 'TkAlMinBiasHI', + usePathStatus = False, + hltResults = 'TriggerResults::HLT', + l1tResults = '', # leaving empty (not interested in L1T results) + throw = False # tolerate triggers stated above, but not available +) + +seqALCARECOTkAlMinBiasHI = cms.Sequence(ALCARECOTkAlMinBiasTriggerResultsHI*~ALCARECOTkAlMinBiasNOTHLT+ALCARECOTkAlMinBiasDCSFilter+ALCARECOTkAlMinBias) +pp_on_AA.toReplaceWith(seqALCARECOTkAlMinBias,seqALCARECOTkAlMinBiasHI) + from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker phase2_tracker.toModify(ALCARECOTkAlMinBias, etaMin = -4, etaMax = 4) diff --git a/Calibration/TkAlCaRecoProducers/python/ALCARECOSiStripCalMinBias_cff.py b/Calibration/TkAlCaRecoProducers/python/ALCARECOSiStripCalMinBias_cff.py index b2f88590caeab..56f667dc958fe 100644 --- a/Calibration/TkAlCaRecoProducers/python/ALCARECOSiStripCalMinBias_cff.py +++ b/Calibration/TkAlCaRecoProducers/python/ALCARECOSiStripCalMinBias_cff.py @@ -42,7 +42,18 @@ ## customizations for the pp_on_AA eras from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017 +pp_on_XeXe_2017.toModify(ALCARECOSiStripCalMinBiasHLT, + eventSetupPathsKey='SiStripCalMinBiasHI') + from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA -(pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOSiStripCalMinBiasHLT, - eventSetupPathsKey='SiStripCalMinBiasHI' +import HLTrigger.HLTfilters.triggerResultsFilterFromDB_cfi +ALCARECOSiStripCalMinBiasTriggerResultsHI = HLTrigger.HLTfilters.triggerResultsFilterFromDB_cfi.triggerResultsFilterFromDB.clone( + eventSetupPathsKey = 'SiStripCalMinBiasHI', + usePathStatus = False, + hltResults = 'TriggerResults::HLT', + l1tResults = '', # leaving empty (not interested in L1T results) + throw = False # tolerate triggers stated above, but not available ) + +seqALCARECOSiStripCalMinBiasHI = cms.Sequence(ALCARECOSiStripCalMinBiasTriggerResultsHI*DCSStatusForSiStripCalMinBias*ALCARECOSiStripCalMinBias) +pp_on_AA.toReplaceWith(seqALCARECOSiStripCalMinBias,seqALCARECOSiStripCalMinBiasHI)