Skip to content

Commit

Permalink
Merge pull request #42966 from mmusich/dev_throttle_MinBias_AlCas_forHI
Browse files Browse the repository at this point in the history
[13.2.X] Use `TriggerResultsFilterFromDB`-based selection for Heavy AlCaRecos in `pp_on_AA`
  • Loading branch information
cmsbuild authored Oct 10, 2023
2 parents f23a227 + c9335a4 commit f087bb8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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)
3 changes: 3 additions & 0 deletions HLTrigger/HLTfilters/plugins/TriggerResultsFilterFromDB.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ TriggerResultsFilterFromDB::~TriggerResultsFilterFromDB() { delete m_expression;

void TriggerResultsFilterFromDB::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription desc;
// # use HLTPathStatus results
desc.add<bool>("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<edm::InputTag>("hltResults", edm::InputTag("TriggerResults"));
// # L1 uGT results - set to empty to ignore L1T
Expand Down

0 comments on commit f087bb8

Please sign in to comment.