Public Member Functions | Private Attributes | List of all members
art::detail::ProcessAndEventSelector Class Reference

#include <ProcessAndEventSelectors.h>

Public Member Functions

 ProcessAndEventSelector (std::string const &process, EventSelector const &es)
 
art::Handle< art::TriggerResultstriggerResults (Event const &e) const
 
bool match (ScheduleID const id, Event const &e) const
 

Private Attributes

ProcessNameSelector processNameSelector_
 
EventSelector eventSelector_
 

Detailed Description

Definition at line 17 of file ProcessAndEventSelectors.h.

Constructor & Destructor Documentation

art::detail::ProcessAndEventSelector::ProcessAndEventSelector ( std::string const &  process,
EventSelector const &  es 
)
explicit

Member Function Documentation

bool art::detail::ProcessAndEventSelector::match ( ScheduleID const  id,
Event const &  e 
) const

Definition at line 37 of file ProcessAndEventSelectors.cc.

38  {
39  auto h = triggerResults(e);
40  return eventSelector_.acceptEvent(id, *h);
41  }
const double e
bool acceptEvent(ScheduleID id, TriggerResults const &tr) const
art::Handle< art::TriggerResults > triggerResults(Event const &e) const
Handle< TriggerResults > art::detail::ProcessAndEventSelector::triggerResults ( Event const &  e) const

Definition at line 29 of file ProcessAndEventSelectors.cc.

30  {
31  Handle<TriggerResults> h;
32  e.get(processNameSelector_, h);
33  return h;
34  }
const double e

Member Data Documentation

EventSelector art::detail::ProcessAndEventSelector::eventSelector_
mutableprivate

Definition at line 27 of file ProcessAndEventSelectors.h.

ProcessNameSelector art::detail::ProcessAndEventSelector::processNameSelector_
private

Definition at line 26 of file ProcessAndEventSelectors.h.


The documentation for this class was generated from the following files: