#include <HLTHighLevel.h>
Public Member Functions | |
virtual bool | filter (edm::Event &, const edm::EventSetup &) |
HLTHighLevel (const edm::ParameterSet &) | |
std::vector< std::string > | pathsFromSetup (const std::string &key, const edm::EventSetup &iSetup) const |
get HLTPaths with key 'key' from EventSetup (AlCaRecoTriggerBitsRcd) More... | |
~HLTHighLevel () | |
Public Member Functions inherited from edm::EDFilter | |
EDFilter () | |
virtual | ~EDFilter () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Member Functions | |
void | init (const edm::TriggerResults &results, 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 |
stolen from HLTFilter More... | |
Private Attributes | |
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... | |
bool | throw_ |
throw on any requested trigger being unknown More... | |
edm::ParameterSetID | triggerNamesID_ |
HLT trigger names. More... | |
edm::ESWatcher < AlCaRecoTriggerBitsRcd > * | watchAlCaRecoTriggerBitsRcd_ |
Watcher to be created and used if 'eventSetupPathsKey_' non empty: More... | |
Additional Inherited Members | |
Public Types inherited from edm::EDFilter | |
typedef EDFilter | ModuleType |
typedef WorkerT< EDFilter > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDFilter | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDFilter | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
This class is an HLTFilter (-> EDFilter) implementing filtering on HLT bits
See header file for documentation
Definition at line 40 of file HLTHighLevel.h.
|
explicit |
Definition at line 36 of file HLTHighLevel.cc.
References eventSetupPathsKey_, edm::hlt::Exception, edm::ParameterSet::getParameter(), HLTPatterns_, and watchAlCaRecoTriggerBitsRcd_.
HLTHighLevel::~HLTHighLevel | ( | ) |
Definition at line 63 of file HLTHighLevel.cc.
References watchAlCaRecoTriggerBitsRcd_.
|
virtual |
Implements edm::EDFilter.
Definition at line 187 of file HLTHighLevel.cc.
References accept(), andOr_, edm::ESWatcher< T >::check(), edm::InputTag::encode(), edm::hlt::Exception, edm::Event::getByLabel(), HLTPathsByIndex_, HLTPathsByName_, i, init(), inputTag_, LogDebug, LogTrace, python.rootplot.argparse::message, moduleLabel(), n, or, pathName(), throw_, edm::Event::triggerNames(), triggerNamesID_, and watchAlCaRecoTriggerBitsRcd_.
|
private |
initialize the trigger conditions (call this if the trigger paths have changed)
Definition at line 76 of file HLTHighLevel.cc.
References andOr_, edm::InputTag::encode(), eventSetupPathsKey_, edm::hlt::Exception, HLTPathsByIndex_, HLTPathsByName_, HLTPatterns_, i, inputTag_, edm::is_glob(), LogDebug, LogTrace, match(), n, pathsFromSetup(), listBenchmarks::pattern, edm::regexMatch(), edm::HLTGlobalStatus::size(), throw_, edm::TriggerNames::triggerIndex(), edm::TriggerNames::triggerName(), edm::TriggerNames::triggerNames(), and TrackValidation_HighPurity_cff::valid.
Referenced by filter().
|
private |
Definition at line 267 of file HLTHighLevel.cc.
References edm::EDFilter::currentContext(), and edm::CurrentProcessingContext::moduleLabel().
Referenced by filter(), and pathsFromSetup().
|
private |
stolen from HLTFilter
Definition at line 263 of file HLTHighLevel.cc.
References edm::EDFilter::currentContext(), and edm::CurrentProcessingContext::pathName().
Referenced by filter(), and pathsFromSetup().
std::vector< std::string > HLTHighLevel::pathsFromSetup | ( | const std::string & | key, |
const edm::EventSetup & | iSetup | ||
) | const |
get HLTPaths with key 'key' from EventSetup (AlCaRecoTriggerBitsRcd)
Definition at line 165 of file HLTHighLevel.cc.
References edm::hlt::Exception, edm::EventSetup::get(), moduleLabel(), and pathName().
Referenced by init().
|
private |
false = and-mode (all requested triggers), true = or-mode (at least one)
Definition at line 64 of file HLTHighLevel.h.
|
private |
not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
Definition at line 74 of file HLTHighLevel.h.
Referenced by HLTHighLevel(), and init().
|
private |
list of required HLT triggers by HLT index
Definition at line 85 of file HLTHighLevel.h.
|
private |
list of required HLT triggers by HLT name
Definition at line 82 of file HLTHighLevel.h.
|
private |
input patterns that will be expanded into trigger names
Definition at line 79 of file HLTHighLevel.h.
Referenced by HLTHighLevel(), and init().
|
private |
HLT TriggerResults EDProduct.
Definition at line 58 of file HLTHighLevel.h.
|
private |
throw on any requested trigger being unknown
Definition at line 67 of file HLTHighLevel.h.
|
private |
|
private |
Watcher to be created and used if 'eventSetupPathsKey_' non empty:
Definition at line 76 of file HLTHighLevel.h.
Referenced by filter(), HLTHighLevel(), and ~HLTHighLevel().