#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) | |
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 35 of file EventSelector.h.
|
private |
Definition at line 72 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().
|
explicit |
Definition at line 63 of file EventSelector.cc.
|
private |
Definition at line 368 of file EventSelector.cc.
References edm::HLTGlobalStatus::at(), b, triggerObjects_cff::bit, edm::hlt::Fail, edm::hlt::Pass, and edm::HLTPathStatus::state().
Referenced by selectionDecision().
bool EventSelector::acceptEvent | ( | TriggerResults const & | tr | ) |
Definition at line 234 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 273 of file EventSelector.cc.
References accept_all_, edm::errors::Configuration, Exception, results_from_current_process_, and selectionDecision().
|
private |
Definition at line 356 of file EventSelector.cc.
References edm::HLTGlobalStatus::at(), b, triggerObjects_cff::bit, edm::hlt::Exception, edm::hlt::Fail, edm::hlt::Pass, alignCSCRings::s, and edm::HLTPathStatus::state().
Referenced by selectionDecision().
|
private |
Definition at line 347 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 971 of file EventSelector.cc.
References a, cms::cuda::assert(), b, mps_fire::i, and x.
Referenced by testSelectionOverlap().
|
private |
Definition at line 822 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 908 of file EventSelector.cc.
References b, mps_fire::i, dqmiodumpmetadata::n, and x.
Referenced by identical(), maskTriggerResults(), and testSelectionOverlap().
|
static |
Definition at line 981 of file EventSelector.cc.
References submitPVResolutionJobs::desc, and collectionMerger::selector.
Referenced by edm::core::OutputModuleCore::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 801 of file EventSelector.cc.
References edm::ParameterSet::empty(), edm::ParameterSet::getParameter(), muonDTDigis_cfi::pset, and corrVsCorr::selection.
Referenced by edm::StreamerOutputModuleCommon::parameters().
|
staticprivate |
|
staticprivate |
Definition at line 833 of file EventSelector.cc.
References a, b, mps_fire::i, and dqmiodumpmetadata::n.
Referenced by identical(), and testSelectionOverlap().
|
staticprivate |
Definition at line 844 of file EventSelector.cc.
References a, b, expandDecisionList(), identical(), dqmdumpme::k, visualization-live-secondInstance_cfg::m, edm::match(), and N.
|
private |
|
private |
Definition at line 108 of file EventSelector.cc.
References absolute_acceptors_, accept_all_, all_must_fail_, all_must_fail_noex_, conditional_acceptors_, edm::errors::Configuration, HLT_2024v12_cff::distance, Exception, exception_acceptors_, edm::is_glob(), oniaPATMuonsWithTrigger_cff::matches, nPathNames_, pathspecs_, edm::regexMatch(), AlCaHLTBitMon_QueryRunRegistry::string, and submitPVValidationJobs::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 665 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, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, N, nPathNames_, edm::TriggerResults::parameterSetID(), edm::hlt::Pass, alignCSCRings::s, edm::HLTGlobalStatus::size(), and edm::HLTGlobalStatus::state().
|
staticprivate |
|
staticprivate |
Definition at line 918 of file EventSelector.cc.
References a, b, and mps_fire::i.
Referenced by testSelectionOverlap().
|
private |
Definition at line 309 of file EventSelector.cc.
References absolute_acceptors_, accept_all_, acceptAllBits(), acceptOneBit(), all_must_fail_, all_must_fail_noex_, triggerObjects_cff::bit, 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 392 of file EventSelector.cc.
References acceptEvent(), edm::hlt::Exception, edm::hlt::Fail, heavyIonCSV_trainingSettings::idx, edm::hlt::Pass, edm::HLTGlobalStatus::reset(), and wantAll().
Referenced by testSelectionOverlap().
|
staticprivate |
Definition at line 930 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 474 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, hltL1SingleMuFiltered5_cfi::overlap, overlapping(), edm::evtSel::PartialOverlap, selectionIsValid(), and subset().
|
inline |
Definition at line 43 of file EventSelector.h.
References accept_all_.
Referenced by selectionIsValid().
|
private |
Definition at line 74 of file EventSelector.h.
Referenced by initPathNames(), maskTriggerResults(), and selectionDecision().
|
private |
Definition at line 70 of file EventSelector.h.
Referenced by acceptEvent(), initPathNames(), selectionDecision(), and wantAll().
|
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 75 of file EventSelector.h.
Referenced by initPathNames(), maskTriggerResults(), and selectionDecision().
|
private |
Definition at line 76 of file EventSelector.h.
Referenced by initPathNames(), maskTriggerResults(), and selectionDecision().
|
private |
Definition at line 82 of file EventSelector.h.
Referenced by initPathNames(), and maskTriggerResults().
|
private |
Definition at line 68 of file EventSelector.h.
Referenced by initAcceptAll(), and initPathNames().
|
private |
Definition at line 80 of file EventSelector.h.
Referenced by acceptEvent().
|
private |
Definition at line 69 of file EventSelector.h.
Referenced by acceptEvent().