1 #ifndef art_Framework_Core_Observer_h 2 #define art_Framework_Core_Observer_h 18 class ModuleDescription;
48 "Events are selected based on the trigger-path entries provided in\n" 49 "the 'SelectEvents' and 'RejectEvents' parameters. For example, a\n" 50 "configuration of\n\n" 51 " SelectEvents: [A, B]\n" 52 " RejectEvents: [C, D]\n\n" 53 "would accept events that satisfy trigger-path criteria A or B and\n" 54 "fail criteria C or D. In other words, the event is accepted if " 56 "following Boolean expression evaluates to true:\n\n" 57 " (A || B) and not (C || D)\n\n" 58 "For the majority of cases, a trigger-path criterion may be:\n\n" 59 " 1. A trigger-path name in the current process (e.g. tp)\n" 60 " 2. A negated trigger-path name in the current process (e.g. " 62 " 3. A trigger-path name from a previous process (e.g. " 63 "\"previousProcess:tp\")\n\n" 64 "More complicated expressions are allowed--see\n" 66 "https://cdcvs.fnal.gov/redmine/projects/art/wiki/" 67 "Filtering_events\n\n" 68 "The default 'SelectEvents' and `RejectEvents` lists are empty,\n" 69 "which is equivalent to selecting all events."},
70 std::vector<std::string>{}};
72 std::vector<std::string>{}};
76 explicit Observer(std::vector<std::string>
const& select_paths,
77 std::vector<std::string>
const& reject_paths,
86 std::optional<detail::ProcessAndEventSelectors>
selectors_;
87 std::optional<detail::ProcessAndEventSelectors>
rejectors_;
std::string const & processName() const
Handle< TriggerResults > getTriggerResults(Event const &e) const
bool wantAllEvents() const noexcept
void registerProducts(ProductDescriptions &, ModuleDescription const &)
ChannelGroupService::Name Name
std::string process_name_
std::vector< BranchDescription > ProductDescriptions
fhicl::Sequence< std::string > rejectEvents
bool wantEvent(ScheduleID id, Event const &e) const
void fillDescriptions(ModuleDescription const &)
Observer & operator=(Observer const &)=delete
fhicl::ParameterSetID selector_config_id_
std::optional< detail::ProcessAndEventSelectors > rejectors_
Observer(Observer const &)=delete
std::optional< detail::ProcessAndEventSelectors > selectors_
fhicl::Sequence< std::string > selectEvents
fhicl::ParameterSetID selectorConfig() const