LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ProcessAndEventSelectors.h
Go to the documentation of this file.
1 #ifndef art_Framework_Core_ProcessAndEventSelectors_h
2 #define art_Framework_Core_ProcessAndEventSelectors_h
3 // vim: set sw=2 expandtab :
4 
10 
11 #include <string>
12 #include <utility>
13 #include <vector>
14 
15 namespace art::detail {
16  // Match events based on the trigger results from a given process name.
18  public:
19  explicit ProcessAndEventSelector(std::string const& process,
20  EventSelector const& es);
21 
23  bool match(ScheduleID const id, Event const& e) const;
24 
25  private:
28  };
29 
31  public:
33  std::vector<std::pair<std::string, std::string>> const& path_specs,
34  std::string const& process_name);
35 
36  bool matchEvent(ScheduleID const id, Event const& e) const;
37  art::Handle<art::TriggerResults> getOneTriggerResults(Event const&) const;
38 
39  private:
40  std::vector<ProcessAndEventSelector> sel_{};
41  };
42 
43 } // namespace art::detail
44 
45 #endif /* art_Framework_Core_ProcessAndEventSelectors_h */
46 
47 // Local Variables:
48 // mode: c++
49 // End:
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:289
art::Handle< art::TriggerResults > triggerResults(Event const &e) const
std::vector< art::PathSpec > path_specs(std::vector< ModuleSpec > const &selection_override_entries, std::string const &path_selection_override)
ProcessAndEventSelector(std::string const &process, EventSelector const &es)
Float_t e
Definition: plot.C:35
bool match(ScheduleID const id, Event const &e) const