LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::detail::ProcessAndEventSelector Class Reference

#include "CachedProducts.h"

Public Member Functions

 ProcessAndEventSelector (std::string const &process_name, EventSelector const &event_selector)
 
void loadTriggerResults (Event const &e)
 
art::Handle< art::TriggerResultstriggerResults () const
 
void clearTriggerResults ()
 
bool match ()
 

Private Attributes

ProcessNameSelector processNameSelector_
 
EventSelector eventSelector_
 
art::Handle< art::TriggerResultstriggerResults_ {}
 

Detailed Description

Definition at line 27 of file CachedProducts.h.

Constructor & Destructor Documentation

art::detail::ProcessAndEventSelector::ProcessAndEventSelector ( std::string const &  process_name,
EventSelector const &  event_selector 
)
inlineexplicit

Definition at line 29 of file CachedProducts.h.

References eventSelector_.

31  : processNameSelector_{process_name}, eventSelector_{event_selector}
32  {}
ProcessNameSelector processNameSelector_

Member Function Documentation

void art::detail::ProcessAndEventSelector::clearTriggerResults ( )
inline

Definition at line 46 of file CachedProducts.h.

References triggerResults_.

47  {
48  triggerResults_.clear();
49  }
art::Handle< art::TriggerResults > triggerResults_
void art::detail::ProcessAndEventSelector::loadTriggerResults ( Event const &  e)
inline

Definition at line 36 of file CachedProducts.h.

References art::DataViewImpl::get(), processNameSelector_, and triggerResults_.

37  {
38  e.get(/*in=*/processNameSelector_, /*out=*/triggerResults_);
39  }
art::Handle< art::TriggerResults > triggerResults_
ProcessNameSelector processNameSelector_
Float_t e
Definition: plot.C:34
bool art::detail::ProcessAndEventSelector::match ( )
inline

Definition at line 53 of file CachedProducts.h.

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

54  {
56  }
art::Handle< art::TriggerResults > triggerResults_
bool acceptEvent(TriggerResults const &)
art::Handle<art::TriggerResults> art::detail::ProcessAndEventSelector::triggerResults ( ) const
inline

Definition at line 41 of file CachedProducts.h.

References triggerResults_.

42  {
43  return triggerResults_;
44  }
art::Handle< art::TriggerResults > triggerResults_

Member Data Documentation

EventSelector art::detail::ProcessAndEventSelector::eventSelector_
private

Definition at line 62 of file CachedProducts.h.

Referenced by match(), and ProcessAndEventSelector().

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

Definition at line 60 of file CachedProducts.h.

Referenced by loadTriggerResults().

art::Handle<art::TriggerResults> art::detail::ProcessAndEventSelector::triggerResults_ {}
private

Definition at line 64 of file CachedProducts.h.

Referenced by clearTriggerResults(), loadTriggerResults(), match(), and triggerResults().


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