#include <EventSelector.h>
Classes | |
struct | BitInfo |
Public Types | |
typedef std::vector< std::string > | Strings |
Public Member Functions | |
bool | acceptEvent (TriggerResults const &) |
bool | acceptEvent (unsigned char const *, int) const |
EventSelector (Strings const &pathspecs, Strings const &names) | |
EventSelector (Strings const &pathspecs) | |
EventSelector (edm::ParameterSet const &pset, Strings const &pathNames) | |
std::shared_ptr< TriggerResults > | maskTriggerResults (TriggerResults const &inputResults) |
bool | wantAll () const |
Static Public Member Functions | |
static void | fillDescription (ParameterSetDescription &desc) |
static std::vector< std::string > | getEventSelectionVString (edm::ParameterSet const &pset) |
static bool | selectionIsValid (Strings const &pathspec, Strings const &fullPathList) |
static evtSel::OverlapResult | testSelectionOverlap (Strings const &pathspec1, Strings const &pathspec2, Strings const &fullPathList) |
Private Types | |
typedef std::vector< BitInfo > | Bits |
Private Member Functions | |
bool | acceptAllBits (Bits const &b, HLTGlobalStatus const &tr) const |
bool | acceptOneBit (Bits const &b, HLTGlobalStatus const &tr, hlt::HLTState const &s=hlt::Ready) const |
bool | acceptTriggerPath (HLTPathStatus const &, BitInfo const &) const |
bool | containsExceptions (HLTGlobalStatus const &tr) const |
bool | initAcceptAll () |
void | initPathNames (Strings const &pathNames) |
Strings | initPathSpecs (Strings const &pathSpecs) |
bool | selectionDecision (HLTGlobalStatus const &tr) const |
Static Private Member Functions | |
static std::vector< bool > | combine (std::vector< bool > const &a, std::vector< bool > const &b) |
static std::vector< bool > | expandDecisionList (Bits const &b, bool PassOrFail, unsigned int n) |
static std::string | glob2reg (std::string const &s) |
static bool | identical (std::vector< bool > const &a, std::vector< bool > const &b) |
static bool | identical (EventSelector const &a, EventSelector const &b, unsigned int N) |
static std::vector < Strings::const_iterator > | matching_triggers (Strings const &trigs, std::string const &s) |
static bool | overlapping (std::vector< bool > const &a, std::vector< bool > const &b) |
static bool | subset (std::vector< bool > const &a, std::vector< bool > const &b) |
Private Attributes | |
Bits | absolute_acceptors_ |
bool const | accept_all_ |
std::vector< Bits > | all_must_fail_ |
std::vector< Bits > | all_must_fail_noex_ |
Bits | conditional_acceptors_ |
Bits | exception_acceptors_ |
int | nPathNames_ |
Strings const | pathspecs_ |
ParameterSetID | psetID_ |
bool const | results_from_current_process_ |
Definition at line 40 of file EventSelector.h.
|
private |
Definition at line 90 of file EventSelector.h.
typedef std::vector<std::string> edm::EventSelector::Strings |
Definition at line 44 of file EventSelector.h.
Definition at line 51 of file EventSelector.cc.
References initPathNames().
|
explicit |
Definition at line 67 of file EventSelector.cc.
EventSelector::EventSelector | ( | edm::ParameterSet const & | pset, |
Strings const & | pathNames | ||
) |
Definition at line 81 of file EventSelector.cc.
References initPathNames().
|
private |
Definition at line 411 of file EventSelector.cc.
References edm::hlt::Fail, edm::hlt::Pass, and edm::HLTGlobalStatus::state().
Referenced by selectionDecision().
bool EventSelector::acceptEvent | ( | TriggerResults const & | tr | ) |
Definition at line 266 of file EventSelector.cc.
References accept_all_, Exception, initPathNames(), edm::Hash< I >::isValid(), edm::TriggerResults::parameterSetID(), psetID_, edm::Hash< I >::reset(), results_from_current_process_, selectionDecision(), and edm::errors::Unknown.
Referenced by edm::detail::NamedEventSelector::match(), and selectionIsValid().
bool EventSelector::acceptEvent | ( | unsigned char const * | array_of_trigger_results, |
int | number_of_trigger_paths | ||
) | const |
Definition at line 305 of file EventSelector.cc.
References accept_all_, edm::errors::Configuration, Exception, results_from_current_process_, and selectionDecision().
|
private |
Definition at line 393 of file EventSelector.cc.
References edm::hlt::Exception, edm::hlt::Fail, edm::hlt::Pass, and edm::HLTGlobalStatus::state().
Referenced by selectionDecision().
|
private |
Definition at line 381 of file EventSelector.cc.
References edm::EventSelector::BitInfo::accept_state_, edm::hlt::Exception, edm::hlt::Fail, edm::hlt::Pass, and edm::HLTPathStatus::state().
|
staticprivate |
Definition at line 1090 of file EventSelector.cc.
References assert(), i, and x().
Referenced by testSelectionOverlap().
|
private |
Definition at line 937 of file EventSelector.cc.
References alignCSCRings::e, edm::hlt::Exception, i, and edm::HLTGlobalStatus::size().
Referenced by selectionDecision().
|
staticprivate |
Definition at line 1027 of file EventSelector.cc.
Referenced by identical(), maskTriggerResults(), and testSelectionOverlap().
|
static |
Definition at line 1103 of file EventSelector.cc.
References edm::ParameterSetDescription::addOptional(), and edm::ParameterSetDescription::addUntracked().
Referenced by edm::OutputModule::fillDescription(), edm::global::OutputModuleBase::fillDescription(), and edm::one::OutputModuleBase::fillDescription().
|
static |
Returns the list of strings that correspond to the trigger selection request in the specified parameter set (the list of strings contained in the "SelectEvents" parameter).
pset | The ParameterSet that contains the trigger selection. |
Definition at line 913 of file EventSelector.cc.
References edm::ParameterSet::empty(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), and corrVsCorr::selection.
Referenced by dqmservices::TriggerSelector::getEventSelectionVString(), and edm::StreamerOutputModuleBase::StreamerOutputModuleBase().
|
staticprivate |
|
staticprivate |
Definition at line 949 of file EventSelector.cc.
Referenced by identical(), and testSelectionOverlap().
|
staticprivate |
Definition at line 960 of file EventSelector.cc.
References absolute_acceptors_, all_must_fail_, all_must_fail_noex_, conditional_acceptors_, exception_acceptors_, expandDecisionList(), identical(), relval_2017::k, visualization-live-secondInstance_cfg::m, and edm::match().
|
private |
|
private |
Definition at line 126 of file EventSelector.cc.
References absolute_acceptors_, accept_all_, all_must_fail_, all_must_fail_noex_, conditional_acceptors_, edm::errors::Configuration, HLT_FULL_cff::distance, Exception, exception_acceptors_, edm::is_glob(), matches, nPathNames_, pathspecs_, edm::regexMatch(), AlCaHLTBitMon_QueryRunRegistry::string, and lumiQTWidget::t.
Referenced by acceptEvent(), and EventSelector().
Definition at line 97 of file EventSelector.cc.
std::shared_ptr< TriggerResults > EventSelector::maskTriggerResults | ( | TriggerResults const & | inputResults | ) |
Applies a trigger selection mask to a specified trigger result object. Within the trigger result object, each path status is left unchanged if it satisfies the trigger selection (path specs) or cleared if it does not satisfy the trigger selection. In this way, the resulting trigger result object contains only path status values that "pass" the selection criteria.
inputResults | The raw trigger results object that will be masked. |
edm::Exception | if the number of paths in the TriggerResults object does not match the specified full trigger list, or if the trigger selection is invalid in the context of the full trigger list. |
Definition at line 748 of file EventSelector.cc.
References absolute_acceptors_, all_must_fail_, all_must_fail_noex_, conditional_acceptors_, edm::errors::EventCorruption, edm::hlt::Exception, Exception, exception_acceptors_, expandDecisionList(), f, edm::hlt::Fail, visualization-live-secondInstance_cfg::m, N, nPathNames_, edm::TriggerResults::parameterSetID(), edm::hlt::Pass, alignCSCRings::s, edm::HLTGlobalStatus::size(), and edm::HLTGlobalStatus::state().
|
staticprivate |
|
staticprivate |
Definition at line 1039 of file EventSelector.cc.
References i.
Referenced by testSelectionOverlap().
|
private |
Definition at line 346 of file EventSelector.cc.
References absolute_acceptors_, accept_all_, acceptAllBits(), acceptOneBit(), all_must_fail_, all_must_fail_noex_, conditional_acceptors_, containsExceptions(), edm::hlt::Exception, and exception_acceptors_.
Referenced by acceptEvent().
|
static |
Tests if the specified trigger selection list (pathspecs) is valid in the context of the specified full trigger list. Each element in the selection list is tested to see if it possible for some combination of trigger results to satisfy the selection. If all selection elements can be satisfied one way or another, then this method returns true. If one or more selection elements could never be satisfied given the input full trigger list, then this method returns false. At some level, this method tests whether the selection list is a "subset" of the full path list.
pathspecs | The trigger selection list (vector of string). |
fullPathList | The full list of path names (vector of string). |
Definition at line 436 of file EventSelector.cc.
References acceptEvent(), edm::hlt::Exception, edm::hlt::Fail, customizeTrackingMonitorSeedNumber::idx, edm::hlt::Pass, edm::HLTGlobalStatus::reset(), and wantAll().
Referenced by testSelectionOverlap().
|
staticprivate |
Definition at line 1051 of file EventSelector.cc.
References i.
Referenced by testSelectionOverlap().
|
static |
Tests if the specified trigger selection lists (path specs) overlap, where "overlap" means that a valid trigger result (given the full trigger list) could satisfy both selections.
pathspec1 | The first trigger selection list (vector of string). |
pathspec2 | The second trigger selection list (vector of string). |
fullPathList | The full list of trigger names (vector of string). |
Definition at line 532 of file EventSelector.cc.
References a, absolute_acceptors_, all_must_fail_, all_must_fail_noex_, b, combine(), conditional_acceptors_, edm::evtSel::ExactMatch, exception_acceptors_, expandDecisionList(), f, g, identical(), edm::evtSel::InvalidSelection, visualization-live-secondInstance_cfg::m, N, edm::evtSel::NoOverlap, muon::overlap(), overlapping(), edm::evtSel::PartialOverlap, selectionIsValid(), and subset().
|
inline |
Definition at line 55 of file EventSelector.h.
References accept_all_.
Referenced by selectionIsValid().
|
private |
Definition at line 92 of file EventSelector.h.
Referenced by identical(), initPathNames(), maskTriggerResults(), selectionDecision(), and testSelectionOverlap().
|
private |
Definition at line 88 of file EventSelector.h.
Referenced by acceptEvent(), initPathNames(), selectionDecision(), and wantAll().
|
private |
Definition at line 95 of file EventSelector.h.
Referenced by identical(), initPathNames(), maskTriggerResults(), selectionDecision(), and testSelectionOverlap().
|
private |
Definition at line 96 of file EventSelector.h.
Referenced by identical(), initPathNames(), maskTriggerResults(), selectionDecision(), and testSelectionOverlap().
|
private |
Definition at line 93 of file EventSelector.h.
Referenced by identical(), initPathNames(), maskTriggerResults(), selectionDecision(), and testSelectionOverlap().
|
private |
Definition at line 94 of file EventSelector.h.
Referenced by identical(), initPathNames(), maskTriggerResults(), selectionDecision(), and testSelectionOverlap().
|
private |
Definition at line 100 of file EventSelector.h.
Referenced by initPathNames(), and maskTriggerResults().
|
private |
Definition at line 86 of file EventSelector.h.
Referenced by initAcceptAll(), and initPathNames().
|
private |
Definition at line 98 of file EventSelector.h.
Referenced by acceptEvent().
|
private |
Definition at line 87 of file EventSelector.h.
Referenced by acceptEvent().