#include <HLTHighLevel.h>
Public Member Functions | |
bool | filter (edm::Event &, const edm::EventSetup &) override |
HLTHighLevel (const edm::ParameterSet &) | |
std::vector< std::string > | pathsFromSetup (const std::string &key, const edm::Event &, const edm::EventSetup &iSetup) const |
get HLTPaths with key 'key' from EventSetup (AlCaRecoTriggerBitsRcd) More... | |
Public Member Functions inherited from edm::stream::EDFilter<> | |
EDFilter ()=default | |
EDFilter (const EDFilter &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDFilter & | operator= (const EDFilter &)=delete |
Public Member Functions inherited from edm::stream::EDFilterBase | |
EDFilterBase () | |
EDFilterBase (const EDFilterBase &)=delete | |
ModuleDescription const & | moduleDescription () const |
const EDFilterBase & | operator= (const EDFilterBase &)=delete |
~EDFilterBase () override | |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
std::vector< bool > const & | recordProvenanceList () const |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
TypeLabelList const & | typeLabelList () const |
used by the fwk to register the list of products of this module More... | |
~ProducerBase () noexcept(false) override | |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
virtual | ~EDConsumerBase () noexcept(false) |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::stream::EDFilterBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | init (const edm::TriggerResults &results, const edm::Event &, const edm::EventSetup &iSetup, const edm::TriggerNames &triggerNames) |
initialize the trigger conditions (call this if the trigger paths have changed) More... | |
std::string const & | moduleLabel () const |
std::string const & | pathName (const edm::Event &) const |
stolen from HLTFilter More... | |
Private Attributes | |
edm::ESGetToken< AlCaRecoTriggerBits, AlCaRecoTriggerBitsRcd > | alcaRecotriggerBitsToken_ |
ESGetToken to read AlCaRecoTriggerBits. More... | |
bool | andOr_ |
false = and-mode (all requested triggers), true = or-mode (at least one) More... | |
const std::string | eventSetupPathsKey_ |
not empty => use read paths from AlCaRecoTriggerBitsRcd via this key More... | |
std::vector< unsigned int > | HLTPathsByIndex_ |
list of required HLT triggers by HLT index More... | |
std::vector< std::string > | HLTPathsByName_ |
list of required HLT triggers by HLT name More... | |
std::vector< std::string > | HLTPatterns_ |
input patterns that will be expanded into trigger names More... | |
edm::InputTag | inputTag_ |
HLT TriggerResults EDProduct. More... | |
edm::EDGetTokenT< edm::TriggerResults > | inputToken_ |
bool | throw_ |
throw on any requested trigger being unknown More... | |
edm::ParameterSetID | triggerNamesID_ |
HLT trigger names. More... | |
std::optional< edm::ESWatcher< AlCaRecoTriggerBitsRcd > > | watchAlCaRecoTriggerBitsRcd_ |
Watcher to be created and used if 'eventSetupPathsKey_' non empty: More... | |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDFilter<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Public Types inherited from edm::stream::EDFilterBase | |
typedef EDFilterAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::ProducerBase | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
See header file for documentation
This class is an HLTFilter (-> EDFilter) implementing filtering on HLT bits
Definition at line 42 of file HLTHighLevel.h.
|
explicit |
Definition at line 36 of file HLTHighLevel.cc.
References alcaRecotriggerBitsToken_, eventSetupPathsKey_, Exception, edm::ParameterSet::getParameter(), HLTPatterns_, AlCaHLTBitMon_QueryRunRegistry::string, and watchAlCaRecoTriggerBitsRcd_.
|
static |
Definition at line 67 of file HLTHighLevel.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, HLTSiStripMonitoring_cff::hltPaths, HLT_2022v12_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
overridevirtual |
Implements edm::stream::EDFilterBase.
Definition at line 194 of file HLTHighLevel.cc.
References accept(), edm::HLTGlobalStatus::accept(), andOr_, edm::InputTag::encode(), Exception, HLTPathsByIndex_, HLTPathsByName_, mps_fire::i, iEvent, init(), inputTag_, inputToken_, edm::HandleBase::isValid(), LogDebug, LogTrace, moduleLabel(), dqmiodumpmetadata::n, or, pathName(), edm::HLTGlobalStatus::size(), AlCaHLTBitMon_QueryRunRegistry::string, throw_, L1TEGammaOffline_cfi::triggerNames, triggerNamesID_, and watchAlCaRecoTriggerBitsRcd_.
|
private |
initialize the trigger conditions (call this if the trigger paths have changed)
Definition at line 86 of file HLTHighLevel.cc.
References andOr_, edm::InputTag::encode(), eventSetupPathsKey_, Exception, HLTPathsByIndex_, HLTPathsByName_, HLTPatterns_, mps_fire::i, inputTag_, createfilelist::int, edm::is_glob(), LogDebug, LogTrace, match(), oniaPATMuonsWithTrigger_cff::matches, dqmiodumpmetadata::n, pathsFromSetup(), topSingleLeptonDQM_PU_cfi::pattern, edm::regexMatch(), mps_fire::result, throw_, L1TEGammaOffline_cfi::triggerNames, and validateGeometry_cfg::valid.
Referenced by filter().
|
private |
Definition at line 266 of file HLTHighLevel.cc.
References edm::stream::EDFilterBase::moduleDescription(), and edm::ModuleDescription::moduleLabel().
Referenced by filter(), and pathsFromSetup().
|
private |
stolen from HLTFilter
Definition at line 262 of file HLTHighLevel.cc.
Referenced by filter(), and pathsFromSetup().
std::vector< std::string > HLTHighLevel::pathsFromSetup | ( | const std::string & | key, |
const edm::Event & | event, | ||
const edm::EventSetup & | iSetup | ||
) | const |
get HLTPaths with key 'key' from EventSetup (AlCaRecoTriggerBitsRcd)
Definition at line 173 of file HLTHighLevel.cc.
References alcaRecotriggerBitsToken_, Exception, edm::EventSetup::getData(), crabWrapper::key, moduleLabel(), and pathName().
Referenced by init().
|
private |
ESGetToken to read AlCaRecoTriggerBits.
Definition at line 83 of file HLTHighLevel.h.
Referenced by HLTHighLevel(), and pathsFromSetup().
|
private |
false = and-mode (all requested triggers), true = or-mode (at least one)
Definition at line 69 of file HLTHighLevel.h.
|
private |
not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
Definition at line 79 of file HLTHighLevel.h.
Referenced by HLTHighLevel(), and init().
|
private |
list of required HLT triggers by HLT index
Definition at line 92 of file HLTHighLevel.h.
|
private |
list of required HLT triggers by HLT name
Definition at line 89 of file HLTHighLevel.h.
|
private |
input patterns that will be expanded into trigger names
Definition at line 86 of file HLTHighLevel.h.
Referenced by HLTHighLevel(), and init().
|
private |
HLT TriggerResults EDProduct.
Definition at line 62 of file HLTHighLevel.h.
|
private |
Definition at line 63 of file HLTHighLevel.h.
Referenced by filter().
|
private |
throw on any requested trigger being unknown
Definition at line 72 of file HLTHighLevel.h.
|
private |
|
private |
Watcher to be created and used if 'eventSetupPathsKey_' non empty:
Definition at line 81 of file HLTHighLevel.h.
Referenced by filter(), and HLTHighLevel().