#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 &triggernames) | |
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 &fullTriggerList) |
static evtSel::OverlapResult | testSelectionOverlap (Strings const &pathspec1, Strings const &pathspec2, Strings const &fullTriggerList) |
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 |
void | init (Strings const &paths, Strings const &triggernames) |
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 | accept_all_ |
std::vector< Bits > | all_must_fail_ |
std::vector< Bits > | all_must_fail_noex_ |
Bits | conditional_acceptors_ |
Bits | exception_acceptors_ |
bool | notStarPresent_ |
int | nTriggerNames_ |
Strings | paths_ |
ParameterSetID | psetID_ |
bool | psetID_initialized_ |
bool | results_from_current_process_ |
Definition at line 40 of file EventSelector.h.
|
private |
Definition at line 88 of file EventSelector.h.
typedef std::vector<std::string> edm::EventSelector::Strings |
Definition at line 44 of file EventSelector.h.
Definition at line 49 of file EventSelector.cc.
References init().
|
explicit |
Definition at line 67 of file EventSelector.cc.
EventSelector::EventSelector | ( | edm::ParameterSet const & | pset, |
Strings const & | triggernames | ||
) |
Definition at line 83 of file EventSelector.cc.
References edm::ParameterSet::empty(), edm::ParameterSet::getParameter(), init(), and mergeAndRegister::paths.
|
private |
Definition at line 433 of file EventSelector.cc.
References alignCSCRings::e, edm::hlt::Fail, i, edm::hlt::Pass, and edm::HLTGlobalStatus::state().
Referenced by selectionDecision().
bool EventSelector::acceptEvent | ( | TriggerResults const & | tr | ) |
Definition at line 270 of file EventSelector.cc.
References accept_all_, edm::hlt::Exception, init(), edm::TriggerResults::parameterSetID(), paths_, psetID_, psetID_initialized_, 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 323 of file EventSelector.cc.
References accept_all_, edm::errors::Configuration, edm::hlt::Exception, results_from_current_process_, and selectionDecision().
|
private |
Definition at line 413 of file EventSelector.cc.
References alignCSCRings::e, edm::hlt::Exception, edm::hlt::Fail, i, edm::hlt::Pass, and edm::HLTGlobalStatus::state().
Referenced by selectionDecision().
|
private |
Definition at line 401 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 1114 of file EventSelector.cc.
References assert(), i, and x.
Referenced by testSelectionOverlap().
|
private |
Definition at line 961 of file EventSelector.cc.
References alignCSCRings::e, edm::hlt::Exception, i, and edm::HLTGlobalStatus::size().
Referenced by selectionDecision().
|
staticprivate |
Definition at line 1051 of file EventSelector.cc.
Referenced by identical(), maskTriggerResults(), and testSelectionOverlap().
|
static |
Definition at line 1127 of file EventSelector.cc.
References edm::ParameterSetDescription::addOptional(), and edm::ParameterSetDescription::addUntracked().
Referenced by edm::OutputModule::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 937 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 973 of file EventSelector.cc.
Referenced by identical(), and testSelectionOverlap().
|
staticprivate |
Definition at line 984 of file EventSelector.cc.
References absolute_acceptors_, all_must_fail_, all_must_fail_noex_, conditional_acceptors_, exception_acceptors_, expandDecisionList(), identical(), relval_steps::k, visualization-live-secondInstance_cfg::m, and edm::match().
Definition at line 107 of file EventSelector.cc.
References absolute_acceptors_, accept_all_, all_must_fail_, all_must_fail_noex_, conditional_acceptors_, edm::errors::Configuration, HLT_25ns14e33_v1_cff::distance, end, edm::hlt::Exception, exception_acceptors_, i, edm::is_glob(), notStarPresent_, nTriggerNames_, edm::regexMatch(), AlCaHLTBitMon_QueryRunRegistry::string, and edmStreamStallGrapher::t.
Referenced by acceptEvent(), and EventSelector().
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 772 of file EventSelector.cc.
References absolute_acceptors_, all_must_fail_, all_must_fail_noex_, conditional_acceptors_, edm::errors::EventCorruption, edm::hlt::Exception, exception_acceptors_, expandDecisionList(), f, edm::hlt::Fail, visualization-live-secondInstance_cfg::m, N, nTriggerNames_, edm::TriggerResults::parameterSetID(), edm::hlt::Pass, alignCSCRings::s, edm::HLTGlobalStatus::size(), and edm::HLTGlobalStatus::state().
|
staticprivate |
|
staticprivate |
Definition at line 1063 of file EventSelector.cc.
References i.
Referenced by testSelectionOverlap().
|
private |
Definition at line 364 of file EventSelector.cc.
References absolute_acceptors_, accept_all_, acceptAllBits(), acceptOneBit(), all_must_fail_, all_must_fail_noex_, conditional_acceptors_, containsExceptions(), edm::hlt::Exception, exception_acceptors_, f, and personalPlayback::fn.
Referenced by acceptEvent().
|
static |
Tests if the specified trigger selection list (path spec) 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 trigger list.
pathspec | The trigger selection list (vector of string). |
fullTriggerList | The full list of trigger names (vector of string). |
Definition at line 460 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 1075 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). |
fullTriggerList | The full list of trigger names (vector of string). |
Definition at line 556 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 91 of file EventSelector.h.
Referenced by identical(), init(), maskTriggerResults(), selectionDecision(), and testSelectionOverlap().
|
private |
Definition at line 90 of file EventSelector.h.
Referenced by acceptEvent(), init(), selectionDecision(), and wantAll().
|
private |
Definition at line 94 of file EventSelector.h.
Referenced by identical(), init(), maskTriggerResults(), selectionDecision(), and testSelectionOverlap().
|
private |
Definition at line 95 of file EventSelector.h.
Referenced by identical(), init(), maskTriggerResults(), selectionDecision(), and testSelectionOverlap().
|
private |
Definition at line 92 of file EventSelector.h.
Referenced by identical(), init(), maskTriggerResults(), selectionDecision(), and testSelectionOverlap().
|
private |
Definition at line 93 of file EventSelector.h.
Referenced by identical(), init(), maskTriggerResults(), selectionDecision(), and testSelectionOverlap().
|
private |
Definition at line 104 of file EventSelector.h.
Referenced by init().
|
private |
Definition at line 103 of file EventSelector.h.
Referenced by init(), and maskTriggerResults().
|
private |
Definition at line 101 of file EventSelector.h.
Referenced by Config.Process::_insertPaths(), acceptEvent(), Config.Process::dumpConfig(), Config.Process::dumpPython(), and Config.Process::pathNames().
|
private |
Definition at line 99 of file EventSelector.h.
Referenced by acceptEvent().
|
private |
Definition at line 98 of file EventSelector.h.
Referenced by acceptEvent().
|
private |
Definition at line 97 of file EventSelector.h.
Referenced by acceptEvent().