LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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.

References art::EventSelector::acceptEvent(), eventSelector_, and triggerResults().

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

Definition at line 29 of file ProcessAndEventSelectors.cc.

References art::ProductRetriever::get(), and processNameSelector_.

Referenced by match().

30  {
31  Handle<TriggerResults> h;
32  e.get(processNameSelector_, h);
33  return h;
34  }
Float_t e
Definition: plot.C:35

Member Data Documentation

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

Definition at line 27 of file ProcessAndEventSelectors.h.

Referenced by match(), and ProcessAndEventSelector().

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

Definition at line 26 of file ProcessAndEventSelectors.h.

Referenced by triggerResults().


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