#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 (edm::ParameterSet const &pset, Strings const &pathNames) | |
EventSelector (Strings const &pathspecs) | |
EventSelector (Strings const &pathspecs, Strings const &names) | |
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 (EventSelector const &a, EventSelector const &b, unsigned int N) |
static bool | identical (std::vector< bool > const &a, std::vector< bool > const &b) |
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_ |
const bool | accept_all_ |
std::vector< Bits > | all_must_fail_ |
std::vector< Bits > | all_must_fail_noex_ |
Bits | conditional_acceptors_ |
Bits | exception_acceptors_ |
int | nPathNames_ |
const Strings | pathspecs_ |
ParameterSetID | psetID_ |
const bool | results_from_current_process_ |
Definition at line 35 of file EventSelector.h.
|
private |
Definition at line 74 of file EventSelector.h.
typedef std::vector<std::string> edm::EventSelector::Strings |
Definition at line 37 of file EventSelector.h.
Definition at line 49 of file EventSelector.cc.
References initPathNames(), and patCandidatesForDimuonsSequences_cff::pathNames.
|
explicit |
Definition at line 63 of file EventSelector.cc.
EventSelector::EventSelector | ( | edm::ParameterSet const & | pset, |
Strings const & | pathNames | ||
) |
Definition at line 75 of file EventSelector.cc.
References initPathNames(), and patCandidatesForDimuonsSequences_cff::pathNames.
|
private |
Definition at line 379 of file EventSelector.cc.
References b, edm::hlt::Fail, edm::hlt::Pass, and edm::HLTGlobalStatus::state().
Referenced by selectionDecision().
bool EventSelector::acceptEvent | ( | TriggerResults const & | tr | ) |
Definition at line 245 of file EventSelector.cc.
References accept_all_, Exception, initPathNames(), edm::Hash< I >::isValid(), edm::TriggerResults::parameterSetID(), patCandidatesForDimuonsSequences_cff::pathNames, 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 284 of file EventSelector.cc.
References accept_all_, edm::errors::Configuration, Exception, results_from_current_process_, and selectionDecision().
|
private |
Definition at line 367 of file EventSelector.cc.
References b, edm::hlt::Exception, edm::hlt::Fail, edm::hlt::Pass, alignCSCRings::s, and edm::HLTGlobalStatus::state().
Referenced by selectionDecision().
|
private |
Definition at line 358 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 982 of file EventSelector.cc.
References a, cms::cuda::assert(), b, and mps_fire::i.
Referenced by testSelectionOverlap().
|
private |
Definition at line 833 of file EventSelector.cc.
References MillePedeFileConverter_cfg::e, edm::hlt::Exception, mps_fire::i, and edm::HLTGlobalStatus::size().
Referenced by selectionDecision().
|
staticprivate |
Definition at line 919 of file EventSelector.cc.
References b, mps_fire::i, and dqmiodumpmetadata::n.
Referenced by identical(), maskTriggerResults(), and testSelectionOverlap().
|
static |
Definition at line 992 of file EventSelector.cc.
References edm::ParameterSetDescription::addOptional(), and edm::ParameterSetDescription::addUntracked().
Referenced by edm::global::OutputModuleBase::fillDescription(), edm::limited::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 812 of file EventSelector.cc.
References edm::ParameterSet::empty(), edm::ParameterSet::getParameter(), muonDTDigis_cfi::pset, and corrVsCorr::selection.
Referenced by dqmservices::TriggerSelector::getEventSelectionVString(), and edm::StreamerOutputModuleCommon::StreamerOutputModuleCommon().
|
staticprivate |
|
staticprivate |
Definition at line 855 of file EventSelector.cc.
References a, b, expandDecisionList(), identical(), dqmdumpme::k, visualization-live-secondInstance_cfg::m, edm::match(), and N.
|
staticprivate |
Definition at line 844 of file EventSelector.cc.
References a, b, mps_fire::i, and dqmiodumpmetadata::n.
Referenced by identical(), and testSelectionOverlap().
|
private |
|
private |
Definition at line 119 of file EventSelector.cc.
References absolute_acceptors_, accept_all_, all_must_fail_, all_must_fail_noex_, conditional_acceptors_, edm::errors::Configuration, HLT_2018_cff::distance, Exception, exception_acceptors_, edm::is_glob(), patCandidatesForDimuonsSequences_cff::matches, nPathNames_, patCandidatesForDimuonsSequences_cff::pathNames, pathspecs_, edm::regexMatch(), AlCaHLTBitMon_QueryRunRegistry::string, and OrderedSet::t.
Referenced by acceptEvent(), and EventSelector().
Definition at line 89 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 676 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 929 of file EventSelector.cc.
References a, b, and mps_fire::i.
Referenced by testSelectionOverlap().
|
private |
Definition at line 320 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 403 of file EventSelector.cc.
References acceptEvent(), edm::hlt::Exception, edm::hlt::Fail, charmTagsComputerCvsB_cfi::idx, edm::hlt::Pass, edm::HLTGlobalStatus::reset(), and wantAll().
Referenced by testSelectionOverlap().
|
staticprivate |
Definition at line 941 of file EventSelector.cc.
References a, b, and mps_fire::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 485 of file EventSelector.cc.
References a, b, combine(), edm::evtSel::ExactMatch, expandDecisionList(), f, g, identical(), edm::evtSel::InvalidSelection, visualization-live-secondInstance_cfg::m, N, edm::evtSel::NoOverlap, goodZToMuMu_cfi::overlap, overlapping(), edm::evtSel::PartialOverlap, selectionIsValid(), and subset().
|
inline |
Definition at line 45 of file EventSelector.h.
References accept_all_.
Referenced by selectionIsValid().
|
private |
Definition at line 76 of file EventSelector.h.
Referenced by initPathNames(), maskTriggerResults(), and selectionDecision().
|
private |
Definition at line 72 of file EventSelector.h.
Referenced by acceptEvent(), initPathNames(), selectionDecision(), and wantAll().
|
private |
Definition at line 79 of file EventSelector.h.
Referenced by initPathNames(), maskTriggerResults(), and selectionDecision().
|
private |
Definition at line 80 of file EventSelector.h.
Referenced by initPathNames(), maskTriggerResults(), and selectionDecision().
|
private |
Definition at line 77 of file EventSelector.h.
Referenced by initPathNames(), maskTriggerResults(), and selectionDecision().
|
private |
Definition at line 78 of file EventSelector.h.
Referenced by initPathNames(), maskTriggerResults(), and selectionDecision().
|
private |
Definition at line 84 of file EventSelector.h.
Referenced by initPathNames(), and maskTriggerResults().
|
private |
Definition at line 70 of file EventSelector.h.
Referenced by initAcceptAll(), and initPathNames().
|
private |
Definition at line 82 of file EventSelector.h.
Referenced by acceptEvent().
|
private |
Definition at line 71 of file EventSelector.h.
Referenced by acceptEvent().